archive_user_add.jsp
上传用户:jhtang88
上传日期:2014-01-27
资源大小:28528k
文件大小:9k
源码类别:

Jsp/Servlet

开发平台:

Java

  1. <%@ page contentType="text/html; charset=utf-8"%>
  2. <%@ page import = "java.net.URLEncoder"%>
  3. <%@ page import = "java.util.*"%>
  4. <%@ page import = "cn.js.fan.util.*"%>
  5. <%@ page import = "cn.js.fan.web.*"%>
  6. <%@ page import = "com.redmoon.oa.archive.*"%>
  7. <%@ page import = "com.redmoon.oa.dept.*"%>
  8. <%@ page import = "com.redmoon.oa.BasicDataMgr"%>
  9. <%@ page import = "cn.js.fan.security.*"%>
  10. <html xmlns="http://www.w3.org/1999/xhtml">
  11. <head>
  12. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  13. <title>人事档案管理</title>
  14. <link href="../common.css" rel="stylesheet" type="text/css">
  15. <style type="text/css">
  16. <!--
  17. .style2 {font-size: 14px}
  18. -->
  19. </style>
  20. <script language="JavaScript" type="text/JavaScript">
  21. <!--
  22. function findObj(theObj, theDoc)
  23. {
  24.   var p, i, foundObj;
  25.   
  26.   if(!theDoc) theDoc = document;
  27.   if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  28.   {
  29.     theDoc = parent.frames[theObj.substring(p+1)].document;
  30.     theObj = theObj.substring(0,p);
  31.   }
  32.   if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  33.   for (i=0; !foundObj && i < theDoc.forms.length; i++) 
  34.     foundObj = theDoc.forms[i][theObj];
  35.   for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
  36.     foundObj = findObj(theObj,theDoc.layers[i].document);
  37.   if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  38.   
  39.   return foundObj;
  40. }
  41. var GetDate=""; 
  42. function SelectDate(ObjName,FormatDate){
  43. var PostAtt = new Array;
  44. PostAtt[0]= FormatDate;
  45. PostAtt[1]= findObj(ObjName);
  46. GetDate = showModalDialog("../util/calendar/calendar.htm", PostAtt ,"dialogWidth:286px;dialogHeight:221px;status:no;help:no;");
  47. }
  48. function SetDate()
  49. findObj(ObjName).value = GetDate; 
  50. }
  51. function setPerson(deptCode, deptName, user, userRealName)
  52. {
  53. form1.userName.value = user;
  54. form1.userRealName.value = userRealName;
  55. }
  56. //-->
  57. </script>
  58. </head>
  59. <body>
  60. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  61. <jsp:useBean id="archivePrivilege" scope="page" class="com.redmoon.oa.archive.ArchivePrivilege"/>
  62. <%
  63. String deptCode = ParamUtil.get(request,"deptCode");
  64. if (!privilege.isUserPrivValid(request, "archive.userinfo")||!archivePrivilege.canAdminDept(request,deptCode)) {
  65. out.println(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  66. return;
  67. }
  68. if (deptCode.trim().equals("") || !SecurityUtil.isValidSqlParam(deptCode) || deptCode.length() > 50) {
  69.    out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request,"res.module.archive","warn_deptcode_err_archive")));
  70.    return;
  71. }
  72. BasicDataMgr bdm = new BasicDataMgr("archive");
  73. String options = "";
  74. %>
  75. <form name="form1" action="archive_user_do.jsp?op=add&deptCode=<%=deptCode%>" method="post" encType="multipart/form-data">
  76.   <table width="90%" border="0" align="center" cellPadding="2" cellSpacing="1" bgcolor="#FFFFFF" class="tableframe">
  77.     <tbody>
  78.   <tr>
  79. <td colspan="3" class="right-title">添加用户信息</td>
  80.   </tr>
  81.       <tr>
  82.         <td noWrap width="80">姓&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;名:</td>
  83.         <td><input maxLength="100" name="userRealName" size="20"><input name="userName" type="hidden" value="<%=cn.js.fan.util.RandomSecquenceCreator.getId(20)%>">
  84. <input type="hidden" name="deptCode" value="<%=deptCode%>"></td>
  85.         <td width="250" rowSpan="9"><center>暂无照片</center></td>
  86.       </tr>
  87.       <tr>
  88.         <td noWrap>性&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;别:</td>
  89.         <td><select name="sex">
  90.             <option value="女">女</option>
  91.             <option value="男" selected>男</option>
  92.           </select></td>
  93.       </tr>
  94.       <tr>
  95.         <td noWrap>出生日期:</td>
  96.         <td><input maxLength="100" name="birthday" size="20"><img style="CURSOR: hand" onClick="SelectDate('birthday', 'yyyy-MM-dd')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26">  
  97.           日期格式形如 1999-1-2</td>
  98.       </tr>
  99.       <tr>
  100.         <td noWrap>民&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;族:</td>
  101.         <td><%options = bdm.getOptionsStr("people");%>
  102.   <select name="people">
  103.   <%=options%>
  104.           </select></td>
  105.       </tr>
  106.       <tr>
  107.         <td noWrap>籍&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;贯:</td>
  108.         <td><input maxLength="100" size="12" name="nation"></td>
  109.       </tr>
  110.       <tr>
  111.         <td noWrap>出&nbsp;&nbsp;生&nbsp;&nbsp;地:</td>
  112.         <td><input maxLength="100" size="12" name="born"></td>
  113.       </tr>
  114.       <tr>
  115.         <td noWrap>入党时间:</td>
  116.         <td><input maxLength="100" name="joinPartyDate" size="20">
  117.         <img style="CURSOR: hand" onClick="SelectDate('joinPartyDate', 'yyyy-MM')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26">  
  118.           日期格式形如 1999-1-2</td>
  119.       </tr>
  120.       <tr>
  121.         <td noWrap>参加工作时间:</td>
  122.         <td colSpan="2"><input maxLength="100" name="joinWorkDate" size="20">
  123.         <img style="CURSOR: hand" onClick="SelectDate('joinWorkDate', 'yyyy-MM')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26">  
  124.           日期格式形如  1999-1-2</td>
  125.       </tr>
  126.       <tr>
  127.         <td noWrap>加入本单位时间:</td>
  128.         <td colSpan="2"><input maxLength="100" name="joinDepartmentDate" size="20">
  129.         <img style="CURSOR: hand" onClick="SelectDate('joinDepartmentDate', 'yyyy-MM')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26">  
  130.           日期格式形如  1999-1-2</td>
  131.       </tr>
  132.       <tr>
  133.         <td noWrap>在职情况:</td>
  134.         <td colSpan="2">
  135. <%options = bdm.getOptionsStr("inActiveService");%>
  136.   <select name="inActiveService">
  137.   <%=options%>
  138.           </select>  </td>
  139.       </tr>
  140.       <tr>
  141.         <td noWrap>健康状况:</td>
  142.         <td colSpan="2">
  143. <%options = bdm.getOptionsStr("healthState");%>
  144.   <select name="healthState">
  145.   <%=options%>
  146.           </select> </td>
  147.       </tr>
  148.       <tr>
  149.         <td noWrap>最高学历:</td>
  150.         <td colSpan="2">   
  151.   <%options = bdm.getOptionsStr("grade");%>
  152.   <select name="mostGrade">
  153.   <%=options%>
  154.           </select></td>
  155.       </tr>
  156.       <tr>
  157.         <td noWrap>文化程度:</td>
  158.         <td colSpan="2">
  159.   <%options = bdm.getOptionsStr("culture");%>
  160.   <select name="culture">
  161.   <%=options%>
  162.           </select></td>
  163.       </tr>
  164.       <tr>
  165.         <td noWrap>后备干部级别:</td>
  166.         <td colSpan="2">
  167.   <%options = bdm.getOptionsStr("insupportCadreLevel");%>
  168.   <select name="insupportCadreLevel">
  169.   <%=options%>
  170.           </select></td>
  171.       </tr>
  172.       <tr>
  173.         <td noWrap>定为后备干部的时间:</td>
  174.         <td colSpan="2"><input maxLength="100" name="insupportCadreDate" size="20">
  175.         <img style="CURSOR: hand" onClick="SelectDate('insupportCadreDate', 'yyyy-MM')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26">  
  176.           日期格式形如 1999-1-2</td>
  177.       </tr>
  178.       <tr>
  179.         <td noWrap>政治面貌:</td>
  180.         <td colSpan="2">
  181. <%options = bdm.getOptionsStr("polity");%>
  182.   <select name="polity">
  183.   <%=options%>
  184.           </select></td>  
  185.       </tr>
  186.       <tr>
  187.         <td noWrap>其它党派加入时间:</td>
  188.         <td colSpan="2"><input maxLength="100" name="joinClanDate" size="20">
  189.         <img style="CURSOR: hand" onClick="SelectDate('joinClanDate', 'yyyy-MM')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26">  
  190.           日期格式形如 1999-1-2</td>
  191.       </tr>
  192.       <tr>
  193.         <td noWrap>编制情况:</td>
  194.         <td colSpan="2">
  195. <%options = bdm.getOptionsStr("typeofwork");%>
  196.   <select name="typeOfWork">
  197.   <%=options%>
  198.           </select></td>
  199.       </tr>
  200.   <tr>
  201.         <td noWrap>干部来源</td>
  202.         <td colSpan="3"><%options = bdm.getOptionsStr("cadresSource");%>
  203.   <select name="cadresSource">
  204.   <%=options%>
  205.           </select></td>
  206.       </tr>
  207.       <tr>
  208.         <td noWrap>过渡时间</td>
  209.         <td colSpan="3"><input maxLength="100" name="transitionDate" size="20"><img style="CURSOR: hand" onClick="SelectDate('transitionDate', 'yyyy-MM')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26">  
  210.           日期格式形如 1999-1-2</td>
  211.       </tr>
  212.       <tr>
  213.         <td noWrap>照片</td>
  214.         <td colSpan="2"><input title="选择附件文件" type="file" size="30" name="image"></td>
  215.       </tr>
  216.       <tr>
  217.         <td noWrap>备注:</td>
  218.         <td colSpan="2"><textarea name="remark" cols="45" rows="3" wrap="yes" class="BigINPUT" id="remark"></textarea></td>
  219.       </tr>
  220.       <tr>
  221.         <td noWrap align="middle" colSpan="3"><input value="保存" type="submit">&nbsp;&nbsp; 
  222.           <input type="reset" value="重填">&nbsp;&nbsp;</td>
  223.       </tr>
  224.     </tbody>
  225.   </table>
  226. </FORM>
  227. </body>
  228. </html>