123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158 |
- <%@ page contentType="text/html;charset=UTF-8"%>
- <%@ include file="/WEB-INF/include/taglibs.jsp"%>
- <!DOCTYPE html>
- <html>
- <head>
- <title>IMEI调整</title>
- <%@ include file="/WEB-INF/include/common.jsp"%>
- <script type="text/javascript">
- var functionId = '${functionId}';
- var adjustStatusListJson = JSON
- .parse('${requestScope.adjustStatusListJson}');
- function statusFormat(value, row, index) {
- for ( var i = 0; i < adjustStatusListJson.length; i++) {
- var adjustStatusItem = adjustStatusListJson[i];
- if (value == adjustStatusItem.id) {
- return adjustStatusItem.dictionaryName;
- }
- }
- if (value == "0") {
- return "否";
- } else if (value == "1") {
- return "是";
- } else {
- return value;
- }
- };
- $(function() {
- var buttonData = '${requestScope.buttons}';
- //实例化查询表单,当前页面只能实例化一次
- var searchForm = $("#searchForm").searchForm();
- //实例化实体List
- $.ImeiAdjustList = new $.AbstractList({
- entity : "ImeiAdjust",
- searchForm : searchForm,
- id : "imeiAdjustId",
- functionId : functionId,
- autoLoad:false
- });
- $.btnSearch = $('#btnSearch').advSearch({
- functionId:'${functionId}',
- baseList:$.ImeiAdjustList
- });
- if (!$.isEmpty(buttonData)) {
- //构建权限按钮
- var jsonButtons = JSON.parse(buttonData);
- $.buildToolbar($("#toolbar"), jsonButtons);
- }
- ;
- $("#btnSearch").bind("click",
- $.proxy($.ImeiAdjustList.quickSearch, $.ImeiAdjustList));
-
- $('#customerId').combogrid({ // 货主
- url : WEBROOT + "/loadData.action?entity=customer",
- idField : 'customerId',
- textField : 'customerName',
- delay : 500,
- mode : 'remote',
- showHeader : false,
- striped : true,
- columns : [ [ {
- field : 'customerName',
- width : '150'
- } ] ],
- 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><input type="text" style="vertical-align: middle"
- name="customerAdjustNumber" condition='"operator":"like"' /></td>
- <td class="title">处理状态:</td>
- <td><select id="adjustStatus" class="easyui-combobox"
- size="8" name="adjustStatus" style="width: 155px"
- condition='"operator":"like"'>
- <c:forEach var="item" items="${adjustStatusList}">
- <option value="${item.id}">${item.dictionaryName}</option>
- </c:forEach>
- </select></td>
- <td class="title">处理时间:</td>
- <td><input class="easyui-datebox" type="text"
- style="vertical-align: middle" name="adjustTime"
- condition='"operator":">="' />~ <input class="easyui-datebox"
- type="text" style="vertical-align: middle" name="adjustTime"
- condition='"operator":"<="' /></td>
- </tr>
- <tr>
- <td class="title">货主:</td>
- <td>
- <input id="customerId" name="customerId" myType="easyui-combogrid" style="width:155px" condition='"operator":"in"'/>
- </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:'imeiAdjustId',align:'center',width:130"">IMEI调整单号</th>
- <th
- data-options="field:'customerAdjustNumber',align:'center',width:130">客户调整单号</th>
- <th data-options="field:'warehouseName',align:'center',width:100">仓库名称</th>
- <th data-options="field:'customerName',align:'center',width:100">货主名称</th>
- <th data-options="field:'adjustStatus',align:'center',width:100,formatter:statusFormat">调整单状态</th>
- <th data-options="field:'adjustTime',align:'center',width:130">调整时间</th>
- <th data-options="field:'adjustBy',align:'center',width:100">处理人</th>
- <th data-options="field:'createdBy',align:'center',width:100">创建人</th>
- <th data-options="field:'creationTime',align:'center',width:100">创建时间</th>
- <th data-options="field:'updatedBy',align:'center',width:100">更新人</th>
- <th data-options="field:'updateTime',align:'center',width:100">更新时间</th>
- <th data-options="field:'description',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>
|