You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							326 lines
						
					
					
						
							11 KiB
						
					
					
				
			
		
		
	
	
							326 lines
						
					
					
						
							11 KiB
						
					
					
				| <%@page import="com.zky.para.Para"%>
 | |
| <%@include file="/auth.jsp"%>
 | |
| <%@page language="java" contentType="text/html;charset=utf-8"%>
 | |
| <jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
 | |
| <%
 | |
|     String operate = (String)request.getParameter("operate");
 | |
|     String checkId = Common.convertNull(request.getParameter("check_id"));
 | |
|     String checkState = request.getParameter("check_state");
 | |
|     String checkType = request.getParameter("checkType");
 | |
|     String sj = Common.convertNull(request.getParameter("sj"));
 | |
|     String qj = Common.convertNull(request.getParameter("qj"));
 | |
|     String departId = Common.convertNull(request.getParameter("departId"));
 | |
|     Login login = (Login) request.getSession().getAttribute("login");
 | |
| %>
 | |
| <html>
 | |
| <head>
 | |
| <title>检查结果管理</title>
 | |
| 
 | |
| <link rel="stylesheet" type="text/css" href="../../css/font.css">
 | |
| <script src="../../js/check.js"></script>
 | |
| <link rel="stylesheet" type="text/css" href="../../js/2k3Grid.css">
 | |
| <link rel="stylesheet" type="text/css" href="../../js/2k3Menu.css">
 | |
| <link rel="stylesheet" type="text/css" href="../../js/2k3Dialog.css">
 | |
| <style type="text/css">
 | |
| select
 | |
| {
 | |
|    width:155px;
 | |
| }
 | |
| html { overflow-x:hidden; overflow-y:hidden; } 
 | |
| </style>
 | |
| <script>
 | |
| function textToUpperCase(){
 | |
| 	  if(event.keyCode>=65 && event.keyCode<=90 || event.type=="change"){
 | |
| 	    event.srcElement.value = event.srcElement.value.toUpperCase();
 | |
| 	  }
 | |
| 	}
 | |
| function setValue() {
 | |
| <%
 | |
| 	if (!Common.isNull(checkId)) {
 | |
| 		out.println("form1.checkId.value='" + checkId + "';");
 | |
| 	}
 | |
|     if (!Common.isNull(sj)) {
 | |
| 	out.println("form1.sj.value='" + sj + "';");
 | |
|     }
 | |
|     if (!Common.isNull(qj)) {
 | |
| 		out.println("form1.qj.value='" + qj + "';");
 | |
| 	}
 | |
| 	if (!Common.isNull(operate)) {
 | |
| 		out.println("form1.operate.value='" + operate + "';");
 | |
| 	}
 | |
| %>	
 | |
| }
 | |
