<%@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 nationstate1=""; String operate = (String)request.getParameter("operate"); String empid = ""; String empname = ""; String sj = Common.convertNull(request.getParameter("sj")); String sex = ""; String birthday = ""; String empcontaddr = ""; String empcontphone = ""; String empcontmobphone = ""; String empfaxnum = ""; String empidbegindate = ""; String empidenddate = ""; String empemail = ""; String qj = Common.convertNull(request.getParameter("qj")); String school = ""; String readonly = ""; String nationstate=""; String empage=""; String emphabby=""; String empjob=""; String empeducational=""; String empfamname=""; String empfamage=""; String empfamrelate=""; String empfamjob=""; String empschool=""; String emppolitics=""; String emphomeAddress=""; String examintname=""; String examintstate=""; String examinttime=""; String examintaddress=""; String examintadvince=""; if (operate.equals("modifyEmp")) { HashFmlBuf buf = (HashFmlBuf)request.getAttribute("emp_info_by_empid"); int pos = 0; empid = buf.fget("empid ",pos); empname = buf.fget("empname ",pos); sj = buf.fget("frameworkid ",pos); birthday = Common.convertNull(buf.fget("birthday ",pos)).substring(0,10); sex = buf.fget("sex ",pos); empcontaddr = buf.fget("empcontaddr ",pos); empcontphone = buf.fget("empcontphone ",pos); empcontmobphone = buf.fget("empcontmobphone",pos); empfaxnum = buf.fget("empfaxnum ",pos); empidbegindate = Common.convertNull(buf.fget("empidbegindate ",pos)).substring(0,10); empidenddate = Common.convertNull(buf.fget("empidenddate ",pos)).substring(0,10); empemail = buf.fget("empemail ",pos); qj = buf.fget("areaid ",pos); school = buf.fget("departid ",pos); nationstate1=buf.fget("nationstate", pos); empage=buf.fget("empage", pos); emphabby=buf.fget("emphabby", pos); empjob=buf.fget("empjob", pos); empeducational=buf.fget("empeducational", pos); empfamname=buf.fget("empfamname", pos); empfamage=buf.fget("empfamage", pos); empfamrelate=buf.fget("empfamrelate", pos); empfamjob=buf.fget("empfamjob", pos); empschool=buf.fget("empschool", pos); emppolitics=buf.fget("emppolitics", pos); emphomeAddress=buf.fget("emphomeAddress", pos); examintname=buf.fget("examintname", pos); examintstate =buf.fget("examintstate", pos); examinttime =buf.fget("examinttime", pos); examintaddress=buf.fget("examintaddress",pos); examintadvince=buf.fget("examintadvince",pos); readonly="readonly"; } else { empidbegindate = DateTime.DateToStr(new Date()); empidenddate = "2050-12-31"; } %> <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(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) { form1.operate.value = operate; if (form1.sj.value == "") { alert("请选择市保密局!"); form1.sj.focus(); return false; } if (form1.qj.value == "") { alert("请选择区县保密局!"); form1.qj.focus(); return false; } if (form1.examintname.value == "") { alert("请填写复核人员姓名!"); form1.examintname.focus(); return false; } if (form1.examintstate.value == "") { alert("请选择复核人员状态!"); form1.examintstate.focus(); return false; } if (form1.examinttime.value == "") { alert("请选择复核的时间"); form1.examinttime.focus(); return false; } if (form1.examintaddress.value == "") { alert("请填写复核的地点!"); form1.examintaddress.focus(); return false; } if (form1.examintadvince.value == "") { alert("请填写复核意见!"); form1.examintadvince.focus(); return false; } if (form1.school.value == "") { alert("请选择部门!"); form1.school.focus(); return false; } if (form1.sex.value == "") { alert("请选择性别!"); form1.sex.focus(); return false; } if (form1.empid.value == "") { alert("请输入职员编号!"); form1.empid.focus(); return false; } if (form1.empname.value == "") { alert("请输入职员姓名!"); form1.empname.focus(); return false; } if (form1.birthday.value == "") { alert("请选择职员出生日期!"); form1.birthday.focus(); return false; } if (form1.empidbegindate.value == "") { alert("请选择职员生效日期!"); form1.empidbegindate.focus(); return false; } if (form1.empidenddate.value == "") { alert("请选择职员失效日期!"); form1.empidenddate.focus(); return false; } form1.button1.disabled=true; form1.button2.disabled=true; form1.submit(); } function selectChange(i) { form1.action = "/zkyw/smry/rysh/EmpEdit.jsp"; form1.submit(); } </script> <style type="text/css"> .aselect{ width: 155px; } </style> </head> <body onload="setValue();"> <br> <table width="90%" 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="80%" height="23" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="3%"><img src="/images/little_red.jpg" width="12" height="12"></td> <td width="97%" class="font12b"> 复核人员管理</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> <form name="form1" method="post" action="/servlet/ExmManage"> <input type="hidden" name="operate" value=""/> <br> <table width="90%" border="0" align="center" cellpadding="0" cellspacing="0"> <tr> <td width="3%"><img src="/images/little.gif" width="12" height="12"></td> <td width="97%" class="font12">复核详细信息填写</td> </tr> </table> <table width="90%" border="0" align="center" cellpadding="2" cellspacing="1" bgcolor="d8e9fe" class="table02"> <tr bgcolor="#FFFFFF"> <td class="cell1">所属市保密局</td> <td class="cell2"> <select class='aselect' name="sj" setValue="<%=sj%>" onChange="selectChange(1);" > <% if (sj.equals("")){ out.println(Para.getSj(getPara)); if (!sj.equals("")){ %> <script> form1.frameworkid.value='<%=sj%>'; </script> <% } }else{ out.println(getPara.getSelectParaFilter("tab_framework","frameworkid","frameworkname","frameworkid",sj)); } %> </select> <font color="#ff0000">*</font> </td> <td class="cell1">所属区县保密局</td> <td class="cell2"> <select class='aselect' name="qj" setValue="<%=qj%>" onChange="selectChange(1);"> <% if (qj.equals("")){ out.println(Para.getQj(getPara,sj)); if (!qj.equals("")){ %> <script> form1.qj.value='<%=qj%>'; </script> <% } }else{ out.println(getPara.getSelectParaFilter("tab_area","areaid","areadef","areaid",qj)); } %> </select> <font color="#ff0000">*</font> </td> </tr> <tr bgcolor="#FFFFFF"> <td class="cell1">复核人姓名</td> <td class="cell2"> <input type="text" name="examintname" value="<%=examintname%>" <%=readonly%> maxlength="20" onChange="textToUpperCase()"> <font color="#ff0000">*</font> </td> <td class="cell1">所属部门</td> <td class="cell2"> <select class='aselect' name="school" value="<%=school%>"> <% if (school.equals("")){ out.println(Para.getXx(getPara,login_obj,qj)); if (!school.equals("")){ %> <script> form1.school.value='<%=school%>'; </script> <% } }else{ out.println(getPara.getSelectParaFilter("tab_department","departid","departname","departid",school)); } %> </select> <font color="#ff0000">*</font> <font color="#ff0000">*</font> </td> </tr> <tr bgcolor="#FFFFFF"> <td class="cell1">复核时间</td> <td class="cell2"> <input type="text" name="examinttime" value="<%=examinttime%>" <%=readonly%> maxlength="20" onChange="textToUpperCase()"> <input class="box_button" type='button' name='butt1' value='选时间' onclick="fPopCalendar(examinttime,examinttime); return true;"> <font color="#ff0000">*</font> </td> <td class="cell1">复核地点</td> <td class="cell2"> <input type="text" name="examintaddress" value="<%=examintaddress%>" <%=readonly%> maxlength="20" onChange="textToUpperCase()"> <font color="#ff0000">*</font> </td> </tr> <tr bgcolor="#FFFFFF"> <td class="cell1">复核意见</td> <td class="cell2" colspan="3"> <textarea rows="3" cols="67" name="examintadvince" value="<%=examintadvince%>"></textarea> <font color="#ff0000">*</font> </td> </tr> </table> <br> <table width="90%" align="center"> <tr align="center"> <td><input border="0" type="image" src="../../images1/bc1.png" alt="保存" onclick="check('<%=operate%>');"/> <a href="javascript:history.go(-1)"><img src="../../images1/fh.png" alt="返回" border="0" /></a> </td> </tr> </table> </form> </td> </tr> </table> <%@include file="/foot.jsp"%> </body> </html>