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

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.workplan.*"%>
  6. <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
  7. <html>
  8. <head>
  9. <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  10. <title>工作计划类型管理</title>
  11. <link href="../common.css" rel="stylesheet" type="text/css">
  12. <%@ include file="../inc/nocache.jsp"%>
  13. <script language="JavaScript" type="text/JavaScript">
  14. <!--
  15. //-->
  16. </script>
  17. <style type="text/css">
  18. <!--
  19. .style2 {font-size: 14px}
  20. -->
  21. </style>
  22. </head>
  23. <body background="" leftmargin="0" topmargin="5" marginwidth="0" marginheight="0">
  24. <jsp:useBean id="fchar" scope="page" class="cn.js.fan.util.StrUtil"/>
  25. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  26. <%
  27. String priv="workplan";
  28. if (!privilege.isUserPrivValid(request, priv)) {
  29. out.println(fchar.makeErrMsg("对不起,您不具有发起流程的权限!"));
  30. return;
  31. }
  32. %>
  33. <%@ include file="workplan_inc_menu_top.jsp"%>
  34. <%
  35. String op = ParamUtil.get(request, "op");
  36. if (op.equals("modify")) {
  37. WorkPlanTypeMgr wptm = new WorkPlanTypeMgr();
  38. boolean re = false;
  39. try {
  40. re = wptm.modify(request);
  41. }
  42. catch (ErrMsgException e) {
  43. out.print(StrUtil.Alert(e.getMessage()));
  44. }
  45. if (re)
  46. out.print(StrUtil.Alert("操作成功!"));
  47. }
  48. int id = ParamUtil.getInt(request, "id");
  49. WorkPlanTypeDb wptd = new WorkPlanTypeDb();
  50. wptd = wptd.getWorkPlanTypeDb(id);
  51. %>
  52. <br>
  53. <table width="494" height="89" border="0" align="center" cellpadding="0" cellspacing="0" class="tableframe">
  54.   <tr> 
  55.     <td height="23" valign="bottom" background="../images/top-right.gif" class="right-title">&nbsp;&nbsp;<span> 工作计划类型 </span></td>
  56.   </tr>
  57.   <tr> 
  58.     <td valign="top">
  59. <table width="100%"  border="0" cellspacing="0" cellpadding="0">
  60.   <form action="?op=modify" method=post> 
  61.       <tr>
  62.         <td height="69" align="center">
  63. 类型名称:
  64.   <input name="name" value="<%=wptd.getName()%>" maxlength="30">
  65.   <input name="id" value="<%=id%>" type=hidden>
  66.   &nbsp;
  67.   <input name="submit" type=submit value="修改类型"></td>
  68.       </tr>
  69.   </form>
  70.     </table></td>
  71.   </tr>
  72. </table>
  73. <br>
  74. <br>
  75. </body>
  76. </html>