| function check(operate,checkId) {
 | |
| 	form1.operate.value=operate;
 | |
| 	if (operate == "addCheck") {
 | |
| 		form1.action = "/zhyw/smjc/CheckEdit.jsp";
 | |
| 	}
 | |
| 	if (operate == "queryCheckByReasultId") {
 | |
| 		form1.action = "/servlet/CheckManage?operate=queryCheckByReasultId&checkId=" + checkId;
 | |
| 	}
 | |
| 	if (operate == "updateCheckReaultById") {
 | |
| 		form1.action = "/servlet/CheckManage?operate=updateCheckReaultById&checkId=" + checkId;
 | |
| 	}
 | |
| 	if (operate == "CheckById") {
 | |
| 		form1.action = "/servlet/CheckManage?operate=CheckById&checkId=" + checkId;
 | |
| 	}
 | |
| 	if (operate == "CheckState") {
 | |
| 		form1.action = "/servlet/CheckManage?operate=CheckState&checkId=" + checkId;
 | |
| 	}
 | |
| 	if (operate == "deleteCheckReaultRow") {
 | |
| 		if (!confirm("您确定要删除此信息吗?"))
 | |
| 			return;
 | |
| 		form1.action = "/servlet/CheckManage?operate=deleteCheckReaultRow&checkId="+ checkId;
 | |
| 	}
 | |
| 	if (operate == "cancelCheck") {
 | |
| 		var checkids = form1.checkids;
 | |
| 		var count = 0;
 | |
| 		if (checkids) {
 | |
| 			if (checkids.length) {
 | |
| 				for (var i=0; i<checkids.length; i++) {
 | |
| 					if (checkids[i].checked==true) {
 | |
| 						count++;
 | |
| 					}
 | |
| 				}
 | |
| 			} else {
 | |
| 				if (checkids.checked==true) {
 | |
| 					count++;
 | |
| 				}
 | |
| 			}
 | |
| 		} else {
 | |
| 			alert("没有查到检查报告!");
 | |
| 			return false;
 | |
| 		}
 | |
| 		if (count==0) {
 | |
| 			alert("请选择要删除的报告!");
 | |
| 			return false;
 | |
| 		}
 | |
| 		if (!confirm("确定要删除已选择的报告吗?")) {
 | |
| 			return false;
 | |
| 		}
 | |
| 	}
 | |
| 	if(operate=="exportExcel")
 | |
| 	{
 | |
| 		form1.action="/servlet/CheckManage?operate=exportExcel";
 | |
| 	}
 | |
| 	if (operate == "queryCheckReault"){
 | |
| 		form1.action="/servlet/CheckManage?operate=queryCheckReault";
 | |
| 	}
 | |
| 	if (operate == "deleteCheckReault") {
 | |
| 		var Infos = form1.Infos;
 | |
| 		var count = 0;
 | |
| 		if (Infos) {
 | |
| 			if (Infos.length) {
 | |
| 				for ( var i = 0; i < Infos.length; i++) {
 | |
| 					if (Infos[i].checked == true) {
 | |
| 						count++;
 | |
| 					}
 | |
| 				}
 | |
| 			} else {
 | |
| 				if (Infos.checked == true) {
 | |
| 					count++;
 | |
| 				}
 | |
| 			}
 | |
| 		} else {
 | |
| 			alert("没有查到检查结果信息!");
 | |
| 			return false;
 | |
| 		}
 | |
| 		if (count == 0) {
 | |
| 			alert("请选择要删除的检查结果信息!");
 | |
| 			return false;
 | |
| 		}
 | |
| 		if (!confirm("确定要删除已经选择的检查结果信息吗?")) {
 | |
| 			return false;
 | |
| 		}
 | |
| 		return true;
 | |
| 	}
 | |
| 	form1.button1.disabled=true;
 | |
| 	form1.button2.disabled=true;
 | |
| 	form1.submit();
 | |
| }
 | |
| function selectChange(i)
 | |
| {
 | |
| 	form1.action = "/zhyw/smjc/CheckManageReault.jsp";
 | |
| 	form1.submit();
 | |
| }
 | |
| </script>
 | |
| <style type="text/css">
 | |
| .fontColor1{
 | |
|   color: red;
 | |
| }
 | |
| .fontColor2{
 | |
|  color:black;
 | |
| }
 | |
| 
 | |
| 
 | |
| </style>
 | |
| </head>
 | |
| <body scroll="no" onload="setValue();">
 | |
| <form name="form1" method="post" action="/servlet/CheckManage">
 | |
| <input type="hidden" name="operate" value=""/>
 | |
|    <table width="99%"  border="0" align="center" cellpadding="0" cellspacing="1" class="box">
 | |
|       <tr>
 | |
|         <td valign="top">
 | |
|            <table width="100%" height="23"  border="0" cellpadding="0" cellspacing="0">
 | |
|               <tr>
 | |
|                <td width="25%" background="/images/tab_search_01.jpg">
 | |
|                  <table width="100%" height="23" border="0" align="center" cellpadding="0" cellspacing="0">
 | |
|                   <tr>
 | |
|                      <td width="6%" align="right"><img src="/images/little_red.jpg" width="12" height="12"></td>
 | |
|                      <td width="94%" class="font12b"> <b>检查结果管理</b></td>
 | |
|                   </tr>
 | |
|                  </table>
 | |
|                </td>
 | |
|                <td width="75%" background="/images/tab_search_03.jpg"><img src="/images/tab_search_02.jpg" width="12" height="23"></td>
 | |
|              </tr>
 | |
|            </table> 
 | |
| 		   <table width="100%"  border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#FFFFFF" class="table02">
 | |
| 		      	<tr bgcolor="#FFFFFF">
 | |
| 				<td class="cell1">所属市州</td>
 | |
| 				<td class="cell2">
 | |
| 					<select class='aselect' name="sj" setValue="<%=sj%>" onChange="selectChange(1);">
 | |
