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

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.basic.*"%>
  6. <%@ page import="com.redmoon.oa.person.*"%>
  7. <%@ page import="com.redmoon.oa.dept.*"%>
  8. <%@ page import = "cn.js.fan.web.*"%>
  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. <%@ include file="../inc/nocache.jsp"%>
  16. <script language="JavaScript" type="text/JavaScript">
  17. <!--
  18. //-->
  19. </script>
  20. <style type="text/css">
  21. <!--
  22. .style2 {font-size: 14px}
  23. .STYLE5 {color: #FF0000}
  24. .STYLE6 {color: #000000}
  25. -->
  26. </style>
  27. </head>
  28. <%
  29. String op = ParamUtil.get(request, "op");
  30. if (op.equals("modify")) {
  31. RankMgr rm = new RankMgr();
  32. boolean re = false;
  33. try {
  34.   re = rm.modify(request);
  35. }
  36. catch (ErrMsgException e) {
  37. out.print(StrUtil.Alert(e.getMessage()));
  38. }
  39. if (re) {  
  40.      out.print(StrUtil.Alert("操作成功"));
  41. //out.print(StrUtil.Alert_Redirect("操作成功!", "officeequip_type_list.jsp"));
  42. %>
  43.     <script>
  44. window.opener.location.reload();
  45. window.close();
  46. </script>
  47. <% }
  48. }%>
  49. <script>
  50. function setPerson(deptCode, deptName, user, userRealName)
  51. {
  52. form1.userRealName.value = userRealName;
  53. form1.userName.value = user;
  54. }
  55. </script>
  56. <body background="" leftmargin="0" topmargin="5" marginwidth="0" marginheight="0">
  57. <jsp:useBean id="fchar" scope="page" class="cn.js.fan.util.StrUtil"/>
  58. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  59. <%
  60. if (!privilege.isUserPrivValid(request, com.redmoon.oa.pvg.PrivDb.PRIV_ADMIN)) {
  61. out.println(cn.js.fan.web.SkinUtil.makeErrMsg(request, cn.js.fan.web.SkinUtil.LoadString(request, "pvg_invalid")));
  62. return;
  63. }
  64. %>
  65. <%
  66.     String code = ParamUtil.get(request, "code");
  67. RankDb adb = new RankDb();
  68. adb = adb.getRankDb(code);
  69. %>
  70. <TABLE border="0" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC" bgcolor="#FFFFFF">
  71.    <form action="?op=modify" method="post" name="form1" id="form1" onSubmit="">
  72.     <TBODY>
  73.       <TR>
  74.         <TD colspan="4" align="left" class="right-title">&nbsp;职级修改  </TD>
  75.       </TR>
  76.       <TR>
  77.         <TD align="right">名&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;称:</TD>
  78.         <td width="272"><input  name="userName"  id="userName" value="<%=adb.getName()%>" size="20" >
  79.         <input type="hidden" name="code" value="<%=adb.getCode()%>"></td>
  80.       </TR>
  81.       <TR>
  82.         <TD height="26" align="right">序&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;号:</TD>
  83.         <td><input name="orders" id="orders" size="10" value="<%=adb.getOrders()%>"></td>
  84.       </TR>
  85.       
  86.       <TR>
  87.         <TD colspan="4" align="center"><input name="button" type="submit" class="button1"  value="修改职级"></TD>
  88.       </TR>
  89.     </TBODY>
  90.   </FORM>
  91. </TABLE>
  92. </body>
  93. </html>