archive_duty_his_show.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 = "com.redmoon.oa.archive.*"%>
  6. <%@ page import = "com.redmoon.oa.person.*"%>
  7. <%@ page import = "cn.js.fan.web.*"%>
  8. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  9. <html>
  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. <script language="JavaScript" type="text/JavaScript">
  15. <!--
  16. function findObj(theObj, theDoc)
  17. {
  18.   var p, i, foundObj;
  19.   
  20.   if(!theDoc) theDoc = document;
  21.   if( (p = theObj.indexOf("?")) > 0 && parent.frames.length)
  22.   {
  23.     theDoc = parent.frames[theObj.substring(p+1)].document;
  24.     theObj = theObj.substring(0,p);
  25.   }
  26.   if(!(foundObj = theDoc[theObj]) && theDoc.all) foundObj = theDoc.all[theObj];
  27.   for (i=0; !foundObj && i < theDoc.forms.length; i++) 
  28.     foundObj = theDoc.forms[i][theObj];
  29.   for(i=0; !foundObj && theDoc.layers && i < theDoc.layers.length; i++) 
  30.     foundObj = findObj(theObj,theDoc.layers[i].document);
  31.   if(!foundObj && document.getElementById) foundObj = document.getElementById(theObj);
  32.   
  33.   return foundObj;
  34. }
  35. var GetDate=""; 
  36. function SelectDate(ObjName,FormatDate){
  37. var PostAtt = new Array;
  38. PostAtt[0]= FormatDate;
  39. PostAtt[1]= findObj(ObjName);
  40. GetDate = showModalDialog("../util/calendar/calendar.htm", PostAtt ,"dialogWidth:286px;dialogHeight:221px;status:no;help:no;");
  41. }
  42. function SetDate()
  43. findObj(ObjName).value = GetDate; 
  44. }
  45. function chkContent(){
  46.    if(form1.userName.value == ""){
  47.      alert("用户名不能为空!")
  48.  form1.userName.focus();
  49.  return false
  50.    }
  51. }
  52. function setPerson(deptCode, deptName, user, userRealName)
  53. {
  54. form1.userName.value = user;
  55. form1.userRealName.value = userRealName;
  56. }
  57. //-->
  58. </script>
  59. <style type="text/css">
  60. <!--
  61. .style2 {font-size: 14px}
  62. -->
  63. </style>
  64. </head>
  65. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  66. <%
  67. String userName = ParamUtil.get(request,"userName");
  68. if (!privilege.isUserPrivValid(request, "archive.his")) {
  69. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "pvg_invalid")));
  70. return;
  71. }
  72. %>
  73. <body background="" leftmargin="0" topmargin="5" marginwidth="0" marginheight="0">
  74. <%@ include file="archive_inc_his_menu_top.jsp"%>
  75. <%
  76. String strId = ParamUtil.get(request, "id");
  77. if (!StrUtil.isNumeric(strId)) {
  78. out.println(StrUtil.Alert_Back(SkinUtil.LoadString(request, "res.module.archive","warn_id_err_archive")));
  79. return;
  80. }
  81. int id = Integer.parseInt(strId);
  82. UserDutyHisDb udhd = new UserDutyHisDb();
  83. udhd = udhd.getUserDutyHisDb(id);
  84. UserInfoHisDb uihd = new UserInfoHisDb();
  85. String userRealName = uihd.getUserRealName(udhd.getUserName());
  86. UserDb ud = new UserDb();
  87. ud = ud.getUserDb(udhd.getOperator());
  88. String operator = ud.getRealName();
  89. %>
  90. <br>
  91. <table class="main" cellSpacing="1" cellPadding="2" width="600" align="center" border="0">
  92.   <tbody>
  93.     <tr>
  94.       <td colspan="2" noWrap class="right-title">修改任免信息</td>
  95.     </tr>
  96.     <tr>
  97.   <td width="80" noWrap>用&nbsp;&nbsp;户&nbsp;&nbsp;名:</td>
  98.   <td class="TableData"><%=userRealName%>
  99. </td>
  100.     </tr>
  101.     <tr>
  102.       <td class="TableContent" noWrap>任免情况:</td>
  103.       <td class="TableData"><%=udhd.getInfo()%></td>
  104.     </tr>
  105.     <tr>
  106.       <td class="TableContent" noWrap>拟任职务:</td>
  107.       <td class="TableData"><%=udhd.getDuty()%></td>
  108.     </tr>
  109.     <tr>
  110.       <td class="TableContent" noWrap>拟免职务:</td>
  111.       <td class="TableData"><%=udhd.getDeposal()%></td>
  112.     </tr>
  113.     <tr>
  114.       <td class="TableContent" noWrap>任免时间:</td>
  115.       <td class="TableData"><%=udhd.getMyDate()%></td>
  116.     </tr>
  117.     <tr>
  118.       <td class="TableContent" noWrap>任免文号:</td>
  119.       <td class="TableData"><%=udhd.getFileNumber()%></td>
  120.     </tr>    
  121.     <tr>
  122.       <td class="TableContent" noWrap>备注:</td>
  123.       <td class="TableData"><%=udhd.getRemark()%></td>
  124.     </tr>
  125. <tr>
  126.       <td class="TableContent" noWrap>操作人:</td>
  127.       <td class="TableData"><%=operator%></td>
  128.     </tr>
  129. <tr>
  130.       <td class="TableContent" noWrap>操作类型:</td>
  131.       <td class="TableData"><%=udhd.getOperateType()%></td>
  132.     </tr>
  133. <tr>
  134.       <td class="TableContent" noWrap>操作时间:</td>
  135.       <td class="TableData"><%=udhd.getAddDate()%></td>
  136.     </tr>
  137.   </tbody>
  138. </table>
  139. </body>
  140. </html>