⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 rptmodal.jsp

📁 电信的网厅的整站代码
💻 JSP
📖 第 1 页 / 共 2 页
字号:
                if ( oTitle.value == "" ) {
                    sTitle = "<%= sReportName%>";
                    oTitle.value = "<%= sReportName%>";
                }
                
                if ( sCityCode != "" ) {
                    for ( var i=0; i<oSrcCity.options.length; i++) {
                        if ( oSrcCity.options(i).value == sCityCode ) {
                            oSrcCity.options(i).selected = true;
                        }
                    }
                }
                
                for ( var i=0; i<oSrcArea.options.length; i++) {
                    if ( oSrcArea.options(i).value == sAreaCode ) {
                        oSrcArea.options(i).selected = true;
                    }
                }
				
				var oHrefID = document.getElementById("INDEXCODE");
				var oLevelID = document.getElementById("LEVEL");
				oHrefID.value = sIndexCode;
				oLevelID.value = sLevel;
				
				fn_OnSubmit(document.form1);
	       }
	       catch(ex){alert(ex.description);}				
		}
		
		function fnToolRecision() {
		}

		function fnChildClick(id,level,title,citycode) {
			try {
			    var oCLevel = document.getElementById("_CURRLEVEL");
			    var oHref = document.getElementById("_INDEXCODE");
			    var oLevel = document.getElementById("_LEVEL");
			    var oTitle = document.getElementById("_TITLE");
			    var oCity = document.getElementById("_CITY");
			    var oArea = document.getElementById("_AREA");
			    
				var oSrcCity = document.getElementById("CITYCODE");
				var oSrcArea = document.getElementById("AREA");
				var sCity = "";
				var sArea = "";
				
				if ( oSrcCity != null && oSrcCity.value != "" ) {
				    sCity = oSrcCity.value;
				}

				if ( oSrcArea != null && oSrcArea.value != "" ) {
				    sArea = oSrcArea.value;
				}

                if ( oCLevel.value == "") {
                    oCLevel.value = "0";
                }

                oCLevel.value = parseInt(oCLevel.value) + 1;
				oHref.value += "," + id;
				oLevel.value += "," + level;
				oTitle.value += "," + title;
				oCity.value += "," + sCity;
				oArea.value += "," + sArea;

				if (citycode != null && citycode != "" ) {
				    if ( citycode.length > 4 ) {
				        for ( var i=0; i < oSrcArea.options.length; i++) {
				            if ( citycode == oSrcArea.options(i).value ) {
				                oSrcArea.options(i).selected = true;
				            }
				        }
				    }
				    else if ( citycode.length == 4 ) {
				        for ( var i=0; i < oSrcCity.options.length; i++) {
				            if ( citycode == oSrcCity.options(i).value ) {
				                oSrcCity.options(i).selected = true;
				            }
				        }
				    }
				}
				
                document.getElementById("ibtnOrderAccept").Enabled = true;

				var oHrefID = document.getElementById("INDEXCODE");
				var oLevelID = document.getElementById("LEVEL");
				oHrefID.value = id;
				oLevelID.value = level;
				
				fn_OnSubmit(document.form1);
	       }
	       catch(ex){alert(ex.description);}			   		
		}
		
		
		function fnToolExport() {
		    var level = "";
		    var title = "";
		    var reportid = "";
		    var cityCode = "";
		    var clientType = "";
		    var applyType = "";
		    var areaCode = "";
		    var indexCode = "";
		    var startTime = "";
		    var endTime = "";
		    		    
		    var qt = document.getElementById("Result");
		    var inputsSimp = qt.caption.getElementsByTagName("INPUT"); 
		    
			for ( var i = 0; i<inputsSimp.length; i++ ) { 
				if(inputsSimp[i].name == "LEVEL"){
				    level = inputsSimp[i].value;
				}
				else if(inputsSimp[i].name == "TITLE"){
				    title = inputsSimp[i].value;
				}	
				else if(inputsSimp[i].name == "reportid"){
				    reportid = inputsSimp[i].value;
				}
				else if(inputsSimp[i].name == "CITYCODE"){
				    cityCode = inputsSimp[i].value;
				}
				else if(inputsSimp[i].name == "CLIENTTYPE"){
				    clientType = inputsSimp[i].value;
				}
				else if(inputsSimp[i].name == "APPLYTYPE"){
				    applyType = inputsSimp[i].value;
				}
				else if(inputsSimp[i].name == "AREA"){
				    areaCode = inputsSimp[i].value;
				}
				else if(inputsSimp[i].name == "INDEXCODE"){
				    indexCode = inputsSimp[i].value;
				}
				else if(inputsSimp[i].name == "STARTTIME"){
				    startTime = inputsSimp[i].value;
				}
				else if(inputsSimp[i].name == "ENDTIME"){
				    endTime = inputsSimp[i].value;
				}										
			}		
			var sURL = "acceptlog_excel.jsp?LEVEL="+level+
			                              "&TITLE="+title+
			                              "&reportid="+reportid+
			                              "&CITYCODE="+cityCode+
			                              "&CLIENTTYPE="+clientType+
			                              "&APPLYTYPE="+applyType+
			                              "&AREA="+areaCode+
			                              "&INDEXCODE="+indexCode+
			                              "&STARTTIME="+startTime+
			                              "&ENDTIME="+endTime;
												
			window.open(sURL,'windowRef','width=800,height=600,top=20,left=60,screenX=10,screenY=20,status=yes',scrollbar='yes');
		}				
		
		function getSum(){
			try {
			    var qrSimp = document.getElementById("QueryTable");
			    var xmlHttp = new XMLHttpClient("<%= request.getContextPath()%>/XmlHttpService");
					    
				var inputsSimp = qrSimp.getElementsByTagName("INPUT"); 
				var selectsSimp = qrSimp.getElementsByTagName("SELECT"); 
				for ( var i = 0; i<inputsSimp.length; i++ ) { 
					if ( inputsSimp[i].value == "" || inputsSimp[i].name == "" ) continue; 
					xmlHttp.append(inputsSimp[i].name,inputsSimp[i].value);					
				} 
				for ( var i = 0; i<selectsSimp.length; i++ ) { 
					var sValue = selectsSimp[i].value;
					if ( selectsSimp[i].disabled ) {
						for ( var j =0; j<selectsSimp[i].options.length; j++ ) {
							if ( selectsSimp[i].options(j).selected ) {
								sValue=selectsSimp[i].options(j).value;
							} 
						} 
					} 

					if ( sValue == "" || selectsSimp[i].name == "") continue; 
					xmlHttp.append(selectsSimp[i].name,sValue);	
				}
			    var str1 = xmlHttp.submitAsString("AffairAcceptImpl","getSum");
			    var sum = "";
			    if ( str1.substr(0,6) == new String("str-->") ) {
					sum = str1.substr(6,str1.length);
					document.getElementById("acceptLogSum").innerText = sum + "条"; 	  
				}   
	        }
	        catch(ex){}	
		}
