<%@page import="com.zky.para.Para"%>
<%@include file="/auth.jsp"%>
<%@page import="java.util.Date"%>
<%@ page import="com.zky.bjca.SM4" %>
<%@ page import="cn.org.bjca.utils.Base64" %>
<%@page language="java" pageEncoding="utf-8" %>
<jsp:useBean id="getPara" scope="application" class="com.zky.para.SyncPara"/>
<%
HashFmlBuf buf = (HashFmlBuf)request.getAttribute("by_checkNotifyId");
String operate = (String)request.getParameter("operate");
String sj = Common.convertNull(request.getParameter("sj"));
String qj="";
String departid=Common.convertNull(request.getParameter("qj"));
String pcs= Common.convertNull(request.getParameter("pcs"));
%>
<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 check(operate) {
	form1.operate.value = operate;
	if(operate=='UpdateCheckNotify'){
		if (form1.notifyState.value == "") {
			alert("请改变状态!");
			form1.notifyState.focus();
			return;
		}	
	}
	form1.button1.disabled=true;
	form1.button2.disabled=true;
	form1.submit();
}
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(operate)) {
out.println("form1.operate.value='" + operate + "';");
}
	%>	
	}
function selectChange(i)
{
	form1.action = "/zhyw/smjc/CheckNotifyUpdate.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=""/>
<input type="hidden" name="notifyId" id="'notifyId"  value="<%=buf.fget("notify_id", 0)%>"/>
<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="82%" 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">
			<input type="text" name="sj" value="<%=buf.fget("FRAMEWORKNAME", 0)%>"  readonly="readonly"  style="background-color: #D6DDEF;"/>
		</td>		
		<td class="cell1">所属区县</td>
		<td class="cell2">
			<input type="text" name="sj" value="<%=buf.fget("AREADEF", 0)%>"  readonly="readonly"  style="background-color: #D6DDEF;"/>
		</td>
	    </tr>
		<tr bgcolor="#FFFFFF" height="35px">
		<td class="cell1">通知状态</td>
		<td class="cell2">
		   <select class='aselect' name="notifyState"   setValue="<%=buf.fget("notify_state", 0)%>" >
		   		<%=Para.getCheckState(getPara,"NOTIFYSTATE")%>       					
			</select>
		</td>		
		<td class="cell1">通知日期</td>
		<td class="cell2">
			<input name='notifyTime'  type='text' readonly="readonly"   value="<%=buf.fget("notify_time",0)%>"/>
		  	<input class="box_button" type='button' name='butt1' value='选时间' onClick="fPopCalendar(notifyTime,notifyTime);">
		</td>
	    </tr>	
</table>
<table width="98%"  border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02" style="border-top: none;">
    	 <tr bgcolor="#FFFFFF">
		<td class="cell1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;通知人员</td>
		<td class="cell2">
		<textarea rows="4" cols="67" name="notifyStaffed"><%=SM4.SM4Decrypt(Base64.decode(buf.fget("notify_staffed",0)))%></textarea>
		</td>			
		</tr>
		<tr bgcolor="#FFFFFF">	
		<td class="cell1">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;通知信息</td>
		<td class="cell2" colspan="3">
			<textarea rows="4" cols="67" name="notifyContent"><%=buf.fget("notify_content",0)  %></textarea>
		</td>
	    </tr>
</table>
	<table width="98%" align="center">
		<tr align="center" height="40px" valign="middle">
		<td>
		  <!--<input name="button1" onclick="return check('UpdateCheckNotify');" type="image"  alt="保存" src="../../images1/bc1.png"/>&nbsp;&nbsp;
		  --><input type="button" name="button1" style="background:url(../images1/bc1.png); width:60px; height:22px; border:none;cursor: pointer;" onclick="check('UpdateCheckNotify');"/>&nbsp;&nbsp;
		  <input type="button" name="button2" style="background:url(../images1/fh.png); width:60px; height:22px; border:none; cursor: pointer;" onClick="history.back();"/>
		</td>
		</tr>
	</table>	
	 </td>
  </tr>
</table>
</form>
<%@include file="/foot.jsp"%>
</body>
</html>