sysPopupRemindEdit.jsp 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. <%--
  2. time:2015-03-18 11:36:25
  3. desc:edit the sys_popup_remind
  4. --%>
  5. <%@page language="java" pageEncoding="UTF-8"%>
  6. <%@include file="/commons/include/html_doctype.html"%>
  7. <%@ taglib prefix="ht" tagdir="/WEB-INF/tags/wf"%>
  8. <html>
  9. <head>
  10. <title>编辑 sys_popup_remind</title>
  11. <%@include file="/commons/include/form.jsp" %>
  12. <script type="text/javascript" src="${ctx}/js/hotent/platform/form/AttachMent.js"></script>
  13. <script type="text/javascript" src="${ctx}/js/hotent/platform/system/FlexUploadDialog.js" ></script>
  14. <script type="text/javascript" src="${ctx}/js/hotent/CustomValid.js"></script>
  15. <script type="text/javascript" src="${ctx}/js/angular/angular.min.js"></script>
  16. <script type="text/javascript" src="${ctx}/js/angular/service/baseServices.js"></script>
  17. <script type="text/javascript" src="${ctx}/js/angular/service/arrayToolService.js"></script>
  18. <script type="text/javascript" src="${ctx}/js/angular/service/commonListService.js"></script>
  19. <script type="text/javascript" src="${ctx}/js/hotent/platform/system/sysDataSource/SysDataSourceService.js"></script>
  20. <script type="text/javascript" src="${ctx}/js/hotent/platform/system/sysPopupRemind/SysPopupRemindService.js"></script>
  21. <script type="text/javascript" src="${ctx}/js/hotent/platform/system/sysPopupRemind/EditController.js"></script>
  22. <script type="text/javascript" src="${ctx}/js/util/sqlUtil.js"></script>
  23. <script type="text/javascript">
  24. var id="${param.id}";
  25. </script>
  26. </head>
  27. <body ng-app="app" ng-controller="EditController">
  28. <form id="frmSubmit">
  29. <div class="panel">
  30. <div class="panel-top">
  31. <div class="tbar-title">
  32. <c:choose>
  33. <c:when test="${param.id !=null}">
  34. <span class="tbar-label">编辑sys_popup_remind</span>
  35. </c:when>
  36. <c:otherwise>
  37. <span class="tbar-label">添加sys_popup_remind</span>
  38. </c:otherwise>
  39. </c:choose>
  40. </div>
  41. <div class="panel-toolbar">
  42. <div class="toolBar">
  43. <div class="group"><a class="link save" ng-click="save()"><span></span>保存</a></div>
  44. <div class="group"><a class="link back" href="list.ht"><span></span>返回</a></div>
  45. </div>
  46. </div>
  47. </div>
  48. <div class="panel-body">
  49. <table class="table-detail" cellpadding="0" cellspacing="0" border="0" type="main">
  50. <tr>
  51. <th width="20%">主题: </th>
  52. <td>
  53. <input type="text" style="width: 200px" validate="{required:false,maxlength:600}" class="inputText" ng-model="prop.subject"/>
  54. </td>
  55. </tr>
  56. <tr>
  57. <th width="20%">跳转URL: </th>
  58. <td>
  59. <input type="text" style="width: 300px" ng-model="prop.url" validate="{required:false,maxlength:600}" class="inputText"/>
  60. 当用户点击提醒信息时的跳转地址
  61. </td>
  62. </tr>
  63. <tr>
  64. <th width="20%">排序大小: </th>
  65. <td><input type="text" ng-model="prop.sn" validate="{required:false,number:true,maxIntLen:18 }" class="inputText"/></td>
  66. </tr>
  67. <tr>
  68. <th width="20%">是否启用: </th>
  69. <td>
  70. <select class="inputText" ng-model="prop.enabled" style="width: 70px" ng-options="m.value as m.key for m in CommonList.yesOrNoList2">
  71. </select>
  72. </td>
  73. </tr>
  74. <tr>
  75. <th width="20%">数据源别名: </th>
  76. <td><select ng-model="prop.dsalias" ng-options="m.alias as m.name for m in allSysDS"/></td>
  77. </tr>
  78. <tr>
  79. <th width="20%">弹框方式: </th>
  80. <td>
  81. <input type="radio" name="popupType" value="tab" ng-model="prop.popupType">tab
  82. <input type="radio" name="popupType" value="newWin" ng-model="prop.popupType">新窗口
  83. <input type="radio" name="popupType" value="dialog" ng-model="prop.popupType">对话框
  84. <span ng-if="prop.popupType=='dialog'">(宽:<input type="text" style="width: 30px" ng-model="prop.reserve.dialogWidth"/>px</span>
  85. <span ng-if="prop.popupType=='dialog'">高:<input type="text" style="width: 30px" ng-model="prop.reserve.dialogHeight"/>px)</span>
  86. </td>
  87. </tr>
  88. <tr>
  89. <th width="20%">SQL语句: </th>
  90. <td>
  91. <div>常用数据:<input type="button" value="当前用户ID" ng-click="appendSql('{curUserId}')"/></div>
  92. <textarea id="sqlText" ng-model="prop.sql" rows="12" validate="{required:true}"></textarea>
  93. 注意:此处的SQL语句要满足只返回一条记录且是number类型的场合
  94. <div>
  95. <a class="button" ng-click="checkSqlValidity()"><span class="icon valid"></span><span>验证查询语句</span></a>
  96. </div>
  97. </td>
  98. </tr>
  99. <tr>
  100. <th width="20%">描叙: </th>
  101. <td>
  102. <textarea ng-model="prop.desc" rows="3"></textarea>
  103. 注意:{count}为固定写法,表示SQL语句查询结果的记录总数
  104. </td>
  105. </tr>
  106. </table>
  107. </div>
  108. </div>
  109. </form>
  110. </body>
  111. </html>