editPathModel.jsp 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. <%@ page language="java" contentType="text/html;charset=GBK"
  2. pageEncoding="GBK"%>
  3. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  4. <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html;charset=GBK">
  8. <title>模版路径</title>
  9. <link href="${ pageContext.request.contextPath}/main.css" rel="stylesheet" type="text/css" />
  10. <link href="${pageContext.request.contextPath }/liger/lib/ligerUI/skins/${sessionScope.css}/css/ligerui-all.css" rel="stylesheet" type="text/css" />
  11. <script type="text/javascript" src="/shares/js/jquery-1.8.2.js"></script>
  12. <script type="text/javascript" src="/shares/js/yw/bpm/promptDefine.js"></script>>
  13. <script src="${pageContext.request.contextPath }/liger/lib/ligerUI/js/ligerui.all.js" type="text/javascript"></script>
  14. <script type="text/javascript" src="/shares/js/constant.js"></script>
  15. <script type="text/javascript" src="/shares/js/common.js"></script>
  16. <script type="text/javascript" src="/shares/js/yw/bpm/path/pathModel.js"></script>
  17. <script type="text/javascript" src="/shares/js/yw/bpm/oa.js"></script>
  18. <script type="text/javascript">
  19. $(document).ready(function(){
  20. var tmodelId = "${requestScope.path.tmodelId.tmodelId}";
  21. if(tmodelId != ""){
  22. $("#tmodelId").val(tmodelId);
  23. }
  24. var nextTmodelId = "${requestScope.path.nextTmodelId.tmodelId}";
  25. if(nextTmodelId != ""){
  26. $("#nextTmodelId").val(nextTmodelId);
  27. }
  28. var pathType = "${requestScope.path.pathType.value}";
  29. if(pathType != ""){
  30. $("#pathType").val(pathType);
  31. }
  32. // $("#tmodelId").ligerComboBox();
  33. // $("#nextTmodelId").ligerComboBox();
  34. // $("#pathType").ligerComboBox();
  35. });
  36. </script>
  37. </head>
  38. <body>
  39. <form action="PathModelAction.do" method="post" id="cform" name="cform">
  40. <div id="title" class="form-button" style="width: 100%;">
  41. <input type="button" onclick="save()" class="l-button" value="保存" />
  42. <input type="button" class="l-button" value="返回列表" onclick="location='${pageContext.request.contextPath }/PathModelAction.do?task=toListForConfig&modelId=' + $('#modelId').val();"/>
  43. </div>
  44. <div class="container-layout">
  45. <div class="forum-container">
  46. <center>
  47. <table class="l-table-edit line">
  48. <tr>
  49. <th colspan="2">修改模版路径</th>
  50. </tr>
  51. <tr>
  52. <td class="l-table-edit-text">路径ID<FONT COLOR="red">*</FONT>:</td>
  53. <td class="l-table-edit-td">
  54. ${requestScope.path.pathId }
  55. </td>
  56. </tr>
  57. <tr>
  58. <td class="l-table-edit-text">起始环节<FONT COLOR="red">*</FONT>:</td>
  59. <td class="l-table-edit-td">
  60. <select name="tmodelId" id="tmodelId" class="width_150" >
  61. <c:forEach items="${requestScope.tacheModels }" var="tacheModel">
  62. <c:if test="${tacheModel.se.value != '2' }">
  63. <option value="${tacheModel.tmodelId }">${tacheModel.tmodelName }</option>
  64. </c:if>
  65. </c:forEach>
  66. </select>
  67. </td>
  68. </tr>
  69. <tr>
  70. <td class="l-table-edit-text">目标环节<FONT COLOR="red">*</FONT>:</td>
  71. <td class="l-table-edit-td">
  72. <select name="nextTmodelId" id="nextTmodelId" class="width_150" >
  73. <c:forEach items="${requestScope.tacheModels }" var="tacheModel">
  74. <c:if test="${tacheModel.se.value != '1' }">
  75. <option value="${tacheModel.tmodelId }">${tacheModel.tmodelName }</option>
  76. </c:if>
  77. </c:forEach>
  78. </select>
  79. </td>
  80. </tr>
  81. <tr>
  82. <td class="l-table-edit-text">路径类型<FONT COLOR="red">*</FONT>:</td>
  83. <td class="l-table-edit-td">
  84. <select name="pathType" id="pathType" class="width_150" >
  85. <c:forEach items="${requestScope.pathTypes }" var="pathType">
  86. <option value="${pathType.value }">${pathType.dataName }</option>
  87. </c:forEach>
  88. </select>
  89. </td>
  90. </tr>
  91. </table>
  92. <input type="hidden" id="pathId" name="pathId" value="${requestScope.path.pathId }">
  93. <input type="hidden" id="modelId" name="modelId" value="${requestScope.path.modelId.modelId }">
  94. <input type="hidden" id="task" name="task" value="edit">
  95. </center>
  96. </div>
  97. </div>
  98. </form>
  99. <%@ include file="/include/message.jsp"%>
  100. </body>
  101. </html>