archive_rewards_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. <!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. UserRewardsHisDb urhd = new UserRewardsHisDb();
  83. urhd = urhd.getUserRewardsHisDb(id);
  84. UserInfoHisDb uihd = new UserInfoHisDb();
  85. String userRealName = uihd.getUserRealName(urhd.getUserName());
  86. UserDb ud = new UserDb();
  87. ud = ud.getUserDb(urhd.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="10%" noWrap class="TableContent">用户名称:</td>
  98.       <td width="90%" class="TableData"><%=userRealName%></td>
  99.     </tr>
  100.     <tr>
  101.       <td class="TableContent" noWrap>何时:</td>
  102.       <td class="TableData"><%=urhd.getMyDate()%></td>
  103.     </tr>
  104.     <tr>
  105.       <td class="TableContent" noWrap>何地:</td>
  106.       <td class="TableData"><%=urhd.getPlace()%></td>
  107.     </tr>
  108.     <tr>
  109.       <td class="TableContent" noWrap>何种奖励:</td>
  110.       <td class="TableData"><%=urhd.getRewards()%></td>
  111.     </tr>
  112.     <tr>
  113.       <td class="TableContent" noWrap>主要事迹:</td>
  114.       <td class="TableData"><%=urhd.getReason()%></td>
  115.     </tr>    
  116.     <tr>
  117.       <td class="TableContent" noWrap>备注:</td>
  118.       <td class="TableData"><%=urhd.getRemark()%></td>
  119.     </tr>
  120. <tr>
  121. <td class="TableContent" noWrap>操作人:</td>
  122. <td class="TableData"><%=operator%></td>
  123. </tr>
  124. <tr>
  125.   <td class="TableContent" noWrap>操作类型:</td>
  126.   <td class="TableData"><%=urhd.getOperateType()%></td>
  127. </tr>
  128. <tr>
  129.   <td class="TableContent" noWrap>操作时间:</td>
  130.   <td class="TableData"><%=urhd.getAddDate()%></td>
  131. </tr>
  132.   </tbody>
  133.   </form>
  134. </table>
  135. </body>
  136. </html>