</script>

</head>
<body onload="fn_onload();">
	<form name="form1" id="Default" method="post" action="" onsubmit="return fn_OnSubmit(this);">
	    <input type="hidden" name="_CURRLEVEL" id="_CURRLEVEL" value="0"/>
    	<input type="hidden" name="_INDEXCODE" id="_INDEXCODE">
    	<input type="hidden" name="_LEVEL" id="_LEVEL" value="1">
    	<input type="hidden" name="_TITLE" id="_TITLE" value="<%=sReportName%>">
    	<input type="hidden" name="_CITY" id="_CITY">
    	<input type="hidden" name="_AREA" id="_AREA">
	  <div onresize="cltScript_Toolbar();" style="width: 100%">
		<div id="divTop" style="overflow: hidden">
		  <table id="ibtnPanel" style="font-size: 9pt; border-bottom: #efefef 1px outset" cellspacing="0"
						cellpadding="0" width="100%" border="0">
			<tr bgcolor="#efefef" height="33">
			  <td valign="middle" align="center" width="71" 
								onclick="return fnReturn();" 
								id="ibtnOrderAccept" 
								style="behavior:url(../../common/button.htc)" 
								DefaultClass="btnDefault" 
								OverClass="btnOver" 
								DownClass="btnDown" 
								Enabled="false"
								>返回</td>
			  <td valign="middle" align="center" width="71" 
								onclick="return fnToolExport();" 
								id="ibtnrRecision" 
								style="behavior:url(../../common/button.htc)" 
								DefaultClass="btnDefault" 
								OverClass="btnOver" 
								DownClass="btnDown" 
								>导出Excel</td>
			  <td>&nbsp;</td>
			</tr>
		  </table>
		  <jsp:include page="../../common/inc_top.jsp" >
		  <jsp:param name="purvCode" value="<%=sPurvICode%>"/>
		  </jsp:include>
		  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="OuterTable">
			<tr>
			  <td width="100%" colspan="2" class="OuterHead" align="left"> <span id="ItemTitle"><font face="webdings">8</font>查询订单:</span>
				  <input type="radio" id="SIMPLEQUERY" name="querymode" <%= isDisabled?"disabled":""%> checked="checked" value="simple" onclick="fnShowSimple();">
				  <label for="SIMPLEQUERY" id="ItemTitle">简单查询</label>
				  &nbsp;
				  <input type="radio" id="QUERYALL" name="querymode" <%= isDisabled?"disabled":""%> value="all" onclick="fnShowAll();">
				  <label for="QUERYALL" id="ItemTitle">复杂查询</label>
			  </td>
			</tr>
			<tr>
			  <td width="100%" colspan="2" class="InnerMain" align="left">
				<table id="QueryTable" border="0" cellspacing="0" cellpadding="0" width="100%">
				  <caption style="display:none;">
                	<input type="hidden" name="INDEXCODE" id="INDEXCODE">
                	<input type="hidden" name="LEVEL" id="LEVEL" value="1">
                	<input type="hidden" name="TITLE" id="TITLE" value="<%=sReportName%>">
				  </caption>
				  <tbody>
					<!--常用简单的查询条件-->
					<tr height="25">
						<td width="100%" align="left">
							<table id="QuerySimp" border="0" width="100%" cellspacing="0"
					    		   cellpadding="0" 
					      		   style="behavior:url(../../Resource/table.htc)" 					      		   
					      		   DefaultClass="DefaltRow" 
					      		   SelectedClass="SelectedRow" 
					      		   keyName="key" 
					      		   serviceURL="<%=request.getContextPath()%>/XmlHttpService"
					      		   service="JspService"
								   dataService="/view/rpt/common/rpt_fixparam.jsp?type=1" 
					      		   rcService="/view/rpt/common/rpt_fixparam.jsp?type=0"
					      		   class="InnerTable"
					      		   locked='true'>
							</table>
						</td>
					</tr>
				  </tbody>
				  <tbody style="display:none;">
					<!--其它查询条件-->
					<tr>
						<td width="100%" align="left">
							<table id="QueryMore" border="0" width="100%" cellspacing="0" 
								   cellpadding="0" 
								   style="behavior:url(../../Resource/table.htc)" 
								   DefaultClass="DefaltRow" 
					      		   SelectedClass="SelectedRow" 
								   serviceURL="<%=request.getContextPath()%>/XmlHttpService";
					      		   service="JspService"
								   dataService="<%= sPattern%>?type=1" 
					      		   rcService="<%= sPattern%>?type=0"
								   class="InnerTable"
								   locked="true">
								   <caption style="display:none;">								  	  
								  	  <input type="hidden" name="reportid" value="<%= lReportId%>">
								   </caption>
							</table>
							 
						</td>
					</tr>
				  </tbody>
			  </table></td>
			</tr>
			<tr class="OuterFoot">
			  <td align="right" class="Caption_Td" style="padding-right:10px ">
				<input name="submit" type="submit" class="button" <%= isDisabled?"disabled":""%> value="查询" onclick="fResetQuery();">
				<input name="reset" type="reset" class="button" <%= isDisabled?"disabled":""%> value="重填">
			  </td>
			</tr>
			<tr height="3">
			  <td colspan="2"><img src="../../common/images/spacer.gif"></td>
			</tr>
		  </table>
		</div>
		<div id="divMain" style="overflow: auto">
		  <!--service表的服务名-->
		  <!--dataService表的内容-->
		  <!--rcService表的行数-->
		  <table width="100%" border="0" cellpadding="0" cellspacing="0" class="OuterTable">
			<tr class="OuterHead">
			  <td width="100%" class="title_td" align="left">
                <span id="ItemTitle"><font face="webdings">8</font>报表查询结果【<font color="blue" id="RPT_NAME"><%= sReportName%></font>】</span>
			  </td>
			</tr>
	      </table>
		  <table id="Result" border="0" width="100%" cellspacing="0" 
						   cellpadding="1" 
						   style="behavior:url(../../Resource/table.htc)" 
						   DefaultClass="DefaltRow" 
						   keyName="key" 
						   SelectedClass="SelectedRow" 
						   multiple="true" 
						   onselected="return onChoosed();" 
						   onunselected="return onUnChoosed();"
						   ontableload="return onContentLoad();"
						   ondblclick="return fn_dblClick();"
						   serviceURL="<%=request.getContextPath()+"/XmlHttpService"%>"
						   service="<%= sService%>"
						   dataService="<%= sDataService%>" 
						   rcService="<%= sCountService%>"
						   pageStyle="0"
						   refresh = "true"
						   autoLoad="false"
						   class="OuterTable">
			<caption style="display:none;">					
			</caption>
			<tr key="-1" type="">
			  <td class="InnerHead" style="cursor: default;" onclick=""  colspan="5"><%
			  if ( sState.equalsIgnoreCase("D") ){
			      out.print("该报表已经失效不能再查询");
			  }
			  else {
			      out.print("没有任何记录信息");
			  }
			  %></td>
			</tr>	
			<tfoot>
  				<tr class="OuterFoot">
  				    <td align="left" class="foot_td">
  					  &nbsp;&nbsp;
  					  分页:<span id="pageSet">0</span>&nbsp;&nbsp;
  					</td>
  					<td align="right" class="foot_td" colspan="4">
  					  总计:&nbsp;&nbsp;
  					  &nbsp;<span id="acceptLogSum"></span>&nbsp;&nbsp;
  					</td>
  				</tr>
	        </tfoot>					
		  </table>
		</div>
	  </div>
	</form>
	<IFRAME id="orderAccept" style="display:none;"></IFRAME>
</body>
</html>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -