inventoryLocationMoveList.jsp 5.9 KB

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