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

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.person.*"%>
  8. <%@ page import = "com.redmoon.oa.BasicDataMgr"%>
  9. <html xmlns="http://www.w3.org/1999/xhtml">
  10. <head>
  11. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  12. <title>人事档案管理</title>
  13. <link href="../common.css" rel="stylesheet" type="text/css">
  14. <style type="text/css">
  15. <!--
  16. .style2 {font-size: 14px}
  17. -->
  18. </style>
  19. <script language="JavaScript" type="text/JavaScript">
  20. <!--
  21. function findObj(theObj, theDoc)
  22. {
  23.   var p, i, foundObj;
  24.   
  25.   if(!theDoc) theDoc = document;
  26.   if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  27.   {
  28.     theDoc = parent.frames[theObj.substring(p+1)].document;
  29.     theObj = theObj.substring(0,p);
  30.   }
  31.   if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  32.   for (i=0; !foundObj && i < theDoc.forms.length; i++) 
  33.     foundObj = theDoc.forms[i][theObj];
  34.   for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
  35.     foundObj = findObj(theObj,theDoc.layers[i].document);
  36.   if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  37.   
  38.   return foundObj;
  39. }
  40. var GetDate=""; 
  41. function SelectDate(ObjName,FormatDate){
  42. var PostAtt = new Array;
  43. PostAtt[0]= FormatDate;
  44. PostAtt[1]= findObj(ObjName);
  45. GetDate = showModalDialog("../util/calendar/calendar.htm", PostAtt ,"dialogWidth:286px;dialogHeight:221px;status:no;help:no;");
  46. }
  47. function SetDate()
  48. findObj(ObjName).value = GetDate; 
  49. }
  50. function setPerson(deptCode, deptName, user, userRealName)
  51. {
  52. form1.userName.value = user;
  53. form1.userRealName.value = userRealName;
  54. }
  55. function selIsMostGrade()
  56. if(form1.isCMostGrade.checked){
  57. form1.isMostGrade.value = "1";
  58. }else{
  59. form1.isMostGrade.value = "0";
  60. }
  61. }
  62. //-->
  63. </script>
  64. </head>
  65. <body>
  66. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  67. <jsp:useBean id="archivePrivilege" scope="page" class="com.redmoon.oa.archive.ArchivePrivilege"/>
  68. <%
  69. String userName = ParamUtil.get(request,"userName");
  70. if (!privilege.isUserPrivValid(request, "archive.study")||!archivePrivilege.canAdminUser(request,userName)) {
  71. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "pvg_invalid")));
  72. return;
  73. }
  74. %>
  75. <%@ include file="archive_inc_menu_top.jsp"%>
  76. <%
  77. String strId = ParamUtil.get(request, "id");
  78. if (!StrUtil.isNumeric(strId)) {
  79. out.println(StrUtil.Alert_Back(SkinUtil.LoadString(request, "res.module.archive","warn_id_err_archive")));
  80. return;
  81. }
  82. int id = Integer.parseInt(strId);
  83. UserStudyDb usd = new UserStudyDb();
  84. usd = usd.getUserStudyDb(id);
  85. UserInfoDb uid = new UserInfoDb();
  86. uid = uid.getUserInfoDb(userName);
  87. String userRealName = uid.getUserRealName();
  88. BasicDataMgr bdm = new BasicDataMgr("archive");
  89. String options = "";
  90. %>
  91. <br>
  92. <table width="90%" border="0" align="center" cellPadding="2" cellSpacing="1" bgcolor="#FFFFFF" class="tableframe">
  93.   <form name="form1" action="archive_study_do.jsp?op=modify" method="post">
  94.     <tbody>
  95.   <tr>
  96. <td colspan="3" class="right-title">修改教育信息</td>
  97.   </tr>
  98.       <tr>
  99.         <td width="80" noWrap>用&nbsp;&nbsp;户&nbsp;&nbsp;名:</td>
  100.         <td colSpan="2"><input maxLength="100" name="userRealName" size="20" readonly value="<%=userRealName%>"><input name="userName" type="hidden" value="<%=userName%>">
  101.           <input type="hidden" name="id" value="<%=id%>">
  102. <input type="hidden" name="isMostGrade" value="<%=usd.getIsMostGrade()%>">
  103.         <input type="checkbox" name="isCMostGrade" onClick="selIsMostGrade()" <%if(usd.getIsMostGrade().equals("1")){%> checked <%}%>>
  104.         是否是最高学历</td>
  105.       </tr>
  106.       <tr>
  107.         <td noWrap>学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;历:</td>
  108.         <td colSpan="2">
  109.   <%options = bdm.getOptionsStr("grade");%>
  110.   <select name="grade">
  111.   <%=options%>
  112.           </select> 
  113. <script language="JavaScript">
  114. <!--
  115. form1.grade.value="<%=usd.getGrade()%>";
  116. //-->
  117. </script>
  118. </td>
  119.       </tr>
  120.       <tr>
  121.         <td noWrap>毕业院校:</td>
  122.         <td colSpan="2"><input maxLength="100" name="college" size="20" value="<%=usd.getCollege()%>"></td>
  123.       </tr>
  124.       <tr>
  125.         <td noWrap>院校简称:</td>
  126.         <td colSpan="2"><input maxLength="100" name="sCollege" size="20" value="<%=usd.getSCollege()%>"></td>
  127.       </tr>
  128.       <tr>
  129.         <td noWrap>专&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;业:</td>
  130.         <td colSpan="2"><input maxLength="100" name="specialty" size="20" value="<%=usd.getSpecialty()%>"></td>
  131.       </tr>
  132.       <tr>
  133.         <td noWrap>专业简称:</td>
  134.         <td colSpan="2"><input maxLength="100" name="sSpecialty" size="20" value="<%=usd.getSSpecialty()%>"></td>  
  135.       </tr>
  136.       <tr>
  137.         <td noWrap>是否在职:</td>
  138.         <td colSpan="2"><select name="isJob">
  139. <option value="否">否</option>
  140. <option value="是">是</option>
  141.         </select>
  142. <script language="JavaScript">
  143. <!--
  144. form1.isJob.value="<%=usd.getIsJob()%>";
  145. //-->
  146. </script>
  147. </td>
  148.       </tr>
  149.       <tr>
  150.         <td noWrap>开始时间:</td>
  151.         <td colSpan="2"><input maxLength="100" name="beginDate" size="20" value="<%=DateUtil.format(usd.getBeginDate(),"yyyy-MM-dd")%>" readonly><img style="CURSOR: hand" onClick="SelectDate('beginDate', 'yyyy-MM-dd')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26">  
  152.           日期格式形如 1999-1-2</td>
  153.       </tr>
  154.       <tr>
  155.         <td noWrap>结束时间:</td>
  156.         <td colSpan="2"><input maxLength="100" name="endDate" size="20" value="<%=DateUtil.format(usd.getEndDate(),"yyyy-MM-dd")%>" readonly><img style="CURSOR: hand" onClick="SelectDate('endDate', 'yyyy-MM-dd')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26">  
  157.           日期格式形如 1999-1-2</td>
  158.       </tr>
  159.       <tr>
  160.         <td noWrap>学&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;位:</td>
  161.         <td colSpan="2">
  162. <%options = bdm.getOptionsStr("degree");%>
  163.   <select name="degree">
  164.   <%=options%>
  165.           </select> 
  166. <script language="JavaScript">
  167. <!--
  168. form1.degree.value="<%=usd.getDegree()%>";
  169. //-->
  170. </script>
  171. </td>
  172.       </tr>
  173.       <tr>
  174.         <td noWrap>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注:</td>
  175.         <td colSpan="2"><textarea name="remark" cols="45" rows="3" wrap="yes" class="BigINPUT" id="remark"><%=usd.getRemark()%></textarea></td>
  176.       </tr>
  177.       <tr>
  178.         <td noWrap align="middle" colSpan="3"><input value="保存" type="submit">&nbsp;&nbsp; 
  179.           <input type="reset" value="重填">&nbsp;&nbsp;</td>
  180.       </tr>
  181.     </tbody>
  182.   </FORM>
  183. </table>
  184. </body>
  185. </html>