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.
355 lines
11 KiB
355 lines
11 KiB
<%@page import="com.zky.para.Para"%>
|
|
<%@ page import="com.zky.bjca.SM4" %>
|
|
<%@ page import="cn.org.bjca.utils.Base64" %>
|
|
<%@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 notifyId = Common.convertNull(request.getParameter("notify_id"));
|
|
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;
|
|
}
|
|
#myGrid .gridHead{
|
|
height: 50px;
|
|
line-height: 50px;
|
|
background-color: #cce7f5;
|
|
color: #000;
|
|
font-size: 16px;
|
|
font-weight: bold;
|
|
box-sizing: border-box;
|
|
}
|
|
#myGrid .gridHead .gridRow{
|
|
display: flex;
|
|
justify-content: start;
|
|
}
|
|
#myGrid .gridHead span{
|
|
text-align: center;
|
|
display: inline-block;
|
|
border-right: 1px solid #000000;
|
|
box-sizing: border-box;
|
|
}
|
|
#myGrid .gridHead span:nth-child(1){
|
|
width: 100px;
|
|
}
|
|
#myGrid .gridHead span:nth-child(2){
|
|
width: 100px;
|
|
}
|
|
#myGrid .gridHead span:nth-child(3){
|
|
width: 200px;
|
|
}
|
|
#myGrid .gridHead span:nth-child(4){
|
|
width: 280px;
|
|
}
|
|
#myGrid .gridHead span:nth-child(5){
|
|
width: 200px;
|
|
}
|
|
#myGrid .gridHead span:nth-child(6){
|
|
width: 200px;
|
|
}
|
|
#myGrid .gridHead span:nth-child(7){
|
|
width: 200px;
|
|
}
|
|
#myGrid .gridHead span:nth-child(8){
|
|
width: 200px;
|
|
border-right: none;
|
|
}
|
|
#myGrid .gridBody .gridRow{
|
|
height: 30px;
|
|
/*margin-top: 5px;*/
|
|
display: flex;
|
|
justify-content: start;
|
|
align-items: center;
|
|
border-bottom: 1px solid #000;
|
|
color: #000;
|
|
}
|
|
#myGrid .gridBody .gridRow span{
|
|
width: 148px;
|
|
display: inline-block;
|
|
border-right: 1px solid;
|
|
text-align: center;
|
|
height: 30px;
|
|
line-height: 30px;
|
|
box-sizing: border-box;
|
|
}
|
|
#myGrid .gridBody .gridRow span:nth-child(1){
|
|
width: 100px;
|
|
}
|
|
#myGrid .gridBody .gridRow span:nth-child(2){
|
|
width: 100px;
|
|
}
|
|
#myGrid .gridBody .gridRow span:nth-child(3){
|
|
width: 200px;
|
|
}
|
|
#myGrid .gridBody .gridRow span:nth-child(4){
|
|
width: 280px;
|
|
}
|
|
#myGrid .gridBody .gridRow span:nth-child(5){
|
|
width: 200px;
|
|
}
|
|
#myGrid .gridBody .gridRow span:nth-child(6){
|
|
width: 200px;
|
|
}
|
|
#myGrid .gridBody .gridRow span:nth-child(7){
|
|
width: 200px;
|
|
}
|
|
#myGrid .gridBody .gridRow span:nth-child(8){
|
|
width: 200px;
|
|
border-right: none;
|
|
}
|
|
#myGrid .gridBody .gridRow span a,#myGrid .gridBody .gridRow span img,#myGrid .gridBody .gridRow span input {
|
|
margin-right: 6px;
|
|
margin-top: 6px;
|
|
}
|
|
form{
|
|
height: 96%;
|
|
}
|
|
</style>
|
|
<script>
|
|
function setValue() {
|
|
<%
|
|
if (!Common.isNull(notifyId)) {
|
|
out.println("form1.notifyId.value='" + notifyId + "';");
|
|
}
|
|
if (!Common.isNull(qj)) {
|
|
out.println("form1.qj.value='" + qj + "';");
|
|
}
|
|
if (!Common.isNull(sj)) {
|
|
out.println("form1.sj.value='" + sj + "';");
|
|
}
|
|
if (!Common.isNull(departId)) {
|
|
out.println("form1.pcs.value='" + departId + "';");
|
|
}
|
|
if (!Common.isNull(operate)) {
|
|
out.println("form1.operate.value='" + operate + "';");
|
|
}
|
|
%>
|
|
}
|
|
function check(operate,notifyId) {
|
|
form1.operate.value=operate;
|
|
if (operate == "addCheckNotify") {
|
|
form1.action = "/zhyw/smjc/CheckNotifyEdit.jsp";
|
|
}
|
|
if (operate == "updateCheckNotifyById") {
|
|
form1.action = "/servlet/CheckManage?operate=updateCheckNotifyById¬ifyId=" + notifyId;
|
|
}
|
|
if (operate == "queryCheckNotify"){
|
|
}
|
|
if (operate == "deleteCheckNotifyRow") {
|
|
if (!confirm("您确定要删除此信息吗?"))
|
|
return;
|
|
form1.action = "/servlet/CheckManage?operate=deleteCheckNotifyRow&checkId="+ checkId;
|
|
}
|
|
if (operate == "deleteCheckNotify") {
|
|
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/CheckNotifyManage.jsp";
|
|
form1.submit();
|
|
}
|
|
</script>
|
|
<style type="text/css">
|
|
.fontColor1{
|
|
color: red;
|
|
}
|
|
html { overflow-x:hidden; overflow-y:hidden; }
|
|
.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" 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" height="60px">
|
|
<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="pcs" 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">
|
|
<input type="image" name="button1" src="../../images1/cx.png" onClick="check('queryCheckNotify');"/>
|
|
</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('addCheckNotify');" type="image" alt="添加" src="../../images1/tj.png"/>
|
|
<input name="button2" onclick="return check('deleteCheckNotify');" type="image" alt="删除" src="../../images1/cc.png"/>
|
|
<%}else if(login.getSanyuan().equals("1")){ %>
|
|
|
|
<%}else { %>
|
|
<input name="button2" onclick="check('addCheckNotify');" type="image" alt="添加" src="../../images1/tj.png"/>
|
|
<input name="button2" onclick="return check('deleteCheckNotify');" type="image" alt="删除" src="../../images1/cc.png"/>
|
|
<%} %>
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<%
|
|
HashFmlBuf buf = (HashFmlBuf) request.getAttribute("checkNotify_info");
|
|
if (buf != null) {
|
|
int rowcount = buf.getRowCount();
|
|
%>
|
|
<center>
|
|
<table width="99%" border="0" cellpadding="0" cellspacing="1" style="margin-top: 4px;height: 85%" class="box">
|
|
<tr>
|
|
<td>
|
|
<div style="width:100%; height:96%;overflow: auto;">
|
|
<div id="myGrid" class="2k3Grid" borderWidth="0" contextMenu="mnuGridContextMenu" altRowColor="oldLace">
|
|
<div class="gridHead">
|
|
<div class="gridRow">
|
|
<span width="5px" style="text-align: center;">序号</span>
|
|
<span width="6px" style="text-align: center;">选择项</span>
|
|
<span width="14px"><b>通知人员</b></span>
|
|
<span width="15px">通知单位</span>
|
|
<span width="15px"><b>通知时间</b></span>
|
|
<span width="15px"><b>通知状态</b></span>
|
|
<span width="20px"><b>通知内容</b></span>
|
|
<span width="10px">管理</span>
|
|
</div>
|
|
</div>
|
|
<div class="gridBody">
|
|
<%
|
|
for (int i=0; i<rowcount; i++) {
|
|
String disabled = "";
|
|
String tempCheckid= buf.fget("notify_id",i);
|
|
String tempState = buf.fget("notify_state",i);
|
|
if (tempState.equals("0")) {
|
|
tempState = "未发出";
|
|
disabled = "";
|
|
} else if(tempState.equals("1")) {
|
|
tempState = "已发出";
|
|
disabled = "disabled";
|
|
}
|
|
%>
|
|
<div class="gridRow">
|
|
<span><%=i+1%></span>
|
|
<span><input type="checkbox" name="Infos" value="<%=tempCheckid%>"></span>
|
|
<span><%=SM4.SM4Decrypt(Base64.decode(buf.fget("notify_staffed", i))) %></span>
|
|
<span><%=buf.fget("departname",i) %></span>
|
|
<span><%=buf.fget("notify_time",i) %></span>
|
|
<span><%=tempState %></span>
|
|
<span width="50px;"><%=buf.fget("notify_content",i) %></span>
|
|
<span>
|
|
<%if(login.getSanyuan().equals("0")){ %>
|
|
<a href="/servlet/CheckManage?operate=queryCheckNotifyById¬ifyId=<%=tempCheckid%>"><img src="/images1/read_document.png" border="0" alt="预览"/></a>
|
|
<a href="/servlet/CheckManage?operate=updateCheckNotifyById¬ifyId=<%=tempCheckid%>"><img src="/images1/edit.gif" border="0" alt="修改"/></a>
|
|
<a onclick="return confirm('您确定要删除此信息吗?')" href="/servlet/CheckManage?operate=deleteCheckNotifyRow¬ifyId=<%=tempCheckid%>"><img src="/images1/delete.gif" border="0" alt="删除"/></a>
|
|
<%}else if(login.getSanyuan().equals("1")){ %>
|
|
<a href="/servlet/CheckManage?operate=queryCheckNotifyById¬ifyId=<%=tempCheckid%>"><img src="/images1/read_document.png" border="0" alt="预览"/></a>
|
|
<%}else { %>
|
|
<a href="/servlet/CheckManage?operate=queryCheckNotifyById¬ifyId=<%=tempCheckid%>"><img src="/images1/read_document.png" border="0" alt="预览"/></a>
|
|
<a href="/servlet/CheckManage?operate=updateCheckNotifyById¬ifyId=<%=tempCheckid%>"><img src="/images1/edit.gif" border="0" alt="修改"/></a>
|
|
<a onclick="return confirm('您确定要删除此信息吗?')" href="/servlet/CheckManage?operate=deleteCheckNotifyRow¬ifyId=<%=tempCheckid%>"><img src="/images1/delete.gif" border="0" alt="删除"/></a>
|
|
<%} %>
|
|
|
|
</span>
|
|
</div>
|
|
<%
|
|
}
|
|
%>
|
|
</div>
|
|
<!-- gridBody end -->
|
|
</div>
|
|
<!-- myGrid end -->
|
|
</div>
|
|
<tag:PageLinkTag operate="queryCheckNotify" scope="request" width="100%" align="center"/>
|
|
<%
|
|
}
|
|
%>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</center>
|
|
</form>
|
|
<%@include file="../../foot.jsp"%>
|
|
</body>
|
|
</html> |