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