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

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. <html xmlns="http://www.w3.org/1999/xhtml">
  9. <head>
  10. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  11. <title>人事档案管理</title>
  12. <link href="../common.css" rel="stylesheet" type="text/css">
  13. <style type="text/css">
  14. <!--
  15. .style2 {font-size: 14px}
  16. -->
  17. </style>
  18. <script language="JavaScript" type="text/JavaScript">
  19. <!--
  20. function findObj(theObj, theDoc)
  21. {
  22.   var p, i, foundObj;
  23.   
  24.   if(!theDoc) theDoc = document;
  25.   if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  26.   {
  27.     theDoc = parent.frames[theObj.substring(p+1)].document;
  28.     theObj = theObj.substring(0,p);
  29.   }
  30.   if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  31.   for (i=0; !foundObj && i < theDoc.forms.length; i++) 
  32.     foundObj = theDoc.forms[i][theObj];
  33.   for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
  34.     foundObj = findObj(theObj,theDoc.layers[i].document);
  35.   if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  36.   
  37.   return foundObj;
  38. }
  39. var GetDate=""; 
  40. function SelectDate(ObjName,FormatDate){
  41. var PostAtt = new Array;
  42. PostAtt[0]= FormatDate;
  43. PostAtt[1]= findObj(ObjName);
  44. GetDate = showModalDialog("../util/calendar/calendar.htm", PostAtt ,"dialogWidth:286px;dialogHeight:221px;status:no;help:no;");
  45. }
  46. function SetDate()
  47. findObj(ObjName).value = GetDate; 
  48. }
  49. function setPerson(deptCode, deptName, user, userRealName)
  50. {
  51. form1.userName.value = user;
  52. form1.userRealName.value = userRealName;
  53. }
  54. //-->
  55. </script>
  56. </head>
  57. <body>
  58. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  59. <jsp:useBean id="archivePrivilege" scope="page" class="com.redmoon.oa.archive.ArchivePrivilege"/>
  60. <% 
  61. String userName = ParamUtil.get(request,"userName");
  62. if (!privilege.isUserPrivValid(request, "archive.resume")||!archivePrivilege.canAdminUser(request,userName)) {
  63. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "pvg_invalid")));
  64. return;
  65. }
  66. %>
  67. <%@ include file="archive_inc_menu_top.jsp"%>
  68. <%
  69. String strId = ParamUtil.get(request, "id");
  70. if (!StrUtil.isNumeric(strId)) {
  71. out.println(StrUtil.Alert_Back(SkinUtil.LoadString(request, "res.module.archive","warn_id_err_archive")));
  72. return;
  73. }
  74. int id = Integer.parseInt(strId);
  75. UserResumeDb urd = new UserResumeDb();
  76. urd = urd.getUserResumeDb(id);
  77. UserInfoDb uid = new UserInfoDb();
  78. uid = uid.getUserInfoDb(userName);
  79. String userRealName = uid.getUserRealName();
  80. %>
  81. <br>
  82. <table width="90%" border="0" align="center" cellPadding="2" cellSpacing="1" bgcolor="#FFFFFF" class="tableframe">
  83.   <form name="form1" action="archive_resume_do.jsp?op=modify" method="post">
  84.     <tbody>
  85.   <tr>
  86. <td colspan="3" class="right-title">修改履历信息</td>
  87.   </tr>
  88.       <tr>
  89.         <td width="80" noWrap>用&nbsp;&nbsp;户&nbsp;&nbsp;名:</td>
  90.         <td colSpan="2"><input maxLength="100" name="userRealName" size="20" readonly value="<%=userRealName%>"><input name="userName" type="hidden" value="<%=userName%>">
  91.           <input type="hidden" name="id" value="<%=id%>">
  92.         </td>
  93.       </tr>
  94.       <tr>
  95.         <td noWrap>单位名称:</td>
  96.         <td colSpan="2"><input maxLength="100" name="company" size="20" value="<%=urd.getCompany()%>"></td>
  97.       </tr>
  98.       <tr>
  99.         <td noWrap>担任工作:</td>
  100.         <td colSpan="2"><input maxLength="100" name="job" size="20" value="<%=urd.getJob()%>"></td>
  101.       </tr>
  102.       <tr>
  103.         <td noWrap>开始时间:</td>
  104.         <td colSpan="2"><input maxLength="100" name="beginDate" size="20" value="<%=DateUtil.format(urd.getBeginDate(),"yyyy-MM")%>"><img style="CURSOR: hand" onClick="SelectDate('beginDate', 'yyyy-MM')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26">  
  105.           日期格式形如 1999-1-2</td>
  106.       </tr>
  107.       <tr>
  108.         <td noWrap>结束时间:</td>
  109.         <td colSpan="2"><input maxLength="100" name="endDate" size="20" value="<%=DateUtil.format(urd.getEndDate(),"yyyy-MM")%>"><img style="CURSOR: hand" onClick="SelectDate('endDate', 'yyyy-MM')" src="../images/form/calendar.gif" align="absMiddle" border="0" width="26" height="26">  
  110.           日期格式形如 1999-1-2</td>
  111.       </tr>
  112.       <tr>
  113.         <td noWrap>离职原因:</td>
  114.         <td colSpan="2"><input maxLength="100" name="leaveReason" size="20" value="<%=urd.getLeaveReason()%>"></td>  
  115.       </tr>
  116.       <tr>
  117.         <td noWrap>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注:</td>
  118.         <td colSpan="2"><textarea name="remark" cols="45" rows="3" wrap="yes" class="BigINPUT" id="remark"><%=urd.getRemark()%></textarea></td>
  119.       </tr>
  120.       <tr>
  121.         <td noWrap align="middle" colSpan="3"><input value="保存" type="submit">&nbsp;&nbsp; 
  122.           <input type="reset" value="重填">&nbsp;&nbsp;</td>
  123.       </tr>
  124.     </tbody>
  125.   </FORM>
  126. </table>
  127. </body>
  128. </html>