sysPlanPushEdit.jsp 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. <%--
  2. time:2017-03-17 16:41:48
  3. desc:edit the SYS_PLAN_PUSH
  4. --%>
  5. <%@page language="java" pageEncoding="UTF-8"%>
  6. <%@include file="/commons/include/html_doctype.html"%>
  7. <html>
  8. <head>
  9. <title>编辑 SYS_PLAN_PUSH</title>
  10. <%@include file="/commons/include/form.jsp" %>
  11. <script type="text/javascript" src="${ctx}/js/hotent/CustomValid.js"></script>
  12. <script type="text/javascript">
  13. $(function() {
  14. $("a.save").click(function() {
  15. $("#sysPlanPushForm").attr("action","save.ht");
  16. $("#saveData").val(1);
  17. submitForm();
  18. });
  19. });
  20. //提交表单
  21. function submitForm(){
  22. var options={};
  23. if(showResponse){
  24. options.success=showResponse;
  25. }
  26. var frm=$('#sysPlanPushForm').form();
  27. frm.ajaxForm(options);
  28. if(frm.valid()){
  29. frm.submit();
  30. }
  31. }
  32. function showResponse(responseText) {
  33. var obj = new com.hotent.form.ResultMessage(responseText);
  34. if(!obj.isSuccess()){
  35. $.ligerDialog.err("提示信息"," SYS_PLAN_PUSH保存失败!",obj.getMessage());
  36. return;
  37. }
  38. $.ligerDialog.confirm(obj.getMessage()+",是否继续操作","提示信息", function(rtn) {
  39. if(rtn){
  40. window.location.href = window.location.href;
  41. }else{
  42. window.location.href = "${ctx}/platform/system/sysPlanPush/list.ht";
  43. }
  44. });
  45. }
  46. </script>
  47. </head>
  48. <body>
  49. <div class="panel">
  50. <div class="panel-top">
  51. <div class="tbar-title">
  52. <c:choose>
  53. <c:when test="${sysPlanPush.pushid !=null}">
  54. <span class="tbar-label"><span></span>编辑SYS_PLAN_PUSH</span>
  55. </c:when>
  56. <c:otherwise>
  57. <span class="tbar-label"><span></span>添加SYS_PLAN_PUSH</span>
  58. </c:otherwise>
  59. </c:choose>
  60. </div>
  61. <div class="panel-toolbar">
  62. <div class="toolBar">
  63. <div class="group"><a class="link save" id="dataFormSave" href="#"><span></span>保存</a></div>
  64. <div class="l-bar-separator"></div>
  65. <div class="group"><a class="link back" href="list.ht"><span></span>返回</a></div>
  66. </div>
  67. </div>
  68. </div>
  69. <div class="panel-body">
  70. <form id="sysPlanPushForm" method="post" action="save.ht">
  71. <table class="table-detail" cellpadding="0" cellspacing="0" border="0" type="main">
  72. <tr>
  73. <th width="20%">上级ID: </th>
  74. <td><input type="text" id="superiorid" name="superiorid" value="${sysPlanPush.superiorid}" class="inputText" validate="{required:false,number:true,maxIntLen:18}" /></td>
  75. </tr>
  76. <tr>
  77. <th width="20%">创建日志人ID: </th>
  78. <td><input type="text" id="createplanid" name="createplanid" value="${sysPlanPush.createplanid}" class="inputText" validate="{required:false,number:true,maxIntLen:18}" /></td>
  79. </tr>
  80. <tr>
  81. <th width="20%">PLANID: </th>
  82. <td><input type="text" id="planid" name="planid" value="${sysPlanPush.planid}" class="inputText" validate="{required:false,number:true,maxIntLen:18}" /></td>
  83. </tr>
  84. </table>
  85. <input type="hidden" name="pushid" value="${sysPlanPush.pushid}" />
  86. <input type="hidden" name="saveData" id="saveData" />
  87. <input type="hidden" name="executeType" value="start" />
  88. </form>
  89. </div>
  90. </div>
  91. </body>
  92. </html>