imeiAdjustList.jsp 5.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  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>IMEI调整</title>
  7. <%@ include file="/WEB-INF/include/common.jsp"%>
  8. <script type="text/javascript">
  9. var functionId = '${functionId}';
  10. var adjustStatusListJson = JSON
  11. .parse('${requestScope.adjustStatusListJson}');
  12. function statusFormat(value, row, index) {
  13. for ( var i = 0; i < adjustStatusListJson.length; i++) {
  14. var adjustStatusItem = adjustStatusListJson[i];
  15. if (value == adjustStatusItem.id) {
  16. return adjustStatusItem.dictionaryName;
  17. }
  18. }
  19. if (value == "0") {
  20. return "否";
  21. } else if (value == "1") {
  22. return "是";
  23. } else {
  24. return value;
  25. }
  26. };
  27. $(function() {
  28. var buttonData = '${requestScope.buttons}';
  29. //实例化查询表单,当前页面只能实例化一次
  30. var searchForm = $("#searchForm").searchForm();
  31. //实例化实体List
  32. $.ImeiAdjustList = new $.AbstractList({
  33. entity : "ImeiAdjust",
  34. searchForm : searchForm,
  35. id : "imeiAdjustId",
  36. functionId : functionId,
  37. autoLoad:false
  38. });
  39. $.btnSearch = $('#btnSearch').advSearch({
  40. functionId:'${functionId}',
  41. baseList:$.ImeiAdjustList
  42. });
  43. if (!$.isEmpty(buttonData)) {
  44. //构建权限按钮
  45. var jsonButtons = JSON.parse(buttonData);
  46. $.buildToolbar($("#toolbar"), jsonButtons);
  47. }
  48. ;
  49. $("#btnSearch").bind("click",
  50. $.proxy($.ImeiAdjustList.quickSearch, $.ImeiAdjustList));
  51. $('#customerId').combogrid({ // 货主
  52. url : WEBROOT + "/loadData.action?entity=customer",
  53. idField : 'customerId',
  54. textField : 'customerName',
  55. delay : 500,
  56. mode : 'remote',
  57. showHeader : false,
  58. striped : true,
  59. columns : [ [ {
  60. field : 'customerName',
  61. width : '150'
  62. } ] ],
  63. onBeforeLoad : function(param) { // 此设置使控件不会自动加载数据 这里不能使用this
  64. if (!$("#customerId").combogrid('getText')) {
  65. return false;
  66. } else {
  67. return true;
  68. }
  69. },
  70. onShowPanel : function() { // 在第一次触发下拉框事件是加载数据
  71. if (!$(this).combogrid('getText')) {
  72. $(this).combogrid({
  73. onBeforeLoad : function(param) {
  74. return true;
  75. }
  76. });
  77. }
  78. }
  79. });
  80. });
  81. </script>
  82. </head>
  83. <body style="overflow-y: hidden" fit="true" scroll="no">
  84. <div id="tabs" class="easyui-tabs" fit="true">
  85. <div title="查询">
  86. <form id="searchForm" action="#" method="post">
  87. <table width="100%">
  88. <tr>
  89. <td class="title">客户调整单号:</td>
  90. <td><input type="text" style="vertical-align: middle"
  91. name="customerAdjustNumber" condition='"operator":"like"' /></td>
  92. <td class="title">处理状态:</td>
  93. <td><select id="adjustStatus" class="easyui-combobox"
  94. size="8" name="adjustStatus" style="width: 155px"
  95. condition='"operator":"like"'>
  96. <c:forEach var="item" items="${adjustStatusList}">
  97. <option value="${item.id}">${item.dictionaryName}</option>
  98. </c:forEach>
  99. </select></td>
  100. <td class="title">处理时间:</td>
  101. <td><input class="easyui-datebox" type="text"
  102. style="vertical-align: middle" name="adjustTime"
  103. condition='"operator":">="' />~ <input class="easyui-datebox"
  104. type="text" style="vertical-align: middle" name="adjustTime"
  105. condition='"operator":"<="' /></td>
  106. </tr>
  107. <tr>
  108. <td class="title">货主:</td>
  109. <td>
  110. <input id="customerId" name="customerId" myType="easyui-combogrid" style="width:155px" condition='"operator":"in"'/>
  111. </td>
  112. </tr>
  113. <tr>
  114. <td align="right" colspan="6">
  115. <a id="btnSearch" href="#"
  116. class="easyui-linkbutton" data-options="iconCls:'icon-search'">查询</a>
  117. </td>
  118. </tr>
  119. </table>
  120. </form>
  121. <div id="toolbar" class="toolbar"></div>
  122. <table id="maingrid" data-options="fitColumns:true">
  123. <thead>
  124. <tr>
  125. <th data-options="field:'id',hidden:true">主键</th>
  126. <th data-options="field:'ck',checkbox:true">编码</th>
  127. <th data-options="field:'imeiAdjustId',align:'center',width:130"">IMEI调整单号</th>
  128. <th
  129. data-options="field:'customerAdjustNumber',align:'center',width:130">客户调整单号</th>
  130. <th data-options="field:'warehouseName',align:'center',width:100">仓库名称</th>
  131. <th data-options="field:'customerName',align:'center',width:100">货主名称</th>
  132. <th data-options="field:'adjustStatus',align:'center',width:100,formatter:statusFormat">调整单状态</th>
  133. <th data-options="field:'adjustTime',align:'center',width:130">调整时间</th>
  134. <th data-options="field:'adjustBy',align:'center',width:100">处理人</th>
  135. <th data-options="field:'createdBy',align:'center',width:100">创建人</th>
  136. <th data-options="field:'creationTime',align:'center',width:100">创建时间</th>
  137. <th data-options="field:'updatedBy',align:'center',width:100">更新人</th>
  138. <th data-options="field:'updateTime',align:'center',width:100">更新时间</th>
  139. <th data-options="field:'description',align:'center',width:100">备注</th>
  140. </tr>
  141. </thead>
  142. </table>
  143. </div>
  144. <div title="内容">
  145. <iframe id="innerFrame" name="innerTab" scrolling="auto"
  146. frameborder="0" style="width: 100%; height: 99.4%; border: none;"></iframe>
  147. </div>
  148. </div>
  149. </body>
  150. </html>