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.

672 lines
32 KiB

1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
10 months ago
10 months ago
10 months ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
1 year ago
  1. 
  2. @{
  3. ViewBag.Title = "MoProducePlan";
  4. Layout = "~/Views/Shared/_Form.cshtml";
  5. }
  6. <script src="~/Content/js/datepicker/WdatePicker.js"></script>
  7. <script>
  8. $(function () {
  9. var service = {
  10. isCanEditDate: false,
  11. Init: function () {
  12. var that = this;
  13. $("#txt_ItemCode").val('');
  14. $("#txt_ItemName").val('');
  15. $("#txt_SSName").val('');
  16. that.initControl();
  17. that.loadGrid();
  18. that.loadEvent();
  19. that.loadViewGrid();
  20. },
  21. initControl: function () {
  22. let that = this;
  23. let orgName = '';
  24. let userName = '@NFine.Code.OperatorProvider.Provider.GetCurrent().UserName';
  25. $.ajax({
  26. url: "/OMAY/Aps/GetOrgAName" + "?" + Math.random(),
  27. type: "Get",
  28. dataType: "json",
  29. async: false,
  30. success: function (data) {
  31. //
  32. console.log(data);
  33. if (data.state == "success") {
  34. orgName = data.message;
  35. }
  36. }
  37. });
  38. if (userName.indexOf('L') > -1 || userName.indexOf('C') > -1) {
  39. $("#txt_SSName").val(userName.substr(0, 2));
  40. $("#txt_SSName").attr("disabled", "disabled");
  41. $("#NF-UpdateMoPlan").attr("disabled", "disabled");
  42. }
  43. else {
  44. $("#NF-PrintLabel").attr("disabled", "disabled");
  45. }
  46. if (orgName == "生产主管") {
  47. //生产主管
  48. that.isCanEditDate = true;
  49. //$("#txt_SSName2").css("display", "block");
  50. //$("#lbl_SSName2").css("display", "block");
  51. }
  52. else if (orgName == "生产人员") {
  53. //生产人员
  54. that.isCanEditDate = false;
  55. $("#txt_SSName2").css("display", "none");
  56. $("#lbl_SSName2").css("display", "none");
  57. }
  58. else {
  59. that.isCanEditDate = false;
  60. $("#txt_SSName2").css("display", "none");
  61. $("#lbl_SSName2").css("display", "none");
  62. }
  63. if (!that.isCanEditDate) {
  64. var obj_Item1 = $("#gridList");
  65. var rowIds_Item1 = obj_Item1.getDataIDs();
  66. for (var i = 0; i < rowIds_Item1.length; i++) {
  67. $("#gridList").jqGrid('setCell', rowIds_Item1[i], "PlanStartDate", '', 'not-editable-cell');
  68. $("#gridList").jqGrid('setCell', rowIds_Item1[i], "PlanEndDate", '', 'not-editable-cell');
  69. $("#gridList").jqGrid('setCell', rowIds_Item1[i], "ApsOrderDate", '', 'not-editable-cell');
  70. }
  71. }
  72. },
  73. addArriveDateCellAttr(rowId, val, rawObject, cm, rdata) {
  74. //if (rdata.ApsOrderDate != "" && rdata.ApsOrderDate != null) {
  75. // if (rdata.Free5 == "" || rdata.Free5 == null) {
  76. // //var nowDate = GetNowDate();
  77. // //var pass = new Date(rdata.PreArriveDate).getDate() - new Date(rdata.ArriveDate).getDate();
  78. // var pass = daysBetween(rdata.PreArriveDate, rdata.ArriveDate);
  79. // if (pass <= 3 && pass >= 0) {
  80. // //return "style='background-color:darkgray'";
  81. // return "style='background-color:yellow'";
  82. // }
  83. // else if (pass > 3) {
  84. // return "style='background-color:darkgray'";
  85. // }
  86. // else {
  87. // return "style='background-color:red'";
  88. // }
  89. // }
  90. //}
  91. //else {
  92. // return "style='background-color:null'";
  93. //}
  94. },
  95. loadGrid: function () {
  96. var that = this;
  97. var queryJson = {
  98. ItemCode: $("#txt_ItemCode").val(),
  99. ItemName: $("#txt_ItemName").val(),
  100. SSName: $("#txt_SSName").val(),
  101. SSName2: $("#txt_SSName2").val(),
  102. MoCode: $("#txt_MoCode").val(),
  103. OrderStatus: $("#txt_OrderStatus").val(),
  104. }
  105. var $gridList = $("#gridList");
  106. $gridList.dataGrid({
  107. url: "/OMAY/Aps/GetGridJsonChengPing" + "?" + Math.random(),
  108. postData: { queryJson: JSON.stringify(queryJson) },
  109. mtype: "POST",
  110. height: 400,
  111. width: $(window).width() - 300,
  112. cellEdit: true,
  113. cellsubmit: "clientArray",
  114. colModel: [
  115. { label: "主键", name: "ID", hidden: true, key: true },
  116. { label: '预订单号', name: 'PreOrderNo', width: 100, align: 'left' },
  117. { label: '业务员', name: 'BusinessName', width: 100, align: 'left' },
  118. { label: '工单', name: 'MOCode', width: 100, align: 'left' },
  119. { label: '工单行', name: 'MoSeq', width: 100, align: 'left' },
  120. { label: '工单类型', name: 'MoTypeValue', hidden: true, width: 100, align: 'left' },
  121. { label: '部门', name: 'DepName', width: 100, align: 'left' },
  122. { label: '生产日期', name: 'CreateDateTime', width: 150, align: 'left' },
  123. { label: '包装要求', name: 'PackageAsk', width: 100, align: 'left' },
  124. { label: '特殊要求', name: 'SpecialAsk', width: 100, align: 'left' },
  125. { label: '用途', name: 'Useage', width: 100, align: 'left' },
  126. { label: '存货编码', name: 'ItemCode', width: 100, align: 'left' },
  127. { label: '存货名称', name: 'ItemName', width: 100, align: 'left' },
  128. { label: '存货代码', name: 'ItemAddCode', width: 100, align: 'left' },
  129. { label: '规格', name: 'ItemStd', width: 150, align: 'left' },
  130. { label: '单位', name: 'ItemUnit', width: 100, align: 'left' },
  131. { label: '同步状态', name: 'APSStatus', width: 100, align: 'left' },
  132. { label: '订单状态', name: 'OrderStatus', width: 100, align: 'left' },
  133. { label: '数量', name: 'Amount', width: 100, align: 'left' },
  134. {
  135. label: '计划开始时间', name: 'PlanStartDate', width: 150, align: 'left',
  136. editable: true,
  137. editoptions: {
  138. dataInit: function (el) {
  139. console.log(that.isCanEditDate);
  140. if (!that.isCanEditDate)
  141. return;
  142. $(el).click(function () {
  143. WdatePicker({
  144. dateFmt: "yyyy-MM-dd"//时间显示格式
  145. });
  146. })
  147. }
  148. },
  149. },
  150. {
  151. label: '计划结束时间', name: 'PlanEndDate', width: 150, align: 'left',
  152. editable: true,
  153. editoptions: {
  154. dataInit: function (el) {
  155. $(el).click(function () {
  156. WdatePicker({
  157. dateFmt: "yyyy-MM-dd"//时间显示格式
  158. });
  159. })
  160. }
  161. },
  162. },
  163. {
  164. label: '排序时间', name: 'ApsOrderDate', align: 'left', width: 150,
  165. editable: true,
  166. editoptions: {
  167. dataInit: function (el) {
  168. $(el).click(function () {
  169. WdatePicker({
  170. dateFmt: "yyyy-MM-dd HH:mm:ss"//时间显示格式
  171. });
  172. })
  173. }
  174. },
  175. },
  176. ],
  177. shrinkToFit: true,//宽度自适应
  178. width: "100%",
  179. autowidth: true,
  180. gridComplete: function () {
  181. if (!that.isCanEditDate) {
  182. var obj_Item1 = $("#gridList");
  183. var rowIds_Item1 = obj_Item1.getDataIDs();
  184. for (var i = 0; i < rowIds_Item1.length; i++) {
  185. $("#gridList").jqGrid('setCell', rowIds_Item1[i], "PlanStartDate", '', 'not-editable-cell');
  186. $("#gridList").jqGrid('setCell', rowIds_Item1[i], "PlanEndDate", '', 'not-editable-cell');
  187. $("#gridList").jqGrid('setCell', rowIds_Item1[i], "ApsOrderDate", '', 'not-editable-cell');
  188. }
  189. }
  190. },
  191. pager: "#gridPager",
  192. sortname: 'ApsOrderDate,PlanStartDate',
  193. sortorder: "asc",
  194. viewrecords: true,
  195. multiselect: true,
  196. subGrid: true, // (1)开启子表格支持
  197. subGridRowExpanded: function (subgrid_id, rowid) { // (2)子表格容器的id和需要展开子表格的行id,将传入此事件函数
  198. // console.log(subgrid_id, rowid);
  199. //
  200. $("#gridList").jqGrid("setSelection", rowid, false);
  201. that.bindSubGrid3(subgrid_id, rowid);
  202. }
  203. });
  204. },
  205. loadViewGrid: function () {
  206. var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow');
  207. if (objList.length == 0) {
  208. objList = ['-1'];
  209. }
  210. var $gridList = $("#gridList2");
  211. $gridList.dataGrid({
  212. url: "/OMAY/Aps/GetApsPlanSelectSubItemList" + "?" + Math.random(),
  213. postData: { ids: objList.join() },
  214. mtype: "POST",
  215. height: 280,
  216. width: $(window).width() - 300,
  217. colModel: [
  218. { label: "主键", name: "ID", hidden: true, key: true },
  219. { label: '子件料号', name: 'SubItemCode', width: 150, align: 'left' },
  220. { label: '子件名称', name: 'SubItemName', width: 150, align: 'left' },
  221. { label: '子件规格', name: 'SubItemStd', width: 150, align: 'left' },
  222. { label: '主数量', name: 'Quantity', width: 100, align: 'left' },
  223. { label: '主单位', name: 'InvUnit', width: 100, align: 'left' },
  224. { label: '辅计量', name: 'Amount', width: 100, align: 'left' },
  225. { label: '辅单位', name: 'AmountUnit', width: 100, align: 'left' },
  226. ],
  227. shrinkToFit: true,//宽度自适应
  228. width: "100%",
  229. autowidth: true,
  230. gridComplete: function () {
  231. },
  232. pager: "#gridPager2",
  233. sortname: 'MOCode,MoSeq',
  234. sortorder: "asc",
  235. viewrecords: true,
  236. multiselect: false
  237. });
  238. },
  239. bindSubGrid3: function (subgrid_id, rowid) {
  240. //
  241. $("#gridList").jqGrid("setSelection", rowid, false);
  242. var subgrid_table_id;
  243. subgrid_table_id = subgrid_id + "_t"; // (3)根据subgrid_id定义对应的子表格的table的id
  244. var subgrid_pager_id;
  245. subgrid_pager_id = subgrid_id + "_pgr" // (4)根据subgrid_id定义对应的子表格的pager的id
  246. $("#" + subgrid_id).html("<table id='" + subgrid_table_id + "' class='scroll'></table><div id='" + subgrid_pager_id + "' class='scroll'></div>");
  247. var MOCode = $("#gridList").jqGrid('getRowData', rowid).MOCode;
  248. var MoSeq = $("#gridList").jqGrid('getRowData', rowid).MoSeq;
  249. // (6)创建jqGrid对象
  250. $("#" + subgrid_table_id).dataGrid({
  251. cellEdit: true,
  252. mtype: "GET",
  253. url: "/OMAY/Aps/GetApsPlanSubGridJsonList?moCode=" + MOCode + "&moSeq=" + MoSeq + "&" + Math.random(), // (7)子表格数据对应的url,注意传入的contact.id参数
  254. colModel: [
  255. { label: "主键", name: "ID", hidden: true, key: true },
  256. { label: '子件行号', name: 'SubSeq', width: 150, align: 'left' },
  257. { label: '子件料号', name: 'SubItemCode', width: 150, align: 'left' },
  258. { label: '子件名称', name: 'SubItemName', width: 150, align: 'left' },
  259. { label: '子件规格', name: 'SubItemDtd', width: 150, align: 'left' },
  260. { label: '比例', name: 'Rate', width: 100, align: 'left' },
  261. { label: '主数量', name: 'Quantity', width: 100, align: 'left' },
  262. { label: '主单位', name: 'InvUnit', width: 100, align: 'left' },
  263. { label: '辅计量', name: 'Amount', width: 100, align: 'left' },
  264. { label: '辅单位', name: 'AmountUnit', width: 100, align: 'left' },
  265. ],
  266. //colModel: ColModelSub,
  267. shrinkToFit: true,//宽度自适应
  268. multiselect: true,
  269. prmNames: { search: "search" },
  270. viewrecords: true,
  271. height: "100%",
  272. //rowNum: 20,
  273. //pager: subgrid_pager_id,
  274. });
  275. },
  276. query: function () {
  277. console.log("点击查询");
  278. let queryJson = {
  279. ItemCode: $("#txt_ItemCode").val(),
  280. ItemName: $("#txt_ItemName").val(),
  281. SSName: $("#txt_SSName").val(),
  282. SSName2: $("#txt_SSName2").val(),
  283. MoCode: $("#txt_MoCode").val(),
  284. OrderStatus: $("#txt_OrderStatus").val(),
  285. };
  286. // that.loadGrid(queryJson);
  287. $("#gridList").jqGrid('setGridParam', {
  288. postData: { queryJson: JSON.stringify(queryJson) },
  289. }).trigger('reloadGrid');
  290. },
  291. loadEvent: function () {
  292. var that = this;
  293. $("#btn_search").click(function () {
  294. that.query();
  295. });
  296. $("#NF-InstructionBill").click(function () {
  297. var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow');
  298. if (objList.length == 0) {
  299. $.modalMsg("请选择一条数据", "warning");
  300. return;
  301. }
  302. let lines = [];
  303. for (var i = 0; i < objList.length; i++) {
  304. let line = $("#gridList").jqGrid('getRowData', objList[i]).DepName;
  305. lines.push(line);
  306. }
  307. if (lines.length==0) {
  308. $.modalMsg("请选择一条数据", "warning");
  309. return;
  310. }
  311. if (!lines.every(x => x == lines[0])) {
  312. $.modalMsg("不同产线订单无法下发", "warning");
  313. return;
  314. }
  315. var idstr = objList.join();
  316. // return;
  317. $.modalOpen({
  318. id: "Form",
  319. title: "指令单",
  320. url: "/OMAY/Aps/EditInstructionBill?ids=" + idstr + "&line=" + lines[0],
  321. width: "600px",
  322. height: "400px",
  323. callBack: function (iframeId) {
  324. top.frames[iframeId].submitForm();
  325. }
  326. });
  327. });
  328. $("#NF-ViewSubItem").click(function () {
  329. console.log("点击预览");
  330. //let queryJson = {
  331. // ItemCode: $("#txt_ItemCode").val(),
  332. // ItemName: $("#txt_ItemName").val(),
  333. // SSName: $("#txt_SSName").val(),
  334. //};
  335. // that.loadGrid(queryJson);
  336. var objList = $("#gridList").jqGrid('getGridParam', 'selarrrow');
  337. // console.log(objList);
  338. if (objList.length == 0) {
  339. $.modalMsg("请选择一条数据", "warning");
  340. return;
  341. }
  342. console.log(objList);
  343. $("#gridList2").jqGrid('setGridParam', {
  344. postData: { ids: objList.join() },
  345. }).trigger('reloadGrid');
  346. });
  347. $("#NF-PrintLabel").click(function () {
  348. console.log("打印条码");
  349. var ids = $("#gridList").jqGrid('getGridParam', 'selarrrow'); //获取 多行数据
  350. if (ids.length != 1) {
  351. $.modalMsg("请选择一条数据", "warning");
  352. return;
  353. }
  354. var POCode = "";
  355. var PORow = "";
  356. for (var i in ids) {
  357. MODetailID = $("#gridList").jqGrid('getRowData', ids[i]).MODetailID;
  358. MOCode = $("#gridList").jqGrid('getRowData', ids[i]).MOCode;
  359. Sequence = $("#gridList").jqGrid('getRowData', ids[i]).MoSeq;
  360. InvCode = $("#gridList").jqGrid('getRowData', ids[i]).ItemCode;
  361. MoTypeValue = $("#gridList").jqGrid('getRowData', ids[i]).MoTypeValue;
  362. }
  363. $.modalOpen({
  364. id: "FormAddItemLot",
  365. title: "成品条码产生",
  366. url: "/OMAY/ICSMoCreateLot/From?MOCode=" + encodeURI(encodeURI(MOCode)) + "&Sequence=" + Sequence + "&InvCode=" + InvCode + "&Type=" + 3 + "&MODetailID=" + MODetailID + "&MoTypeValue=" + MoTypeValue + "&" + Math.random(),
  367. width: "550px",
  368. height: "1000px",
  369. callBack: function (iframeId) {
  370. top.frames[iframeId].submitForm();
  371. }
  372. });
  373. });
  374. $("#NF-UpdateMoPlan").click(function () {
  375. // console.log('@NFine.Code.OperatorProvider.Provider.GetCurrent().RoleEnCode');
  376. // return;
  377. var ids = $("#gridList").jqGrid('getGridParam', 'selarrrow'); //获取 多行数据
  378. if (ids.length != 1) {
  379. $.modalMsg("请选择一条数据", "warning");
  380. return;
  381. }
  382. let obj = {
  383. isCanUpdateStatus:false,
  384. ids: ids[0],
  385. line: $("#gridList").jqGrid('getRowData', ids[0]).DepName,
  386. planStartDate: $("#gridList").jqGrid('getRowData', ids[0]).PlanStartDate,
  387. planEndDate: $("#gridList").jqGrid('getRowData', ids[0]).PlanEndDate,
  388. orderDate: $("#gridList").jqGrid('getRowData', ids[0]).ApsOrderDate,
  389. };
  390. //if (!obj.orderDate) {
  391. // $.modalMsg("排序时间格式错误", "warning");
  392. // return;
  393. //}
  394. //if (!obj.planStartDate) {
  395. // $.modalMsg("计划开始时间必填", "warning");
  396. // return;
  397. //}
  398. //if (!obj.planEndDate) {
  399. // $.modalMsg("计划结束时间必填", "warning");
  400. // return;
  401. //}
  402. if (new Date(obj.planStartDate) > new Date(obj.planEndDate)) {
  403. $.modalMsg("计划开始时间不能大于结束时间", "warning");
  404. return;
  405. }
  406. //if (!obj.orderDate) {
  407. // obj.orderDate = new Date().toLocaleDateString();
  408. //}
  409. $.ajax({
  410. url: "/OMAY/Aps/UpdateMoPlan" + "?" + Math.random(),
  411. type: "POST",
  412. dataType: "json",
  413. async: false,
  414. data: {
  415. keyValue: JSON.stringify(obj)
  416. },
  417. success: function (data) {
  418. //
  419. console.log(data);
  420. if (data.state == "success") {
  421. $.modalMsg("修改成功", "success");
  422. that.query();
  423. }
  424. else
  425. $.modalMsg(data.message, "warning");
  426. }
  427. });
  428. });
  429. $("#txt_SSName").change(function (event,handle) {
  430. //console.log( $("#txt_SSName").val());
  431. // console.log(val);
  432. // console.log("值改变了");
  433. let val = $("#txt_SSName").val();
  434. if (!val) {
  435. $("#NF-PrintLabel").attr("disabled", "disabled");
  436. }
  437. else {
  438. $("#NF-PrintLabel").removeAttr("disabled");
  439. }
  440. });
  441. $("#NF-UpdateMoOrderStatus").click(function () {
  442. var ids = $("#gridList").jqGrid('getGridParam', 'selarrrow'); //获取 多行数据
  443. if (ids.length == 0) {
  444. $.modalMsg("请选择一条数据", "warning");
  445. return;
  446. }
  447. let status = $("#txt_OrderStatus").val();
  448. let obj = {
  449. ids: ids.join(),
  450. orderStatus: status==''?'Close':''
  451. };
  452. $.ajax({
  453. url: "/OMAY/Aps/UpdateMoOrderStatus" + "?" + Math.random(),
  454. type: "POST",
  455. dataType: "json",
  456. async: false,
  457. data: {
  458. keyValue: JSON.stringify(obj)
  459. },
  460. success: function (data) {
  461. //
  462. console.log(data);
  463. if (data.state == "success") {
  464. $.modalMsg("变更成功", "success");
  465. that.query();
  466. }
  467. else
  468. $.modalMsg(data.message, "warning");
  469. }
  470. });
  471. });
  472. $("#NF-CancelMoPlan").click(function () {
  473. var ids = $("#gridList").jqGrid('getGridParam', 'selarrrow'); //获取 多行数据
  474. if (ids.length == 0) {
  475. $.modalMsg("请选择一条数据", "warning");
  476. return;
  477. }
  478. // let status = $("#txt_OrderStatus").val();
  479. let obj = {
  480. ids: ids.join()
  481. };
  482. let apsStatus = $("#gridList").jqGrid('getRowData', ids[0]).APSStatus;
  483. if (apsStatus != 'Y') {
  484. $.modalMsg("未下发,不能取消下发", "warning");
  485. return;
  486. }
  487. $.ajax({
  488. url: "/OMAY/Aps/CancelSendMo" + "?" + Math.random(),
  489. type: "POST",
  490. dataType: "json",
  491. async: false,
  492. data: {
  493. keyValue: JSON.stringify(obj)
  494. },
  495. success: function (data) {
  496. //
  497. console.log(data);
  498. if (data.state == "success") {
  499. $.modalMsg("取消成功", "success");
  500. that.query();
  501. }
  502. else
  503. $.modalMsg(data.message, "warning");
  504. }
  505. });
  506. });
  507. }
  508. }
  509. service.Init();
  510. })
  511. </script>
  512. <iframe id="ifrm" src="" width="0" height="0"></iframe>
  513. <script>
  514. </script>
  515. <div class="topPanel" style="height:100px;">
  516. <div class="toolbar">
  517. <div class="btn-group">
  518. <a id="NF-InstructionBill" authorize="no" style="margin-left:3px;" class="btn btn-primary"><i class="fa fa-pencil-square-o"></i>指令单</a>
  519. <a id="NF-ViewSubItem" authorize="no" style="margin-left:3px;" class="btn btn-primary"><i class="fa fa-pencil-square-o"></i>预览子料</a>
  520. <a id="NF-PrintLabel" authorize="no" style="margin-left:3px;" class="btn btn-primary"><i class="fa fa-pencil-square-o"></i>生成条码</a>
  521. <a id="NF-UpdateMoPlan" authorize="yes" style="margin-left:3px;" class="btn btn-primary"><i class="fa fa-pencil-square-o"></i>修改</a>
  522. <a id="NF-CancelMoPlan" authorize="no" style="margin-left:3px;" class="btn btn-primary"><i class="fa fa-pencil-square-o"></i>取消下发</a>
  523. <a id="NF-UpdateMoOrderStatus" authorize="yes" style="margin-left:3px;" class="btn btn-primary"><i class="fa fa-pencil-square-o"></i>变更订单状态</a>
  524. @*<a id="NF-ExportAll" authorize="yes" class="btn btn-default" onclick="btn_ExportAll()"><i class="fa fa-download"></i>导出</a>*@
  525. <a class="btn btn-primary" onclick="$.reload()"><span class="glyphicon glyphicon-refresh"></span></a>
  526. </div>
  527. <div class="btn-group" style="display:block;padding-left:2px;">
  528. <a class="btn btn-primary" id="downPrintControl" href="~/PrintActivex.exe" style="display:none">点击下载打印组件</a>
  529. </div>
  530. @*<script>$('.toolbar').authorizeButton()</script>*@
  531. </div>
  532. <div class="search">
  533. <table>
  534. <tr>
  535. <td class="HideItems" style="text-align:right;"><label class="lglabel HideItems" for="txt_MoCode">&nbsp;&nbsp;&nbsp;&nbsp;生产工单</label>:</td>
  536. <td class="HideItems">
  537. <div class="input-group HideItems">
  538. <input id="txt_MoCode" type="text" class="form-control HideItems" style="width: 100px;">
  539. </div>
  540. </td>
  541. <td class="HideItems" style="text-align:right;"><label class="lglabel HideItems" for="txt_ItemCode">&nbsp;&nbsp;&nbsp;&nbsp;存货编码</label>:</td>
  542. <td class="HideItems">
  543. <div class="input-group HideItems">
  544. <input id="txt_ItemCode" type="text" class="form-control HideItems" style="width: 100px;">
  545. </div>
  546. </td>
  547. <td class="HideItems" style="text-align:right;"><label class="lglabel HideItems" for="txt_ItemName">&nbsp;&nbsp;&nbsp;&nbsp;存货名称</label>:</td>
  548. <td class="HideItems">
  549. <div class="input-group HideItems">
  550. <input id="txt_ItemName" type="text" class="form-control HideItems" style="width: 100px;">
  551. </div>
  552. </td>
  553. <td class="HideItems" style="text-align:right;"><label class="lglabel HideItems" for="txt_SSName">&nbsp;&nbsp;&nbsp;&nbsp;已下发产线</label>:</td>
  554. <td class="HideItems">
  555. <div class="input-group HideItems">
  556. @*<input id="txt_SSName" type="text" class="form-control HideItems" style="width: 100px;">*@
  557. <select id="txt_SSName" name="ssName" class="form-control select2 required" style="width: 200px;">
  558. <option value=""></option>
  559. <option value="L1">L1</option>
  560. <option value="L2">L2</option>
  561. <option value="L3">L3</option>
  562. <option value="L4">L4</option>
  563. <option value="L5">L5</option>
  564. <option value="L6">L6</option>
  565. <option value="L7">L7</option>
  566. <option value="C1">C1</option>
  567. <option value="C2">C2</option>
  568. </select>
  569. </div>
  570. </td>
  571. <td class="HideItems" style="text-align:right;"><label id="lbl_SSName2" class="lglabel HideItems" for="txt_SSName">未下发产线</label>:</td>
  572. <td class="HideItems">
  573. <div class="input-group HideItems">
  574. @*<input id="txt_SSName" type="text" class="form-control HideItems" style="width: 100px;">*@
  575. <select id="txt_SSName2" name="ssName2" class="form-control select2 required" style="width: 200px;">
  576. <option value=""></option>
  577. <option value="L1">L1</option>
  578. <option value="L2">L2</option>
  579. <option value="L3">L3</option>
  580. <option value="L4">L4</option>
  581. <option value="L5">L5</option>
  582. <option value="L6">L6</option>
  583. <option value="L7">L7</option>
  584. <option value="C1">C1</option>
  585. <option value="C2">C2</option>
  586. </select>
  587. </div>
  588. </td>
  589. <td class="HideItems" style="text-align:right;">&nbsp;&nbsp;&nbsp;&nbsp;订单状态</td>
  590. <td class="HideItems">
  591. <div class="input-group HideItems">
  592. <select id="txt_OrderStatus" name="OrderStatus" class="form-control select2 required" style="width: 200px;">
  593. <option value="">打开</option>
  594. <option value="Close">关闭</option>
  595. </select>
  596. </div>
  597. </td>
  598. <td>
  599. <span class="input-group-btn">
  600. <button id="btn_search" type="button" class="btn btn-primary"><i class="fa fa-search"></i></button>
  601. </span>
  602. </td>
  603. </tr>
  604. </table>
  605. </div>
  606. </div>
  607. <div class="gridPanel">
  608. <table id="gridList"></table>
  609. <div id="gridPager"></div>
  610. </div>
  611. <div class="gridPane2">
  612. <table id="gridList2"></table>
  613. <div id="gridPager2"></div>
  614. </div>