warningList.jsp 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. <%@ page contentType="text/html;charset=UTF-8"%>
  2. <%@ include file="/WEB-INF/include/taglibs.jsp"%>
  3. <!DOCTYPE html>
  4. <html>
  5. <head>
  6. <title>用户管理</title>
  7. <%@ include file="/WEB-INF/include/common.jsp"%>
  8. <script type="text/javascript">
  9. var functionId = '${functionId}';
  10. $(function(){
  11. var buttonData = '${requestScope.buttons}';
  12. //实例化查询表单,当前页面只能实例化一次
  13. var searchForm = $("#searchForm").searchForm();
  14. //实例化实体List
  15. $.WarningList = new $.AbstractList( {
  16. entity:"Warning",
  17. autoLoad:false,
  18. searchForm:searchForm
  19. }) ;
  20. if( !$.isEmpty(buttonData )){
  21. //构建权限按钮
  22. var jsonButtons = JSON.parse(buttonData);
  23. $.buildToolbar( $("#toolbar"),jsonButtons );
  24. };
  25. $("#btnSearch").bind("click",$.proxy( $.WarningList.quickSearch, $.WarningList ) );
  26. //客户
  27. $('#customerId').combogrid({
  28. url : WEBROOT + "/loadData.action?entity=customer",
  29. idField : 'customerId',
  30. textField : 'customerName',
  31. delay : 500,
  32. mode : 'remote',
  33. showHeader : false,
  34. striped : true,
  35. columns : [[{field : 'customerName', width : '147'}]],
  36. onSelectAfter:function(index, record){
  37. },
  38. onBeforeLoad : function(param) {
  39. // 此设置使控件不会自动加载数据 这里不能使用this
  40. if (!$("#customerId").combogrid('getText')) {
  41. return false;
  42. } else {
  43. return true;
  44. }
  45. },
  46. onShowPanel : function() {
  47. // 在第一次触发下拉框事件是加载数据
  48. if (!$(this).combogrid('getText')) {
  49. $(this).combogrid({
  50. onBeforeLoad : function(param) {
  51. return true;
  52. }
  53. });
  54. }
  55. }
  56. });
  57. });
  58. </script>
  59. </head>
  60. <body style="overflow-y:hidden" fit="true" scroll="no">
  61. <div id="tabs" class="easyui-tabs" fit="true">
  62. <div title="查询">
  63. <form id="searchForm" action="#" method="post">
  64. <table width="100%">
  65. <tr>
  66. <td class="title">
  67. 预警类型:
  68. </td>
  69. <td>
  70. <s:select list="#request.warningTypeList" id="warningType" name="warningType" headerKey="" headerValue="" listKey="id" listValue="dictionaryName" myType="easyui-combobox" cssStyle="width: 155px" theme="simple" condition ='"operator":"like"'></s:select>
  71. </td>
  72. <td class="title">
  73. 通知方:
  74. </td>
  75. <td>
  76. <s:select list="#request.warningInformantList" id="warningInformant" name="warningInformant" headerKey="" headerValue="" listKey="id" listValue="dictionaryName" myType="easyui-combobox" cssStyle="width: 155px" theme="simple" condition ='"operator":"like"'></s:select>
  77. </td>
  78. <td class="title">
  79. 指定EMAIL:
  80. </td>
  81. <td>
  82. <input class="easyui-validatebox" type="text" style="vertical-align:middle" name="toEmail" condition ='"operator":"like"' />
  83. </td>
  84. </tr>
  85. <tr>
  86. <td align="right" colspan="6">
  87. <a id="btnSearch" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'">查询</a>
  88. </td>
  89. </tr>
  90. </table>
  91. </form>
  92. <div id="toolbar" class="toolbar"></div>
  93. <table id="maingrid" data-options="fitColumns:true">
  94. <thead>
  95. <tr>
  96. <th data-options="field:'id',hidden:true">主键</th>
  97. <th data-options="field:'ck',checkbox:true">编码</th>
  98. <th data-options="field:'warningType',align:'center',width:100">预警类型</th>
  99. <th data-options="field:'warningInformant',align:'center',width:100">通知方</th>
  100. <th data-options="field:'toEmail',align:'center',width:100">指定EMAIL</th>
  101. <th data-options="field:'isOpen',align:'center',width:100">是否启用</th>
  102. <th data-options="field:'warehouseName',align:'center',width:100">仓库名称</th>
  103. <th data-options="field:'customerName',align:'center',width:100">货主名称</th>
  104. </tr>
  105. </thead>
  106. </table>
  107. </div>
  108. <div title="内容">
  109. <iframe id="innerFrame" name="innerTab" scrolling="auto" frameborder="0" style="width:100%;height:99.4%;border:none;"></iframe>
  110. </div>
  111. </div>
  112. </body>
  113. </html>