archive_basicdata_modify.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 = "java.util.Enumeration"%>
  7. <%@ page import = "java.util.Iterator"%>
  8. <%@ page import = "org.jdom.*"%>
  9. <%@ page import = "com.redmoon.oa.BasicDataMgr"%>
  10. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  11. <html xmlns="http://www.w3.org/1999/xhtml">
  12. <head>
  13. <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  14. <link href="../common.css" rel="stylesheet" type="text/css">
  15. <title>基础数据维护</title>
  16. <style type="text/css">
  17. <!--
  18. .style2 {font-size: 14px}
  19. .STYLE3 {color: #FFFFFF}
  20. .STYLE4 {
  21. color: #000000;
  22. font-weight: bold;
  23. }
  24. .STYLE5 {color: #FF0000}
  25. .STYLE6 {color: #000000}
  26. -->
  27. </style>
  28. </head>
  29. <body> 
  30. <jsp:useBean id="privilege" scope="page" class="com.redmoon.oa.pvg.Privilege"/>
  31. <%
  32. if (!privilege.isUserPrivValid(request, "archive.basicdata")) {
  33. out.print(StrUtil.Alert_Back(SkinUtil.LoadString(request, "pvg_invalid")));
  34. return;
  35. }
  36. String code = ParamUtil.get(request, "code");
  37. String name = ParamUtil.get(request, "name");
  38. String op = ParamUtil.get(request,"op");
  39. BasicDataMgr bdm = new BasicDataMgr("archive");
  40. String option = bdm.getOptionsStr(code);
  41. if(op.equals("addOption")){
  42. %>
  43.  <br>
  44.  <form id="form1" name="form1" action="archive_basicdata_do.jsp?op=addOption" method=post>
  45. <table width="541" height="50" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tableframe">
  46. <tr>
  47.   <td colspan="5" height="25" class="right-title"><span> &nbsp;添加基础数据字段</span></td>
  48. </tr>
  49. <tr>
  50.   <td width="91" height="25" align="center"><%=name%></td>
  51. <td width="77" align="left">
  52.   <select name="<%=code%>">
  53.    <%=option%>
  54.   </select>
  55. </td>
  56.     <td width="80" align="center">添加数据</td>
  57.     <td width="164" align="center"><input type="text" name="optionValue"/></td>
  58.     <td width="127" align="center"><input type="hidden" name="itemCode" value="<%=code%>">
  59. <input type="submit" name="button1" value="添加" class="button1"/></td>
  60. </tr>
  61. </table>
  62.   </form>
  63. <%
  64.    }else{
  65.      if(op.equals("delOption")){
  66. %>
  67.   <br>
  68.   <form id="form1" name="form1" action="archive_basicdata_do.jsp?op=delOption" method=post>
  69. <table width="541" height="50" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tableframe">
  70. <tr>
  71.   <td colspan="3" height="25" class="right-title"><span> &nbsp;删除基础数据字段</span></td>
  72. </tr>
  73. <tr>
  74.   <td width="189" height="25" align="center"><%=name%></td>
  75. <td width="138" align="left">
  76.   <select name="<%=code%>">
  77.    <%=option%>
  78.   </select> </td>
  79.     <td width="212" align="left"><input type="hidden" name="itemCode" value="<%=code%>">
  80. <input type="submit" name="button1" value="删除" class="button1"/></td>
  81. </tr>
  82. </table>
  83. </form>
  84. <%
  85.      }else{
  86. %>
  87.   <br>
  88.   <form id="form1" name="form1" action="archive_basicdata_do.jsp?op=setDefaultValue" method=post>
  89. <table width="541" height="50" border="0" align="center" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="tableframe">
  90. <tr>
  91.   <td colspan="3" height="25" class="right-title"><span> &nbsp;设置基础数据默认字段</span></td>
  92. </tr>
  93. <tr>
  94.   <td width="189" height="25" align="center"><%=name%></td>
  95. <td width="148" align="left">
  96.   <select name="<%=code%>">
  97.    <%=option%>
  98.   </select> </td>
  99.     <td width="202" align="left"><input type="hidden" name="itemCode" value="<%=code%>">
  100. <input type="submit" name="button1" value="设置" class="button1"/></td>
  101. </tr>
  102. </table>
  103. </form>
  104. <% 
  105.      }
  106.    }
  107. %>
  108. </body>
  109. </html>