editFlowTache.jsp 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. <%@ page language="java" contentType="text/html;charset=GBK" pageEncoding="GBK"%>
  2. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  3. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  4. <html>
  5. <head>
  6. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  7. <title>编辑流程环节配置</title>
  8. <link href="${ pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  9. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  10. <script src="${pageContext.request.contextPath }/liger/lib/jquery/jquery-1.3.2.min.js" type="text/javascript"></script>
  11. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  12. <script type="text/javascript" src="/shares/js/yw/erp/orderFormSetting.js"></script>
  13. <script type="text/javascript" src="/shares/js/constant.js"></script>
  14. <script type="text/javascript" src="/shares/js/common.js"></script>
  15. <script type="text/javascript">
  16. $(function (){
  17. $("input[type='text']:first").focus();
  18. });
  19. function saveFlowTache(){
  20. if(checkForm()){
  21. $("#btnSaveTache").attr({"disabled":"disabled"});
  22. $("#flowTache").submit();
  23. }
  24. }
  25. function checkForm() {
  26. var rs = $.validate({
  27. name : "tache_name",
  28. model : [ {
  29. type : "require",
  30. msg : "流程配置环节!"
  31. }]
  32. });
  33. rs = $.validate({
  34. name : "tache_num",
  35. model : [ {
  36. type : "require",
  37. msg : "流程当前环节不能为空!"
  38. },{
  39. type : "isNumber",
  40. msg : "请输入数字!"
  41. }]
  42. }) && rs;
  43. if (rs) {
  44. return true;
  45. }
  46. return false;
  47. }
  48. </script>
  49. </head>
  50. <body>
  51. <form id="flowTache" action="erpFlowAction.do" method="post">
  52. <div id="title" class="form-button">
  53. <input onclick="saveFlowTache();" type="button" value="保存" class="l-button" id="btnSaveTache">
  54. <input onclick="closeWindow();" type="button" value="关闭" class="l-button">
  55. </div>
  56. <div class="container-layout">
  57. <div class="forum-container">
  58. <center>
  59. <table class="l-table-edit line">
  60. <tr>
  61. <th colspan="2">编辑流程环节配置</th>
  62. </tr>
  63. <tr>
  64. <td class="l-table-edit-text" style="width:15%">流程模板名称:</td>
  65. <td class="l-table-edit-td" style="width:35%">
  66. <input type="text" id="model_name" name="model_name" class="notFirstFocus" value="${requestScope.conf_name}" readonly="readonly"/>
  67. <input type="hidden" id="tache_id" name="tache_id" value="${erpFlowTache.tache_id }"/>
  68. <input type="hidden" id="model_id" name="model_id" value="${requestScope.conf_id}"/>
  69. </td>
  70. </tr>
  71. <tr>
  72. <td class="l-table-edit-text" style="width:15%">流程当前环节:</td>
  73. <td class="l-table-edit-td" style="width:35%">
  74. <input type="text" id="tache_num" name="tache_num" value="${erpFlowTache.tache_num}"/>
  75. </td>
  76. </tr>
  77. <tr>
  78. <td class="l-table-edit-text" style="width:15%">流程环节配置名称:</td>
  79. <td class="l-table-edit-td" style="width:35%">
  80. <input type="text" id="tache_name" name="tache_name" value="${erpFlowTache.tache_name }"/>
  81. </td>
  82. </tr>
  83. </table>
  84. <input type="hidden" id="task" name="task" value="editTache">
  85. <input type="hidden" id="tabid" name="tabid" value="${param.tabid }">
  86. </center>
  87. </div>
  88. </div>
  89. </form>
  90. <%@ include file="/include/message.jsp"%>
  91. </body>
  92. </html>