纽威
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

3302 lines
169 KiB

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
2 years ago
3 years ago
2 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. @{
  2. ViewBag.Title = "Index";
  3. Layout = "~/Views/Shared/_Index.cshtml";
  4. }
  5. <script>
  6. debugger;
  7. var _Clos = new Array();
  8. var Type = $.request("Type");
  9. var ColModelMain = [];
  10. var ColModelSub = [];
  11. $(function () {
  12. SetCols();
  13. if (Type == '1' || Type == '2' || Type == '3' || Type == '4' || Type == '5' || Type == '6' || Type == '9') {
  14. $(".HideItems").css('display', 'none');
  15. }
  16. if (Type != '9') {
  17. $(".Workorder").css('display', 'none');
  18. }
  19. if (Type == '1') {
  20. gridList();
  21. }
  22. if (Type == '2') {
  23. gridList2();
  24. }
  25. if (Type == '3') {
  26. gridList3();
  27. }
  28. if (Type == '4') {
  29. gridList4();
  30. }
  31. if (Type == '5') {
  32. gridList5();
  33. }
  34. if (Type == '6') {
  35. gridList6();
  36. }
  37. //审核到货单生成条码
  38. if (Type == '7') {
  39. gridList7();
  40. }
  41. //审核委外到货单生成条码
  42. if (Type == '8') {
  43. gridList8();
  44. }
  45. //开立成品入库单生成条码
  46. if (Type == '9') {
  47. $(".HideItems9").css('display', 'none');
  48. gridList9();
  49. }
  50. //审核拒收单生成条码
  51. if (Type == '10') {
  52. gridList10();
  53. }
  54. //审核委外拒收单生成条码
  55. if (Type == '11') {
  56. gridList11();
  57. }
  58. //领料申请退料生成条码
  59. if (Type == '12') {
  60. gridList12();
  61. }
  62. //材料出库退料生成条码
  63. if (Type == '13') {
  64. gridList13();
  65. }
  66. //委外领料申请退料生成条码
  67. if (Type == '14') {
  68. gridList14();
  69. }
  70. //委外材料出库退料生成条码
  71. if (Type == '15') {
  72. gridList15();
  73. }
  74. if (Type == '16') {
  75. gridList16();
  76. }
  77. })
  78. //显示的列内容
  79. function SetCols() {
  80. $.ajax({
  81. url: "/Print/SelectColumnName?" + Math.random(),
  82. dataType: "json",
  83. async: false,
  84. success: function (data) {
  85. var cols = new Array();
  86. if (Type == '1') {
  87. var collast = { label: "主键", name: "ID", hidden: true, key: true };
  88. cols.push(collast);
  89. var collast = { label: '退料单号', name: 'ApplyNegCode', width: 120, align: 'left' };
  90. cols.push(collast);
  91. var collast = { label: '退料单行号', name: 'Sequence', width: 50, align: 'left' };
  92. cols.push(collast);
  93. var collast = { label: '工单子件', name: 'SourceDetailID', hidden: true, };
  94. cols.push(collast);
  95. var collast = { label: '区域', name: 'Area', width: 120, align: 'left' };
  96. cols.push(collast);
  97. var collast = { label: '料品编码', name: 'InvCode', width: 100, align: 'left' };
  98. cols.push(collast);
  99. var collast = { label: '料品编码', name: 'InvName', width: 60, align: 'left', };
  100. cols.push(collast);
  101. var collast = { label: '数量', name: 'Quantity', width: 100, align: 'left' };
  102. cols.push(collast);
  103. var collast = { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' };
  104. cols.push(collast);
  105. var collast = { label: '已退数量', name: 'IssueNegQuantity', width: 100, align: 'left' };
  106. cols.push(collast);
  107. var collast = { label: '规格型号', name: 'InvStd', width: 60, align: 'left', };
  108. cols.push(collast);
  109. var collast = { label: '单位', name: 'InvUnit', width: 100, align: 'left' };
  110. cols.push(collast);
  111. //var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  112. //cols.push(collast);
  113. var collast = { label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', };
  114. cols.push(collast);
  115. }
  116. if (Type == '2') {
  117. var collast = { label: "主键", name: "ID", hidden: true, key: true };
  118. cols.push(collast);
  119. var collast = { label: '退料单号', name: 'OApplyNegCode', width: 120, align: 'left' };
  120. cols.push(collast);
  121. var collast = { label: '退料单行号', name: 'Sequence', width: 50, align: 'left' };
  122. cols.push(collast);
  123. var collast = { label: '来源单据ID', name: 'SourceDetailID', hidden: true, };
  124. cols.push(collast);
  125. var collast = { label: '区域', name: 'Area', width: 120, align: 'left' };
  126. cols.push(collast);
  127. var collast = { label: '料品编码', name: 'InvCode', width: 100, align: 'left' };
  128. cols.push(collast);
  129. var collast = { label: '物料描述', name: 'InvName', width: 60, align: 'left', };
  130. cols.push(collast);
  131. var collast = { label: '数量', name: 'Quantity', width: 100, align: 'left' };
  132. cols.push(collast);
  133. var collast = { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' };
  134. cols.push(collast);
  135. var collast = { label: '已退数量', name: 'IssueNegQuantity', width: 100, align: 'left' };
  136. cols.push(collast);
  137. var collast = { label: '规格型号', name: 'InvStd', width: 60, align: 'left', };
  138. cols.push(collast);
  139. var collast = { label: '单位', name: 'InvUnit', width: 100, align: 'left' };
  140. cols.push(collast);
  141. //var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  142. //cols.push(collast);
  143. var collast = { label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', };
  144. cols.push(collast);
  145. //var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  146. //cols.push(collast);
  147. }
  148. if (Type == '3') {
  149. var collast = { label: "主键", name: "ID", hidden: true, key: true };
  150. cols.push(collast);
  151. var collast = { label: '工单号', name: 'MOCode', width: 120, align: 'left' };
  152. cols.push(collast);
  153. var collast = { label: '工单行号', name: 'Sequence', width: 50, align: 'left' };
  154. cols.push(collast);
  155. var collast = { label: 'ERP工单行ID', name: 'MODetailID', hidden: true };
  156. cols.push(collast);
  157. var collast = { label: '已入库数量', name: 'RCVQuantity', hidden: true, };
  158. cols.push(collast);
  159. var collast = { label: '区域', name: 'Area', width: 120, align: 'left' };
  160. cols.push(collast);
  161. var collast = { label: '料品编码', name: 'InvCode', width: 100, align: 'left' };
  162. cols.push(collast);
  163. var collast = { label: '物料描述', name: 'InvName', width: 60, align: 'left', };
  164. cols.push(collast);
  165. var collast = { label: '数量', name: 'Quantity', width: 100, align: 'left' };
  166. cols.push(collast);
  167. var collast = { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' };
  168. cols.push(collast);
  169. var collast = {
  170. label: "状态", name: "MOStatus", width: 60, align: "left",
  171. formatter: function (cellvalue) {
  172. if (cellvalue == "1") {
  173. return "初始";
  174. } else if (cellvalue == "2") {
  175. return "下发";
  176. }
  177. else if (cellvalue == "3") {
  178. return "关单";
  179. }
  180. else { return ""; }
  181. }
  182. };
  183. cols.push(collast);
  184. var collast = { label: '规格型号', name: 'InvStd', width: 60, align: 'left', };
  185. cols.push(collast);
  186. var collast = { label: '单位', name: 'InvUnit', width: 100, align: 'left' };
  187. cols.push(collast);
  188. //var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  189. //cols.push(collast);
  190. var collast = { label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', };
  191. cols.push(collast);
  192. //var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  193. //cols.push(collast);
  194. }
  195. if (Type == '4') {
  196. var collast = { label: "主键", name: "ID", hidden: true, key: true };
  197. cols.push(collast);
  198. var collast = { label: '单据号', name: 'SDNCode', width: 120, align: 'left' };
  199. cols.push(collast);
  200. var collast = { label: '行号', name: 'Sequence', width: 50, align: 'left' };
  201. cols.push(collast);
  202. var collast = { label: '销售订单号', name: 'SOCode', width: 120, align: 'left' };
  203. cols.push(collast);
  204. var collast = { label: '销售订单行号', name: 'SOSequence', width: 50, align: 'left' };
  205. cols.push(collast);
  206. var collast = { label: '区域', name: 'Area', width: 50, align: 'left' };
  207. cols.push(collast);
  208. var collast = { label: '仓库', name: 'WHCode', width: 50, align: 'left' };
  209. cols.push(collast);
  210. var collast = { label: '客户代码', name: 'CusCode', width: 120, align: 'left' };
  211. cols.push(collast);
  212. var collast = { label: '客户名称', name: 'CusName', width: 50, align: 'left' };
  213. cols.push(collast);
  214. var collast = { label: '发货日期', name: 'ArriveDate', width: 150, align: 'left' };
  215. cols.push(collast);
  216. var collast = { label: '已发数量', name: 'SDNQuantity', width: 50, align: 'left' };
  217. cols.push(collast);
  218. var collast = { label: '料品编码', name: 'InvCode', width: 100, align: 'left' };
  219. cols.push(collast);
  220. var collast = { label: '物料描述', name: 'InvDescribe', width: 60, align: 'left', };
  221. cols.push(collast);
  222. var collast = { label: '数量', name: 'Quantity', width: 100, align: 'left' };
  223. cols.push(collast);
  224. var collast = { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' };
  225. cols.push(collast);
  226. var collast = {
  227. label: "状态", name: "Status", width: 60, align: "left",
  228. formatter: function (cellvalue) {
  229. if (cellvalue == "1") {
  230. return "开立";
  231. } else if (cellvalue == "2") {
  232. return "审核";
  233. }
  234. else if (cellvalue == "3") {
  235. return "关闭";
  236. }
  237. else { return ""; }
  238. }
  239. };
  240. cols.push(collast);
  241. var collast = { label: '规格型号', name: 'InvStd', width: 60, align: 'left', };
  242. cols.push(collast);
  243. var collast = { label: '单位', name: 'InvUnit', width: 100, align: 'left' };
  244. cols.push(collast);
  245. //var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  246. //cols.push(collast);
  247. var collast = { label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', };
  248. cols.push(collast);
  249. var collast = { label: '站点', name: 'WorkPoint', width: 120, align: 'left' };
  250. cols.push(collast);
  251. var collast = { label: '装运点', name: 'Points', width: 120, align: 'left' };
  252. cols.push(collast);
  253. var collast = { label: '交货类型', name: 'DeliveryType', width: 150, align: 'left' };
  254. cols.push(collast);
  255. var collast = { label: '交货描述', name: 'DeliveryDescribe', width: 150, align: 'left' };
  256. cols.push(collast);
  257. var collast = { label: '辅助描述', name: 'OtherDescribe', width: 120, align: 'left' };
  258. cols.push(collast);
  259. var collast = { label: '销售单位', name: 'SalesUnit', width: 120, align: 'left' };
  260. cols.push(collast);
  261. var collast = { label: '序列号参数', name: 'IsSerialNumber', width: 150, align: 'left' };
  262. cols.push(collast);
  263. var collast = { label: '特殊库存标识', name: 'StockIndicator', width: 150, align: 'left' };
  264. cols.push(collast);
  265. }
  266. if (Type == '5') {
  267. var collast = { label: "主键", name: "ID", hidden: true, key: true };
  268. cols.push(collast);
  269. var collast = { label: '单据号', name: 'InCode', width: 120, align: 'left' };
  270. cols.push(collast);
  271. var collast = { label: '行号', name: 'Sequence', width: 50, align: 'left' };
  272. cols.push(collast);
  273. var collast = { label: '区域', name: 'Area', width: 120, align: 'left' };
  274. cols.push(collast);
  275. var collast = { label: '仓库', name: 'WHCode', width: 50, align: 'left' };
  276. cols.push(collast);
  277. var collast = { label: '料品编码', name: 'InvCode', width: 50, align: 'left' };
  278. cols.push(collast);
  279. var collast = { label: '辅助描述', name: 'InvDesc', width: 50, align: 'left' };
  280. cols.push(collast);
  281. var collast = { label: '料品型号', name: 'InvStd', width: 150, align: 'left', hidden: true };
  282. cols.push(collast);
  283. var collast = { label: '料品单位', name: 'InvStd', width: 50, align: 'left' };
  284. cols.push(collast);
  285. var collast = { label: '数量', name: 'Quantity', width: 100, align: 'left' };
  286. cols.push(collast);
  287. var collast = { label: '已生成数量', name: 'LOTQTY', width: 100, align: 'left' };
  288. cols.push(collast);
  289. var collast = { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' };
  290. cols.push(collast);
  291. var collast = { label: '已入数量', name: 'InQuantity', width: 60, align: 'left', };
  292. cols.push(collast);
  293. var collast = { label: '创建人', name: 'CreatePerson', width: 60, align: 'left', };
  294. cols.push(collast);
  295. var collast = { label: '创建时间', name: 'CreateDateTime', width: 100, align: 'left' };
  296. cols.push(collast);
  297. //var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  298. //cols.push(collast);
  299. var collast = { label: '站点', name: 'WorkPoint', width: 100, align: 'left' };
  300. cols.push(collast);
  301. var collast = { label: '单据类型', name: 'OrderType', width: 120, align: 'left' };
  302. cols.push(collast);
  303. var collast = { label: '类型描述', name: 'TypeDescribe', width: 120, align: 'left' };
  304. cols.push(collast);
  305. var collast = { label: '成本中心', name: 'CostCenter', width: 150, align: 'left' };
  306. cols.push(collast);
  307. var collast = { label: '备注', name: 'Remarks', width: 150, align: 'left' };
  308. cols.push(collast);
  309. var collast = { label: '人员号', name: 'PersonNumber', width: 120, align: 'left' };
  310. cols.push(collast);
  311. var collast = { label: '物料描述', name: 'InvDescribe', width: 120, align: 'left' };
  312. cols.push(collast);
  313. var collast = { label: '基本计量单位', name: 'Unit', width: 150, align: 'left', hidden: true };
  314. cols.push(collast);
  315. var collast = { label: '特殊库存标识', name: 'StockIndicator', width: 50, align: 'left' };
  316. cols.push(collast);
  317. }
  318. if (Type == '6') {
  319. var collast = { label: "主键", name: "ID", hidden: true, key: true };
  320. cols.push(collast);
  321. var collast = { label: '单据号', name: 'ReturnCode', width: 120, align: 'left' };
  322. cols.push(collast);
  323. var collast = { label: '行号', name: 'Sequence', width: 50, align: 'left' };
  324. cols.push(collast);
  325. var collast = { label: '仓库编码', name: 'WHCode', width: 120, align: 'left' };
  326. cols.push(collast);
  327. var collast = { label: '区域', name: 'Area', width: 120, align: 'left' };
  328. cols.push(collast);
  329. var collast = { label: '料品编码', name: 'InvCode', width: 50, align: 'left' };
  330. cols.push(collast);
  331. var collast = { label: '物料描述', name: 'InvName', width: 120, align: 'left' };
  332. cols.push(collast);
  333. var collast = { label: '辅助描述', name: 'InvDesc', width: 50, align: 'left' };
  334. cols.push(collast);
  335. var collast = { label: '料品型号', name: 'InvStd', width: 150, align: 'left', hidden: true };
  336. cols.push(collast);
  337. var collast = { label: '料品单位', name: 'InvStd', width: 50, align: 'left' };
  338. cols.push(collast);
  339. var collast = { label: '数量', name: 'Quantity', width: 100, align: 'left' };
  340. cols.push(collast);
  341. var collast = { label: '已生成数量', name: 'LOTQTY', width: 100, align: 'left' };
  342. cols.push(collast);
  343. var collast = { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' };
  344. cols.push(collast);
  345. var collast = { label: '已归还数量', name: 'ReturnQuantity', width: 60, align: 'left', };
  346. cols.push(collast);
  347. var collast = { label: '创建人', name: 'CreatePerson', width: 60, align: 'left', };
  348. cols.push(collast);
  349. var collast = { label: '创建时间', name: 'CreateDateTime', width: 100, align: 'left' };
  350. cols.push(collast);
  351. //var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  352. //cols.push(collast);
  353. }
  354. //审核到货单生成条码
  355. if (Type == '7') {
  356. var collast = { label: "主键", name: "ID", hidden: true, key: true };
  357. cols.push(collast);
  358. var collast = { label: '单据号', name: 'DNCode', width: 120, align: 'left' };
  359. cols.push(collast);
  360. var collast = { label: '行号', name: 'Sequence', width: 50, align: 'left' };
  361. cols.push(collast);
  362. var collast = { label: '料品编码', name: 'InvCode', width: 120, align: 'left' };
  363. cols.push(collast);
  364. var collast = { label: '物料描述', name: 'InvoDescribe', width: 120, align: 'left' };
  365. cols.push(collast);
  366. var collast = { label: '区域', name: 'Area', width: 120, align: 'left' };
  367. cols.push(collast);
  368. var collast = { label: '仓库', name: 'WHCode', width: 50, align: 'left' };
  369. cols.push(collast);
  370. //var collast = { label: '采购订单号', name: 'POCode', width: 50, align: 'left' };
  371. //cols.push(collast);
  372. //var collast = { label: '采购订单行号', name: 'POSequence', width: 50, align: 'left' };
  373. //cols.push(collast);
  374. var collast = { label: '供应商代码', name: 'VenCode', width: 120, align: 'left' };
  375. cols.push(collast);
  376. var collast = { label: '供应商名称', name: 'VenName', width: 120, align: 'left' };
  377. cols.push(collast);
  378. //新增字段
  379. var collast = { label: '采购凭证号', name: 'DNID', width: 120, align: 'left' };
  380. cols.push(collast);
  381. var collast = { label: '采购凭证的项目', name: 'DNDetailID', width: 120, align: 'left' };
  382. cols.push(collast);
  383. var collast = { label: '站点', name: 'WorkPoint', width: 50, align: 'left' };
  384. cols.push(collast);
  385. var collast = { label: '检验类型', name: 'InspectionType', width: 50, align: 'left' };
  386. cols.push(collast);
  387. var collast = { label: '不合格单号', name: 'NonconformingForm', width: 120, align: 'left' };
  388. cols.push(collast);
  389. var collast = { label: '图号', name: 'DrawingNo', width: 120, align: 'left' };
  390. cols.push(collast);
  391. var collast = { label: '图标', name: 'Version1', width: 50, align: 'left' };
  392. cols.push(collast);
  393. var collast = { label: '修改时间', name: 'ModificationDate', width: 50, align: 'left' };
  394. cols.push(collast);
  395. //var collast = { label: '物料描述', name: 'InvoDescribe', width: 120, align: 'left' };
  396. //cols.push(collast);
  397. var collast = { label: '特殊库存标识', name: 'StockIndicator', width: 50, align: 'left', hidden: true };
  398. cols.push(collast);
  399. //var collast = { label: '单位', name: 'Unity', width: 50, align: 'left' };
  400. //cols.push(collast);
  401. var collast = { label: '辅助描述', name: 'InvDesc', width: 50, align: 'left' };
  402. cols.push(collast);
  403. var collast = { label: '料品型号', name: 'InvStd', width: 150, align: 'left', hidden: true };
  404. cols.push(collast);
  405. var collast = { label: '料品单位', name: 'InvUnit', width: 50, align: 'left' };
  406. cols.push(collast);
  407. var collast = { label: '数量', name: 'Quantity', width: 100, align: 'left' };
  408. cols.push(collast);
  409. //var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  410. //cols.push(collast);
  411. var collast = { label: '已生成数量', name: 'LOTQTY', width: 100, align: 'left' };
  412. cols.push(collast);
  413. //var collast = { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' };
  414. //cols.push(collast);
  415. var collast = { label: '入库数量', name: 'RCVQuantity', width: 60, align: 'left', };
  416. cols.push(collast);
  417. //var collast = { label: '币种', name: 'Currency', width: 60, align: 'left', };
  418. //cols.push(collast);
  419. var collast = { label: '创建人', name: 'CreatePerson', width: 60, align: 'left', };
  420. cols.push(collast);
  421. var collast = { label: '创建时间', name: 'CreateDateTime', width: 100, align: 'left' };
  422. cols.push(collast);
  423. }
  424. //审核委外到货单生成条码
  425. if (Type == '8') {
  426. var collast = { label: "主键", name: "ID", hidden: true, key: true };
  427. cols.push(collast);
  428. var collast = { label: '单据号', name: 'ODNCode', width: 120, align: 'left' };
  429. cols.push(collast);
  430. var collast = { label: '行号', name: 'Sequence', width: 50, align: 'left' };
  431. cols.push(collast);
  432. var collast = { label: '委外采购订单号', name: 'OOCode', width: 120, align: 'left' };
  433. cols.push(collast);
  434. var collast = { label: '委外采购订单行号', name: 'OOSequence', width: 50, align: 'left' };
  435. cols.push(collast);
  436. var collast = { label: '区域', name: 'Area', width: 120, align: 'left' };
  437. cols.push(collast);
  438. var collast = { label: '供应商代码', name: 'VenCode', width: 120, align: 'left' };
  439. cols.push(collast);
  440. var collast = { label: '供应商名称', name: 'VenName', width: 120, align: 'left' };
  441. cols.push(collast);
  442. var collast = { label: '料品编码', name: 'InvCode', width: 50, align: 'left' };
  443. cols.push(collast);
  444. var collast = { label: '物料描述', name: 'InvName', width: 120, align: 'left' };
  445. cols.push(collast);
  446. var collast = { label: '辅助描述', name: 'InvDesc', width: 50, align: 'left' };
  447. cols.push(collast);
  448. var collast = { label: '料品型号', name: 'InvStd', width: 150, align: 'left', hidden: true };
  449. cols.push(collast);
  450. var collast = { label: '料品单位', name: 'InvStd', width: 50, align: 'left' };
  451. cols.push(collast);
  452. var collast = { label: '数量', name: 'Quantity', width: 100, align: 'left' };
  453. cols.push(collast);
  454. //var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  455. //cols.push(collast);
  456. var collast = { label: '已生成数量', name: 'LOTQTY', width: 100, align: 'left' };
  457. cols.push(collast);
  458. var collast = { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' };
  459. cols.push(collast);
  460. var collast = { label: '入库数量', name: 'RCVQuantity', width: 60, align: 'left', };
  461. cols.push(collast);
  462. var collast = { label: '币种', name: 'Currency', width: 60, align: 'left', };
  463. cols.push(collast);
  464. var collast = { label: '创建人', name: 'CreatePerson', width: 60, align: 'left', };
  465. cols.push(collast);
  466. var collast = { label: '创建时间', name: 'CreateDateTime', width: 100, align: 'left' };
  467. cols.push(collast);
  468. }
  469. //开立成品入库单生成条码
  470. if (Type == '9') {
  471. var collast = { label: "主键", name: "ID", hidden: true, key: true };
  472. cols.push(collast);
  473. var collast = { label: '单据号', name: 'RCVCode', width: 120, align: 'left' };
  474. cols.push(collast);
  475. var collast = { label: '行号', name: 'Sequence', width: 50, align: 'left' };
  476. cols.push(collast);
  477. var collast = { label: '仓库号', name: 'WHCode', width: 100, align: 'left' };
  478. cols.push(collast);
  479. var collast = { label: '生产订单', name: 'OrderNumber', width: 100, align: 'left' };
  480. cols.push(collast);
  481. var collast = { label: '存储区域', name: 'Area', width: 50, align: 'left' };
  482. cols.push(collast);
  483. var collast = { label: '料品编码', name: 'InvCode', width: 150, align: 'left' };
  484. cols.push(collast);
  485. var collast = { label: '物料描述', name: 'InvName', width: 120, align: 'left' };
  486. cols.push(collast);
  487. var collast = { label: '辅助描述', name: 'InvDesc', width: 50, align: 'left' };
  488. cols.push(collast);
  489. var collast = { label: '料品型号', name: 'InvStd', width: 150, align: 'left', hidden: true };
  490. cols.push(collast);
  491. var collast = { label: '料品单位', name: 'InvUnit', width: 50, align: 'left' };
  492. cols.push(collast);
  493. var collast = { label: '数量', name: 'Quantity', width: 100, align: 'left' };
  494. cols.push(collast);
  495. //var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  496. //cols.push(collast);
  497. var collast = { label: '已生成数量', name: 'LOTQTY', width: 100, align: 'left' };
  498. cols.push(collast);
  499. var collast = { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' };
  500. cols.push(collast);
  501. var collast = { label: '入库数量', name: 'RCVQuantity', width: 60, align: 'left', };
  502. cols.push(collast);
  503. var collast = { label: '创建人', name: 'CreatePerson', width: 60, align: 'left', };
  504. cols.push(collast);
  505. var collast = { label: '创建时间', name: 'CreateDateTime', width: 100, align: 'left' };
  506. cols.push(collast);
  507. var collast = { label: '站点', name: 'WorkPoint', width: 120, align: 'left' };
  508. cols.push(collast);
  509. var collast = { label: '单据类型', name: 'EATTRIBUTE', width: 50, align: 'left' };
  510. cols.push(collast);
  511. var collast = { label: '物料描述', name: 'InvDescribe', width: 150, align: 'left', hidden: true };
  512. cols.push(collast);
  513. var collast = { label: '物料号(父项生产订单主物料)', name: 'OrderNumber', width: 200, align: 'left' };
  514. cols.push(collast);
  515. var collast = { label: '物料描述(父项生产订单主物料)', name: 'OrderInvDescribe', width: 200, align: 'left' };
  516. cols.push(collast);
  517. //var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  518. //cols.push(collast);
  519. var collast = { label: '出入库', name: 'BillType', width: 100, align: 'left' };
  520. cols.push(collast);
  521. var collast = { label: '备注', name: 'Remarks', width: 150, align: 'left' };
  522. cols.push(collast);
  523. var collast = { label: '基本计量单位', name: 'Unit', width: 120, align: 'left', };
  524. cols.push(collast);
  525. var collast = { label: '特殊库存标识', name: 'StockIndicator', width: 120, align: 'left', };
  526. cols.push(collast);
  527. var collast = { label: '备注项', name: 'RemarksTerm', width: 100, align: 'left' };
  528. cols.push(collast);
  529. }
  530. //审核拒收单生成条码
  531. if (Type == '10') {
  532. var collast = { label: "主键", name: "ID", hidden: true, key: true };
  533. cols.push(collast);
  534. var collast = { label: '拒收单号', name: 'DNCode', width: 120, align: 'left' };
  535. cols.push(collast);
  536. var collast = { label: '拒收单行号', name: 'Sequence', width: 50, align: 'left' };
  537. cols.push(collast);
  538. var collast = { label: '供应商代码', name: 'VenCode', width: 120, align: 'left' };
  539. cols.push(collast);
  540. var collast = { label: '供应商名称', name: 'VenName', width: 120, align: 'left' };
  541. cols.push(collast);
  542. var collast = { label: '区域', name: 'Area', width: 120, align: 'left' };
  543. cols.push(collast);
  544. var collast = { label: '料品编码', name: 'InvCode', width: 50, align: 'left' };
  545. cols.push(collast);
  546. var collast = { label: '物料描述', name: 'InvName', width: 120, align: 'left' };
  547. cols.push(collast);
  548. var collast = { label: '辅助描述', name: 'InvDesc', width: 50, align: 'left' };
  549. cols.push(collast);
  550. var collast = { label: '料品型号', name: 'InvStd', width: 150, align: 'left', hidden: true };
  551. cols.push(collast);
  552. var collast = { label: '料品单位', name: 'InvUnit', width: 50, align: 'left' };
  553. cols.push(collast);
  554. var collast = { label: '数量', name: 'Quantity', width: 100, align: 'left' };
  555. cols.push(collast);
  556. var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  557. cols.push(collast);
  558. var collast = { label: '已生成数量', name: 'LOTQTY', width: 100, align: 'left' };
  559. cols.push(collast);
  560. var collast = { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' };
  561. cols.push(collast);
  562. var collast = { label: '入库数量', name: 'RCVQuantity', width: 60, align: 'left', };
  563. cols.push(collast);
  564. var collast = { label: '币种', name: 'Currency', width: 60, align: 'left', };
  565. cols.push(collast);
  566. var collast = { label: '创建人', name: 'CreatePerson', width: 60, align: 'left', };
  567. cols.push(collast);
  568. var collast = { label: '创建时间', name: 'CreateDateTime', width: 100, align: 'left' };
  569. cols.push(collast);
  570. }
  571. //审核委外拒收单生成条码
  572. if (Type == '11') {
  573. var collast = { label: "主键", name: "ID", hidden: true, key: true };
  574. cols.push(collast);
  575. var collast = { label: '委外拒收单号', name: 'OOCode', width: 120, align: 'left' };
  576. cols.push(collast);
  577. var collast = { label: '委外拒收单行号', name: 'OOSequence', width: 50, align: 'left' };
  578. cols.push(collast);
  579. var collast = { label: '供应商代码', name: 'VenCode', width: 120, align: 'left' };
  580. cols.push(collast);
  581. var collast = { label: '供应商名称', name: 'VenName', width: 120, align: 'left' };
  582. cols.push(collast);
  583. var collast = { label: '区域', name: 'Area', width: 120, align: 'left' };
  584. cols.push(collast);
  585. var collast = { label: '料品编码', name: 'InvCode', width: 50, align: 'left' };
  586. cols.push(collast);
  587. var collast = { label: '物料描述', name: 'InvName', width: 120, align: 'left' };
  588. cols.push(collast);
  589. var collast = { label: '辅助描述', name: 'InvDesc', width: 50, align: 'left' };
  590. cols.push(collast);
  591. var collast = { label: '料品型号', name: 'InvStd', width: 150, align: 'left', hidden: true };
  592. cols.push(collast);
  593. var collast = { label: '料品单位', name: 'InvStd', width: 50, align: 'left' };
  594. cols.push(collast);
  595. var collast = { label: '数量', name: 'Quantity', width: 100, align: 'left' };
  596. cols.push(collast);
  597. var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  598. cols.push(collast);
  599. var collast = { label: '已生成数量', name: 'LOTQTY', width: 100, align: 'left' };
  600. cols.push(collast);
  601. var collast = { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' };
  602. cols.push(collast);
  603. var collast = { label: '入库数量', name: 'RCVQuantity', width: 60, align: 'left', };
  604. cols.push(collast);
  605. var collast = { label: '币种', name: 'Currency', width: 60, align: 'left', };
  606. cols.push(collast);
  607. var collast = { label: '创建人', name: 'CreatePerson', width: 60, align: 'left', };
  608. cols.push(collast);
  609. var collast = { label: '创建时间', name: 'CreateDateTime', width: 100, align: 'left' };
  610. cols.push(collast);
  611. }
  612. //领料申请退料生成条码
  613. if (Type == '12') {
  614. var collast = { label: "主键", name: "ID", hidden: true, key: true };
  615. cols.push(collast);
  616. var collast = { label: '退料单号', name: 'ApplyNegCode', width: 120, align: 'left' };
  617. cols.push(collast);
  618. var collast = { label: '退料单行号', name: 'Sequence', width: 50, align: 'left' };
  619. cols.push(collast);
  620. var collast = { label: 'ERP子ID', name: 'SourceDetailID', hidden: true, };
  621. cols.push(collast);
  622. var collast = { label: '区域', name: 'Area', width: 50, align: 'left' };
  623. cols.push(collast);
  624. var collast = { label: '仓库', name: 'WHCode', width: 50, align: 'left' };
  625. cols.push(collast);
  626. var collast = { label: '料品编码', name: 'InvCode', width: 100, align: 'left' };
  627. cols.push(collast);
  628. var collast = { label: '料品编码', name: 'InvName', width: 60, align: 'left', };
  629. cols.push(collast);
  630. var collast = { label: '数量', name: 'Quantity', width: 100, align: 'left' };
  631. cols.push(collast);
  632. var collast = { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' };
  633. cols.push(collast);
  634. var collast = { label: '已退数量', name: 'IssueNegQuantity', width: 100, align: 'left' };
  635. cols.push(collast);
  636. var collast = { label: '规格型号', name: 'InvStd', width: 60, align: 'left', };
  637. cols.push(collast);
  638. var collast = { label: '单位', name: 'InvUnit', width: 100, align: 'left' };
  639. cols.push(collast);
  640. //var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  641. //cols.push(collast);
  642. var collast = { label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', };
  643. cols.push(collast);
  644. var collast = { label: '创建日期', name: 'CreateDateTime', width: 120, align: 'left', };
  645. cols.push(collast);
  646. }
  647. //材料出库退料生成条码
  648. if (Type == '13') {
  649. var collast = { label: "主键", name: "ID", hidden: true, key: true };
  650. cols.push(collast);
  651. var collast = { label: '退料单号', name: 'ApplyNegCode', width: 120, align: 'left' };
  652. cols.push(collast);
  653. var collast = { label: '退料单行号', name: 'Sequence', width: 50, align: 'left' };
  654. cols.push(collast);
  655. var collast = { label: 'ERP子ID', name: 'SourceDetailID', hidden: true, };
  656. cols.push(collast);
  657. var collast = { label: '区域', name: 'Area', width: 120, align: 'left' };
  658. cols.push(collast);
  659. var collast = { label: '料品编码', name: 'InvCode', width: 100, align: 'left' };
  660. cols.push(collast);
  661. var collast = { label: '料品编码', name: 'InvName', width: 60, align: 'left', };
  662. cols.push(collast);
  663. var collast = { label: '数量', name: 'Quantity', width: 100, align: 'left' };
  664. cols.push(collast);
  665. var collast = { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' };
  666. cols.push(collast);
  667. var collast = { label: '已退数量', name: 'IssueNegQuantity', width: 100, align: 'left' };
  668. cols.push(collast);
  669. var collast = { label: '规格型号', name: 'InvStd', width: 60, align: 'left', };
  670. cols.push(collast);
  671. var collast = { label: '单位', name: 'InvUnit', width: 100, align: 'left' };
  672. cols.push(collast);
  673. //var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  674. //cols.push(collast);
  675. var collast = { label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', };
  676. cols.push(collast);
  677. }
  678. //委外领料申请退料生成条码
  679. if (Type == '14') {
  680. var collast = { label: "主键", name: "ID", hidden: true, key: true };
  681. cols.push(collast);
  682. var collast = { label: '退料单号', name: 'OApplyNegCode', width: 120, align: 'left' };
  683. cols.push(collast);
  684. var collast = { label: '退料单行号', name: 'Sequence', width: 50, align: 'left' };
  685. cols.push(collast);
  686. var collast = { label: '来源单据ID', name: 'SourceDetailID', hidden: true, };
  687. cols.push(collast);
  688. var collast = { label: '区域', name: 'Area', width: 120, align: 'left' };
  689. cols.push(collast);
  690. var collast = { label: '料品编码', name: 'InvCode', width: 100, align: 'left' };
  691. cols.push(collast);
  692. var collast = { label: '物料描述', name: 'InvName', width: 60, align: 'left', };
  693. cols.push(collast);
  694. var collast = { label: '数量', name: 'Quantity', width: 100, align: 'left' };
  695. cols.push(collast);
  696. var collast = { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' };
  697. cols.push(collast);
  698. var collast = { label: '已退数量', name: 'IssueNegQuantity', width: 100, align: 'left' };
  699. cols.push(collast);
  700. var collast = { label: '规格型号', name: 'InvStd', width: 60, align: 'left', };
  701. cols.push(collast);
  702. var collast = { label: '单位', name: 'InvUnit', width: 100, align: 'left' };
  703. cols.push(collast);
  704. //var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  705. //cols.push(collast);
  706. var collast = { label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', };
  707. cols.push(collast);
  708. //var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  709. //cols.push(collast);
  710. }
  711. //委外材料出库退料生成条码
  712. if (Type == '15') {
  713. var collast = { label: "主键", name: "ID", hidden: true, key: true };
  714. cols.push(collast);
  715. var collast = { label: '退料单号', name: 'OApplyNegCode', width: 120, align: 'left' };
  716. cols.push(collast);
  717. var collast = { label: '退料单行号', name: 'Sequence', width: 50, align: 'left' };
  718. cols.push(collast);
  719. var collast = { label: '来源单据ID', name: 'SourceDetailID', hidden: true, };
  720. cols.push(collast);
  721. var collast = { label: '区域', name: 'Area', width: 120, align: 'left' };
  722. cols.push(collast);
  723. var collast = { label: '料品编码', name: 'InvCode', width: 100, align: 'left' };
  724. cols.push(collast);
  725. var collast = { label: '物料描述', name: 'InvName', width: 60, align: 'left', };
  726. cols.push(collast);
  727. var collast = { label: '数量', name: 'Quantity', width: 100, align: 'left' };
  728. cols.push(collast);
  729. var collast = { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' };
  730. cols.push(collast);
  731. var collast = { label: '已退数量', name: 'IssueNegQuantity', width: 100, align: 'left' };
  732. cols.push(collast);
  733. var collast = { label: '规格型号', name: 'InvStd', width: 60, align: 'left', };
  734. cols.push(collast);
  735. var collast = { label: '单位', name: 'InvUnit', width: 100, align: 'left' };
  736. cols.push(collast);
  737. var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  738. cols.push(collast);
  739. var collast = { label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', };
  740. cols.push(collast);
  741. var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  742. cols.push(collast);
  743. }
  744. //返工工单生成条码
  745. if (Type == '16') {
  746. var collast = { label: "主键", name: "ID", hidden: true, key: true };
  747. cols.push(collast);
  748. var collast = { label: '工单号', name: 'MOCode', width: 120, align: 'left' };
  749. cols.push(collast);
  750. var collast = { label: '工单子件行号', name: 'Sequence', width: 50, align: 'left' };
  751. cols.push(collast);
  752. var collast = { label: '备料表ID', name: 'PickID', hidden: true, };
  753. cols.push(collast);
  754. var collast = { label: '区域', name: 'Area', width: 120, align: 'left' };
  755. cols.push(collast);
  756. var collast = { label: '料品编码', name: 'InvCode', width: 100, align: 'left' };
  757. cols.push(collast);
  758. var collast = { label: '物料描述', name: 'InvName', width: 60, align: 'left', };
  759. cols.push(collast);
  760. var collast = { label: '数量', name: 'Quantity', width: 100, align: 'left' };
  761. cols.push(collast);
  762. var collast = { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' };
  763. cols.push(collast);
  764. var collast = { label: '已发数量', name: 'IssueQuantity', width: 100, align: 'left' };
  765. cols.push(collast);
  766. var collast = { label: '规格型号', name: 'InvStd', width: 60, align: 'left', };
  767. cols.push(collast);
  768. var collast = { label: '单位', name: 'InvUnit', width: 100, align: 'left' };
  769. cols.push(collast);
  770. //var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  771. //cols.push(collast);
  772. var collast = { label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', };
  773. cols.push(collast);
  774. //var collast = { label: '批次', name: 'BatchCode', width: 100, align: 'left' };
  775. //cols.push(collast);
  776. }
  777. var cols1 = new Array();
  778. var collast1 = { label: "主键", name: "ID", hidden: true, key: true };
  779. cols1.push(collast1);
  780. var collast1 = { label: "来源单据号", name: "TransCode", width: 200, align: 'left' };
  781. cols1.push(collast1);
  782. var collast1 = { label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' };
  783. cols1.push(collast1);
  784. var collast1 = { label: '条码', name: 'LotNo', width: 200, align: 'left' };
  785. cols1.push(collast1);
  786. var collast1 = { label: '条码数量', name: 'Quantity', width: 200, align: 'left' };
  787. cols1.push(collast1);
  788. var collast1 = { label: '操作人', name: 'MUSERName', width: 200, align: 'left' };
  789. cols1.push(collast1);
  790. var collast1 = { label: '操作时间', name: 'MTIME', width: 200, align: 'left' };
  791. cols1.push(collast1);
  792. if (data != null && data.length > 0) {
  793. DateList = data;
  794. for (var i = 0; i < data.length; i++) {
  795. var ColName = data[i].ColName;
  796. var ColCode = data[i].ColCode;
  797. var obj = new Array();
  798. obj = {
  799. label: ColName,
  800. name: ColCode,
  801. width: 80,
  802. align: "left"
  803. }
  804. cols.push(obj);
  805. cols1.push(obj);
  806. }
  807. }
  808. _Clos = cols;
  809. _Clos1 = cols1;
  810. }
  811. });
  812. }
  813. //生产退料
  814. function gridList() {
  815. var $gridList = $("#gridList");
  816. var queryJson = {
  817. POCode: $("#txt_POCode").val(),
  818. InvCode: $("#txt_InvCode").val(),
  819. InvName: $("#txt_InvName").val(),
  820. BatchCode: $("#txt_BatchCode").val(),
  821. Container: $("#txt_Container :checked").val(),
  822. }
  823. $gridList.dataGrid({
  824. url: "/WMS/WMSCreateItemLot/GetGridJson" + "?" + Math.random(),
  825. postData: { queryJson: JSON.stringify(queryJson) },
  826. height: $(window).height() - 200,
  827. width: $(window).width() - 300,
  828. colModel: _Clos,
  829. //colModel: [
  830. // { label: "主键", name: "ID", hidden: true, key: true },
  831. // { label: '退料单号', name: 'ApplyNegCode', width: 120, align: 'left' },
  832. // { label: '退料单行号', name: 'Sequence', width: 50, align: 'left' },
  833. // { label: '工单子件', name: 'SourceDetailID', hidden: true, },
  834. // { label: '料品编码', name: 'InvCode', width: 100, align: 'left' },
  835. // { label: '料品编码', name: 'InvName', width: 60, align: 'left', },
  836. // { label: '数量', name: 'Quantity', width: 100, align: 'left' },
  837. // { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' },
  838. // { label: '已退数量', name: 'IssueNegQuantity', width: 100, align: 'left' },
  839. // { label: '规格型号', name: 'InvStd', width: 60, align: 'left', },
  840. // { label: '单位', name: 'InvUnit', width: 100, align: 'left' },
  841. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  842. // { label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', },
  843. //],
  844. //colModel: ColModelMain,
  845. width: "100%",
  846. autowidth: true,
  847. //shrinkToFit: true,
  848. gridComplete: function () {
  849. },
  850. pager: "#gridPager",
  851. sortname: 'ApplyNegCode',
  852. sortorder: "desc",
  853. viewrecords: true,
  854. multiselect: true,
  855. beforeSelectRow: function (rowid, e) {
  856. $("#gridList").jqGrid('resetSelection');
  857. return (true);
  858. },
  859. subGrid: true, // (1)开启子表格支持
  860. subGridRowExpanded: function (subgrid_id, rowid) { // (2)子表格容器的id和需要展开子表格的行id,将传入此事件函数
  861. $("#gridList").jqGrid("setSelection", rowid, false);
  862. bindSubGrid(subgrid_id, rowid)
  863. }
  864. });
  865. $("#warehouse a.btn-default").click(function () {
  866. $("#warehouse a.btn-default").removeClass("active");
  867. $(this).addClass("active");
  868. $('#btn_search').trigger("click");
  869. });
  870. $("#btn_search").click(function () {
  871. var warehouse = $("#warehouse a.active").attr('data-value');
  872. var queryJson = {
  873. POCode: $("#txt_POCode").val(),
  874. InvCode: $("#txt_InvCode").val(),
  875. InvName: $("#txt_InvName").val(),
  876. BatchCode: $("#txt_BatchCode").val(),
  877. Container: $("#txt_Container :checked").val(),
  878. }
  879. $gridList.jqGrid('setGridParam', {
  880. page: 1,
  881. postData: { queryJson: JSON.stringify(queryJson) },
  882. }).trigger('reloadGrid');
  883. });
  884. }
  885. function bindSubGrid(subgrid_id, rowid) {
  886. $("#gridList").jqGrid("setSelection", rowid, false);
  887. var subgrid_table_id;
  888. subgrid_table_id = subgrid_id + "_t"; // (3)根据subgrid_id定义对应的子表格的table的id
  889. var subgrid_pager_id;
  890. subgrid_pager_id = subgrid_id + "_pgr" // (4)根据subgrid_id定义对应的子表格的pager的id
  891. // (5)动态添加子报表的table和pager
  892. $("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + subgrid_pager_id + "' class='scroll'></div>");
  893. var ApplyNegCode = $("#gridList").jqGrid('getRowData', rowid).ApplyNegCode;
  894. var Sequence = $("#gridList").jqGrid('getRowData', rowid).Sequence;
  895. // (6)创建jqGrid对象
  896. $("#" + subgrid_table_id).dataGrid({
  897. cellEdit: true,
  898. url: "/WMS/WMSCreateItemLot/GetSubGridJson?ApplyNegCode=" + ApplyNegCode + "&Sequence=" + Sequence + "&Type=" + Type + "&" + Math.random(), // (7)子表格数据对应的url,注意传入的contact.id参数
  899. //colModel: [
  900. // { label: "主键", name: "ID", hidden: true, key: true },
  901. // { label: "来源单据号", name: "TransCode", width: 200, align: 'left' },
  902. // { label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' },
  903. // { label: '条码', name: 'LotNo', width: 200, align: 'left' },
  904. // { label: '条码数量', name: 'Quantity', width: 200, align: 'left' },
  905. // { label: '操作人', name: 'MUSERName', width: 200, align: 'left' },
  906. // { label: '操作时间', name: 'MTIME', width: 200, align: 'left' },
  907. //],
  908. colModel: _Clos1,
  909. //colModel: ColModelSub,
  910. shrinkToFit: true,//宽度自适应
  911. multiselect: true,
  912. prmNames: { search: "search" },
  913. viewrecords: true,
  914. height: "100%",
  915. rowNum: 20,
  916. pager: subgrid_pager_id,
  917. });
  918. }
  919. //委外退料
  920. function gridList2() {
  921. var $gridList = $("#gridList");
  922. var queryJson = {
  923. POCode: $("#txt_POCode").val(),
  924. InvCode: $("#txt_InvCode").val(),
  925. InvName: $("#txt_InvName").val(),
  926. BatchCode: $("#txt_BatchCode").val(),
  927. }
  928. $gridList.dataGrid({
  929. url: "/WMS/WMSCreateItemLot/GetGridJsonWeiWai" + "?" + Math.random(),
  930. postData: { queryJson: JSON.stringify(queryJson) },
  931. height: $(window).height() - 200,
  932. width: $(window).width() - 300,
  933. colModel: _Clos,
  934. //colModel: [
  935. // { label: "主键", name: "ID", hidden: true, key: true },
  936. // { label: '退料单号', name: 'OApplyNegCode', width: 120, align: 'left' },
  937. // { label: '退料单行号', name: 'Sequence', width: 50, align: 'left' },
  938. // { label: '来源单据ID', name: 'SourceDetailID', hidden: true, },
  939. // { label: '料品编码', name: 'InvCode', width: 100, align: 'left' },
  940. // { label: '物料描述', name: 'InvName', width: 60, align: 'left', },
  941. // { label: '数量', name: 'Quantity', width: 100, align: 'left' },
  942. // { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' },
  943. // { label: '已退数量', name: 'IssueNegQuantity', width: 100, align: 'left' },
  944. // { label: '规格型号', name: 'InvStd', width: 60, align: 'left', },
  945. // { label: '单位', name: 'InvUnit', width: 100, align: 'left' },
  946. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  947. // { label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', },
  948. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  949. //],
  950. //colModel: ColModelMain,
  951. width: "100%",
  952. autowidth: true,
  953. //shrinkToFit: true,
  954. gridComplete: function () {
  955. },
  956. pager: "#gridPager",
  957. sortname: 'OApplyNegCode',
  958. sortorder: "desc",
  959. viewrecords: true,
  960. multiselect: true,
  961. beforeSelectRow: function (rowid, e) {
  962. $("#gridList").jqGrid('resetSelection');
  963. return (true);
  964. },
  965. subGrid: true, // (1)开启子表格支持
  966. subGridRowExpanded: function (subgrid_id, rowid) { // (2)子表格容器的id和需要展开子表格的行id,将传入此事件函数
  967. $("#gridList").jqGrid("setSelection", rowid, false);
  968. bindSubGrid2(subgrid_id, rowid)
  969. }
  970. });
  971. $("#warehouse a.btn-default").click(function () {
  972. $("#warehouse a.btn-default").removeClass("active");
  973. $(this).addClass("active");
  974. $('#btn_search').trigger("click");
  975. });
  976. $("#btn_search").click(function () {
  977. var warehouse = $("#warehouse a.active").attr('data-value');
  978. var queryJson = {
  979. POCode: $("#txt_POCode").val(),
  980. InvCode: $("#txt_InvCode").val(),
  981. InvName: $("#txt_InvName").val(),
  982. BatchCode: $("#txt_BatchCode").val(),
  983. }
  984. $gridList.jqGrid('setGridParam', {
  985. page: 1,
  986. postData: { queryJson: JSON.stringify(queryJson) },
  987. }).trigger('reloadGrid');
  988. });
  989. }
  990. function bindSubGrid2(subgrid_id, rowid) {
  991. $("#gridList").jqGrid("setSelection", rowid, false);
  992. var subgrid_table_id;
  993. subgrid_table_id = subgrid_id + "_t"; // (3)根据subgrid_id定义对应的子表格的table的id
  994. var subgrid_pager_id;
  995. subgrid_pager_id = subgrid_id + "_pgr" // (4)根据subgrid_id定义对应的子表格的pager的id
  996. // (5)动态添加子报表的table和pager
  997. $("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + subgrid_pager_id + "' class='scroll'></div>");
  998. var OApplyNegCode = $("#gridList").jqGrid('getRowData', rowid).OApplyNegCode;
  999. var Sequence = $("#gridList").jqGrid('getRowData', rowid).Sequence;
  1000. // (6)创建jqGrid对象
  1001. $("#" + subgrid_table_id).dataGrid({
  1002. cellEdit: true,
  1003. url: "/WMS/WMSCreateItemLot/GetSubGridJson?ApplyNegCode=" + OApplyNegCode + "&Sequence=" + Sequence + "&Type=" + Type + "&" + Math.random(), // (7)子表格数据对应的url,注意传入的contact.id参数
  1004. //colModel: [
  1005. // { label: "主键", name: "ID", hidden: true, key: true },
  1006. // { label: "来源单据号", name: "TransCode", width: 200, align: 'left' },
  1007. // { label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' },
  1008. // { label: '条码', name: 'LotNo', width: 200, align: 'left' },
  1009. // { label: '条码数量', name: 'Quantity', width: 200, align: 'left' },
  1010. // { label: '操作人', name: 'MUSERName', width: 200, align: 'left' },
  1011. // { label: '操作时间', name: 'MTIME', width: 200, align: 'left' },
  1012. //],
  1013. colModel: _Clos1,
  1014. //colModel: ColModelSub,
  1015. shrinkToFit: true,//宽度自适应
  1016. multiselect: true,
  1017. prmNames: { search: "search" },
  1018. viewrecords: true,
  1019. height: "100%",
  1020. rowNum: 20,
  1021. pager: subgrid_pager_id,
  1022. });
  1023. }
  1024. //成品
  1025. function gridList3() {
  1026. var $gridList = $("#gridList");
  1027. var queryJson = {
  1028. POCode: $("#txt_POCode").val(),
  1029. InvCode: $("#txt_InvCode").val(),
  1030. InvName: $("#txt_InvName").val(),
  1031. BatchCode: $("#txt_BatchCode").val(),
  1032. Area: $("#txt_Area").val(),
  1033. Container: $("#txt_Container :checked").val(),
  1034. }
  1035. $gridList.dataGrid({
  1036. url: "/WMS/WMSCreateItemLot/GetGridJsonChengPing" + "?" + Math.random(),
  1037. postData: { queryJson: JSON.stringify(queryJson) },
  1038. height: $(window).height() - 200,
  1039. width: $(window).width() - 300,
  1040. colModel: _Clos,
  1041. //colModel: [
  1042. // { label: "主键", name: "ID", hidden: true, key: true },
  1043. // { label: '工单号', name: 'MOCode', width: 120, align: 'left' },
  1044. // { label: '工单行号', name: 'Sequence', width: 50, align: 'left' },
  1045. // { label: '已入库数量', name: 'RCVQuantity', hidden: true, },
  1046. // { label: '料品编码', name: 'InvCode', width: 100, align: 'left' },
  1047. // { label: '物料描述', name: 'InvName', width: 60, align: 'left', },
  1048. // { label: '数量', name: 'Quantity', width: 100, align: 'left' },
  1049. // { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' },
  1050. // {
  1051. // label: "状态", name: "MOStatus", width: 60, align: "left",
  1052. // formatter: function (cellvalue) {
  1053. // if (cellvalue == "1") {
  1054. // return "初始";
  1055. // } else if (cellvalue == "2") {
  1056. // return "下发";
  1057. // }
  1058. // else if (cellvalue == "3") {
  1059. // return "关单";
  1060. // }
  1061. // else { return ""; }
  1062. // }
  1063. // },
  1064. // { label: '规格型号', name: 'InvStd', width: 60, align: 'left', },
  1065. // { label: '单位', name: 'InvUnit', width: 100, align: 'left' },
  1066. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  1067. // { label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', },
  1068. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  1069. //],
  1070. //colModel: ColModelMain,
  1071. width: "100%",
  1072. autowidth: true,
  1073. //shrinkToFit: true,
  1074. gridComplete: function () {
  1075. },
  1076. pager: "#gridPager",
  1077. sortname: 'MOCode',
  1078. sortorder: "desc",
  1079. viewrecords: true,
  1080. multiselect: true,
  1081. beforeSelectRow: function (rowid, e) {
  1082. $("#gridList").jqGrid('resetSelection');
  1083. return (true);
  1084. },
  1085. subGrid: true, // (1)开启子表格支持
  1086. subGridRowExpanded: function (subgrid_id, rowid) { // (2)子表格容器的id和需要展开子表格的行id,将传入此事件函数
  1087. $("#gridList").jqGrid("setSelection", rowid, false);
  1088. bindSubGrid3(subgrid_id, rowid)
  1089. }
  1090. });
  1091. $("#warehouse a.btn-default").click(function () {
  1092. $("#warehouse a.btn-default").removeClass("active");
  1093. $(this).addClass("active");
  1094. $('#btn_search').trigger("click");
  1095. });
  1096. $("#btn_search").click(function () {
  1097. var warehouse = $("#warehouse a.active").attr('data-value');
  1098. var queryJson = {
  1099. POCode: $("#txt_POCode").val(),
  1100. InvCode: $("#txt_InvCode").val(),
  1101. InvName: $("#txt_InvName").val(),
  1102. BatchCode: $("#txt_BatchCode").val(),
  1103. Area: $("#txt_Area").val(),
  1104. Container: $("#txt_Container :checked").val(),
  1105. }
  1106. $gridList.jqGrid('setGridParam', {
  1107. page: 1,
  1108. postData: { queryJson: JSON.stringify(queryJson) },
  1109. }).trigger('reloadGrid');
  1110. });
  1111. }
  1112. function bindSubGrid3(subgrid_id, rowid) {
  1113. $("#gridList").jqGrid("setSelection", rowid, false);
  1114. var subgrid_table_id;
  1115. subgrid_table_id = subgrid_id + "_t"; // (3)根据subgrid_id定义对应的子表格的table的id
  1116. var subgrid_pager_id;
  1117. subgrid_pager_id = subgrid_id + "_pgr" // (4)根据subgrid_id定义对应的子表格的pager的id
  1118. // (5)动态添加子报表的table和pager
  1119. $("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + subgrid_pager_id + "' class='scroll'></div>");
  1120. var MOCode = $("#gridList").jqGrid('getRowData', rowid).MOCode;
  1121. var Sequence = $("#gridList").jqGrid('getRowData', rowid).Sequence;
  1122. // (6)创建jqGrid对象
  1123. $("#" + subgrid_table_id).dataGrid({
  1124. cellEdit: true,
  1125. url: "/WMS/WMSCreateItemLot/GetSubGridJson?ApplyNegCode=" + MOCode + "&Sequence=" + Sequence + "&Type=" + Type + "&" + Math.random(), // (7)子表格数据对应的url,注意传入的contact.id参数
  1126. //colModel: [
  1127. // { label: "主键", name: "ID", hidden: true, key: true },
  1128. // { label: "来源单据号", name: "TransCode", width: 200, align: 'left' },
  1129. // { label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' },
  1130. // { label: '条码', name: 'LotNo', width: 200, align: 'left' },
  1131. // { label: '条码数量', name: 'Quantity', width: 200, align: 'left' },
  1132. // { label: '操作人', name: 'MUSERName', width: 200, align: 'left' },
  1133. // { label: '操作时间', name: 'MTIME', width: 200, align: 'left' },
  1134. //],
  1135. colModel: _Clos1,
  1136. //colModel: ColModelSub,
  1137. shrinkToFit: true,//宽度自适应
  1138. multiselect: true,
  1139. prmNames: { search: "search" },
  1140. viewrecords: true,
  1141. height: "100%",
  1142. rowNum: 20,
  1143. pager: subgrid_pager_id,
  1144. });
  1145. }
  1146. //销售退货
  1147. function gridList4() {
  1148. var $gridList = $("#gridList");
  1149. var queryJson = {
  1150. POCode: $("#txt_POCode").val(),
  1151. InvCode: $("#txt_InvCode").val(),
  1152. InvName: $("#txt_InvName").val(),
  1153. BatchCode: $("#txt_BatchCode").val(),
  1154. Area: $("#txt_Area").val(),
  1155. Location: $("#txt_Location").val(),
  1156. Container: $("#txt_Container :checked").val(),
  1157. }
  1158. $gridList.dataGrid({
  1159. url: "/WMS/WMSCreateItemLot/GetGridJsonXiaoShou" + "?" + Math.random(),
  1160. postData: { queryJson: JSON.stringify(queryJson) },
  1161. height: $(window).height() - 200,
  1162. width: $(window).width() - 300,
  1163. colModel: _Clos,
  1164. //colModel: [
  1165. // { label: "主键", name: "ID", hidden: true, key: true },
  1166. // { label: '单据号', name: 'SDNCode', width: 120, align: 'left' },
  1167. // { label: '行号', name: 'Sequence', width: 50, align: 'left' },
  1168. // { label: '销售订单号', name: 'SOCode', width: 120, align: 'left' },
  1169. // { label: '销售订单行号', name: 'SOSequence', width: 50, align: 'left' },
  1170. // { label: '客户代码', name: 'CusCode', width: 120, align: 'left' },
  1171. // { label: '客户名称', name: 'CusName', width: 50, align: 'left' },
  1172. // { label: '发货日期', name: 'ArriveDate', width: 150, align: 'left' },
  1173. // { label: '已发数量', name: 'SDNQuantity', width: 50, align: 'left' },
  1174. // { label: '料品编码', name: 'InvCode', width: 100, align: 'left' },
  1175. // { label: '物料描述', name: 'InvName', width: 60, align: 'left', },
  1176. // { label: '数量', name: 'Quantity', width: 100, align: 'left' },
  1177. // { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' },
  1178. // {
  1179. // label: "状态", name: "Status", width: 60, align: "left",
  1180. // formatter: function (cellvalue) {
  1181. // if (cellvalue == "1") {
  1182. // return "开立";
  1183. // } else if (cellvalue == "2") {
  1184. // return "审核";
  1185. // }
  1186. // else if (cellvalue == "3") {
  1187. // return "关闭";
  1188. // }
  1189. // else { return ""; }
  1190. // }
  1191. // },
  1192. // { label: '规格型号', name: 'InvStd', width: 60, align: 'left', },
  1193. // { label: '单位', name: 'InvUnit', width: 100, align: 'left' },
  1194. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  1195. // { label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', },
  1196. //],
  1197. //colModel: ColModelMain,
  1198. width: "100%",
  1199. autowidth: true,
  1200. //shrinkToFit: true,
  1201. gridComplete: function () {
  1202. },
  1203. pager: "#gridPager",
  1204. sortname: 'SDNCode',
  1205. sortorder: "desc",
  1206. viewrecords: true,
  1207. multiselect: true,
  1208. beforeSelectRow: function (rowid, e) {
  1209. $("#gridList").jqGrid('resetSelection');
  1210. return (true);
  1211. },
  1212. subGrid: true, // (1)开启子表格支持
  1213. subGridRowExpanded: function (subgrid_id, rowid) { // (2)子表格容器的id和需要展开子表格的行id,将传入此事件函数
  1214. $("#gridList").jqGrid("setSelection", rowid, false);
  1215. bindSubGrid4(subgrid_id, rowid)
  1216. }
  1217. });
  1218. $("#warehouse a.btn-default").click(function () {
  1219. $("#warehouse a.btn-default").removeClass("active");
  1220. $(this).addClass("active");
  1221. $('#btn_search').trigger("click");
  1222. });
  1223. $("#btn_search").click(function () {
  1224. var warehouse = $("#warehouse a.active").attr('data-value');
  1225. var queryJson = {
  1226. POCode: $("#txt_POCode").val(),
  1227. InvCode: $("#txt_InvCode").val(),
  1228. InvName: $("#txt_InvName").val(),
  1229. BatchCode: $("#txt_BatchCode").val(),
  1230. Area: $("#txt_Area").val(),
  1231. Location: $("#txt_Location").val(),
  1232. Container: $("#txt_Container :checked").val(),
  1233. }
  1234. $gridList.jqGrid('setGridParam', {
  1235. page: 1,
  1236. postData: { queryJson: JSON.stringify(queryJson) },
  1237. }).trigger('reloadGrid');
  1238. });
  1239. }
  1240. function bindSubGrid4(subgrid_id, rowid) {
  1241. $("#gridList").jqGrid("setSelection", rowid, false);
  1242. var subgrid_table_id;
  1243. subgrid_table_id = subgrid_id + "_t"; // (3)根据subgrid_id定义对应的子表格的table的id
  1244. var subgrid_pager_id;
  1245. subgrid_pager_id = subgrid_id + "_pgr" // (4)根据subgrid_id定义对应的子表格的pager的id
  1246. // (5)动态添加子报表的table和pager
  1247. $("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + subgrid_pager_id + "' class='scroll'></div>");
  1248. var SDNCode = $("#gridList").jqGrid('getRowData', rowid).SDNCode;
  1249. var Sequence = $("#gridList").jqGrid('getRowData', rowid).Sequence;
  1250. // (6)创建jqGrid对象
  1251. $("#" + subgrid_table_id).dataGrid({
  1252. cellEdit: true,
  1253. url: "/WMS/WMSCreateItemLot/GetSubGridJson?ApplyNegCode=" + SDNCode + "&Sequence=" + Sequence + "&Type=" + Type + "&" + Math.random(), // (7)子表格数据对应的url,注意传入的contact.id参数
  1254. //colModel: [
  1255. // { label: "主键", name: "ID", hidden: true, key: true },
  1256. // { label: "来源单据号", name: "TransCode", width: 200, align: 'left' },
  1257. // { label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' },
  1258. // { label: '条码', name: 'LotNo', width: 200, align: 'left' },
  1259. // { label: '条码数量', name: 'Quantity', width: 200, align: 'left' },
  1260. // { label: '操作人', name: 'MUSERName', width: 200, align: 'left' },
  1261. // { label: '操作时间', name: 'MTIME', width: 200, align: 'left' },
  1262. //],
  1263. colModel: _Clos1,
  1264. //colModel: ColModelSub,
  1265. shrinkToFit: true,//宽度自适应
  1266. multiselect: true,
  1267. prmNames: { search: "search" },
  1268. viewrecords: true,
  1269. height: "100%",
  1270. rowNum: 20,
  1271. pager: subgrid_pager_id,
  1272. });
  1273. }
  1274. //其它入库生成条码
  1275. function gridList5() {
  1276. var $gridList = $("#gridList");
  1277. var queryJson = {
  1278. POCode: $("#txt_POCode").val(),
  1279. InvCode: $("#txt_InvCode").val(),
  1280. InvName: $("#txt_InvName").val(),
  1281. BatchCode: $("#txt_BatchCode").val(),
  1282. Area: $("#txt_Area").val(),
  1283. Location: $("#txt_Location").val(),
  1284. Container: $("#txt_Container :checked").val(),
  1285. }
  1286. $gridList.dataGrid({
  1287. url: "/WMS/WMSCreateItemLot/GetGridJsonQiTa" + "?" + Math.random(),
  1288. postData: { queryJson: JSON.stringify(queryJson) },
  1289. height: $(window).height() - 200,
  1290. width: $(window).width() - 300,
  1291. colModel: _Clos,
  1292. //colModel: [
  1293. // { label: "主键", name: "ID", hidden: true, key: true },
  1294. // { label: '单据号', name: 'InCode', width: 120, align: 'left' },
  1295. // { label: '行号', name: 'Sequence', width: 50, align: 'left' },
  1296. // { label: '仓库编码', name: 'WHCode', width: 120, align: 'left' },
  1297. // { label: '料品编码', name: 'InvCode', width: 50, align: 'left' },
  1298. // { label: '物料描述', name: 'InvName', width: 120, align: 'left' },
  1299. // { label: '辅助描述', name: 'InvDesc', width: 50, align: 'left' },
  1300. // { label: '料品型号', name: 'InvStd', width: 150, align: 'left' },
  1301. // { label: '料品单位', name: 'InvStd', width: 50, align: 'left' },
  1302. // { label: '数量', name: 'Quantity', width: 100, align: 'left' },
  1303. // { label: '已生成数量', name: 'LOTQTY', width: 100, align: 'left' },
  1304. // { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' },
  1305. // { label: '已入数量', name: 'InQuantity', width: 60, align: 'left', },
  1306. // { label: '创建人', name: 'CreatePerson', width: 60, align: 'left', },
  1307. // { label: '创建时间', name: 'CreateDateTime', width: 100, align: 'left' },
  1308. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  1309. //],
  1310. //colModel: ColModelMain,
  1311. width: "100%",
  1312. autowidth: true,
  1313. //shrinkToFit: true,
  1314. gridComplete: function () {
  1315. },
  1316. pager: "#gridPager",
  1317. sortname: 'InCode',
  1318. sortorder: "desc",
  1319. viewrecords: true,
  1320. multiselect: true,
  1321. beforeSelectRow: function (rowid, e) {
  1322. $("#gridList").jqGrid('resetSelection');
  1323. return (true);
  1324. },
  1325. subGrid: true, // (1)开启子表格支持
  1326. subGridRowExpanded: function (subgrid_id, rowid) { // (2)子表格容器的id和需要展开子表格的行id,将传入此事件函数
  1327. $("#gridList").jqGrid("setSelection", rowid, false);
  1328. bindSubGrid5(subgrid_id, rowid)
  1329. }
  1330. });
  1331. $("#warehouse a.btn-default").click(function () {
  1332. $("#warehouse a.btn-default").removeClass("active");
  1333. $(this).addClass("active");
  1334. $('#btn_search').trigger("click");
  1335. });
  1336. $("#btn_search").click(function () {
  1337. var warehouse = $("#warehouse a.active").attr('data-value');
  1338. var queryJson = {
  1339. POCode: $("#txt_POCode").val(),
  1340. InvCode: $("#txt_InvCode").val(),
  1341. InvName: $("#txt_InvName").val(),
  1342. BatchCode: $("#txt_BatchCode").val(),
  1343. Area: $("#txt_Area").val(),
  1344. Location: $("#txt_Location").val(),
  1345. Container: $("#txt_Container :checked").val(),
  1346. }
  1347. $gridList.jqGrid('setGridParam', {
  1348. page: 1,
  1349. postData: { queryJson: JSON.stringify(queryJson) },
  1350. }).trigger('reloadGrid');
  1351. });
  1352. }
  1353. function bindSubGrid5(subgrid_id, rowid) {
  1354. $("#gridList").jqGrid("setSelection", rowid, false);
  1355. var subgrid_table_id;
  1356. subgrid_table_id = subgrid_id + "_t"; // (3)根据subgrid_id定义对应的子表格的table的id
  1357. var subgrid_pager_id;
  1358. subgrid_pager_id = subgrid_id + "_pgr" // (4)根据subgrid_id定义对应的子表格的pager的id
  1359. // (5)动态添加子报表的table和pager
  1360. $("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + subgrid_pager_id + "' class='scroll'></div>");
  1361. var InCode = $("#gridList").jqGrid('getRowData', rowid).InCode;
  1362. var Sequence = $("#gridList").jqGrid('getRowData', rowid).Sequence;
  1363. // (6)创建jqGrid对象
  1364. $("#" + subgrid_table_id).dataGrid({
  1365. cellEdit: true,
  1366. url: "/WMS/WMSCreateItemLot/GetSubGridJson?ApplyNegCode=" + InCode + "&Sequence=" + Sequence + "&Type=" + Type + "&" + Math.random(), // (7)子表格数据对应的url,注意传入的contact.id参数
  1367. //colModel: [
  1368. // { label: "主键", name: "ID", hidden: true, key: true },
  1369. // { label: "来源单据号", name: "TransCode", width: 200, align: 'left' },
  1370. // { label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' },
  1371. // { label: '条码', name: 'LotNo', width: 200, align: 'left' },
  1372. // { label: '条码数量', name: 'Quantity', width: 200, align: 'left' },
  1373. // { label: '操作人', name: 'MUSERName', width: 200, align: 'left' },
  1374. // { label: '操作时间', name: 'MTIME', width: 200, align: 'left' },
  1375. //],
  1376. colModel: _Clos1,
  1377. //colModel: ColModelSub,
  1378. shrinkToFit: true,//宽度自适应
  1379. multiselect: true,
  1380. prmNames: { search: "search" },
  1381. viewrecords: true,
  1382. height: "100%",
  1383. rowNum: 20,
  1384. pager: subgrid_pager_id,
  1385. });
  1386. }
  1387. //归还单生成条码
  1388. function gridList6() {
  1389. var $gridList = $("#gridList");
  1390. var queryJson = {
  1391. POCode: $("#txt_POCode").val(),
  1392. InvCode: $("#txt_InvCode").val(),
  1393. InvName: $("#txt_InvName").val(),
  1394. BatchCode: $("#txt_BatchCode").val(),
  1395. Area: $("#txt_Area").val(),
  1396. }
  1397. $gridList.dataGrid({
  1398. url: "/WMS/WMSCreateItemLot/GetGridJsonGuiHuan" + "?" + Math.random(),
  1399. postData: { queryJson: JSON.stringify(queryJson) },
  1400. height: $(window).height() - 200,
  1401. width: $(window).width() - 300,
  1402. colModel: _Clos,
  1403. //colModel: [
  1404. // { label: "主键", name: "ID", hidden: true, key: true },
  1405. // { label: '单据号', name: 'ReturnCode', width: 120, align: 'left' },
  1406. // { label: '行号', name: 'Sequence', width: 50, align: 'left' },
  1407. // { label: '仓库编码', name: 'WHCode', width: 120, align: 'left' },
  1408. // { label: '料品编码', name: 'InvCode', width: 50, align: 'left' },
  1409. // { label: '物料描述', name: 'InvName', width: 120, align: 'left' },
  1410. // { label: '辅助描述', name: 'InvDesc', width: 50, align: 'left' },
  1411. // { label: '料品型号', name: 'InvStd', width: 150, align: 'left' },
  1412. // { label: '料品单位', name: 'InvStd', width: 50, align: 'left' },
  1413. // { label: '数量', name: 'Quantity', width: 100, align: 'left' },
  1414. // { label: '已生成数量', name: 'LOTQTY', width: 100, align: 'left' },
  1415. // { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' },
  1416. // { label: '已归还数量', name: 'ReturnQuantity', width: 60, align: 'left', },
  1417. // { label: '创建人', name: 'CreatePerson', width: 60, align: 'left', },
  1418. // { label: '创建时间', name: 'CreateDateTime', width: 100, align: 'left' },
  1419. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  1420. //],
  1421. //colModel: ColModelMain,
  1422. width: "100%",
  1423. autowidth: true,
  1424. //shrinkToFit: true,
  1425. gridComplete: function () {
  1426. },
  1427. pager: "#gridPager",
  1428. sortname: 'ReturnCode',
  1429. sortorder: "desc",
  1430. viewrecords: true,
  1431. multiselect: true,
  1432. beforeSelectRow: function (rowid, e) {
  1433. $("#gridList").jqGrid('resetSelection');
  1434. return (true);
  1435. },
  1436. subGrid: true, // (1)开启子表格支持
  1437. subGridRowExpanded: function (subgrid_id, rowid) { // (2)子表格容器的id和需要展开子表格的行id,将传入此事件函数
  1438. $("#gridList").jqGrid("setSelection", rowid, false);
  1439. bindSubGrid6(subgrid_id, rowid)
  1440. }
  1441. });
  1442. $("#warehouse a.btn-default").click(function () {
  1443. $("#warehouse a.btn-default").removeClass("active");
  1444. $(this).addClass("active");
  1445. $('#btn_search').trigger("click");
  1446. });
  1447. $("#btn_search").click(function () {
  1448. var warehouse = $("#warehouse a.active").attr('data-value');
  1449. var queryJson = {
  1450. POCode: $("#txt_POCode").val(),
  1451. InvCode: $("#txt_InvCode").val(),
  1452. InvName: $("#txt_InvName").val(),
  1453. BatchCode: $("#txt_BatchCode").val(),
  1454. Area: $("#txt_Area").val(),
  1455. }
  1456. $gridList.jqGrid('setGridParam', {
  1457. page: 1,
  1458. postData: { queryJson: JSON.stringify(queryJson) },
  1459. }).trigger('reloadGrid');
  1460. });
  1461. }
  1462. function bindSubGrid6(subgrid_id, rowid) {
  1463. $("#gridList").jqGrid("setSelection", rowid, false);
  1464. var subgrid_table_id;
  1465. subgrid_table_id = subgrid_id + "_t"; // (3)根据subgrid_id定义对应的子表格的table的id
  1466. var subgrid_pager_id;
  1467. subgrid_pager_id = subgrid_id + "_pgr" // (4)根据subgrid_id定义对应的子表格的pager的id
  1468. // (5)动态添加子报表的table和pager
  1469. $("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + subgrid_pager_id + "' class='scroll'></div>");
  1470. var ReturnCode = $("#gridList").jqGrid('getRowData', rowid).ReturnCode;
  1471. var Sequence = $("#gridList").jqGrid('getRowData', rowid).Sequence;
  1472. // (6)创建jqGrid对象
  1473. $("#" + subgrid_table_id).dataGrid({
  1474. cellEdit: true,
  1475. url: "/WMS/WMSCreateItemLot/GetSubGridJson?ApplyNegCode=" + ReturnCode + "&Sequence=" + Sequence + "&Type=" + Type + "&" + Math.random(), // (7)子表格数据对应的url,注意传入的contact.id参数
  1476. //colModel: [
  1477. // { label: "主键", name: "ID", hidden: true, key: true },
  1478. // { label: "来源单据号", name: "TransCode", width: 200, align: 'left' },
  1479. // { label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' },
  1480. // { label: '条码', name: 'LotNo', width: 200, align: 'left' },
  1481. // { label: '条码数量', name: 'Quantity', width: 200, align: 'left' },
  1482. // { label: '操作人', name: 'MUSERName', width: 200, align: 'left' },
  1483. // { label: '操作时间', name: 'MTIME', width: 200, align: 'left' },
  1484. //],
  1485. colModel: _Clos1,
  1486. //colModel: ColModelSub,
  1487. shrinkToFit: true,//宽度自适应
  1488. multiselect: true,
  1489. prmNames: { search: "search" },
  1490. viewrecords: true,
  1491. height: "100%",
  1492. rowNum: 20,
  1493. pager: subgrid_pager_id,
  1494. });
  1495. }
  1496. //*审核到货单生成条码
  1497. function gridList7() {
  1498. debugger;
  1499. var $gridList = $("#gridList");
  1500. var queryJson = {
  1501. POCode: $("#txt_POCode").val(),
  1502. VenCode: $("#txt_VenCode").val(),
  1503. VenName: $("#txt_VenName").val(),
  1504. Area: $("#txt_Area").val(),
  1505. Location: $("#txt_Location").val(),
  1506. InvCode: $("#txt_InvCode").val(),
  1507. InvName: $("#txt_InvName").val(),
  1508. BatchCode: $("#txt_BatchCode").val(),
  1509. Container: $("#txt_Container :checked").val(),
  1510. }
  1511. $gridList.dataGrid({
  1512. url: "/WMS/WMSCreateItemLot/GetGridJsonSHDH" + "?" + Math.random(),
  1513. postData: { queryJson: JSON.stringify(queryJson) },
  1514. height: $(window).height() - 200,
  1515. width: $(window).width() - 300,
  1516. colModel: _Clos,
  1517. //colModel: [
  1518. // { label: "主键", name: "ID", hidden: true, key: true },
  1519. // { label: '单据号', name: 'DNCode', width: 120, align: 'left' },
  1520. // { label: '行号', name: 'Sequence', width: 50, align: 'left' },
  1521. // { label: '采购订单号', name: 'POCode', width: 50, align: 'left' },
  1522. // { label: '采购订单行号', name: 'POSequence', width: 50, align: 'left' },
  1523. // { label: '供应商代码', name: 'VenCode', width: 120, align: 'left' },
  1524. // { label: '供应商名称', name: 'VenName', width: 120, align: 'left' },
  1525. // { label: '料品编码', name: 'InvCode', width: 50, align: 'left' },
  1526. // { label: '物料描述', name: 'InvName', width: 120, align: 'left' },
  1527. // { label: '辅助描述', name: 'InvDesc', width: 50, align: 'left' },
  1528. // { label: '料品型号', name: 'InvStd', width: 150, align: 'left' },
  1529. // { label: '料品单位', name: 'InvUnit', width: 50, align: 'left' },
  1530. // { label: '数量', name: 'Quantity', width: 100, align: 'left' },
  1531. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  1532. // { label: '已生成数量', name: 'LOTQTY', width: 100, align: 'left' },
  1533. // { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' },
  1534. // { label: '入库数量', name: 'RCVQuantity', width: 60, align: 'left', },
  1535. // { label: '币种', name: 'Currency', width: 60, align: 'left', },
  1536. // { label: '创建人', name: 'CreatePerson', width: 60, align: 'left', },
  1537. // { label: '创建时间', name: 'CreateDateTime', width: 100, align: 'left' },
  1538. //],
  1539. //colModel: ColModelMain,
  1540. width: "100%",
  1541. autowidth: true,
  1542. //shrinkToFit: true,
  1543. gridComplete: function () {
  1544. },
  1545. pager: "#gridPager",
  1546. sortname: 'DNCode',
  1547. sortorder: "desc",
  1548. viewrecords: true,
  1549. multiselect: true,
  1550. beforeSelectRow: function (rowid, e) {
  1551. $("#gridList").jqGrid('resetSelection');
  1552. return (true);
  1553. },
  1554. subGrid: true, // (1)开启子表格支持
  1555. subGridRowExpanded: function (subgrid_id, rowid) { // (2)子表格容器的id和需要展开子表格的行id,将传入此事件函数
  1556. $("#gridList").jqGrid("setSelection", rowid, false);
  1557. bindSubGrid7(subgrid_id, rowid)
  1558. }
  1559. });
  1560. $("#warehouse a.btn-default").click(function () {
  1561. $("#warehouse a.btn-default").removeClass("active");
  1562. $(this).addClass("active");
  1563. $('#btn_search').trigger("click");
  1564. });
  1565. $("#btn_search").click(function () {
  1566. var warehouse = $("#warehouse a.active").attr('data-value');
  1567. var queryJson = {
  1568. POCode: $("#txt_POCode").val(),
  1569. VenCode: $("#txt_VenCode").val(),
  1570. VenName: $("#txt_VenName").val(),
  1571. Area: $("#txt_Area").val(),
  1572. Location: $("#txt_Location").val(),
  1573. InvCode: $("#txt_InvCode").val(),
  1574. InvName: $("#txt_InvName").val(),
  1575. BatchCode: $("#txt_BatchCode").val(),
  1576. Container: $("#txt_Container :checked").val(),
  1577. }
  1578. $gridList.jqGrid('setGridParam', {
  1579. postData: { queryJson: JSON.stringify(queryJson) },
  1580. page: 1,
  1581. }).trigger('reloadGrid');
  1582. });
  1583. }
  1584. function bindSubGrid7(subgrid_id, rowid) {
  1585. $("#gridList").jqGrid("setSelection", rowid, false);
  1586. var subgrid_table_id;
  1587. subgrid_table_id = subgrid_id + "_t"; // (3)根据subgrid_id定义对应的子表格的table的id
  1588. var subgrid_pager_id;
  1589. subgrid_pager_id = subgrid_id + "_pgr" // (4)根据subgrid_id定义对应的子表格的pager的id
  1590. // (5)动态添加子报表的table和pager
  1591. $("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + subgrid_pager_id + "' class='scroll'></div>");
  1592. var DNCode = $("#gridList").jqGrid('getRowData', rowid).DNCode;
  1593. var Sequence = $("#gridList").jqGrid('getRowData', rowid).Sequence;
  1594. // (6)创建jqGrid对象
  1595. $("#" + subgrid_table_id).dataGrid({
  1596. cellEdit: true,
  1597. url: "/WMS/WMSCreateItemLot/GetSubGridJson?ApplyNegCode=" + DNCode + "&Sequence=" + Sequence + "&Type=" + Type + "&" + Math.random(), // (7)子表格数据对应的url,注意传入的contact.id参数
  1598. //colModel: [
  1599. // { label: "主键", name: "ID", hidden: true, key: true },
  1600. // { label: "来源单据号", name: "TransCode", width: 200, align: 'left' },
  1601. // { label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' },
  1602. // { label: '条码', name: 'LotNo', width: 200, align: 'left' },
  1603. // { label: '条码数量', name: 'Quantity', width: 200, align: 'left' },
  1604. // { label: '操作人', name: 'MUSERName', width: 200, align: 'left' },
  1605. // { label: '操作时间', name: 'MTIME', width: 200, align: 'left' },
  1606. //],
  1607. colModel: _Clos1,
  1608. //colModel: ColModelSub,
  1609. shrinkToFit: true,//宽度自适应
  1610. multiselect: true,
  1611. prmNames: { search: "search" },
  1612. viewrecords: true,
  1613. height: "100%",
  1614. rowNum: 20,
  1615. pager: subgrid_pager_id,
  1616. });
  1617. }
  1618. //审核委外到货单生成条码
  1619. function gridList8() {
  1620. var $gridList = $("#gridList");
  1621. var queryJson = {
  1622. POCode: $("#txt_POCode").val(),
  1623. VenCode: $("#txt_VenCode").val(),
  1624. VenName: $("#txt_VenName").val(),
  1625. InvCode: $("#txt_InvCode").val(),
  1626. InvName: $("#txt_InvName").val(),
  1627. BatchCode: $("#txt_BatchCode").val(),
  1628. Area: $("#txt_Area").val(),
  1629. Container: $("#txt_Container :checked").val(),
  1630. }
  1631. $gridList.dataGrid({
  1632. url: "/WMS/WMSCreateItemLot/GetGridJsonWWSHDH" + "?" + Math.random(),
  1633. postData: { queryJson: JSON.stringify(queryJson) },
  1634. height: $(window).height() - 200,
  1635. width: $(window).width() - 300,
  1636. colModel: _Clos,
  1637. //colModel: [
  1638. // { label: "主键", name: "ID", hidden: true, key: true },
  1639. // { label: '单据号', name: 'ODNCode', width: 120, align: 'left' },
  1640. // { label: '行号', name: 'Sequence', width: 50, align: 'left' },
  1641. // { label: '委外采购订单号', name: 'OOCode', width: 120, align: 'left' },
  1642. // { label: '委外采购订单行号', name: 'OOSequence', width: 50, align: 'left' },
  1643. // { label: '供应商代码', name: 'VenCode', width: 120, align: 'left' },
  1644. // { label: '供应商名称', name: 'VenName', width: 120, align: 'left' },
  1645. // { label: '料品编码', name: 'InvCode', width: 50, align: 'left' },
  1646. // { label: '物料描述', name: 'InvName', width: 120, align: 'left' },
  1647. // { label: '辅助描述', name: 'InvDesc', width: 50, align: 'left' },
  1648. // { label: '料品型号', name: 'InvStd', width: 150, align: 'left' },
  1649. // { label: '料品单位', name: 'InvStd', width: 50, align: 'left' },
  1650. // { label: '数量', name: 'Quantity', width: 100, align: 'left' },
  1651. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  1652. // { label: '已生成数量', name: 'LOTQTY', width: 100, align: 'left' },
  1653. // { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' },
  1654. // { label: '入库数量', name: 'RCVQuantity', width: 60, align: 'left', },
  1655. // { label: '币种', name: 'Currency', width: 60, align: 'left', },
  1656. // { label: '创建人', name: 'CreatePerson', width: 60, align: 'left', },
  1657. // { label: '创建时间', name: 'CreateDateTime', width: 100, align: 'left' },
  1658. //],
  1659. //colModel: ColModelMain,
  1660. width: "100%",
  1661. autowidth: true,
  1662. //shrinkToFit: true,
  1663. gridComplete: function () {
  1664. },
  1665. pager: "#gridPager",
  1666. sortname: 'ODNCode',
  1667. sortorder: "desc",
  1668. viewrecords: true,
  1669. multiselect: true,
  1670. beforeSelectRow: function (rowid, e) {
  1671. $("#gridList").jqGrid('resetSelection');
  1672. return (true);
  1673. },
  1674. subGrid: true, // (1)开启子表格支持
  1675. subGridRowExpanded: function (subgrid_id, rowid) { // (2)子表格容器的id和需要展开子表格的行id,将传入此事件函数
  1676. $("#gridList").jqGrid("setSelection", rowid, false);
  1677. bindSubGrid8(subgrid_id, rowid)
  1678. }
  1679. });
  1680. $("#warehouse a.btn-default").click(function () {
  1681. $("#warehouse a.btn-default").removeClass("active");
  1682. $(this).addClass("active");
  1683. $('#btn_search').trigger("click");
  1684. });
  1685. $("#btn_search").click(function () {
  1686. var warehouse = $("#warehouse a.active").attr('data-value');
  1687. var queryJson = {
  1688. POCode: $("#txt_POCode").val(),
  1689. VenCode: $("#txt_VenCode").val(),
  1690. VenName: $("#txt_VenName").val(),
  1691. InvCode: $("#txt_InvCode").val(),
  1692. InvName: $("#txt_InvName").val(),
  1693. BatchCode: $("#txt_BatchCode").val(),
  1694. Area: $("#txt_Area").val(),
  1695. Container: $("#txt_Container :checked").val(),
  1696. }
  1697. $gridList.jqGrid('setGridParam', {
  1698. page: 1,
  1699. postData: { queryJson: JSON.stringify(queryJson) },
  1700. }).trigger('reloadGrid');
  1701. });
  1702. }
  1703. function bindSubGrid8(subgrid_id, rowid) {
  1704. $("#gridList").jqGrid("setSelection", rowid, false);
  1705. var subgrid_table_id;
  1706. subgrid_table_id = subgrid_id + "_t"; // (3)根据subgrid_id定义对应的子表格的table的id
  1707. var subgrid_pager_id;
  1708. subgrid_pager_id = subgrid_id + "_pgr" // (4)根据subgrid_id定义对应的子表格的pager的id
  1709. // (5)动态添加子报表的table和pager
  1710. $("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + subgrid_pager_id + "' class='scroll'></div>");
  1711. var ODNCode = $("#gridList").jqGrid('getRowData', rowid).ODNCode;
  1712. var Sequence = $("#gridList").jqGrid('getRowData', rowid).Sequence;
  1713. // (6)创建jqGrid对象
  1714. $("#" + subgrid_table_id).dataGrid({
  1715. cellEdit: true,
  1716. url: "/WMS/WMSCreateItemLot/GetSubGridJson?ApplyNegCode=" + ODNCode + "&Sequence=" + Sequence + "&Type=" + Type + "&" + Math.random(), // (7)子表格数据对应的url,注意传入的contact.id参数
  1717. //colModel: [
  1718. // { label: "主键", name: "ID", hidden: true, key: true },
  1719. // { label: "来源单据号", name: "TransCode", width: 200, align: 'left' },
  1720. // { label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' },
  1721. // { label: '条码', name: 'LotNo', width: 200, align: 'left' },
  1722. // { label: '条码数量', name: 'Quantity', width: 200, align: 'left' },
  1723. // { label: '操作人', name: 'MUSERName', width: 200, align: 'left' },
  1724. // { label: '操作时间', name: 'MTIME', width: 200, align: 'left' },
  1725. //],
  1726. colModel: _Clos1,
  1727. //colModel: ColModelSub,
  1728. shrinkToFit: true,//宽度自适应
  1729. multiselect: true,
  1730. prmNames: { search: "search" },
  1731. viewrecords: true,
  1732. height: "100%",
  1733. rowNum: 20,
  1734. pager: subgrid_pager_id,
  1735. });
  1736. }
  1737. //开立得成品入库单 生成条码
  1738. function gridList9() {
  1739. var $gridList = $("#gridList");
  1740. var queryJson = {
  1741. POCode: $("#txt_POCode").val(),
  1742. OrderNumber: $("#txt_OrderNumber").val(),
  1743. Area: $("#txt_Area").val(),
  1744. InvCode: $("#txt_InvCode").val(),
  1745. InvName: $("#txt_InvName").val(),
  1746. BatchCode: $("#txt_BatchCode").val(),
  1747. Container: $("#txt_Container :checked").val(),
  1748. }
  1749. $gridList.dataGrid({
  1750. url: "/WMS/WMSCreateItemLot/GetGridJsonKLCPRK" + "?" + Math.random(),
  1751. postData: { queryJson: JSON.stringify(queryJson) },
  1752. height: $(window).height() - 200,
  1753. width: $(window).width() - 300,
  1754. colModel: _Clos,
  1755. //colModel: [
  1756. // { label: "主键", name: "ID", hidden: true, key: true },
  1757. // { label: '单据号', name: 'RCVCode', width: 120, align: 'left' },
  1758. // { label: '行号', name: 'Sequence', width: 50, align: 'left' },
  1759. // { label: '仓库号', name: 'WHCode', width: 120, align: 'left' },
  1760. // { label: '料品编码', name: 'InvCode', width: 50, align: 'left' },
  1761. // { label: '物料描述', name: 'InvName', width: 120, align: 'left' },
  1762. // { label: '辅助描述', name: 'InvDesc', width: 50, align: 'left' },
  1763. // { label: '料品型号', name: 'InvStd', width: 150, align: 'left' },
  1764. // { label: '料品单位', name: 'InvStd', width: 50, align: 'left' },
  1765. // { label: '数量', name: 'Quantity', width: 100, align: 'left' },
  1766. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  1767. // { label: '已生成数量', name: 'LOTQTY', width: 100, align: 'left' },
  1768. // { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' },
  1769. // { label: '入库数量', name: 'RCVQuantity', width: 60, align: 'left', },
  1770. // { label: '创建人', name: 'CreatePerson', width: 60, align: 'left', },
  1771. // { label: '创建时间', name: 'CreateDateTime', width: 100, align: 'left' },
  1772. //],
  1773. //colModel: ColModelMain,
  1774. width: "100%",
  1775. autowidth: true,
  1776. //shrinkToFit: true,
  1777. gridComplete: function () {
  1778. },
  1779. pager: "#gridPager",
  1780. sortname: 'RCVCode',
  1781. sortorder: "desc",
  1782. viewrecords: true,
  1783. multiselect: true,
  1784. beforeSelectRow: function (rowid, e) {
  1785. $("#gridList").jqGrid('resetSelection');
  1786. return (true);
  1787. },
  1788. subGrid: true, // (1)开启子表格支持
  1789. subGridRowExpanded: function (subgrid_id, rowid) { // (2)子表格容器的id和需要展开子表格的行id,将传入此事件函数
  1790. $("#gridList").jqGrid("setSelection", rowid, false);
  1791. bindSubGrid9(subgrid_id, rowid)
  1792. }
  1793. });
  1794. $("#warehouse a.btn-default").click(function () {
  1795. $("#warehouse a.btn-default").removeClass("active");
  1796. $(this).addClass("active");
  1797. $('#btn_search').trigger("click");
  1798. });
  1799. $("#btn_search").click(function () {
  1800. var warehouse = $("#warehouse a.active").attr('data-value');
  1801. var queryJson = {
  1802. POCode: $("#txt_POCode").val(),
  1803. OrderNumber: $("#txt_OrderNumber").val(),
  1804. Area: $("#txt_Area").val(),
  1805. InvCode: $("#txt_InvCode").val(),
  1806. InvName: $("#txt_InvName").val(),
  1807. BatchCode: $("#txt_BatchCode").val(),
  1808. Container: $("#txt_Container :checked").val(),
  1809. }
  1810. $gridList.jqGrid('setGridParam', {
  1811. page: 1,
  1812. postData: { queryJson: JSON.stringify(queryJson) },
  1813. }).trigger('reloadGrid');
  1814. });
  1815. }
  1816. function bindSubGrid9(subgrid_id, rowid) {
  1817. $("#gridList").jqGrid("setSelection", rowid, false);
  1818. var subgrid_table_id;
  1819. subgrid_table_id = subgrid_id + "_t"; // (3)根据subgrid_id定义对应的子表格的table的id
  1820. var subgrid_pager_id;
  1821. subgrid_pager_id = subgrid_id + "_pgr" // (4)根据subgrid_id定义对应的子表格的pager的id
  1822. // (5)动态添加子报表的table和pager
  1823. $("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + subgrid_pager_id + "' class='scroll'></div>");
  1824. var RCVCode = $("#gridList").jqGrid('getRowData', rowid).RCVCode;
  1825. var Sequence = $("#gridList").jqGrid('getRowData', rowid).Sequence;
  1826. // (6)创建jqGrid对象
  1827. $("#" + subgrid_table_id).dataGrid({
  1828. cellEdit: true,
  1829. url: "/WMS/WMSCreateItemLot/GetSubGridJson?ApplyNegCode=" + RCVCode + "&Sequence=" + Sequence + "&Type=" + Type + "&" + Math.random(), // (7)子表格数据对应的url,注意传入的contact.id参数
  1830. //colModel: [
  1831. // { label: "主键", name: "ID", hidden: true, key: true },
  1832. // { label: "来源单据号", name: "TransCode", width: 200, align: 'left' },
  1833. // { label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' },
  1834. // { label: '条码', name: 'LotNo', width: 200, align: 'left' },
  1835. // { label: '条码数量', name: 'Quantity', width: 200, align: 'left' },
  1836. // { label: '操作人', name: 'MUSERName', width: 200, align: 'left' },
  1837. // { label: '操作时间', name: 'MTIME', width: 200, align: 'left' },
  1838. //],
  1839. colModel: _Clos1,
  1840. //colModel: ColModelSub,
  1841. shrinkToFit: true,//宽度自适应
  1842. multiselect: true,
  1843. prmNames: { search: "search" },
  1844. viewrecords: true,
  1845. height: "100%",
  1846. rowNum: 20,
  1847. pager: subgrid_pager_id,
  1848. });
  1849. }
  1850. //采购拒收单
  1851. function gridList10() {
  1852. var $gridList = $("#gridList");
  1853. var queryJson = {
  1854. POCode: $("#txt_POCode").val(),
  1855. VenCode: $("#txt_VenCode").val(),
  1856. VenName: $("#txt_VenName").val(),
  1857. InvCode: $("#txt_InvCode").val(),
  1858. InvName: $("#txt_InvName").val(),
  1859. BatchCode: $("#txt_BatchCode").val(),
  1860. Area: $("#txt_Area").val(),
  1861. }
  1862. $gridList.dataGrid({
  1863. url: "/WMS/WMSCreateItemLot/GetGridJsonJSD" + "?" + Math.random(),
  1864. postData: { queryJson: JSON.stringify(queryJson) },
  1865. height: $(window).height() - 200,
  1866. width: $(window).width() - 300,
  1867. colModel: _Clos,
  1868. //colModel: [
  1869. // { label: "主键", name: "ID", hidden: true, key: true },
  1870. // { label: '拒收单号', name: 'DNCode', width: 120, align: 'left' },
  1871. // { label: '拒收单行号', name: 'Sequence', width: 50, align: 'left' },
  1872. // { label: '供应商代码', name: 'VenCode', width: 120, align: 'left' },
  1873. // { label: '供应商名称', name: 'VenName', width: 120, align: 'left' },
  1874. // { label: '料品编码', name: 'InvCode', width: 50, align: 'left' },
  1875. // { label: '物料描述', name: 'InvName', width: 120, align: 'left' },
  1876. // { label: '辅助描述', name: 'InvDesc', width: 50, align: 'left' },
  1877. // { label: '料品型号', name: 'InvStd', width: 150, align: 'left' },
  1878. // { label: '料品单位', name: 'InvUnit', width: 50, align: 'left' },
  1879. // { label: '数量', name: 'Quantity', width: 100, align: 'left' },
  1880. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  1881. // { label: '已生成数量', name: 'LOTQTY', width: 100, align: 'left' },
  1882. // { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' },
  1883. // { label: '入库数量', name: 'RCVQuantity', width: 60, align: 'left', },
  1884. // { label: '币种', name: 'Currency', width: 60, align: 'left', },
  1885. // { label: '创建人', name: 'CreatePerson', width: 60, align: 'left', },
  1886. // { label: '创建时间', name: 'CreateDateTime', width: 100, align: 'left' },
  1887. //],
  1888. //colModel: ColModelMain,
  1889. width: "100%",
  1890. autowidth: true,
  1891. //shrinkToFit: true,
  1892. gridComplete: function () {
  1893. },
  1894. pager: "#gridPager",
  1895. sortname: 'DNCode',
  1896. sortorder: "desc",
  1897. viewrecords: true,
  1898. multiselect: true,
  1899. beforeSelectRow: function (rowid, e) {
  1900. $("#gridList").jqGrid('resetSelection');
  1901. return (true);
  1902. },
  1903. subGrid: true, // (1)开启子表格支持
  1904. subGridRowExpanded: function (subgrid_id, rowid) { // (2)子表格容器的id和需要展开子表格的行id,将传入此事件函数
  1905. $("#gridList").jqGrid("setSelection", rowid, false);
  1906. bindSubGrid10(subgrid_id, rowid)
  1907. }
  1908. });
  1909. $("#warehouse a.btn-default").click(function () {
  1910. $("#warehouse a.btn-default").removeClass("active");
  1911. $(this).addClass("active");
  1912. $('#btn_search').trigger("click");
  1913. });
  1914. $("#btn_search").click(function () {
  1915. var warehouse = $("#warehouse a.active").attr('data-value');
  1916. var queryJson = {
  1917. POCode: $("#txt_POCode").val(),
  1918. VenCode: $("#txt_VenCode").val(),
  1919. VenName: $("#txt_VenName").val(),
  1920. InvCode: $("#txt_InvCode").val(),
  1921. InvName: $("#txt_InvName").val(),
  1922. BatchCode: $("#txt_BatchCode").val(),
  1923. Area: $("#txt_Area").val(),
  1924. }
  1925. $gridList.jqGrid('setGridParam', {
  1926. page: 1,
  1927. postData: { queryJson: JSON.stringify(queryJson) },
  1928. }).trigger('reloadGrid');
  1929. });
  1930. }
  1931. function bindSubGrid10(subgrid_id, rowid) {
  1932. $("#gridList").jqGrid("setSelection", rowid, false);
  1933. var subgrid_table_id;
  1934. subgrid_table_id = subgrid_id + "_t"; // (3)根据subgrid_id定义对应的子表格的table的id
  1935. var subgrid_pager_id;
  1936. subgrid_pager_id = subgrid_id + "_pgr" // (4)根据subgrid_id定义对应的子表格的pager的id
  1937. // (5)动态添加子报表的table和pager
  1938. $("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + subgrid_pager_id + "' class='scroll'></div>");
  1939. var DNCode = $("#gridList").jqGrid('getRowData', rowid).DNCode;
  1940. var Sequence = $("#gridList").jqGrid('getRowData', rowid).Sequence;
  1941. // (6)创建jqGrid对象
  1942. $("#" + subgrid_table_id).dataGrid({
  1943. cellEdit: true,
  1944. url: "/WMS/WMSCreateItemLot/GetSubGridJson?ApplyNegCode=" + DNCode + "&Sequence=" + Sequence + "&Type=" + Type + "&" + Math.random(), // (7)子表格数据对应的url,注意传入的contact.id参数
  1945. //colModel: [
  1946. // { label: "主键", name: "ID", hidden: true, key: true },
  1947. // { label: "来源单据号", name: "TransCode", width: 200, align: 'left' },
  1948. // { label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' },
  1949. // { label: '条码', name: 'LotNo', width: 200, align: 'left' },
  1950. // { label: '条码数量', name: 'Quantity', width: 200, align: 'left' },
  1951. // { label: '操作人', name: 'MUSERName', width: 200, align: 'left' },
  1952. // { label: '操作时间', name: 'MTIME', width: 200, align: 'left' },
  1953. //],
  1954. colModel: _Clos1,
  1955. //colModel: ColModelSub,
  1956. shrinkToFit: true,//宽度自适应
  1957. multiselect: true,
  1958. prmNames: { search: "search" },
  1959. viewrecords: true,
  1960. height: "100%",
  1961. rowNum: 20,
  1962. pager: subgrid_pager_id,
  1963. });
  1964. }
  1965. //委外拒收单生成条码
  1966. function gridList11() {
  1967. var $gridList = $("#gridList");
  1968. var queryJson = {
  1969. POCode: $("#txt_POCode").val(),
  1970. VenCode: $("#txt_VenCode").val(),
  1971. VenName: $("#txt_VenName").val(),
  1972. InvCode: $("#txt_InvCode").val(),
  1973. InvName: $("#txt_InvName").val(),
  1974. BatchCode: $("#txt_BatchCode").val(),
  1975. Area: $("#txt_Area").val(),
  1976. }
  1977. $gridList.dataGrid({
  1978. url: "/WMS/WMSCreateItemLot/GetGridJsonWWJSD" + "?" + Math.random(),
  1979. postData: { queryJson: JSON.stringify(queryJson) },
  1980. height: $(window).height() - 200,
  1981. width: $(window).width() - 300,
  1982. colModel: _Clos,
  1983. //colModel: [
  1984. // { label: "主键", name: "ID", hidden: true, key: true },
  1985. // { label: '委外拒收单号', name: 'OOCode', width: 120, align: 'left' },
  1986. // { label: '委外拒收单行号', name: 'OOSequence', width: 50, align: 'left' },
  1987. // { label: '供应商代码', name: 'VenCode', width: 120, align: 'left' },
  1988. // { label: '供应商名称', name: 'VenName', width: 120, align: 'left' },
  1989. // { label: '料品编码', name: 'InvCode', width: 50, align: 'left' },
  1990. // { label: '物料描述', name: 'InvName', width: 120, align: 'left' },
  1991. // { label: '辅助描述', name: 'InvDesc', width: 50, align: 'left' },
  1992. // { label: '料品型号', name: 'InvStd', width: 150, align: 'left' },
  1993. // { label: '料品单位', name: 'InvStd', width: 50, align: 'left' },
  1994. // { label: '数量', name: 'Quantity', width: 100, align: 'left' },
  1995. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  1996. // { label: '已生成数量', name: 'LOTQTY', width: 100, align: 'left' },
  1997. // { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' },
  1998. // { label: '入库数量', name: 'RCVQuantity', width: 60, align: 'left', },
  1999. // { label: '币种', name: 'Currency', width: 60, align: 'left', },
  2000. // { label: '创建人', name: 'CreatePerson', width: 60, align: 'left', },
  2001. // { label: '创建时间', name: 'CreateDateTime', width: 100, align: 'left' },
  2002. //],
  2003. //colModel: ColModelMain,
  2004. width: "100%",
  2005. autowidth: true,
  2006. //shrinkToFit: true,
  2007. gridComplete: function () {
  2008. },
  2009. pager: "#gridPager",
  2010. sortname: 'OOCode',
  2011. sortorder: "desc",
  2012. viewrecords: true,
  2013. multiselect: true,
  2014. beforeSelectRow: function (rowid, e) {
  2015. $("#gridList").jqGrid('resetSelection');
  2016. return (true);
  2017. },
  2018. subGrid: true, // (1)开启子表格支持
  2019. subGridRowExpanded: function (subgrid_id, rowid) { // (2)子表格容器的id和需要展开子表格的行id,将传入此事件函数
  2020. $("#gridList").jqGrid("setSelection", rowid, false);
  2021. bindSubGrid11(subgrid_id, rowid)
  2022. }
  2023. });
  2024. $("#warehouse a.btn-default").click(function () {
  2025. $("#warehouse a.btn-default").removeClass("active");
  2026. $(this).addClass("active");
  2027. $('#btn_search').trigger("click");
  2028. });
  2029. $("#btn_search").click(function () {
  2030. var warehouse = $("#warehouse a.active").attr('data-value');
  2031. var queryJson = {
  2032. POCode: $("#txt_POCode").val(),
  2033. VenCode: $("#txt_VenCode").val(),
  2034. VenName: $("#txt_VenName").val(),
  2035. InvCode: $("#txt_InvCode").val(),
  2036. InvName: $("#txt_InvName").val(),
  2037. BatchCode: $("#txt_BatchCode").val(),
  2038. Area: $("#txt_Area").val(),
  2039. }
  2040. $gridList.jqGrid('setGridParam', {
  2041. page: 1,
  2042. postData: { queryJson: JSON.stringify(queryJson) },
  2043. }).trigger('reloadGrid');
  2044. });
  2045. }
  2046. function bindSubGrid11(subgrid_id, rowid) {
  2047. $("#gridList").jqGrid("setSelection", rowid, false);
  2048. var subgrid_table_id;
  2049. subgrid_table_id = subgrid_id + "_t"; // (3)根据subgrid_id定义对应的子表格的table的id
  2050. var subgrid_pager_id;
  2051. subgrid_pager_id = subgrid_id + "_pgr" // (4)根据subgrid_id定义对应的子表格的pager的id
  2052. // (5)动态添加子报表的table和pager
  2053. $("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + subgrid_pager_id + "' class='scroll'></div>");
  2054. var ODNCode = $("#gridList").jqGrid('getRowData', rowid).OOCode;
  2055. var Sequence = $("#gridList").jqGrid('getRowData', rowid).OOSequence;
  2056. // (6)创建jqGrid对象
  2057. $("#" + subgrid_table_id).dataGrid({
  2058. cellEdit: true,
  2059. url: "/WMS/WMSCreateItemLot/GetSubGridJson?ApplyNegCode=" + ODNCode + "&Sequence=" + Sequence + "&Type=" + Type + "&" + Math.random(), // (7)子表格数据对应的url,注意传入的contact.id参数
  2060. //colModel: [
  2061. // { label: "主键", name: "ID", hidden: true, key: true },
  2062. // { label: "来源单据号", name: "TransCode", width: 200, align: 'left' },
  2063. // { label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' },
  2064. // { label: '条码', name: 'LotNo', width: 200, align: 'left' },
  2065. // { label: '条码数量', name: 'Quantity', width: 200, align: 'left' },
  2066. // { label: '操作人', name: 'MUSERName', width: 200, align: 'left' },
  2067. // { label: '操作时间', name: 'MTIME', width: 200, align: 'left' },
  2068. //],
  2069. colModel: _Clos1,
  2070. //colModel: ColModelSub,
  2071. shrinkToFit: true,//宽度自适应
  2072. multiselect: true,
  2073. prmNames: { search: "search" },
  2074. viewrecords: true,
  2075. height: "100%",
  2076. rowNum: 20,
  2077. pager: subgrid_pager_id,
  2078. });
  2079. }
  2080. //领料申请退料生成条码
  2081. function gridList12() {
  2082. var $gridList = $("#gridList");
  2083. var queryJson = {
  2084. POCode: $("#txt_POCode").val(),
  2085. InvCode: $("#txt_InvCode").val(),
  2086. InvName: $("#txt_InvName").val(),
  2087. BatchCode: $("#txt_BatchCode").val(),
  2088. Area: $("#txt_Area").val(),
  2089. Location: $("#txt_Location").val(),
  2090. Container: $("#txt_Container :checked").val(),
  2091. }
  2092. $gridList.dataGrid({
  2093. url: "/WMS/WMSCreateItemLot/GetGridJsonLLSQTL" + "?" + Math.random(),
  2094. postData: { queryJson: JSON.stringify(queryJson) },
  2095. height: $(window).height() - 200,
  2096. width: $(window).width() - 300,
  2097. colModel: _Clos,
  2098. //colModel: [
  2099. // { label: "主键", name: "ID", hidden: true, key: true },
  2100. // { label: '退料单号', name: 'ApplyNegCode', width: 120, align: 'left' },
  2101. // { label: '退料单行号', name: 'Sequence', width: 50, align: 'left' },
  2102. // { label: 'ERP子ID', name: 'SourceDetailID', hidden: true, },
  2103. // { label: '料品编码', name: 'InvCode', width: 100, align: 'left' },
  2104. // { label: '料品编码', name: 'InvName', width: 60, align: 'left', },
  2105. // { label: '数量', name: 'Quantity', width: 100, align: 'left' },
  2106. // { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' },
  2107. // { label: '已退数量', name: 'IssueNegQuantity', width: 100, align: 'left' },
  2108. // { label: '规格型号', name: 'InvStd', width: 60, align: 'left', },
  2109. // { label: '单位', name: 'InvUnit', width: 100, align: 'left' },
  2110. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  2111. // { label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', },
  2112. //],
  2113. //colModel: ColModelMain,
  2114. width: "100%",
  2115. autowidth: true,
  2116. //shrinkToFit: true,
  2117. gridComplete: function () {
  2118. },
  2119. pager: "#gridPager",
  2120. sortname: 'ApplyNegCode',
  2121. sortorder: "desc",
  2122. viewrecords: true,
  2123. multiselect: true,
  2124. beforeSelectRow: function (rowid, e) {
  2125. $("#gridList").jqGrid('resetSelection');
  2126. return (true);
  2127. },
  2128. subGrid: true, // (1)开启子表格支持
  2129. subGridRowExpanded: function (subgrid_id, rowid) { // (2)子表格容器的id和需要展开子表格的行id,将传入此事件函数
  2130. $("#gridList").jqGrid("setSelection", rowid, false);
  2131. bindSubGrid12(subgrid_id, rowid)
  2132. }
  2133. });
  2134. $("#warehouse a.btn-default").click(function () {
  2135. $("#warehouse a.btn-default").removeClass("active");
  2136. $(this).addClass("active");
  2137. $('#btn_search').trigger("click");
  2138. });
  2139. $("#btn_search").click(function () {
  2140. var warehouse = $("#warehouse a.active").attr('data-value');
  2141. var queryJson = {
  2142. POCode: $("#txt_POCode").val(),
  2143. InvCode: $("#txt_InvCode").val(),
  2144. InvName: $("#txt_InvName").val(),
  2145. BatchCode: $("#txt_BatchCode").val(),
  2146. Area: $("#txt_Area").val(),
  2147. Location: $("#txt_Location").val(),
  2148. Container: $("#txt_Container :checked").val(),
  2149. }
  2150. $gridList.jqGrid('setGridParam', {
  2151. page: 1,
  2152. postData: { queryJson: JSON.stringify(queryJson) },
  2153. }).trigger('reloadGrid');
  2154. });
  2155. }
  2156. function bindSubGrid12(subgrid_id, rowid) {
  2157. $("#gridList").jqGrid("setSelection", rowid, false);
  2158. var subgrid_table_id;
  2159. subgrid_table_id = subgrid_id + "_t"; // (3)根据subgrid_id定义对应的子表格的table的id
  2160. var subgrid_pager_id;
  2161. subgrid_pager_id = subgrid_id + "_pgr" // (4)根据subgrid_id定义对应的子表格的pager的id
  2162. // (5)动态添加子报表的table和pager
  2163. $("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + subgrid_pager_id + "' class='scroll'></div>");
  2164. var ApplyNegCode = $("#gridList").jqGrid('getRowData', rowid).ApplyNegCode;
  2165. var Sequence = $("#gridList").jqGrid('getRowData', rowid).Sequence;
  2166. // (6)创建jqGrid对象
  2167. $("#" + subgrid_table_id).dataGrid({
  2168. cellEdit: true,
  2169. url: "/WMS/WMSCreateItemLot/GetSubGridJson?ApplyNegCode=" + ApplyNegCode + "&Sequence=" + Sequence + "&Type=" + Type + "&" + Math.random(), // (7)子表格数据对应的url,注意传入的contact.id参数
  2170. //colModel: [
  2171. // { label: "主键", name: "ID", hidden: true, key: true },
  2172. // { label: "来源单据号", name: "TransCode", width: 200, align: 'left' },
  2173. // { label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' },
  2174. // { label: '条码', name: 'LotNo', width: 200, align: 'left' },
  2175. // { label: '条码数量', name: 'Quantity', width: 200, align: 'left' },
  2176. // { label: '操作人', name: 'MUSERName', width: 200, align: 'left' },
  2177. // { label: '操作时间', name: 'MTIME', width: 200, align: 'left' },
  2178. //],
  2179. colModel: _Clos1,
  2180. //colModel: ColModelSub,
  2181. shrinkToFit: true,//宽度自适应
  2182. multiselect: true,
  2183. prmNames: { search: "search" },
  2184. viewrecords: true,
  2185. height: "100%",
  2186. rowNum: 20,
  2187. pager: subgrid_pager_id,
  2188. });
  2189. }
  2190. //材料出库退料
  2191. function gridList13() {
  2192. var $gridList = $("#gridList");
  2193. var queryJson = {
  2194. POCode: $("#txt_POCode").val(),
  2195. InvCode: $("#txt_InvCode").val(),
  2196. InvName: $("#txt_InvName").val(),
  2197. BatchCode: $("#txt_BatchCode").val(),
  2198. Area: $("#txt_Area").val(),
  2199. Container: $("#txt_Container :checked").val(),
  2200. }
  2201. $gridList.dataGrid({
  2202. url: "/WMS/WMSCreateItemLot/GetGridJsonCLCK" + "?" + Math.random(),
  2203. postData: { queryJson: JSON.stringify(queryJson) },
  2204. height: $(window).height() - 200,
  2205. width: $(window).width() - 300,
  2206. colModel: _Clos,
  2207. //colModel: [
  2208. // { label: "主键", name: "ID", hidden: true, key: true },
  2209. // { label: '退料单号', name: 'ApplyNegCode', width: 120, align: 'left' },
  2210. // { label: '退料单行号', name: 'Sequence', width: 50, align: 'left' },
  2211. // { label: 'ERP子ID', name: 'SourceDetailID', hidden: true, },
  2212. // { label: '料品编码', name: 'InvCode', width: 100, align: 'left' },
  2213. // { label: '料品编码', name: 'InvName', width: 60, align: 'left', },
  2214. // { label: '数量', name: 'Quantity', width: 100, align: 'left' },
  2215. // { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' },
  2216. // { label: '已退数量', name: 'IssueNegQuantity', width: 100, align: 'left' },
  2217. // { label: '规格型号', name: 'InvStd', width: 60, align: 'left', },
  2218. // { label: '单位', name: 'InvUnit', width: 100, align: 'left' },
  2219. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  2220. // { label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', },
  2221. //],
  2222. //colModel: ColModelMain,
  2223. width: "100%",
  2224. autowidth: true,
  2225. //shrinkToFit: true,
  2226. gridComplete: function () {
  2227. },
  2228. pager: "#gridPager",
  2229. sortname: 'ApplyNegCode',
  2230. sortorder: "desc",
  2231. viewrecords: true,
  2232. multiselect: true,
  2233. beforeSelectRow: function (rowid, e) {
  2234. $("#gridList").jqGrid('resetSelection');
  2235. return (true);
  2236. },
  2237. subGrid: true, // (1)开启子表格支持
  2238. subGridRowExpanded: function (subgrid_id, rowid) { // (2)子表格容器的id和需要展开子表格的行id,将传入此事件函数
  2239. $("#gridList").jqGrid("setSelection", rowid, false);
  2240. bindSubGrid13(subgrid_id, rowid)
  2241. }
  2242. });
  2243. $("#warehouse a.btn-default").click(function () {
  2244. $("#warehouse a.btn-default").removeClass("active");
  2245. $(this).addClass("active");
  2246. $('#btn_search').trigger("click");
  2247. });
  2248. $("#btn_search").click(function () {
  2249. var warehouse = $("#warehouse a.active").attr('data-value');
  2250. var queryJson = {
  2251. POCode: $("#txt_POCode").val(),
  2252. InvCode: $("#txt_InvCode").val(),
  2253. InvName: $("#txt_InvName").val(),
  2254. BatchCode: $("#txt_BatchCode").val(),
  2255. Area: $("#txt_Area").val(),
  2256. Container: $("#txt_Container :checked").val(),
  2257. }
  2258. $gridList.jqGrid('setGridParam', {
  2259. page: 1,
  2260. postData: { queryJson: JSON.stringify(queryJson) },
  2261. }).trigger('reloadGrid');
  2262. });
  2263. }
  2264. function bindSubGrid13(subgrid_id, rowid) {
  2265. $("#gridList").jqGrid("setSelection", rowid, false);
  2266. var subgrid_table_id;
  2267. subgrid_table_id = subgrid_id + "_t"; // (3)根据subgrid_id定义对应的子表格的table的id
  2268. var subgrid_pager_id;
  2269. subgrid_pager_id = subgrid_id + "_pgr" // (4)根据subgrid_id定义对应的子表格的pager的id
  2270. // (5)动态添加子报表的table和pager
  2271. $("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + subgrid_pager_id + "' class='scroll'></div>");
  2272. var ApplyNegCode = $("#gridList").jqGrid('getRowData', rowid).ApplyNegCode;
  2273. var Sequence = $("#gridList").jqGrid('getRowData', rowid).Sequence;
  2274. // (6)创建jqGrid对象
  2275. $("#" + subgrid_table_id).dataGrid({
  2276. cellEdit: true,
  2277. url: "/WMS/WMSCreateItemLot/GetSubGridJson?ApplyNegCode=" + ApplyNegCode + "&Sequence=" + Sequence + "&Type=" + Type + "&" + Math.random(), // (7)子表格数据对应的url,注意传入的contact.id参数
  2278. //colModel: [
  2279. // { label: "主键", name: "ID", hidden: true, key: true },
  2280. // { label: "来源单据号", name: "TransCode", width: 200, align: 'left' },
  2281. // { label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' },
  2282. // { label: '条码', name: 'LotNo', width: 200, align: 'left' },
  2283. // { label: '条码数量', name: 'Quantity', width: 200, align: 'left' },
  2284. // { label: '操作人', name: 'MUSERName', width: 200, align: 'left' },
  2285. // { label: '操作时间', name: 'MTIME', width: 200, align: 'left' },
  2286. //],
  2287. colModel: _Clos1,
  2288. //colModel: ColModelSub,
  2289. shrinkToFit: true,//宽度自适应
  2290. multiselect: true,
  2291. prmNames: { search: "search" },
  2292. viewrecords: true,
  2293. height: "100%",
  2294. rowNum: 20,
  2295. pager: subgrid_pager_id,
  2296. });
  2297. }
  2298. //委外领料申请退料
  2299. function gridList14() {
  2300. var $gridList = $("#gridList");
  2301. var queryJson = {
  2302. POCode: $("#txt_POCode").val(),
  2303. InvCode: $("#txt_InvCode").val(),
  2304. InvName: $("#txt_InvName").val(),
  2305. BatchCode: $("#txt_BatchCode").val(),
  2306. Area: $("#txt_Area").val(),
  2307. }
  2308. $gridList.dataGrid({
  2309. url: "/WMS/WMSCreateItemLot/GetGridJsonWWLLTL" + "?" + Math.random(),
  2310. postData: { queryJson: JSON.stringify(queryJson) },
  2311. height: $(window).height() - 200,
  2312. width: $(window).width() - 300,
  2313. colModel: _Clos,
  2314. //colModel: [
  2315. // { label: "主键", name: "ID", hidden: true, key: true },
  2316. // { label: '退料单号', name: 'OApplyNegCode', width: 120, align: 'left' },
  2317. // { label: '退料单行号', name: 'Sequence', width: 50, align: 'left' },
  2318. // { label: '来源单据ID', name: 'SourceDetailID', hidden: true, },
  2319. // { label: '料品编码', name: 'InvCode', width: 100, align: 'left' },
  2320. // { label: '物料描述', name: 'InvName', width: 60, align: 'left', },
  2321. // { label: '数量', name: 'Quantity', width: 100, align: 'left' },
  2322. // { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' },
  2323. // { label: '已退数量', name: 'IssueNegQuantity', width: 100, align: 'left' },
  2324. // { label: '规格型号', name: 'InvStd', width: 60, align: 'left', },
  2325. // { label: '单位', name: 'InvUnit', width: 100, align: 'left' },
  2326. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  2327. // { label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', },
  2328. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  2329. //],
  2330. //colModel: ColModelMain,
  2331. width: "100%",
  2332. autowidth: true,
  2333. //shrinkToFit: true,
  2334. gridComplete: function () {
  2335. },
  2336. pager: "#gridPager",
  2337. sortname: 'OApplyNegCode',
  2338. sortorder: "desc",
  2339. viewrecords: true,
  2340. multiselect: true,
  2341. beforeSelectRow: function (rowid, e) {
  2342. $("#gridList").jqGrid('resetSelection');
  2343. return (true);
  2344. },
  2345. subGrid: true, // (1)开启子表格支持
  2346. subGridRowExpanded: function (subgrid_id, rowid) { // (2)子表格容器的id和需要展开子表格的行id,将传入此事件函数
  2347. $("#gridList").jqGrid("setSelection", rowid, false);
  2348. bindSubGrid14(subgrid_id, rowid)
  2349. }
  2350. });
  2351. $("#warehouse a.btn-default").click(function () {
  2352. $("#warehouse a.btn-default").removeClass("active");
  2353. $(this).addClass("active");
  2354. $('#btn_search').trigger("click");
  2355. });
  2356. $("#btn_search").click(function () {
  2357. var warehouse = $("#warehouse a.active").attr('data-value');
  2358. var queryJson = {
  2359. POCode: $("#txt_POCode").val(),
  2360. InvCode: $("#txt_InvCode").val(),
  2361. InvName: $("#txt_InvName").val(),
  2362. BatchCode: $("#txt_BatchCode").val(),
  2363. Area: $("#txt_Area").val(),
  2364. }
  2365. $gridList.jqGrid('setGridParam', {
  2366. page: 1,
  2367. postData: { queryJson: JSON.stringify(queryJson) },
  2368. }).trigger('reloadGrid');
  2369. });
  2370. }
  2371. function bindSubGrid14(subgrid_id, rowid) {
  2372. $("#gridList").jqGrid("setSelection", rowid, false);
  2373. var subgrid_table_id;
  2374. subgrid_table_id = subgrid_id + "_t"; // (3)根据subgrid_id定义对应的子表格的table的id
  2375. var subgrid_pager_id;
  2376. subgrid_pager_id = subgrid_id + "_pgr" // (4)根据subgrid_id定义对应的子表格的pager的id
  2377. // (5)动态添加子报表的table和pager
  2378. $("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + subgrid_pager_id + "' class='scroll'></div>");
  2379. var OApplyNegCode = $("#gridList").jqGrid('getRowData', rowid).OApplyNegCode;
  2380. var Sequence = $("#gridList").jqGrid('getRowData', rowid).Sequence;
  2381. // (6)创建jqGrid对象
  2382. $("#" + subgrid_table_id).dataGrid({
  2383. cellEdit: true,
  2384. url: "/WMS/WMSCreateItemLot/GetSubGridJson?ApplyNegCode=" + OApplyNegCode + "&Sequence=" + Sequence + "&Type=" + Type + "&" + Math.random(), // (7)子表格数据对应的url,注意传入的contact.id参数
  2385. //colModel: [
  2386. // { label: "主键", name: "ID", hidden: true, key: true },
  2387. // { label: "来源单据号", name: "TransCode", width: 200, align: 'left' },
  2388. // { label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' },
  2389. // { label: '条码', name: 'LotNo', width: 200, align: 'left' },
  2390. // { label: '条码数量', name: 'Quantity', width: 200, align: 'left' },
  2391. // { label: '操作人', name: 'MUSERName', width: 200, align: 'left' },
  2392. // { label: '操作时间', name: 'MTIME', width: 200, align: 'left' },
  2393. //],
  2394. colModel: _Clos1,
  2395. //colModel: ColModelSub,
  2396. shrinkToFit: true,//宽度自适应
  2397. multiselect: true,
  2398. prmNames: { search: "search" },
  2399. viewrecords: true,
  2400. height: "100%",
  2401. rowNum: 20,
  2402. pager: subgrid_pager_id,
  2403. });
  2404. }
  2405. function gridList15() {
  2406. var $gridList = $("#gridList");
  2407. var queryJson = {
  2408. POCode: $("#txt_POCode").val(),
  2409. InvCode: $("#txt_InvCode").val(),
  2410. InvName: $("#txt_InvName").val(),
  2411. BatchCode: $("#txt_BatchCode").val(),
  2412. Area: $("#txt_Area").val(),
  2413. Container: $("#txt_Container :checked").val(),
  2414. }
  2415. $gridList.dataGrid({
  2416. url: "/WMS/WMSCreateItemLot/GetGridJsonWWCLCK" + "?" + Math.random(),
  2417. postData: { queryJson: JSON.stringify(queryJson) },
  2418. height: $(window).height() - 200,
  2419. width: $(window).width() - 300,
  2420. colModel: _Clos,
  2421. //colModel: [
  2422. // { label: "主键", name: "ID", hidden: true, key: true },
  2423. // { label: '退料单号', name: 'OApplyNegCode', width: 120, align: 'left' },
  2424. // { label: '退料单行号', name: 'Sequence', width: 50, align: 'left' },
  2425. // { label: '来源单据ID', name: 'SourceDetailID', hidden: true, },
  2426. // { label: '料品编码', name: 'InvCode', width: 100, align: 'left' },
  2427. // { label: '物料描述', name: 'InvName', width: 60, align: 'left', },
  2428. // { label: '数量', name: 'Quantity', width: 100, align: 'left' },
  2429. // { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' },
  2430. // { label: '已退数量', name: 'IssueNegQuantity', width: 100, align: 'left' },
  2431. // { label: '规格型号', name: 'InvStd', width: 60, align: 'left', },
  2432. // { label: '单位', name: 'InvUnit', width: 100, align: 'left' },
  2433. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  2434. // { label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', },
  2435. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  2436. //],
  2437. //colModel: ColModelMain,
  2438. width: "100%",
  2439. autowidth: true,
  2440. //shrinkToFit: true,
  2441. gridComplete: function () {
  2442. },
  2443. pager: "#gridPager",
  2444. sortname: 'OApplyNegCode',
  2445. sortorder: "desc",
  2446. viewrecords: true,
  2447. multiselect: true,
  2448. beforeSelectRow: function (rowid, e) {
  2449. $("#gridList").jqGrid('resetSelection');
  2450. return (true);
  2451. },
  2452. subGrid: true, // (1)开启子表格支持
  2453. subGridRowExpanded: function (subgrid_id, rowid) { // (2)子表格容器的id和需要展开子表格的行id,将传入此事件函数
  2454. $("#gridList").jqGrid("setSelection", rowid, false);
  2455. bindSubGrid15(subgrid_id, rowid)
  2456. }
  2457. });
  2458. $("#warehouse a.btn-default").click(function () {
  2459. $("#warehouse a.btn-default").removeClass("active");
  2460. $(this).addClass("active");
  2461. $('#btn_search').trigger("click");
  2462. });
  2463. $("#btn_search").click(function () {
  2464. var warehouse = $("#warehouse a.active").attr('data-value');
  2465. var queryJson = {
  2466. POCode: $("#txt_POCode").val(),
  2467. InvCode: $("#txt_InvCode").val(),
  2468. InvName: $("#txt_InvName").val(),
  2469. BatchCode: $("#txt_BatchCode").val(),
  2470. Area: $("#txt_Area").val(),
  2471. Container: $("#txt_Container :checked").val(),
  2472. }
  2473. $gridList.jqGrid('setGridParam', {
  2474. page: 1,
  2475. postData: { queryJson: JSON.stringify(queryJson) },
  2476. }).trigger('reloadGrid');
  2477. });
  2478. }
  2479. function bindSubGrid15(subgrid_id, rowid) {
  2480. $("#gridList").jqGrid("setSelection", rowid, false);
  2481. var subgrid_table_id;
  2482. subgrid_table_id = subgrid_id + "_t"; // (3)根据subgrid_id定义对应的子表格的table的id
  2483. var subgrid_pager_id;
  2484. subgrid_pager_id = subgrid_id + "_pgr" // (4)根据subgrid_id定义对应的子表格的pager的id
  2485. // (5)动态添加子报表的table和pager
  2486. $("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + subgrid_pager_id + "' class='scroll'></div>");
  2487. var OApplyNegCode = $("#gridList").jqGrid('getRowData', rowid).OApplyNegCode;
  2488. var Sequence = $("#gridList").jqGrid('getRowData', rowid).Sequence;
  2489. // (6)创建jqGrid对象
  2490. $("#" + subgrid_table_id).dataGrid({
  2491. cellEdit: true,
  2492. url: "/WMS/WMSCreateItemLot/GetSubGridJson?ApplyNegCode=" + OApplyNegCode + "&Sequence=" + Sequence + "&Type=" + Type + "&" + Math.random(), // (7)子表格数据对应的url,注意传入的contact.id参数
  2493. //colModel: [
  2494. // { label: "主键", name: "ID", hidden: true, key: true },
  2495. // { label: "来源单据号", name: "TransCode", width: 200, align: 'left' },
  2496. // { label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' },
  2497. // { label: '条码', name: 'LotNo', width: 200, align: 'left' },
  2498. // { label: '条码数量', name: 'Quantity', width: 200, align: 'left' },
  2499. // { label: '操作人', name: 'MUSERName', width: 200, align: 'left' },
  2500. // { label: '操作时间', name: 'MTIME', width: 200, align: 'left' },
  2501. //],
  2502. colModel: _Clos1,
  2503. //colModel: ColModelSub,
  2504. shrinkToFit: true,//宽度自适应
  2505. //multiselect: true,
  2506. prmNames: { search: "search" },
  2507. viewrecords: true,
  2508. height: "100%",
  2509. rowNum: 20,
  2510. pager: subgrid_pager_id,
  2511. });
  2512. }
  2513. function gridList16() {
  2514. var $gridList = $("#gridList");
  2515. var queryJson = {
  2516. POCode: $("#txt_POCode").val(),
  2517. InvCode: $("#txt_InvCode").val(),
  2518. InvName: $("#txt_InvName").val(),
  2519. BatchCode: $("#txt_BatchCode").val(),
  2520. Area: $("#txt_Area").val(),
  2521. Container: $("#txt_Container :checked").val(),
  2522. }
  2523. $gridList.dataGrid({
  2524. url: "/WMS/WMSCreateItemLot/GetGridJsonFGGD" + "?" + Math.random(),
  2525. postData: { queryJson: JSON.stringify(queryJson) },
  2526. height: $(window).height() - 200,
  2527. width: $(window).width() - 300,
  2528. colModel: _Clos,
  2529. //colModel: [
  2530. // { label: "主键", name: "ID", hidden: true, key: true },
  2531. // { label: '退料单号', name: 'OApplyNegCode', width: 120, align: 'left' },
  2532. // { label: '退料单行号', name: 'Sequence', width: 50, align: 'left' },
  2533. // { label: '来源单据ID', name: 'SourceDetailID', hidden: true, },
  2534. // { label: '料品编码', name: 'InvCode', width: 100, align: 'left' },
  2535. // { label: '物料描述', name: 'InvName', width: 60, align: 'left', },
  2536. // { label: '数量', name: 'Quantity', width: 100, align: 'left' },
  2537. // { label: '辅计量数量', name: 'Amount', width: 150, align: 'left' },
  2538. // { label: '已退数量', name: 'IssueNegQuantity', width: 100, align: 'left' },
  2539. // { label: '规格型号', name: 'InvStd', width: 60, align: 'left', },
  2540. // { label: '单位', name: 'InvUnit', width: 100, align: 'left' },
  2541. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  2542. // { label: '已生成数量', name: 'LOTQTY', width: 60, align: 'left', },
  2543. // { label: '批次', name: 'BatchCode', width: 100, align: 'left' },
  2544. //],
  2545. //colModel: ColModelMain,
  2546. width: "100%",
  2547. autowidth: true,
  2548. //shrinkToFit: true,
  2549. gridComplete: function () {
  2550. },
  2551. pager: "#gridPager",
  2552. sortname: 'MOCode',
  2553. sortorder: "desc",
  2554. viewrecords: true,
  2555. multiselect: true,
  2556. beforeSelectRow: function (rowid, e) {
  2557. $("#gridList").jqGrid('resetSelection');
  2558. return (true);
  2559. },
  2560. subGrid: true, // (1)开启子表格支持
  2561. subGridRowExpanded: function (subgrid_id, rowid) { // (2)子表格容器的id和需要展开子表格的行id,将传入此事件函数
  2562. $("#gridList").jqGrid("setSelection", rowid, false);
  2563. bindSubGrid16(subgrid_id, rowid)
  2564. }
  2565. });
  2566. $("#warehouse a.btn-default").click(function () {
  2567. $("#warehouse a.btn-default").removeClass("active");
  2568. $(this).addClass("active");
  2569. $('#btn_search').trigger("click");
  2570. });
  2571. $("#btn_search").click(function () {
  2572. var warehouse = $("#warehouse a.active").attr('data-value');
  2573. var queryJson = {
  2574. POCode: $("#txt_POCode").val(),
  2575. InvCode: $("#txt_InvCode").val(),
  2576. InvName: $("#txt_InvName").val(),
  2577. BatchCode: $("#txt_BatchCode").val(),
  2578. Area: $("#txt_Area").val(),
  2579. Container: $("#txt_Container :checked").val(),
  2580. }
  2581. $gridList.jqGrid('setGridParam', {
  2582. page: 1,
  2583. postData: { queryJson: JSON.stringify(queryJson) },
  2584. }).trigger('reloadGrid');
  2585. });
  2586. }
  2587. function bindSubGrid16(subgrid_id, rowid) {
  2588. $("#gridList").jqGrid("setSelection", rowid, false);
  2589. var subgrid_table_id;
  2590. subgrid_table_id = subgrid_id + "_t"; // (3)根据subgrid_id定义对应的子表格的table的id
  2591. var subgrid_pager_id;
  2592. subgrid_pager_id = subgrid_id + "_pgr" // (4)根据subgrid_id定义对应的子表格的pager的id
  2593. // (5)动态添加子报表的table和pager
  2594. $("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + subgrid_pager_id + "' class='scroll'></div>");
  2595. var MOCode = $("#gridList").jqGrid('getRowData', rowid).MOCode;
  2596. var Sequence = $("#gridList").jqGrid('getRowData', rowid).Sequence;
  2597. // (6)创建jqGrid对象
  2598. $("#" + subgrid_table_id).dataGrid({
  2599. cellEdit: true,
  2600. url: "/WMS/WMSCreateItemLot/GetSubGridJson?ApplyNegCode=" + MOCode + "&Sequence=" + Sequence + "&Type=" + Type + "&" + Math.random(), // (7)子表格数据对应的url,注意传入的contact.id参数
  2601. //colModel: [
  2602. // { label: "主键", name: "ID", hidden: true, key: true },
  2603. // { label: "来源单据号", name: "TransCode", width: 200, align: 'left' },
  2604. // { label: '来源单据行', name: 'TransSequence', width: 200, align: 'left' },
  2605. // { label: '条码', name: 'LotNo', width: 200, align: 'left' },
  2606. // { label: '条码数量', name: 'Quantity', width: 200, align: 'left' },
  2607. // { label: '操作人', name: 'MUSERName', width: 200, align: 'left' },
  2608. // { label: '操作时间', name: 'MTIME', width: 200, align: 'left' },
  2609. //],
  2610. colModel: _Clos1,
  2611. //colModel: ColModelSub,
  2612. shrinkToFit: true,//宽度自适应
  2613. //multiselect: true,
  2614. prmNames: { search: "search" },
  2615. viewrecords: true,
  2616. height: "100%",
  2617. rowNum: 20,
  2618. pager: subgrid_pager_id,
  2619. });
  2620. }
  2621. function btnDelete() {
  2622. var objArr = '';
  2623. var obj = $("#gridList").jqGrid("getRowData");
  2624. for (var i = 0; i < obj.length; i++) {
  2625. var $SubGird = $("#gridList_" + obj[i].ID + "_t");
  2626. var rowData = $SubGird.jqGrid('getGridParam', 'selarrrow');
  2627. if (rowData != "undefined" && rowData != null) {
  2628. for (var j = 0; j < rowData.length; j++) {
  2629. objArr += "'" + rowData[j] + "',";
  2630. }
  2631. }
  2632. }
  2633. if (objArr == "") {
  2634. $.modalAlertNew("WMS00099");
  2635. return;
  2636. }
  2637. $.deleteForm({
  2638. url: "/WMS/WMSCreateItemLot/DeleteItemLot",
  2639. param: { keyValue: JSON.stringify(objArr) },
  2640. success: function () {
  2641. $.currentWindow().$("#gridList").trigger("reloadGrid");
  2642. }
  2643. })
  2644. }
  2645. function btnCreate() {
  2646. debugger;
  2647. var PoStatus;
  2648. var jsonData = '';
  2649. var ids = $("#gridList").jqGrid('getGridParam', 'selarrrow'); //获取 多行数据
  2650. if (ids.length != 1) {
  2651. $.modalAlertNew("WMS00100");
  2652. return;
  2653. }
  2654. var POCode = "";
  2655. var PORow = "";
  2656. if (Type == '1') {
  2657. for (var i in ids) {
  2658. ApplyNegCode = $("#gridList").jqGrid('getRowData', ids[i]).ApplyNegCode;
  2659. Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence;
  2660. }
  2661. $.modalOpen({
  2662. id: "FormAddItemLot",
  2663. title: "生产退料条码生成",
  2664. url: "/WMS/WMSCreateItemLot/From?ApplyNegCode=" + ApplyNegCode + "&Sequence=" + Sequence + "&Type=" + 1 + "&" + Math.random(),
  2665. width: "550px",
  2666. height: "1000px",
  2667. callBack: function (iframeId) {
  2668. top.frames[iframeId].submitForm();
  2669. }
  2670. });
  2671. } else if (Type == '2') {
  2672. for (var i in ids) {
  2673. OApplyNegCode = $("#gridList").jqGrid('getRowData', ids[i]).OApplyNegCode;
  2674. Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence;
  2675. }
  2676. $.modalOpen({
  2677. id: "FormAddItemLot",
  2678. title: "委外退料条码生成",
  2679. url: "/WMS/WMSCreateItemLot/From?OApplyNegCode=" + OApplyNegCode + "&Sequence=" + Sequence + "&Type=" + 2 + "&" + Math.random(),
  2680. width: "550px",
  2681. height: "1000px",
  2682. callBack: function (iframeId) {
  2683. top.frames[iframeId].submitForm();
  2684. }
  2685. });
  2686. } else if (Type == '3') {
  2687. for (var i in ids) {
  2688. MODetailID = $("#gridList").jqGrid('getRowData', ids[i]).MODetailID;
  2689. MOCode = $("#gridList").jqGrid('getRowData', ids[i]).MOCode;
  2690. Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence;
  2691. }
  2692. $.modalOpen({
  2693. id: "FormAddItemLot",
  2694. title: "成品条码产生",
  2695. url: "/WMS/WMSCreateItemLot/From?MOCode=" + MOCode + "&Sequence=" + Sequence + "&Type=" + 3 + "&MODetailID=" + MODetailID + "&" + Math.random(),
  2696. width: "550px",
  2697. height: "1000px",
  2698. callBack: function (iframeId) {
  2699. top.frames[iframeId].submitForm();
  2700. }
  2701. });
  2702. } else if (Type == '4') {
  2703. for (var i in ids) {
  2704. SDNCode = $("#gridList").jqGrid('getRowData', ids[i]).SDNCode;
  2705. Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence;
  2706. }
  2707. $.modalOpen({
  2708. id: "FormAddItemLot",
  2709. title: "销售退货条码产生",
  2710. url: "/WMS/WMSCreateItemLot/From?SDNCode=" + SDNCode + "&Sequence=" + Sequence + "&Type=" + 4 + "&" + Math.random(),
  2711. width: "550px",
  2712. height: "1000px",
  2713. callBack: function (iframeId) {
  2714. top.frames[iframeId].submitForm();
  2715. }
  2716. });
  2717. } else if (Type == '5') {
  2718. for (var i in ids) {
  2719. InCode = $("#gridList").jqGrid('getRowData', ids[i]).InCode;
  2720. Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence;
  2721. }
  2722. $.modalOpen({
  2723. id: "FormAddItemLot",
  2724. title: "其他入库条码产生",
  2725. url: "/WMS/WMSCreateItemLot/From?InCode=" + InCode + "&Sequence=" + Sequence + "&Type=" + 5 + "&" + Math.random(),
  2726. width: "550px",
  2727. height: "1000px",
  2728. callBack: function (iframeId) {
  2729. top.frames[iframeId].submitForm();
  2730. }
  2731. });
  2732. } else if (Type == '6') {
  2733. for (var i in ids) {
  2734. ReturnCode = $("#gridList").jqGrid('getRowData', ids[i]).ReturnCode;
  2735. Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence;
  2736. }
  2737. $.modalOpen({
  2738. id: "FormAddItemLot",
  2739. title: "归还单条码产生",
  2740. url: "/WMS/WMSCreateItemLot/From?ReturnCode=" + ReturnCode + "&Sequence=" + Sequence + "&Type=" + 6 + "&" + Math.random(),
  2741. width: "550px",
  2742. height: "1000px",
  2743. callBack: function (iframeId) {
  2744. top.frames[iframeId].submitForm();
  2745. }
  2746. });
  2747. } else if (Type == '7') {
  2748. for (var i in ids) {
  2749. DNCode = $("#gridList").jqGrid('getRowData', ids[i]).DNCode;
  2750. Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence;
  2751. }
  2752. $.modalOpen({
  2753. id: "FormAddItemLot",
  2754. title: "审核到货单生成条码",
  2755. url: "/WMS/WMSCreateItemLot/From?DNCode=" + DNCode + "&Sequence=" + Sequence + "&Type=" + 7 + "&" + Math.random(),
  2756. width: "550px",
  2757. height: "1000px",
  2758. callBack: function (iframeId) {
  2759. top.frames[iframeId].submitForm();
  2760. }
  2761. });
  2762. } else if (Type == '8') {
  2763. for (var i in ids) {
  2764. ODNCode = $("#gridList").jqGrid('getRowData', ids[i]).ODNCode;
  2765. Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence;
  2766. }
  2767. $.modalOpen({
  2768. id: "FormAddItemLot",
  2769. title: "审核委外到货单生成条码",
  2770. url: "/WMS/WMSCreateItemLot/From?ODNCode=" + ODNCode + "&Sequence=" + Sequence + "&Type=" + 8 + "&" + Math.random(),
  2771. width: "550px",
  2772. height: "1000px",
  2773. callBack: function (iframeId) {
  2774. top.frames[iframeId].submitForm();
  2775. }
  2776. });
  2777. } else if (Type == '9') {
  2778. for (var i in ids) {
  2779. RCVCode = $("#gridList").jqGrid('getRowData', ids[i]).RCVCode;
  2780. Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence;
  2781. }
  2782. $.modalOpen({
  2783. id: "FormAddItemLot",
  2784. title: "开立成品入库单生成条码",
  2785. url: "/WMS/WMSCreateItemLot/From?RCVCode=" + RCVCode + "&Sequence=" + Sequence + "&Type=" + 9 + "&" + Math.random(),
  2786. width: "550px",
  2787. height: "1000px",
  2788. callBack: function (iframeId) {
  2789. top.frames[iframeId].submitForm();
  2790. }
  2791. });
  2792. } else if (Type == '10') {
  2793. for (var i in ids) {
  2794. DNCode = $("#gridList").jqGrid('getRowData', ids[i]).DNCode;
  2795. Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence;
  2796. }
  2797. $.modalOpen({
  2798. id: "FormAddItemLot",
  2799. title: "审核拒收单生成条码",
  2800. url: "/WMS/WMSCreateItemLot/From?DNCode=" + DNCode + "&Sequence=" + Sequence + "&Type=" + 10 + "&" + Math.random(),
  2801. width: "550px",
  2802. height: "1000px",
  2803. callBack: function (iframeId) {
  2804. top.frames[iframeId].submitForm();
  2805. }
  2806. });
  2807. } else if (Type == '11') {
  2808. for (var i in ids) {
  2809. ODNCode = $("#gridList").jqGrid('getRowData', ids[i]).OOCode;
  2810. Sequence = $("#gridList").jqGrid('getRowData', ids[i]).OOSequence;
  2811. }
  2812. $.modalOpen({
  2813. id: "FormAddItemLot",
  2814. title: "审核委外拒收单生成条码",
  2815. url: "/WMS/WMSCreateItemLot/From?ODNCode=" + ODNCode + "&Sequence=" + Sequence + "&Type=" + 11 + "&" + Math.random(),
  2816. width: "550px",
  2817. height: "1000px",
  2818. callBack: function (iframeId) {
  2819. top.frames[iframeId].submitForm();
  2820. }
  2821. });
  2822. } else if (Type == '12') {
  2823. for (var i in ids) {
  2824. LLApplyNegCode = $("#gridList").jqGrid('getRowData', ids[i]).ApplyNegCode;
  2825. Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence;
  2826. }
  2827. $.modalOpen({
  2828. id: "FormAddItemLot",
  2829. title: "审核领料申请退料生成条码",
  2830. url: "/WMS/WMSCreateItemLot/From?LLApplyNegCode=" + LLApplyNegCode + "&Sequence=" + Sequence + "&Type=" + 12 + "&" + Math.random(),
  2831. width: "550px",
  2832. height: "1000px",
  2833. callBack: function (iframeId) {
  2834. top.frames[iframeId].submitForm();
  2835. }
  2836. });
  2837. } else if (Type == '13') {
  2838. for (var i in ids) {
  2839. CLApplyNegCode = $("#gridList").jqGrid('getRowData', ids[i]).ApplyNegCode;
  2840. Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence;
  2841. }
  2842. $.modalOpen({
  2843. id: "FormAddItemLot",
  2844. title: "材料出库退料生成条码",
  2845. url: "/WMS/WMSCreateItemLot/From?CLApplyNegCode=" + CLApplyNegCode + "&Sequence=" + Sequence + "&Type=" + 13 + "&" + Math.random(),
  2846. width: "550px",
  2847. height: "1000px",
  2848. callBack: function (iframeId) {
  2849. top.frames[iframeId].submitForm();
  2850. }
  2851. });
  2852. } else if (Type == '14') {
  2853. for (var i in ids) {
  2854. WWLLOApplyNegCode = $("#gridList").jqGrid('getRowData', ids[i]).OApplyNegCode;
  2855. Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence;
  2856. }
  2857. $.modalOpen({
  2858. id: "FormAddItemLot",
  2859. title: "委外领料退料条码生成",
  2860. url: "/WMS/WMSCreateItemLot/From?WWLLOApplyNegCode=" + WWLLOApplyNegCode + "&Sequence=" + Sequence + "&Type=" + 14 + "&" + Math.random(),
  2861. width: "550px",
  2862. height: "1000px",
  2863. callBack: function (iframeId) {
  2864. top.frames[iframeId].submitForm();
  2865. }
  2866. });
  2867. }
  2868. else if (Type == '15') {
  2869. for (var i in ids) {
  2870. WWCLOApplyNegCode = $("#gridList").jqGrid('getRowData', ids[i]).OApplyNegCode;
  2871. Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence;
  2872. }
  2873. $.modalOpen({
  2874. id: "FormAddItemLot",
  2875. title: "委外材料出库退料生成条码",
  2876. url: "/WMS/WMSCreateItemLot/From?WWCLOApplyNegCode=" + WWCLOApplyNegCode + "&Sequence=" + Sequence + "&Type=" + 15 + "&" + Math.random(),
  2877. width: "550px",
  2878. height: "1000px",
  2879. callBack: function (iframeId) {
  2880. top.frames[iframeId].submitForm();
  2881. }
  2882. });
  2883. }
  2884. else if (Type == '16') {
  2885. for (var i in ids) {
  2886. FGGDMOCode = $("#gridList").jqGrid('getRowData', ids[i]).MOCode;
  2887. Sequence = $("#gridList").jqGrid('getRowData', ids[i]).Sequence;
  2888. }
  2889. $.modalOpen({
  2890. id: "FormAddItemLot",
  2891. title: "返工工单生成条码",
  2892. url: "/WMS/WMSCreateItemLot/From?FGGDMOCode=" + FGGDMOCode + "&Sequence=" + Sequence + "&Type=" + 16 + "&" + Math.random(),
  2893. width: "550px",
  2894. height: "1000px",
  2895. callBack: function (iframeId) {
  2896. top.frames[iframeId].submitForm();
  2897. }
  2898. });
  2899. }
  2900. }
  2901. function fullscreen() {
  2902. var docElm = document.documentElement;
  2903. if (docElm.requestFullscreen) {
  2904. docElm.requestFullscreen();
  2905. } else if (docElm.mozRequestFullScreen) {
  2906. docElm.mozRequestFullScreen();
  2907. } else if (docElm.webkitRequestFullScreen) {
  2908. docElm.webkitRequestFullScreen();
  2909. } else if (docElm.msRequestFullscreen) {
  2910. docElm.msRequestFullscreen();
  2911. }
  2912. $(window).bind('resize', function () {
  2913. $("#gridList").setGridWidth($(window).width());
  2914. }).trigger('resize');
  2915. $(window).bind('resize', function () {
  2916. $("#gridList").setGridHeight($(window).height());
  2917. }).trigger('resize');
  2918. }
  2919. function btnPrint() {
  2920. debugger;
  2921. var mold = '';
  2922. if (Type == '1') { mold = '00001'; }//生产退料生成条码
  2923. if (Type == '2') { mold = '00002'; }//委外退料生成条码
  2924. if (Type == '3') { mold = '00003'; }//工单成品生成条码
  2925. if (Type == '4') { mold = '00004'; }//销售退货生成条码
  2926. if (Type == '5') { mold = '00005'; }//其他入库生成条码
  2927. if (Type == '6') { mold = '00006'; }//归还单生成条码
  2928. if (Type == '7') { mold = '00007'; }//普通到货单生成条码
  2929. if (Type == '8') { mold = '00008'; }//委外到货单生成条码
  2930. if (Type == '9') { mold = '00009'; }//成品入库单生成条码
  2931. if (Type == '10') { mold = '00010'; }//拒收单生成条码
  2932. if (Type == '11') { mold = '00011'; }//委外拒收单生成条码
  2933. if (Type == '12') { mold = '00012'; }//领料申请退料
  2934. if (Type == '13') { mold = '00013'; }//材料出库退料
  2935. if (Type == '14') { mold = '00014'; }//委外领料申请退料
  2936. if (Type == '15') { mold = '00015'; }//委外材料出库退料
  2937. if (Type == '16') { mold = '00016'; }//返工工单
  2938. var objArr = '';
  2939. var arr = [];
  2940. var obj = $("#gridList").jqGrid("getRowData");
  2941. for (var i = 0; i < obj.length; i++) {
  2942. var $SubGird = $("#gridList_" + obj[i].ID + "_t");
  2943. var rowData = $SubGird.jqGrid('getGridParam', 'selarrrow');
  2944. if (rowData != "undefined" && rowData != null) {
  2945. for (var j = 0; j < rowData.length; j++) {
  2946. objArr += "'" + rowData[j] + "',";
  2947. }
  2948. objArr = objArr.slice(0, objArr.length - 1);
  2949. objArr = "" + objArr + "|";
  2950. arr.push(objArr);
  2951. }
  2952. }
  2953. if (objArr == "") {
  2954. $.modalAlertNew("WMS00101");
  2955. return;
  2956. }
  2957. $.modalOpen({
  2958. id: "PrintLot",
  2959. title: "打印",
  2960. url: "/WMS/Print/PrintView?Arguments=" + encodeURI(encodeURI(arr)) + "&mold=" + mold + "&" + Math.random(),
  2961. width: "550px",
  2962. height: "1000px",
  2963. callBack: function (iframeId) {
  2964. top.frames[iframeId].submitForm();
  2965. }
  2966. });
  2967. }
  2968. </script>
  2969. <iframe id="ifrm" src="" width="0" height="0"></iframe>
  2970. <script>
  2971. //function btnPrint() {
  2972. // var objArr = '';
  2973. // var obj = $("#gridList").jqGrid("getRowData");
  2974. // for (var i = 0; i < obj.length; i++) {
  2975. // var $SubGird = $("#gridList_" + obj[i].ID + "_t");
  2976. // var rowData = $SubGird.jqGrid('getGridParam', 'selarrrow');
  2977. // if (rowData != "undefined" && rowData != null) {
  2978. // for (var j = 0; j < rowData.length; j++) {
  2979. // objArr += "'" + /rowData[j] + "',";
  2980. // }
  2981. // }
  2982. // }
  2983. // if (objArr == "") {
  2984. // $.modalAlert("请选择子表数据打印!");
  2985. // return;
  2986. // }
  2987. // var strPrintData;
  2988. // var bIsInstallPrintControl;
  2989. // var strPrintControlCookie;
  2990. // $.ajax({
  2991. // url: "/WMS/WMSCreateItemLot/PrintItemLot?Type=" + Type,
  2992. // type: "post",
  2993. // data: { keyValue: JSON.stringify(objArr) },
  2994. // dataType: "json",
  2995. // async: false,
  2996. // success: function (data) {
  2997. // strPrintData = data.strPrintData_1;
  2998. // bIsInstallPrintControl = data.bIsInstallPrintControl_1;
  2999. // strPrintControlCookie = data.strPrintControlCookie_1;
  3000. // }
  3001. // });
  3002. // if (strPrintData != '') {
  3003. // var test = "ChuLinPrint:" + strPrintData;
  3004. // $("#ifrm")[0].src = "ChuLinPrint:" + strPrintData;
  3005. // }
  3006. // if (bIsInstallPrintControl == 'False') {
  3007. // if (confirm("检测到打印控件未安装,您是否下载安装?")) {
  3008. // $("#downPrintControl").click();
  3009. // }
  3010. // }
  3011. // if (bIsInstallPrintControl == 'True') {
  3012. // var strPrintControlCookie = strPrintControlCookie;
  3013. // if (strPrintControlCookie != '') { //延时3秒后再次检测打印控件是否安装
  3014. // setTimeout("checkPrintControlInstall()", 8000);
  3015. // function checkPrintControlInstall() {
  3016. // $.ajax({
  3017. // url: "/WMS/WMSCreateItemLot/IsCheckInstall?checkInstall=" + strPrintControlCookie,
  3018. // dataType: "json",
  3019. // async: false,
  3020. // success: function (strResult) {
  3021. // if (strResult.indexOf("PrintControlInstall") == -1) {
  3022. // if (confirm("检测到打印控件未安装,您是否下载安装?")) {
  3023. // $("#downPrintControl").click();
  3024. // }
  3025. // }
  3026. // }
  3027. // });
  3028. // }
  3029. // }
  3030. // }
  3031. // $("#btn_search").click();
  3032. //}
  3033. </script>
  3034. <div class="topPanel" style="height:150px;">
  3035. <div class="toolbar">
  3036. <div class="btn-group">
  3037. <a id="NF-Create" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="btnCreate()"><i class="fa fa-pencil-square-o"></i>生成条码</a>
  3038. <a id="NF-Delete" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="btnDelete()"><i class="fa fa-pencil-square-o"></i>删除条码</a>
  3039. <a id="NF-Print" authorize="yes" style="margin-left:3px;" class="btn btn-primary" onclick="btnPrint()"><i class="fa fa-pencil-square-o"></i>打印</a>
  3040. <a class="btn btn-primary" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span></a>
  3041. </div>
  3042. <div class="btn-group" style="display:block;padding-left:2px;">
  3043. <a class="btn btn-primary" id="downPrintControl" href="~/PrintActivex.exe" style="display:none">点击下载打印组件</a>
  3044. </div>
  3045. <script>$('.toolbar').authorizeButton()</script>
  3046. </div>
  3047. <div class="search">
  3048. <table>
  3049. <tr>
  3050. <td style="text-align:right;"><label class="lglabel" for="txt_POCode">&nbsp;&nbsp;&nbsp;&nbsp;单据号</label>:</td>
  3051. <td>
  3052. <div class="input-group">
  3053. <input id="txt_POCode" type="text" class="form-control" style="width: 100px;">
  3054. </div>
  3055. </td>
  3056. <td class="HideItems" style="text-align:right;"><label class="lglabel HideItems" for="txt_VenCode">&nbsp;&nbsp;&nbsp;&nbsp;供应商代码</label>:</td>
  3057. <td class="HideItems">
  3058. <div class="input-group HideItems">
  3059. <input id="txt_VenCode" type="text" class="form-control HideItems" style="width: 100px;">
  3060. </div>
  3061. </td>
  3062. <td class="HideItems" style="text-align:right;"><label class="lglabel HideItems" for="txt_VenName">&nbsp;&nbsp;&nbsp;&nbsp;供应商名称</label>:</td>
  3063. <td class="HideItems">
  3064. <div class="input-group HideItems">
  3065. <input id="txt_VenName" type="text" class="form-control HideItems" style="width: 100px;">
  3066. </div>
  3067. </td>
  3068. <td style="text-align:right;"><label class="lglabel " for="txt_Area">&nbsp;&nbsp;&nbsp;&nbsp;区域</label>:</td>
  3069. <td >
  3070. <div class="input-group ">
  3071. <input id="txt_Area" type="text" class="form-control " style="width: 100px;">
  3072. </div>
  3073. </td>
  3074. <td class="Workorder" style="text-align:right;"><label class="lglabel " for="txt_OrderNumber">&nbsp;&nbsp;&nbsp;&nbsp;生产订单</label>:</td>
  3075. <td class="Workorder">
  3076. <div class="input-group ">
  3077. <input id="txt_OrderNumber" type="text" class="form-control " style="width: 100px;">
  3078. </div>
  3079. </td>
  3080. @*<td class="Workorder" style="text-align:right;"><label class="lglabel " for="txt_Area9">&nbsp;&nbsp;&nbsp;&nbsp;存储区域</label>:</td>
  3081. <td class="Workorder" >
  3082. <div class="input-group ">
  3083. <input id="txt_Area9" type="text" class="form-control " style="width: 100px;">
  3084. </div>
  3085. </td>*@
  3086. </tr>
  3087. <tr>
  3088. <td style="text-align:right;"><label class="lglabel " for="txt_Location">&nbsp;&nbsp;&nbsp;&nbsp;仓库</label>:</td>
  3089. <td>
  3090. <div class="input-group ">
  3091. <input id="txt_Location" type="text" class="form-control " style="width: 100px;">
  3092. </div>
  3093. </td>
  3094. @*<td style="text-align:right;"><label class="lglabel" for="txt_Location">&nbsp;&nbsp;&nbsp;&nbsp;库存地点</label>:</td>
  3095. <td>
  3096. <div class="input-group">
  3097. <input id="txt_Location" type="text" class="form-control" style="width: 100px;">
  3098. </div>
  3099. </td>*@
  3100. <td style="text-align:right;"><label class="lglabel" for="txt_InvCode">&nbsp;&nbsp;&nbsp;&nbsp;料品编码</label>:</td>
  3101. <td>
  3102. <div class="input-group">
  3103. <input id="txt_InvCode" type="text" class="form-control" style="width: 100px;">
  3104. </div>
  3105. </td>
  3106. <td style="text-align:right;"><label class="lglabel" for="txt_InvName">&nbsp;&nbsp;&nbsp;&nbsp;物料描述</label>:</td>
  3107. <td>
  3108. <div class="input-group">
  3109. <input id="txt_InvName" type="text" class="form-control" style="width: 100px;">
  3110. </div>
  3111. </td>
  3112. <td style="text-align:right;"><label class="lglabel" for="txt_BatchCode">&nbsp;&nbsp;&nbsp;&nbsp;批次号</label>:</td>
  3113. <td>
  3114. <div class="input-group">
  3115. <input id="txt_BatchCode" type="text" class="form-control" style="width: 100px;">
  3116. </div>
  3117. </td>
  3118. <td>
  3119. <label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;是否入库:</label>
  3120. </td>
  3121. <td>
  3122. <div class="input-group" id="txt_Container">
  3123. <input type="radio" name="container" value="1" />&nbsp;是
  3124. <input type="radio" name="container" checked="checked" value="2" />&nbsp;否
  3125. </div>
  3126. </td>
  3127. <td>
  3128. <span class="input-group-btn">
  3129. <button id="btn_search" type="button" class="btn btn-primary"><i class="fa fa-search"></i></button>
  3130. </span>
  3131. </td>
  3132. </tr>
  3133. </table>
  3134. </div>
  3135. </div>
  3136. <div class="gridPanel">
  3137. <table id="gridList"></table>
  3138. <div id="gridPager"></div>
  3139. </div>