123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- <%@ page contentType="text/html;charset=UTF-8"%>
- <%@ include file="/WEB-INF/include/taglibs.jsp"%>
- <!DOCTYPE html>
- <html>
- <head>
- <title>用户管理</title>
- <%@ include file="/WEB-INF/include/common.jsp"%>
- <script type="text/javascript">
- var functionId = '${functionId}';
-
- $(function(){
- var buttonData = '${requestScope.buttons}';
- //实例化查询表单,当前页面只能实例化一次
- var searchForm = $("#searchForm").searchForm();
- //实例化实体List
- $.WarningList = new $.AbstractList( {
- entity:"Warning",
- autoLoad:false,
- searchForm:searchForm
- }) ;
-
- if( !$.isEmpty(buttonData )){
- //构建权限按钮
- var jsonButtons = JSON.parse(buttonData);
- $.buildToolbar( $("#toolbar"),jsonButtons );
- };
-
- $("#btnSearch").bind("click",$.proxy( $.WarningList.quickSearch, $.WarningList ) );
-
- //客户
- $('#customerId').combogrid({
- url : WEBROOT + "/loadData.action?entity=customer",
- idField : 'customerId',
- textField : 'customerName',
- delay : 500,
- mode : 'remote',
- showHeader : false,
- striped : true,
- columns : [[{field : 'customerName', width : '147'}]],
- onSelectAfter:function(index, record){
- },
- onBeforeLoad : function(param) {
- // 此设置使控件不会自动加载数据 这里不能使用this
- if (!$("#customerId").combogrid('getText')) {
- return false;
- } else {
- return true;
- }
- },
- onShowPanel : function() {
- // 在第一次触发下拉框事件是加载数据
- if (!$(this).combogrid('getText')) {
- $(this).combogrid({
- onBeforeLoad : function(param) {
- return true;
- }
- });
- }
- }
- });
-
-
- });
- </script>
- </head>
- <body style="overflow-y:hidden" fit="true" scroll="no">
- <div id="tabs" class="easyui-tabs" fit="true">
- <div title="查询">
- <form id="searchForm" action="#" method="post">
- <table width="100%">
- <tr>
- <td class="title">
- 预警类型:
- </td>
- <td>
- <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>
- </td>
- <td class="title">
- 通知方:
- </td>
- <td>
- <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>
- </td>
- <td class="title">
- 指定EMAIL:
- </td>
- <td>
- <input class="easyui-validatebox" type="text" style="vertical-align:middle" name="toEmail" condition ='"operator":"like"' />
- </td>
- </tr>
-
- <tr>
- <td align="right" colspan="6">
- <a id="btnSearch" href="#" class="easyui-linkbutton" data-options="iconCls:'icon-search'">查询</a>
- </td>
- </tr>
- </table>
- </form>
-
-
- <div id="toolbar" class="toolbar"></div>
-
- <table id="maingrid" data-options="fitColumns:true">
- <thead>
-
-
- <tr>
- <th data-options="field:'id',hidden:true">主键</th>
- <th data-options="field:'ck',checkbox:true">编码</th>
- <th data-options="field:'warningType',align:'center',width:100">预警类型</th>
- <th data-options="field:'warningInformant',align:'center',width:100">通知方</th>
- <th data-options="field:'toEmail',align:'center',width:100">指定EMAIL</th>
- <th data-options="field:'isOpen',align:'center',width:100">是否启用</th>
- <th data-options="field:'warehouseName',align:'center',width:100">仓库名称</th>
- <th data-options="field:'customerName',align:'center',width:100">货主名称</th>
- </tr>
- </thead>
- </table>
-
- </div>
-
- <div title="内容">
- <iframe id="innerFrame" name="innerTab" scrolling="auto" frameborder="0" style="width:100%;height:99.4%;border:none;"></iframe>
- </div>
- </div>
- </body>
- </html>
|