| 				   		<%=Para.getSj(getPara)%>            					
 | |
| 					</select>
 | |
| 				</td>		
 | |
| 				<td class="cell1">所属区县</td>
 | |
| 				<td class="cell2">
 | |
| 					<select class='aselect' name="qj" setValue="<%=qj%>" <%if(sj.equals("0930")){ %> disabled="disabled" <%} %> onChange="selectChange(1);">
 | |
| 				   		<%=Para.getQj(getPara,sj)%>            					
 | |
| 					</select>
 | |
| 				</td>
 | |
| 				<td class="cell1">所属单位</td>
 | |
| 				<td class="cell2">
 | |
| 					<select class='aselect' name="departId" setValue="<%=departId%>">
 | |
| 				   		<!--<%=Para.getXx(getPara,login_obj,qj)%>
 | |
| 				   		--><%if(sj.equals("0930")){ %>
 | |
| 		    	        <%=Para.getXx1(getPara, sj)%>      
 | |
| 		                <%}else { %>
 | |
| 		     	        <%=Para.getXx(getPara, qj)%>      
 | |
| 		      		    <%} %>            					
 | |
| 					</select>
 | |
| 				</td>		
 | |
| 				<td class="cell1">检查类型</td>
 | |
| 				<td class="cell2">
 | |
| 				   <select class='aselect' name="checkType" id="checkType" >
 | |
| 				   		<%=Para.getCheckType(getPara,"CHECKTYPE")%>       					
 | |
| 					</select>
 | |
| 				</td>
 | |
| 				<td class="cell1" align="left">
 | |
| 				<input type="image" name="button1" src="../../images1/cx.png" onClick="check('queryCheckReault');"/>
 | |
| 				</td>
 | |
| 				<td class="cell2">
 | |
| 				</td>	
 | |
| 			    </tr>
 | |
| 		    </table>
 | |
|        </td>
 | |
|    </tr>
 | |
| </table>
 | |
| <table width="99%" align="center" style="margin-bottom: -2px;">
 | |
| 	<tr align="left">
 | |
| 		<td>
 | |
| 		<%if(login.getSanyuan().equals("0")){ %>
 | |
|         <input name="button2"  onclick="return check('deleteCheckReault');" type="image"  src="../../images1/cc.png"/>
 | |
| 		<input name="button2"  onclick="check('exportExcel');" type="image"  src="../../images1/dc.png"/>
 | |
| 		<%}else if(login.getSanyuan().equals("1")){ %>
 | |
| 		
 | |
| 		<%}else { %>
 | |
| 		<input name="button2"  onclick="return check('deleteCheckReault');" type="image"  src="../../images1/cc.png"/>
 | |
| 		<input name="button2"  onclick="check('exportExcel');" type="image"  src="../../images1/dc.png"/>
 | |
| 		<%} %>
 | |
| 		</td>
 | |
| 	</tr>
 | |
| </table> 
 | |
| <%
 | |
| 	HashFmlBuf buf = (HashFmlBuf) request.getAttribute("check_info");
 | |
