📄 singleask.htm
字号:
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312">
<title></title>
<style type="text/css">
<!--
table{
font-size:12px;
}
.style7 {font-size: 14px; color: #000000;}
body {
background-image: url(_images/waterBack.gif);
font-size:12px;
}
.style11 {
color: #CC0000;
font-weight: bold;
font-size: 16px;
}
.style12 {
color: #FFFFFF;
font-size: 16px;
font-weight: bold;
}
.style16 {color: #FFFF00}
-->
</style>
<SCRIPT LANGUAGE="JavaScript">
<!--
function _askConditionWndShow()
{
Layer1Back.style.display="block";
Layer1.style.display="block";
}
function _askConditionWndHide()
{
idFm.idDrugId.value="";
idFm.idName.value="";
idFm.idPYName.value="";
idFm.idBatch.value="";
idFm.idToDate.value="";
idFm.idProductAddress.value="";
idFm.idStoreCount.value="";
idFm.idType.selectedIndex=0;
idFm.idABType.selectedIndex=0;
//
Layer1Back.style.display="none";
Layer1.style.display="none";
}
function _changeChoice(the)
{
idPatientMsgText.innerText="";
idTable.innerHTML="";
if(the.value=="patientMsg"&&the.checked==true)
{
idDate.style.display="none";idPatient.style.display="block"
idSpanDoctor.style.visibility="hidden";
}
if(the.value=="doctorMsg"&&the.checked==true)
{
idDate.style.display="block";idPatient.style.display="none";
if(sysManager==1)
{
idSpanDoctor.style.visibility="visible";
}
_onChange();
}
}
var sysManager=0;
function _initSingleAsk()
{
if( parent.idOfficePosition.value=="")
{
document.write("<body onContextMenu='return false' leftmargin=0 topmargin=0 ondragstart='return false' onselectstart ='return false' onselect='document.selection.empty()' oncopy='document.selection.empty()' onbeforecopy='return false' style='background-image: url(_images/waterBack.gif);'><font size=15 color=#ff0000>还未登陆!请先登陆系统</font></body>");
return;
}
if(parent.idOfficePosition.value=="1"||parent.idOfficePosition.value=="系统管理员")
{
idSpanDoctor.style.visibility="visible";
idIfmHid.location="SingleAskGetDoctorList.aspx";
sysManager=1;
}
//
idYear.options.add(new Option("选择年份", ""));
idMonth.options.add(new Option("选择月份", ""));
for(i=2005;i<2010;i++)
{
idYear.options.add(new Option(i, i));
}
for(i=1;i<13;i++)
{
if(i<10)
{
idMonth.options.add(new Option(i, "0"+i));
}
else
{
idMonth.options.add(new Option(i, i));
}
}
}
function _getCurDate()
{
var curDate=new Date();
if(curDate.getDay()==0) day = "星期日"
if(curDate.getDay()==1) day = "星期一"
if(curDate.getDay()==2) day = "星期二"
if(curDate.getDay()==3) day = "星期三"
if(curDate.getDay()==4) day = "星期四"
if(curDate.getDay()==5) day = "星期五"
if(curDate.getDay()==6) day = "星期六"
var curDate;
// curDate=curDate.getYear()+"年"+curMonth+"月"+curDate.getDate()+"日 "+day+" ";
var year=curDate.getYear();
var month=curDate.getMonth()+1;
var day=curDate.getDate();
if(String(month).length!=2)
month="0"+month;
if(String(day).length!=2)
day="0"+day;
curDate=year+"年"+month+"月"+day+"日";
return curDate;
}
function _onChange()
{
var year;
var month;
year=idYear.options[idYear.selectedIndex].value;
month=idMonth.options[idMonth.selectedIndex].value;
if(year==""||month=="")
{
return;
}
if(sysManager==1)
{
var dorctorId=idDoctor.options[idDoctor.selectedIndex].value;
if(dorctorId=="--选择门诊医生--")
{
idTable.innerHTML="";
return;
}
parent.idDoctorId.value=dorctorId;
}
idIfmHid.location="SingleAsk.aspx?date="+year+month+"&doctorid="+parent.idDoctorId.value;
}
function _callShowBaoBiaoTable(str)
{
var color="#ffffff";
var strSplit=str.split('é');
var total=new Array(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0);
var htmlStr="<table width='993' border='1' bgcolor='#FFFFFF' cellpadding='0' cellspacing='0' bordercolor='#499445' style='border-collapse:collapse;'> <tr align='center' bgcolor='#FFFF99'> <td width='38'>日期</td> <td width='61'>西药费</td> <td width='60'>中成药费</td> <td width='63'>中草药费</td> <td width='62'>材料费</td> <td width='49'>诊查费</td> <td width='56'>检验费</td> <td width='56'>检查费</td> <td width='50'>B超费</td> <td width='45'>心电图</td> <td width='54'>X光费</td> <td width='53'>治疗费</td> <td width='58'>护理费</td> <td width='45'>床位费</td> <td width='56'>手术费</td> <td width='42'>挂号费</td> <td width='44'>其它</td> <td width='63'>总计</td> </tr>";
for(i=0;i<strSplit.length;i++)
{
if(i%2==0)
color="#ffffff";
else
color="#FFFFff";
var sbuStrSplit=strSplit[i].split('è');
htmlStr+="<tr>";
for(j=0;j<sbuStrSplit.length;j++)
{
htmlStr+=("<td align='center' bgcolor='"+color+"'>"+sbuStrSplit[j]+"</td>");
if(j!=0)
total[j]+=Number(sbuStrSplit[j]);
}
}
htmlStr+=("<tr bgcolor='#FFFF99'><td align='center'>合计</td>");
for(i=1;i<18;i++)
{
htmlStr+=("<td align='center'><font color='#ff0000'>"+total[i]+"</font></td>");
}
htmlStr+="</tr></table>";
//
idTable.innerHTML=htmlStr;
}
function keyDown()
{
if(event.keyCode==13)
{
event.keyCode=9;
}
}
function _glTrim(para_) // 删除字串中的所有空格符
{
//方法一
if(para_=="")
return "";
var str="";
for(ii=0;ii<para_.length;ii++)
{
if(para_.substring(ii,ii+1)==' ')
continue;
str+=para_.substring(ii,ii+1);
}
return str;
//方法二(仅删除左边的空格)
// return para_.replace(/(^ *)/g, "");
}
function _askPatient()
{
var patientId=_glTrim(idPatientId.value);
var patientName=_glTrim(idPatientName.value);
if(patientId==""&&patientName=="")
{
alert("请输入确认患者身份的条件!");
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -