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.
		
		
		
		
		
			
		
			
				
					301 lines
				
				11 KiB
			
		
		
			
		
	
	
					301 lines
				
				11 KiB
			| 
											2 years ago
										 | <%@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; | ||
|  | } | ||
|  | </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(departId)) { | ||
|  | 		out.println("form1.departId.value='" + departId + "';"); | ||
|  | 	} | ||
|  | 	if (!Common.isNull(checkType)) { | ||
|  | 		out.println("form1.checkType.value='" + checkType + "';"); | ||
|  | 	} | ||
|  | 	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 == "queryCheckById") { | ||
|  | 		form1.action = "/servlet/CheckManage?operate=queryCheckById&checkId=" + checkId; | ||
|  | 	} | ||
|  | 	if (operate == "updateCheckById") { | ||
|  | 		form1.action = "/servlet/CheckManage?operate=updateCheckById&checkId=" + checkId; | ||
|  | 	} | ||
|  | 	if (operate == "OwnReaultCheckById") { | ||
|  | 		form1.action = "/servlet/CheckManage?operate=OwnReaultCheckById&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=="exportExcel") | ||
|  | 	{ | ||
|  | 		form1.action="/servlet/CheckManage?operate=exportExcel"; | ||
|  | 	} | ||
|  | 	if (operate == "queryCheck"){ | ||
|  | 		form1.action="/servlet/CheckManage?operate=queryCheck"; | ||
|  | 	} | ||
|  | 	if (operate == "deleteCheckRow") { | ||
|  | 		if (!confirm("您确定要删除此信息吗?")) | ||
|  | 			return; | ||
|  | 		form1.action = "/servlet/CheckManage?operate=deleteCheckRow&checkId="+ checkId; | ||
|  | 	} | ||
|  | 	if (operate == "deleteCheck") { | ||
|  | 		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; | ||
|  | 	} | ||
|  | 	if (operate == "deleteCheck") { | ||
|  | 	} | ||
|  | 	form1.button1.disabled=true; | ||
|  | 	form1.button2.disabled=true; | ||
|  | 	form1.submit(); | ||
|  | } | ||
|  | function selectChange(i) | ||
|  | { | ||
|  | 	form1.action = "/zhyw/smjc/CheckManage.jsp"; | ||
|  | 	form1.submit(); | ||
|  | } | ||
|  | function confirmDel(){  | ||
|  | 	  | ||
|  | } | ||
|  | </script> | ||
|  | <style type="text/css"> | ||
|  | .fontColor1{ | ||
|  |   color: red; | ||
|  | } | ||
|  | .fontColor2{ | ||
|  |  color:black; | ||
|  | } | ||
|  | html { overflow-x:hidden; overflow-y:hidden; }  | ||
|  | </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="99%"  border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="#fffff" 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" align="left"> | ||
|  | 				<input type="image" name="button1" src="../../images1/cx.png" onClick="check('queryCheck');"/> | ||
|  | 				</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="check('addCheck');" type="image"  alt="添加" src="../../images1/tj.png"/>  | ||
|  | 	    <input name="button2"  onclick="return check('deleteCheck');" type="image"  alt="删除" src="../../images1/cc.png"/> | ||
|  | 	    <%}else if(login.getSanyuan().equals("1")){ %> | ||
|  | 	    <%}else { %> | ||
|  | 	    <input name="button2"  onclick="check('addCheck');" type="image"  alt="添加" src="../../images1/tj.png"/>  | ||
|  | 	    <input name="button2"  onclick="return check('deleteCheck');" type="image"  alt="删除" src="../../images1/cc.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="15px"><b>检查状态</b></span> | ||
|  | 			<span width="15px"><b>报告人</b></span> | ||
|  | 			<span width="25px"><b>报告人单位</b></span> | ||
|  | 			<span width="24px"><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("check_name", i) %></span> | ||
|  | 	   <span width="25px"><%=buf.fget("departname",i) %></span> | ||
|  | 	   <span><%=buf.fget("check_start_time",i) %></span> | ||
|  | 	   <span width="15px" > | ||
|  | 	   	<%if(login.getSanyuan().equals("0")){ %> | ||
|  | 			<a href="/servlet/CheckManage?operate=queryCheckById&checkId=<%=tempCheckid%>"><img src="/images1/read_document.png" border="0" alt="预览"/></a>   | ||
|  | 		    <a href="/servlet/CheckManage?operate=updateCheckById&checkId=<%=tempCheckid%>"><img src="/images1/edit.gif" border="0" alt="修改"/></a>   | ||
|  | 	        <input border="0" type="image" src="../../images1/delete.gif" ALT="删除" style="cursor: pointer;" name="button2"onclick="check('deleteCheckRow','<%=tempCheckid%>');"/>    | ||
|  | 	        <a href="/servlet/CheckManage?operate=OwnReaultCheckById&checkId=<%=tempCheckid%>"><img src="/images1/tips.jpg" border="0" alt="自检"/></a> | ||
|  | 	    <%}else if(login.getSanyuan().equals("1")){ %> | ||
|  | 	        <a href="/servlet/CheckManage?operate=queryCheckById&checkId=<%=tempCheckid%>"><img src="/images1/read_document.png" border="0" alt="预览"/></a> | ||
|  | 	    <%}else { %> | ||
|  | 	        <a href="/servlet/CheckManage?operate=queryCheckById&checkId=<%=tempCheckid%>"><img src="/images1/read_document.png" border="0" alt="预览"/></a>   | ||
|  | 		    <a href="/servlet/CheckManage?operate=updateCheckById&checkId=<%=tempCheckid%>"><img src="/images1/edit.gif" border="0" alt="修改"/></a>   | ||
|  | 	        <input border="0" type="image" src="../../images1/delete.gif" ALT="删除" style="cursor: pointer;" name="button2"onclick="check('deleteCheckRow','<%=tempCheckid%>');"/>    | ||
|  | 	        <a href="/servlet/CheckManage?operate=OwnReaultCheckById&checkId=<%=tempCheckid%>"><img src="/images1/tips.jpg" border="0" alt="自检"/></a> | ||
|  | 	    <%} %> | ||
|  | 	         | ||
|  | 	   </span> | ||
|  | 	   </div> | ||
|  |        <% | ||
|  | 		} | ||
|  |        %>	 | ||
|  |         </div> | ||
|  | 	  </div> | ||
|  |  	</div> | ||
|  |     <tag:PageLinkTag operate="queryCheck"  scope="request" width="99%" align="center"/> | ||
|  | <%	 | ||
|  | 	} | ||
|  | %> | ||
|  |     </td> | ||
|  |    </tr> | ||
|  |  </table>	 | ||
|  | </form>		           | ||
|  | <%@include file="/foot.jsp"%> | ||
|  | </body> | ||
|  | </html> |