📄 gisviewer3.htc
字号:
objDialogWinPlaneDiv.style.visibility = "visible";
objInput.focus();
}
function showSingleDiseaseAreaTimeWin(){//显示单病种 区域时间对比窗口
var objRadioY,objRadioN,objText1,objText2,objTitle;
var objSpan;
var objButtonConfirm, objButtonCancel;
objSDRadios = new Array();
//1.添加快速输入框
objSDDiagnoseCodeQI = window.document.createElement("<phms:Qinput id='DiagnoseCode' init='1' top='5' left='0' codeCol='DIAGNOSECODE' textCol='DIAGNOSENAME' width='200' Lwidth='200' caption='疾病名称 '/>");
objSDDiagnoseCodeQI.xmlSource = window.__objGlobalCommonInst.getDictionary("ICD10字典");
objSDDiagnoseCodeQI = objDialogWinInnerDiv.appendChild(objSDDiagnoseCodeQI);
//2.添加dtPicker控件
objSDBeginYearDTP = window.document.createElement("<phms:datepicker id='begin_year' init='1' top='30' left='10' width='106' caption='首报日期 ' />");
objSDBeginYearDTP = objDialogWinInnerDiv.appendChild(objSDBeginYearDTP);
//3.添加dtPicker控件
objSDEndYearDTP = window.document.createElement("<phms:datepicker id='end_year' init='1' top='55' left='10' width='106' caption='至 ' />");
objSDEndYearDTP = objDialogWinInnerDiv.appendChild(objSDEndYearDTP);
//4.添加单选按钮组
objSpan = this.document.createElement("<span class='' style='position:absolute;left:10;top:80'></span>");
objTitle = this.document.createTextNode("时间间隔 ");
objText1 = this.document.createTextNode(" 年");
objText2 = this.document.createTextNode(" 月");
objTitle = objSpan.appendChild(objTitle);
objRadioY = window.document.createElement("<input type='radio' name='isyear' value='Y'>");
objRadioY = objSpan.appendChild(objRadioY);
objText1 = objSpan.appendChild(objText1);
objSDRadios.push(objRadioY);
objRadioN = window.document.createElement("<input type='radio' name='isyear' value='N' checked>");
objRadioN = objSpan.appendChild(objRadioN);
objText2 = objSpan.appendChild(objText2);
objSDRadios.push(objRadioN);
objSpan = objDialogWinInnerDiv.appendChild(objSpan);
//5.创建按钮//objButtonConfirm,objButtonCancel
objButtonConfirm = window.document.createElement("<phms:btn init='0' top='105' left='100' caption='确定'/>");
objButtonCancel = window.document.createElement("<phms:btn init='0' top='105' left='170' caption='取消'/>");
objButtonConfirm = objDialogWinInnerDiv.appendChild(objButtonConfirm);
objButtonCancel = objDialogWinInnerDiv.appendChild(objButtonCancel);
objButtonConfirm.bindClick = onSingleDiseaseInspect_OkBtn_Click;
objButtonCancel.bindClick = controlSingleDieaseAreaTimeWinShow;
//6.重新设置浮动框的显示属性
with(objDialogWinInnerDiv){
style.width = parseInt(objSDDiagnoseCodeQI.width) + 50;
style.height = "150px";
}
with(objDialogWinPlaneDiv){
style.width = objDialogWinInnerDiv.offsetWidth + 2;
//style.height = objDialogWinInnerDiv.offsetHeight + objDialogWinTitleDiv.offsetHeight - 2;
style.height = objDialogWinInnerDiv.offsetHeight + objDialogWinInnerDiv.offsetTop + 2;
style.pixelLeft = objMapDiv.style.pixelWidth/2 - objDialogWinPlaneDiv.offsetWidth/2;
style.pixelTop = objMapDiv.style.pixelHeight/2 - objDialogWinPlaneDiv.offsetHeight/2;
}
objDialogWinTitleDiv.style.pixelWidth = objDialogWinInnerDiv.offsetWidth - objDialogWinTitleCloseButtonDiv.offsetWidth + 2;
objDialogWinTitleCloseButtonDiv.style.pixelLeft = objDialogWinTitleDiv.offsetWidth - 1;
objDialogWinPlaneDiv.style.visibility = "visible";
}
//////////hzh 2004-11-20 add////////////////////////
function showDiseaseShunweiWin(){//显示疾病顺位
var objButtonConfirm, objButtonCancel;
//1.统计开始日期
objDSBeginDate = window.document.createElement("<phms:datepicker init='1' top='15' left='10' width='106' caption='统计时间 ' />");
objDSBeginDate = objDialogWinInnerDiv.appendChild(objDSBeginDate);
//2.统计结束日期
objDSEndDate = window.document.createElement("<phms:datepicker init='1' top='40' left='10' width='106' caption='至 ' />");
objDSEndDate = objDialogWinInnerDiv.appendChild(objDSEndDate);
//5.创建按钮//objButtonConfirm,objButtonCancel
objButtonConfirm = window.document.createElement("<phms:btn init='0' top='75' left='40' caption='确定'/>");
objButtonCancel = window.document.createElement("<phms:btn init='0' top='75' left='100' caption='取消'/>");
objButtonConfirm = objDialogWinInnerDiv.appendChild(objButtonConfirm);
objButtonCancel = objDialogWinInnerDiv.appendChild(objButtonCancel);
objButtonConfirm.bindClick = onDiseaseShunwei_OkBtn_Click;
objButtonCancel.bindClick = controlDieaseShunweiWinShow;
//6.重新设置浮动框的显示属性
with(objDialogWinInnerDiv){
style.width = 200;
style.height = "120px";
}
with(objDialogWinPlaneDiv){
style.width = objDialogWinInnerDiv.offsetWidth + 2;
//style.height = objDialogWinInnerDiv.offsetHeight + objDialogWinTitleDiv.offsetHeight - 2;
style.height = objDialogWinInnerDiv.offsetHeight + objDialogWinInnerDiv.offsetTop + 2;
style.pixelLeft = objMapDiv.style.pixelWidth/2 - objDialogWinPlaneDiv.offsetWidth/2;
style.pixelTop = objMapDiv.style.pixelHeight/2 - objDialogWinPlaneDiv.offsetHeight/2;
}
objDialogWinTitleDiv.style.pixelWidth = objDialogWinInnerDiv.offsetWidth - objDialogWinTitleCloseButtonDiv.offsetWidth + 2;
objDialogWinTitleCloseButtonDiv.style.pixelLeft = objDialogWinTitleDiv.offsetWidth - 1;
objDialogWinPlaneDiv.style.visibility = "visible";
}
///////////////////////////
function showLayerListWin(){//显示图层列表窗口
var objDialogWinTable; //浮动窗口中的内容
var objRefreshBtn; //刷新按钮
var objTitleRow;//标题行
var objContentRow;//图层信息行
var objRefreshRow;//刷新行
var objTempTD;
var rowSize = 5;//每列显示层数
var rowCnt;//总列数
var objLayerListTable = new Array();//每列生成的table的html代码
var strTable = "";
var curLayerIndex = 0;
objDialogWinTable = this.document.createElement("<table cellspacing='0' class='dialogWinInner_div_table'>");//内容对象
objRefreshBtn = this.document.createElement("<input type='button' id='refreshBtn' class='tableConfirm_btn' value=' 刷新地图 '>");
if(arrLayerList.length>rowSize){//层数大于10,分列
rowCnt = Math.ceil(arrLayerList.length/rowSize);
}else{//仅有一层
rowCnt = 1;
}
for(var i=0;i<rowCnt;i++){//装配每列的table
strTable = "";
strTable += "<table cellspacing='1' class='dialogWinInner_td_table'>";
strTable += "<tr bgColor='#E1F3FF' height='20'><td>可视</td><td>激活</td><td>名称</td></tr>";//标题行(每列都有)
for(var j=0;j<rowSize;j++){//生成图层行
if(arrLayerList[curLayerIndex]){//有效图层(已选择图层)
if(arrLayerList[curLayerIndex].visible == "true"){//显示图层
strTable += "<tr bgcolor='#ffffff' height='23'>";
//装配显示图层
strTable += "<td class='dialogWinInner_td_table'><input type='checkbox' name='layerVisible' value='" + arrLayerList[curLayerIndex].id +"' checked></td>";
//装配激活图层
if(curLayerIndex == intActiveLayerIndex){//激活图层
strTable += "<td class='dialogWinInner_td_table'><input type = 'radio' name ='activeLayer' value='" + arrLayerList[curLayerIndex].id + "' checked></td>";
}else{//非激活图层
strTable += "<td class='dialogWinInner_td_table'><input type = 'radio' name ='activeLayer' value='" + arrLayerList[curLayerIndex].id + "'></td>";
}
//装配图层名称
strTable += "<td class='dialogWinInner_td_table'>" + arrLayerList[curLayerIndex].name + "</td>";
strTable += "</tr>";
}else{//非显示图层
strTable += "<tr bgcolor='#ffffff' height='23'>";
//装配显示图层
strTable += "<td class='dialogWinInner_td_table'><input type='checkbox' name='layerVisible' value='" + arrLayerList[curLayerIndex].id +"'>";
//装配激活图层
if(curLayerIndex == intActiveLayerIndex){//激活图层
strTable += "<td class='dialogWinInner_td_table'><input type = 'radio' name ='activeLayer' value='" + arrLayerList[curLayerIndex].id + "' checked></td>";
}else{//非激活图层
strTable += "<td class='dialogWinInner_td_table'><input type = 'radio' name ='activeLayer' value='" + arrLayerList[curLayerIndex].id + "'></td>";
}
//装配图层名称
strTable += "<td class='dialogWinInner_td_table'>" + arrLayerList[curLayerIndex].name + "</td>";
strTable += "</tr>";
}
curLayerIndex += 1;//记录层数
}else{//无效图层(空白行)
strTable += "<tr bgcolor='#ffffff' height='23'><td class='dialogWinInner_td_table'> </td><td class='dialogWinInner_td_table'> </td><td class='dialogWinInner_td_table'> </td></tr>";
}
}
strTable += "</table>";
objLayerListTable[objLayerListTable.length] = strTable;//保存装配好的table
}
objTitleRow = objDialogWinTable.insertRow();//图层列表标题行
objTempTD = objTitleRow.insertCell();
objTempTD.colSpan = objLayerListTable.length;
objTempTD.align = "center";
with(objTempTD){
style.fontSize = "9pt";
height = "24";
innerText = "图层列表";
}
objContentRow = objDialogWinTable.insertRow();//图层信息行
for(var i=0;i<objLayerListTable.length;i++){
objTempTD = objContentRow.insertCell();
with(objTempTD){
vAlign = "top";
innerHTML = objLayerListTable[i];
}
}
objRefreshRow = objDialogWinTable.insertRow();//图层刷新行
objTempTD = objRefreshRow.insertCell();
with(objTempTD){
colSpan = objLayerListTable.length;
className = "dialogWinInner_td_table";
align = "center";
height = "24";
}
objRefreshBtn = objTempTD.appendChild(objRefreshBtn);
objRefreshBtn.onclick = setActiveLayer;//绑定事件
//5.把浮动窗口内空添加到浮动窗口
objDialogWinTable = objDialogWinInnerDiv.appendChild(objDialogWinTable);
objDialogWinTable.style.visibility = "visible";
//6.重新设置浮动框的显示属性
with(objDialogWinInnerDiv){
style.pixelWidth = objDialogWinTable.offsetWidth;
style.pixelHeight = objDialogWinTable.offsetHeight;
}
//7.重新设置容器显示属性
with(objDialogWinPlaneDiv){
style.pixelWidth = objDialogWinTable.offsetWidth + 2;
style.pixelHeight = objDialogWinTable.offsetHeight + objDialogWinTitleDiv.offsetHeight - 2;
style.pixelLeft = objMapDiv.style.pixelWidth/2 - objDialogWinPlaneDiv.offsetWidth/2;
style.pixelTop = objMapDiv.style.pixelHeight/2 - objDialogWinPlaneDiv.offsetHeight/2;
}
//8.重新设置容器标题显示属性
objDialogWinTitleDiv.style.pixelWidth = objDialogWinInnerDiv.style.pixelWidth - objDialogWinTitleCloseButtonDiv.style.pixelWidth + 3;
with(objDialogWinTitleCloseButtonDiv){
style.pixelLeft = objDialogWinTitleDiv.style.pixelWidth - 3;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -