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

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. //-->
  56. </script>
  57. </head>
  58. <body>
  59. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  60. <%
  61. String userName = ParamUtil.get(request,"userName");
  62. if (!privilege.isUserPrivValid(request, "archive.his")) {
  63. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "pvg_invalid")));
  64. return;
  65. }
  66. %>
  67. <%@ include file="archive_inc_his_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. UserFamilyHisDb ufhd = new UserFamilyHisDb();
  76. ufhd = ufhd.getUserFamilyHisDb(id);
  77. UserInfoHisDb uihd = new UserInfoHisDb();
  78. String userRealName = uihd.getUserRealName(ufhd.getUserName());
  79. UserDb ud = new UserDb();
  80. ud = ud.getUserDb(ufhd.getOperator());
  81. String operator = ud.getRealName();
  82. %>
  83. <br>
  84. <table width="90%" border="0" align="center" cellPadding="2" cellSpacing="1" bgcolor="#FFFFFF" class="tableframe">
  85.     <tbody>
  86. <tr>
  87. <td colspan="3" class="right-title">修改家庭信息</td>
  88. </tr>
  89. <tr>
  90. <td width="80" noWrap>用&nbsp;&nbsp;户&nbsp;&nbsp;名:</td>
  91. <td colSpan="2"><%=userRealName%>
  92. </td>
  93. </tr>
  94. <tr>
  95. <td noWrap>称&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;谓:</td>
  96. <td colSpan="2"><%=ufhd.getAppellation()%></td>
  97. </tr>
  98. <tr>
  99. <td noWrap>成员姓名:</td>
  100. <td colSpan="2"><%=ufhd.getName()%></td>
  101. </tr>
  102. <tr>
  103. <td noWrap>年&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;龄:</td>
  104. <td colSpan="2"><%=ufhd.getAge()%></td>
  105. </tr>
  106. <tr>
  107. <td noWrap>政治面貌:</td>
  108. <td colSpan="2"><%=ufhd.getPolitic()%></td>
  109. </tr>
  110. <tr>
  111. <td noWrap>工作单位:</td>
  112. <td colSpan="2"><%=ufhd.getUnit()%></td>  
  113. </tr>
  114. <tr>
  115. <td noWrap>联系地址:</td>
  116. <td colSpan="2"><%=ufhd.getAddress()%></td>
  117. </tr>
  118. <tr>
  119. <td noWrap>联系电话:</td>
  120. <td colSpan="2"><%=ufhd.getPhone()%></td>
  121. </tr>
  122. <tr>
  123. <td noWrap>备&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;注:</td>
  124. <td colSpan="2"><%=ufhd.getRemark()%></td>
  125. </tr>
  126. <tr>
  127. <td class="TableContent" noWrap>操作人:</td>
  128. <td class="TableData"><%=operator%></td>
  129. </tr>
  130. <tr>
  131.   <td class="TableContent" noWrap>操作类型:</td>
  132.   <td class="TableData"><%=ufhd.getOperateType()%></td>
  133. </tr>
  134. <tr>
  135.   <td class="TableContent" noWrap>操作时间:</td>
  136.   <td class="TableData"><%=ufhd.getAddDate()%></td>
  137. </tr>
  138.   </tbody>
  139. </table>
  140. </body>
  141. </html>