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.

191 lines
6.3 KiB

<%@page import="com.zky.para.Para"%>
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
String operate = (String)request.getParameter("operate");
String departId="";
String notifyTime = "";
String notifyStaffed = "";
String notifyContent="";
String sj = Common.convertNull(request.getParameter("sj"));
String qj = Common.convertNull(request.getParameter("qj"));
String school = Common.convertNull(request.getParameter("school"));
Login loginObj = (Login)session.getAttribute("login");
String optrid = loginObj.optrid;
String date = DateTime.DateToStr(new Date());
String optrname = getPara.getDesc("TAB_EMPLOYEE","EMPID","EMPNAME",optrid);
%>
<html>
<head>
<title>检查通知管理</title>
<link href="../../css/font.css" rel="stylesheet" type="text/css">
<script src="../../js/date.js"></script>
<script src="../../js/check.js"></script>
<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(qj)) {
out.println("form1.qj.value='" + qj + "';");
}
if (!Common.isNull(sj)) {
out.println("form1.sj.value='" + sj + "';");
}
if (!Common.isNull(school)) {
out.println("form1.school.value='" + school + "';");
}
if (!Common.isNull(operate)) {
out.println("form1.operate.value='" + operate + "';");
}
%>
}
function check(operate) {
form1.operate.value = operate;
if(operate=='backCheckNotif'){
form1.action = "/servlet/CheckManage?operate=backCheckNotifInfo";
form1.submit();
}
if(operate=='addCheckNotify'){
if (form1.sj.value == "") {
alert("请选择所属市州!");
form1.sj.focus();
return false;
}
var typemenu=document.getElementById("sj");
var val=typemenu.value;
if(val==0930){
}else{
if (form1.qj.value == "") {
alert("请选择所属区县!");
form1.qj.focus();
return false;
}
}
if (form1.school.value == "") {
alert("请选择所属单位!");
form1.school.focus();
return false;
}
if (form1.notifyStaffed.value == "") {
alert("请选择通知人!");
form1.notifyStaffed.focus();
return false;
}
if (form1.notifyTime.value == "") {
alert("请选择通知时间!");
form1.notifyTime.focus();
return false;
}
if (form1.notifyContent.value == "") {
alert("请输入通知内容!");
form1.notifyContent.focus();
return false;
}
return true;
}
form1.button1.disabled=true;
form1.button2.disabled=true;
form1.submit();
}
function selectChange(i)
{
form1.action = "/zhyw/smjc/CheckNotifyEdit.jsp";
form1.submit();
}
</script>
<style type="text/css">
.aselect{
width: 155px;
}
</style>
</head>
<body onLoad="setValue();" scroll="no">
<form name="form1" method="post" action="/servlet/CheckManage">
<input type="hidden" name="operate" value=""/>
<table width="100%" border="0" align="center" cellpadding="0" cellspacing="1" class="box" style="margin:0px auto;">
<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">&nbsp;<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="98%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02">
<tr bgcolor="#FFFFFF" height="35px">
<td class="cell1">所属市州</td>
<td class="cell2">
<select class='aselect' name="sj" setValue="<%=sj%>" onChange="selectChange(1);">
<%=Para.getSj(getPara)%>
</select><font style="color: red;">*</font>
</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><font style="color: red;">*</font>
</td>
</tr>
<tr bgcolor="#FFFFFF" height="35px">
<td class="cell1">所属单位</td>
<td class="cell2">
<select class='aselect' name="school" setValue="<%=school%>">
<!--<%=Para.getXx(getPara,login_obj,qj)%>
--><%if(sj.equals("0930")){ %>
<%=Para.getXx1(getPara, sj)%>
<%}else { %>
<%=Para.getXx(getPara, qj)%>
<%} %>
</select><font style="color: red;">*</font>
</td>
<td class="cell1">通知日期</td>
<td class="cell2">
<input name='notifyTime' type='text' readonly="readonly" onClick="fPopCalendar(notifyTime,notifyTime);" value="<%=date%>"/>
</td>
</tr>
<tr bgcolor="#FFFFFF" height="35px">
<td class="cell1">通知人员</td>
<td class="cell2">
<input style="color:red;" name='notifyStaffed' type='text' readonly="readonly" value="<%=optrname%>" />
</td>
<td class="cell1" ></td>
<td class="cell2" ></td>
</tr>
<tr bgcolor="#FFFFFF" height="35px">
<td class="cell1">被通知人</td>
<td class="cell2" colspan="3">
<textarea rows="4" cols="67" name="notifyStaffed" maxlength="500"></textarea>
</td>
</tr>
<tr bgcolor="#FFFFFF" height="35px">
<td class="cell1">通知内容</td>
<td class="cell2" colspan="3">
<textarea rows="4" cols="67" name="notifyContent" maxlength="500"></textarea>
</td>
</tr>
</table>
<table width="100%" align="center">
<tr align="center" height="40px" valign="middle">
<td>
<input name="button1" onclick="return check('addCheckNotify');" type="image" alt="保存" src="../../images1/bc1.png"/>&nbsp;&nbsp;
<input name="button2" onClick="check('backCheckNotif');" type="image" alt="返回" src="../../images1/fh.png"/>
</td>
</tr>
</table>
</td>
</tr>
</table>
</form>
<%@include file="/foot.jsp"%>
</body>
</html>