| 	if (buf != null) {
 | |
| 		int rowcount = buf.getRowCount();
 | |
| %>
 | |
| <table width="99%"  border="0" align="center" cellpadding="0" cellspacing="1" class="box">
 | |
|  <tr>
 | |
|   <td>
 | |
| 	<div style="width:100%; height:385px;overflow: auto;">
 | |
| 	  <div id="myGrid" class="2k3Grid" borderWidth="0" contextMenu="mnuGridContextMenu" altRowColor="oldLace">
 | |
|   		 <div class="gridHead">
 | |
|   				 <!--div align="left"><span width="5%">共检索到<%=rowcount%>条记录</span></div-->
 | |
|         				<div class="gridRow">
 | |
| 		<span width="5px" style="text-align: center;">序号</span>
 | |
| 		<span width="6px" style="text-align: center;">选择项</span>
 | |
| 		<span width="12px"><b>检查状态</b></span>
 | |
| 		<span width="13px"><b>检查人</b></span>
 | |
| 		<span width="12px"><b>报告人</b></span>
 | |
| 		<span width="12px"><b>检查类型</b></span>
 | |
| 		<span width="15px"><b>开始时间</b></span>
 | |
| 		<span width="15px"><b>结束时间</b></span>
 | |
| 	    <span width="10px"><b>管理</b></span>
 | |
| 		</div>
 | |
|       </div>
 | |
| 	  <div class="gridBody"> 
 | |
| <%	
 | |
| 		for (int i=0; i<rowcount; i++) {
 | |
| 			String disabled = "";
 | |
| 			String tempCheckid = buf.fget("check_id",i);
 | |
| 			String tempType=buf.fget("check_type",i);
 | |
| 			String tempState=buf.fget("check_state",i);
 | |
| 			if (tempType.equals("0")) {
 | |
| 				tempType = "自行检查";
 | |
| 				disabled = "";
 | |
| 		     }else if(tempType.equals("1")){
 | |
| 		    	 tempType="保密局检查";
 | |
| 		    	 disabled="disabled";
 | |
| 		     }
 | |
| 			if (tempState.equals("0")) {
 | |
| 				tempState = "通过";
 | |
| 				disabled = "";
 | |
| 			} else {
 | |
| 				tempState = "不通过";
 | |
| 				disabled = "disabled";
 | |
| 		     }
 | |
| %>	
 | |
| 		<div class="gridRow">
 | |
| 		<span width="5px" style="text-align: center;"><%=i+1%></span>
 | |
| 		<span><input type="checkbox" name="Infos" value="<%=tempCheckid%>"></span>
 | |
| 		<span><% if(tempState.equals("通过")){%> 
 | |
| 		<img src="../../images1/pass.png" width="16" height="16" alt="通过" style="cursor: pointer;">
 | |
| 		<%  }else{%>
 | |
| 		<img src="../../images1/nopass.png" width="16" height="16" alt="通过" style="cursor: pointer;">
 | |
| 		<% } %></span>
 | |
| 		<span><%=buf.fget("empid", i) %></span>
 | |
| 		<span><%=buf.fget("check_name",i) %></span>
 | |
| 		<span><%=tempType%></span>
 | |
| 		<span><%=buf.fget("check_start_time",i) %></span>
 | |
| 		<span><%=buf.fget("check_end_time",i) %></span>
 | |
| 		<span width="15px" >
 | |
| 		<%if(login.getSanyuan().equals("0")){ %>
 | |
|         <a href="/servlet/CheckManage?operate=updateCheckReaultById&checkId=<%=tempCheckid%>"><img src="/images1/edit.gif" border="0" alt="修改"/></a>  
 | |
| 		<a href="/servlet/CheckManage?operate=CheckById&checkId=<%=tempCheckid%>"><img src="/images1/jc.png" border="0" alt="检查"/></a>  
 | |
| 		<input border="0" type="image" src="../../images1/delete.gif" ALT="删除" style="cursor: pointer;" name="button2"onclick="check('deleteCheckReaultRow','<%=tempCheckid%>');"/>
 | |
| 		<%}else if(login.getSanyuan().equals("1")){ %>
 | |
| 		
 | |
| 		<%}else { %>
 | |
| 		<a href="/servlet/CheckManage?operate=updateCheckReaultById&checkId=<%=tempCheckid%>"><img src="/images1/edit.gif" border="0" alt="修改"/></a>  
 | |
| 		<a href="/servlet/CheckManage?operate=CheckById&checkId=<%=tempCheckid%>"><img src="/images1/jc.png" border="0" alt="检查"/></a>  
 | |
| 		<input border="0" type="image" src="../../images1/delete.gif" ALT="删除" style="cursor: pointer;" name="button2"onclick="check('deleteCheckReaultRow','<%=tempCheckid%>');"/>
 | |
| 		<%} %>
 | |
| 		    
 | |
| 		</span>
 | |
| 		<input type="hidden" name="checkType"  value="<%=tempType %>">
 | |
| 		</div>
 | |
| <%
 | |
| 		}
 | |
| %>	
 | |
| 	  </div>
 | |
| 	  <!-- gridBody end -->
 | |
| 	</div>
 | |
| 	<!-- myGrid end -->
 | |
|    </div>
 | |
|    <tag:PageLinkTag operate="queryCheckReault"  scope="request" width="99%" align="center"/>
 | |
| <%	
 | |
| 	}
 | |
| %>	
 | |
|     </td>
 | |
|    </tr>
 | |
| </table>
 | |
| </form>		          
 | |
| <%@include file="/foot.jsp"%>
 | |
| </body>
 | |
| </html> |