sysHysglEdit.jsp 3.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107
  1. <%--
  2. time:2017-12-07 09:14:11
  3. desc:edit the SYS_HYSGL
  4. --%>
  5. <%@page language="java" pageEncoding="UTF-8"%>
  6. <%@include file="/commons/include/html_doctype.html"%>
  7. <html>
  8. <head>
  9. <title>编辑 会议室</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. $("#sysHysglForm").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=$('#sysHysglForm').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("提示信息"," 会议室保存失败!",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/hysgl/sysHysgl/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="${sysHysgl.id !=null}">
  54. <span class="tbar-label"><span></span>编辑会议室</span>
  55. </c:when>
  56. <c:otherwise>
  57. <span class="tbar-label"><span></span>添加会议室</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="sysHysglForm" method="post" action="save.ht">
  71. <table class="table-detail" cellpadding="0" cellspacing="0" border="0" type="main">
  72. <tr>
  73. <th width="20%">会议室名称:<span class="required red">*</span> </th>
  74. <td><input type="text" style="width: 50%" id="conferenceroom" name="conferenceroom" value="${sysHysgl.conferenceroom}" class="inputText" validate="{required:true,maxlength:32,chNum:true}" /></td>
  75. </tr>
  76. <tr>
  77. <th width="20%">会议室位置:<span class="required red">*</span> </th>
  78. <td><input type="text" style="width: 50%" id="location" name="location" value="${sysHysgl.location}" class="inputText" validate="{required:true,maxlength:32,chNum:true}" /></td>
  79. </tr>
  80. <tr>
  81. <th width="20%">是否有投影:<span class="required red">*</span> </th>
  82. <td>
  83. <select name="isprojection" id="isprojection" class="inputText" style="width: 50px;" validate="{required:true,maxlength:2}">
  84. <option value="1" <c:if test="${sysHysgl.isprojection eq 1}">selected="selected"</c:if>>是</option>
  85. <option value="0" <c:if test="${sysHysgl.isprojection eq 0}">selected="selected"</c:if>>否</option>
  86. </select>
  87. </td>
  88. </tr>
  89. <tr>
  90. <th width="20%">负责人:<span class="required red">*</span> </th>
  91. <td><input type="text" style="width: 50%" id="contactperson" name="contactperson" value="${sysHysgl.contactperson}" class="inputText" validate="{required:true,maxlength:8,chinese:true}" /></td>
  92. </tr>
  93. <tr>
  94. <th width="20%">负责人手机号:<span class="required red">*</span> </th>
  95. <td><input type="text" style="width: 50%" id="contactnumber" name="contactnumber" value="${sysHysgl.contactnumber}" class="inputText" validate="{required:true,maxlength:11,phone:true}" /></td>
  96. </tr>
  97. </table>
  98. <input type="hidden" name="id" value="${sysHysgl.id}" />
  99. <input type="hidden" name="saveData" id="saveData" />
  100. <input type="hidden" name="executeType" value="start" />
  101. </form>
  102. </div>
  103. </div>
  104. </body>
  105. </html>