纽威
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.

1236 lines
56 KiB

3 years ago
3 years ago
2 years ago
2 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
2 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
2 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
2 years ago
3 years ago
3 years ago
2 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
  1. 
  2. @{
  3. ViewBag.Title = "Index";
  4. Layout = "~/Views/Shared/_Form.cshtml";
  5. }
  6. <script>
  7. var Type = $.request("Type");
  8. var ApplyNegCode = $.request("ApplyNegCode");
  9. var OApplyNegCode = $.request("OApplyNegCode");
  10. var SDNCode = $.request("SDNCode");
  11. var InCode = $.request("InCode");
  12. var Sequence = $.request("Sequence");
  13. var MOCode = $.request("MOCode");
  14. var ReturnCode = $.request("ReturnCode");
  15. var DNCode = $.request("DNCode");
  16. var ODNCode = $.request("ODNCode");
  17. var RCVCode = $.request("RCVCode");
  18. var LLApplyNegCode = $.request("LLApplyNegCode");
  19. var CLApplyNegCode = $.request("CLApplyNegCode");
  20. var WWLLOApplyNegCode = $.request("WWLLOApplyNegCode");
  21. var WWCLOApplyNegCode = $.request("WWCLOApplyNegCode");
  22. var FGGDMOCode = $.request("FGGDMOCode");
  23. var MODetailID = $.request("MODetailID");
  24. debugger;
  25. var WorkPoints = '@NFine.Code.OperatorProvider.Provider.GetCurrent().Location'
  26. $(function () {
  27. $("#minPackQty").keyup(function () {
  28. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  29. }).bind("paste", function () { //CTR+V事件处理
  30. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  31. }).css("ime-mode", "disabled"); //CSS设置输入法不可用
  32. $("#thisCreateQty").keyup(function () {
  33. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  34. }).bind("paste", function () { //CTR+V事件处理
  35. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  36. }).css("ime-mode", "disabled"); //CSS设置输入法不可用
  37. $("#cretePageCount").keyup(function () {
  38. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  39. }).bind("paste", function () { //CTR+V事件处理
  40. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  41. }).css("ime-mode", "disabled"); //CSS设置输入法不可用
  42. var VenCode = "";
  43. var WorkPoint = "";
  44. debugger;
  45. //initControl();
  46. if (Type=='1') {
  47. if (!!ApplyNegCode && !!Sequence) {
  48. $.ajax({
  49. url: "/WMS/WMSCreateItemLot/GetSubGridJsonByCreate?ApplyNegCode=" + ApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  50. //data: { keyValue: keyValue },
  51. dataType: "json",
  52. async: false,
  53. success: function (data) {
  54. debugger;
  55. $("#InvCode").val(data.rows[0].InvCode);
  56. $("#INVNAME").val(data.rows[0].InvName);
  57. $("#INVSTD").val(data.rows[0].InvStd);
  58. $("#Quantity").val(data.rows[0].Quantity);
  59. $("#CreatedQty").val(data.rows[0].CreatedQty);
  60. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  61. $("#YAmount").val(data.rows[0].Amount);
  62. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  63. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  64. VenCode = data.rows[0].VenCode;
  65. WorkPoint = data.rows[0].WorkPoint;
  66. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  67. $("#thisCreateQty").attr("disabled", "disabled");
  68. $("#minPackQty").attr("disabled", "disabled");
  69. $("#VendorLotNo").attr("disabled", "disabled");
  70. }
  71. }
  72. });
  73. $.ajax({
  74. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  75. //data: { keyValue: keyValue },
  76. dataType: "json",
  77. async: false,
  78. success: function (data) {
  79. $("#VendorLotNo").val(data.VendorLotNo);
  80. }
  81. });
  82. }
  83. }
  84. if (Type=='2') {
  85. if (!!OApplyNegCode && !!Sequence) {
  86. $.ajax({
  87. url: "/WMS/WMSCreateItemLot/GetSubGridJsonWeiWaiByCreate?OApplyNegCode=" + OApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  88. dataType: "json",
  89. async: false,
  90. success: function (data) {
  91. debugger;
  92. $("#InvCode").val(data.rows[0].InvCode);
  93. $("#INVNAME").val(data.rows[0].InvName);
  94. $("#INVSTD").val(data.rows[0].InvStd);
  95. $("#Quantity").val(data.rows[0].Quantity);
  96. $("#CreatedQty").val(data.rows[0].CreatedQty);
  97. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  98. $("#YAmount").val(data.rows[0].Amount);
  99. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  100. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  101. VenCode = data.rows[0].VenCode;
  102. WorkPoint = data.rows[0].WorkPoint;
  103. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  104. $("#thisCreateQty").attr("disabled", "disabled");
  105. $("#minPackQty").attr("disabled", "disabled");
  106. $("#VendorLotNo").attr("disabled", "disabled");
  107. }
  108. }
  109. });
  110. $.ajax({
  111. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  112. dataType: "json",
  113. async: false,
  114. success: function (data) {
  115. $("#VendorLotNo").val(data.VendorLotNo);
  116. }
  117. });
  118. }
  119. }
  120. if (Type == '3') {
  121. if (!!MOCode && !!Sequence) {
  122. $.ajax({
  123. url: "/WMS/WMSCreateItemLot/GetSubGridJsonChengPingByCreate?MOCode=" + MOCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  124. dataType: "json",
  125. async: false,
  126. success: function (data) {
  127. debugger;
  128. $("#InvCode").val(data.rows[0].InvCode);
  129. $("#INVNAME").val(data.rows[0].InvName);
  130. $("#INVSTD").val(data.rows[0].InvStd);
  131. $("#Quantity").val(data.rows[0].Quantity);
  132. $("#CreatedQty").val(data.rows[0].CreatedQty);
  133. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  134. $("#YAmount").val(data.rows[0].Amount);
  135. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  136. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  137. $("#Enable").val(data.rows[0].Enable);
  138. VenCode = data.rows[0].VenCode;
  139. WorkPoint = data.rows[0].WorkPoint;
  140. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  141. $("#thisCreateQty").attr("disabled", "disabled");
  142. $("#minPackQty").attr("disabled", "disabled");
  143. $("#VendorLotNo").attr("disabled", "disabled");
  144. }
  145. }
  146. });
  147. $.ajax({
  148. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  149. dataType: "json",
  150. async: false,
  151. success: function (data) {
  152. $("#VendorLotNo").val(data.VendorLotNo);
  153. }
  154. });
  155. }
  156. }
  157. if (Type == '4') {
  158. if (!!SDNCode && !!Sequence) {
  159. $.ajax({
  160. url: "/WMS/WMSCreateItemLot/GetSubGridJsonXiaoShouByCreate?SDNCode=" + SDNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  161. dataType: "json",
  162. async: false,
  163. success: function (data) {
  164. debugger;
  165. $("#InvCode").val(data.rows[0].InvCode);
  166. $("#INVNAME").val(data.rows[0].InvName);
  167. $("#INVSTD").val(data.rows[0].InvStd);
  168. $("#Quantity").val(data.rows[0].Quantity);
  169. $("#CreatedQty").val(data.rows[0].CreatedQty);
  170. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  171. $("#YAmount").val(data.rows[0].Amount);
  172. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  173. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  174. VenCode = data.rows[0].VenCode;
  175. WorkPoint = data.rows[0].WorkPoint;
  176. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  177. $("#thisCreateQty").attr("disabled", "disabled");
  178. $("#minPackQty").attr("disabled", "disabled");
  179. $("#VendorLotNo").attr("disabled", "disabled");
  180. }
  181. }
  182. });
  183. $.ajax({
  184. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  185. dataType: "json",
  186. async: false,
  187. success: function (data) {
  188. $("#VendorLotNo").val(data.VendorLotNo);
  189. }
  190. });
  191. }
  192. }
  193. if (Type == '5') {
  194. if (!!InCode && !!Sequence) {
  195. $.ajax({
  196. url: "/WMS/WMSCreateItemLot/GetSubGridJsonQiTaByCreate?InCode=" + InCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  197. dataType: "json",
  198. async: false,
  199. success: function (data) {
  200. debugger;
  201. $("#InvCode").val(data.rows[0].InvCode);
  202. $("#INVNAME").val(data.rows[0].InvName);
  203. $("#INVSTD").val(data.rows[0].InvStd);
  204. $("#Quantity").val(data.rows[0].Quantity);
  205. $("#CreatedQty").val(data.rows[0].CreatedQty);
  206. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  207. $("#YAmount").val(data.rows[0].Amount);
  208. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  209. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  210. VenCode = data.rows[0].VenCode;
  211. WorkPoint = data.rows[0].WorkPoint;
  212. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  213. $("#thisCreateQty").attr("disabled", "disabled");
  214. $("#minPackQty").attr("disabled", "disabled");
  215. $("#VendorLotNo").attr("disabled", "disabled");
  216. }
  217. }
  218. });
  219. $.ajax({
  220. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  221. //data: { keyValue: keyValue },
  222. dataType: "json",
  223. async: false,
  224. success: function (data) {
  225. $("#VendorLotNo").val(data.VendorLotNo);
  226. }
  227. });
  228. }
  229. }
  230. if (Type == '6') {
  231. if (!!ReturnCode && !!Sequence) {
  232. $.ajax({
  233. url: "/WMS/WMSCreateItemLot/GetSubGridJsonGuiHuanByCreate?ReturnCode=" + ReturnCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  234. dataType: "json",
  235. async: false,
  236. success: function (data) {
  237. debugger;
  238. $("#InvCode").val(data.rows[0].InvCode);
  239. $("#INVNAME").val(data.rows[0].InvName);
  240. $("#INVSTD").val(data.rows[0].InvStd);
  241. $("#Quantity").val(data.rows[0].Quantity);
  242. $("#CreatedQty").val(data.rows[0].CreatedQty);
  243. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  244. $("#YAmount").val(data.rows[0].Amount);
  245. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  246. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  247. VenCode = data.rows[0].VenCode;
  248. WorkPoint = data.rows[0].WorkPoint;
  249. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  250. $("#thisCreateQty").attr("disabled", "disabled");
  251. $("#minPackQty").attr("disabled", "disabled");
  252. $("#VendorLotNo").attr("disabled", "disabled");
  253. }
  254. }
  255. });
  256. $.ajax({
  257. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  258. //data: { keyValue: keyValue },
  259. dataType: "json",
  260. async: false,
  261. success: function (data) {
  262. $("#VendorLotNo").val(data.VendorLotNo);
  263. }
  264. });
  265. }
  266. }
  267. if (Type == '7') {
  268. if (!!DNCode && !!Sequence) {
  269. $.ajax({
  270. url: "/WMS/WMSCreateItemLot/GetSubGridJsonSHDHByCreate?DNCode=" + DNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  271. dataType: "json",
  272. async: false,
  273. success: function (data) {
  274. debugger;
  275. $("#InvCode").val(data.rows[0].InvCode);
  276. $("#INVNAME").val(data.rows[0].InvName);
  277. $("#INVSTD").val(data.rows[0].InvStd);
  278. $("#Quantity").val(data.rows[0].Quantity);
  279. $("#CreatedQty").val(data.rows[0].CreatedQty);
  280. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  281. $("#YAmount").val(data.rows[0].Amount);
  282. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  283. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  284. VenCode = data.rows[0].VenCode;
  285. WorkPoint = data.rows[0].WorkPoint;
  286. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  287. $("#thisCreateQty").attr("disabled", "disabled");
  288. $("#minPackQty").attr("disabled", "disabled");
  289. $("#VendorLotNo").attr("disabled", "disabled");
  290. }
  291. }
  292. });
  293. $.ajax({
  294. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  295. //data: { keyValue: keyValue },
  296. dataType: "json",
  297. async: false,
  298. success: function (data) {
  299. $("#VendorLotNo").val(data.VendorLotNo);
  300. }
  301. });
  302. }
  303. }
  304. if (Type == '8') {
  305. debugger;
  306. if (!!ODNCode && !!Sequence) {
  307. $.ajax({
  308. url: "/WMS/WMSCreateItemLot/GetSubGridJsonWWSHDHByCreate?ODNCode=" + ODNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  309. dataType: "json",
  310. async: false,
  311. success: function (data) {
  312. debugger;
  313. $("#InvCode").val(data.rows[0].InvCode);
  314. $("#INVNAME").val(data.rows[0].InvName);
  315. $("#INVSTD").val(data.rows[0].InvStd);
  316. $("#Quantity").val(data.rows[0].Quantity);
  317. $("#CreatedQty").val(data.rows[0].CreatedQty);
  318. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  319. $("#YAmount").val(data.rows[0].Amount);
  320. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  321. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  322. VenCode = data.rows[0].VenCode;
  323. WorkPoint = data.rows[0].WorkPoint;
  324. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  325. $("#thisCreateQty").attr("disabled", "disabled");
  326. $("#minPackQty").attr("disabled", "disabled");
  327. $("#VendorLotNo").attr("disabled", "disabled");
  328. }
  329. }
  330. });
  331. $.ajax({
  332. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  333. //data: { keyValue: keyValue },
  334. dataType: "json",
  335. async: false,
  336. success: function (data) {
  337. $("#VendorLotNo").val(data.VendorLotNo);
  338. }
  339. });
  340. }
  341. }
  342. if (Type == '9') {
  343. debugger;
  344. if (!!RCVCode && !!Sequence) {
  345. $.ajax({
  346. url: "/WMS/WMSCreateItemLot/GetSubGridJsonKLCPRKByCreate?RCVCode=" + RCVCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  347. dataType: "json",
  348. async: false,
  349. success: function (data) {
  350. debugger;
  351. $("#InvCode").val(data.rows[0].InvCode);
  352. $("#INVNAME").val(data.rows[0].InvName);
  353. $("#INVSTD").val(data.rows[0].InvStd);
  354. $("#Quantity").val(data.rows[0].Quantity);
  355. $("#CreatedQty").val(data.rows[0].CreatedQty);
  356. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  357. $("#YAmount").val(data.rows[0].Amount);
  358. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  359. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  360. VenCode = data.rows[0].VenCode;
  361. WorkPoint = data.rows[0].WorkPoint;
  362. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  363. $("#thisCreateQty").attr("disabled", "disabled");
  364. $("#minPackQty").attr("disabled", "disabled");
  365. $("#VendorLotNo").attr("disabled", "disabled");
  366. }
  367. }
  368. });
  369. $.ajax({
  370. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  371. //data: { keyValue: keyValue },
  372. dataType: "json",
  373. async: false,
  374. success: function (data) {
  375. $("#VendorLotNo").val(data.VendorLotNo);
  376. }
  377. });
  378. }
  379. }
  380. if (Type == '10') {
  381. if (!!DNCode && !!Sequence) {
  382. $.ajax({
  383. url: "/WMS/WMSCreateItemLot/GetSubGridJsonJSDByCreate?DNCode=" + DNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  384. dataType: "json",
  385. async: false,
  386. success: function (data) {
  387. debugger;
  388. $("#InvCode").val(data.rows[0].InvCode);
  389. $("#INVNAME").val(data.rows[0].InvName);
  390. $("#INVSTD").val(data.rows[0].InvStd);
  391. $("#Quantity").val(data.rows[0].Quantity);
  392. $("#CreatedQty").val(data.rows[0].CreatedQty);
  393. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  394. $("#YAmount").val(data.rows[0].Amount);
  395. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  396. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  397. VenCode = data.rows[0].VenCode;
  398. WorkPoint = data.rows[0].WorkPoint;
  399. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  400. $("#thisCreateQty").attr("disabled", "disabled");
  401. $("#minPackQty").attr("disabled", "disabled");
  402. $("#VendorLotNo").attr("disabled", "disabled");
  403. }
  404. }
  405. });
  406. $.ajax({
  407. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  408. //data: { keyValue: keyValue },
  409. dataType: "json",
  410. async: false,
  411. success: function (data) {
  412. $("#VendorLotNo").val(data.VendorLotNo);
  413. }
  414. });
  415. }
  416. }
  417. if (Type == '11') {
  418. debugger;
  419. if (!!ODNCode && !!Sequence) {
  420. $.ajax({
  421. url: "/WMS/WMSCreateItemLot/GetSubGridJsonWWJSDByCreate?ODNCode=" + ODNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  422. dataType: "json",
  423. async: false,
  424. success: function (data) {
  425. debugger;
  426. $("#InvCode").val(data.rows[0].InvCode);
  427. $("#INVNAME").val(data.rows[0].InvName);
  428. $("#INVSTD").val(data.rows[0].InvStd);
  429. $("#Quantity").val(data.rows[0].Quantity);
  430. $("#CreatedQty").val(data.rows[0].CreatedQty);
  431. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  432. $("#YAmount").val(data.rows[0].Amount);
  433. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  434. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  435. VenCode = data.rows[0].VenCode;
  436. WorkPoint = data.rows[0].WorkPoint;
  437. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  438. $("#thisCreateQty").attr("disabled", "disabled");
  439. $("#minPackQty").attr("disabled", "disabled");
  440. $("#VendorLotNo").attr("disabled", "disabled");
  441. }
  442. }
  443. });
  444. $.ajax({
  445. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  446. //data: { keyValue: keyValue },
  447. dataType: "json",
  448. async: false,
  449. success: function (data) {
  450. $("#VendorLotNo").val(data.VendorLotNo);
  451. }
  452. });
  453. }
  454. }
  455. if (Type == '12') {
  456. if (!!LLApplyNegCode && !!Sequence) {
  457. $.ajax({
  458. url: "/WMS/WMSCreateItemLot/GetSubGridJsonLLSQDByCreate?ApplyNegCode=" + LLApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  459. //data: { keyValue: keyValue },
  460. dataType: "json",
  461. async: false,
  462. success: function (data) {
  463. debugger;
  464. $("#InvCode").val(data.rows[0].InvCode);
  465. $("#INVNAME").val(data.rows[0].InvName);
  466. $("#INVSTD").val(data.rows[0].InvStd);
  467. $("#Quantity").val(data.rows[0].Quantity);
  468. $("#CreatedQty").val(data.rows[0].CreatedQty);
  469. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  470. $("#YAmount").val(data.rows[0].Amount);
  471. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  472. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  473. VenCode = data.rows[0].VenCode;
  474. WorkPoint = data.rows[0].WorkPoint;
  475. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  476. $("#thisCreateQty").attr("disabled", "disabled");
  477. $("#minPackQty").attr("disabled", "disabled");
  478. $("#VendorLotNo").attr("disabled", "disabled");
  479. }
  480. }
  481. });
  482. $.ajax({
  483. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  484. //data: { keyValue: keyValue },
  485. dataType: "json",
  486. async: false,
  487. success: function (data) {
  488. $("#VendorLotNo").val(data.VendorLotNo);
  489. }
  490. });
  491. }
  492. }
  493. if (Type == '13') {
  494. if (!!CLApplyNegCode && !!Sequence) {
  495. $.ajax({
  496. url: "/WMS/WMSCreateItemLot/GetSubGridJsonCLCKByCreate?ApplyNegCode=" + CLApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  497. //data: { keyValue: keyValue },
  498. dataType: "json",
  499. async: false,
  500. success: function (data) {
  501. debugger;
  502. $("#InvCode").val(data.rows[0].InvCode);
  503. $("#INVNAME").val(data.rows[0].InvName);
  504. $("#INVSTD").val(data.rows[0].InvStd);
  505. $("#Quantity").val(data.rows[0].Quantity);
  506. $("#CreatedQty").val(data.rows[0].CreatedQty);
  507. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  508. $("#YAmount").val(data.rows[0].Amount);
  509. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  510. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  511. VenCode = data.rows[0].VenCode;
  512. WorkPoint = data.rows[0].WorkPoint;
  513. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  514. $("#thisCreateQty").attr("disabled", "disabled");
  515. $("#minPackQty").attr("disabled", "disabled");
  516. $("#VendorLotNo").attr("disabled", "disabled");
  517. }
  518. }
  519. });
  520. $.ajax({
  521. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  522. //data: { keyValue: keyValue },
  523. dataType: "json",
  524. async: false,
  525. success: function (data) {
  526. $("#VendorLotNo").val(data.VendorLotNo);
  527. }
  528. });
  529. }
  530. }
  531. if (Type == '14') {
  532. if (!!WWLLOApplyNegCode && !!Sequence) {
  533. $.ajax({
  534. url: "/WMS/WMSCreateItemLot/GetSubGridJsonWWLLByCreate?OApplyNegCode=" + WWLLOApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  535. dataType: "json",
  536. async: false,
  537. success: function (data) {
  538. debugger;
  539. $("#InvCode").val(data.rows[0].InvCode);
  540. $("#INVNAME").val(data.rows[0].InvName);
  541. $("#INVSTD").val(data.rows[0].InvStd);
  542. $("#Quantity").val(data.rows[0].Quantity);
  543. $("#CreatedQty").val(data.rows[0].CreatedQty);
  544. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  545. $("#YAmount").val(data.rows[0].Amount);
  546. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  547. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  548. VenCode = data.rows[0].VenCode;
  549. WorkPoint = data.rows[0].WorkPoint;
  550. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  551. $("#thisCreateQty").attr("disabled", "disabled");
  552. $("#minPackQty").attr("disabled", "disabled");
  553. $("#VendorLotNo").attr("disabled", "disabled");
  554. }
  555. }
  556. });
  557. $.ajax({
  558. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  559. dataType: "json",
  560. async: false,
  561. success: function (data) {
  562. $("#VendorLotNo").val(data.VendorLotNo);
  563. }
  564. });
  565. }
  566. }
  567. if (Type == '15') {
  568. if (!!WWCLOApplyNegCode && !!Sequence) {
  569. $.ajax({
  570. url: "/WMS/WMSCreateItemLot/GetSubGridJsonWWCLByCreate?OApplyNegCode=" + WWCLOApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  571. dataType: "json",
  572. async: false,
  573. success: function (data) {
  574. debugger;
  575. $("#InvCode").val(data.rows[0].InvCode);
  576. $("#INVNAME").val(data.rows[0].InvName);
  577. $("#INVSTD").val(data.rows[0].InvStd);
  578. $("#Quantity").val(data.rows[0].Quantity);
  579. $("#CreatedQty").val(data.rows[0].CreatedQty);
  580. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  581. $("#YAmount").val(data.rows[0].Amount);
  582. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  583. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  584. VenCode = data.rows[0].VenCode;
  585. WorkPoint = data.rows[0].WorkPoint;
  586. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  587. $("#thisCreateQty").attr("disabled", "disabled");
  588. $("#minPackQty").attr("disabled", "disabled");
  589. $("#VendorLotNo").attr("disabled", "disabled");
  590. }
  591. }
  592. });
  593. $.ajax({
  594. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  595. dataType: "json",
  596. async: false,
  597. success: function (data) {
  598. $("#VendorLotNo").val(data.VendorLotNo);
  599. }
  600. });
  601. }
  602. }
  603. if (Type == '16') {
  604. if (!!FGGDMOCode && !!Sequence) {
  605. $.ajax({
  606. url: "/WMS/WMSCreateItemLot/GetSubGridJsonFGGDCreate?FGGDMOCode=" + FGGDMOCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  607. dataType: "json",
  608. async: false,
  609. success: function (data) {
  610. debugger;
  611. $("#InvCode").val(data.rows[0].InvCode);
  612. $("#INVNAME").val(data.rows[0].InvName);
  613. $("#INVSTD").val(data.rows[0].InvStd);
  614. $("#Quantity").val(data.rows[0].Quantity);
  615. $("#CreatedQty").val(data.rows[0].CreatedQty);
  616. $("#thisCreateQty").val(data.rows[0].thisCreateQty);
  617. $("#YAmount").val(data.rows[0].Amount);
  618. $("#EffectiveEnable").val(data.rows[0].EffectiveEnable);
  619. $("#EffectiveDays").val(data.rows[0].EffectiveDays);
  620. VenCode = data.rows[0].VenCode;
  621. WorkPoint = data.rows[0].WorkPoint;
  622. if (data.rows[0].Quantity == data.rows[0].CreatedQty) {
  623. $("#thisCreateQty").attr("disabled", "disabled");
  624. $("#minPackQty").attr("disabled", "disabled");
  625. $("#VendorLotNo").attr("disabled", "disabled");
  626. }
  627. }
  628. });
  629. $.ajax({
  630. url: "/WMS/WMSCreateItemLot/GetVendorLotNo?VenCode=" + VenCode + "&WorkPoint=" + WorkPoint,
  631. dataType: "json",
  632. async: false,
  633. success: function (data) {
  634. $("#VendorLotNo").val(data.VendorLotNo);
  635. }
  636. });
  637. }
  638. }
  639. //查询后台自由项表(控制前台显示)
  640. $.ajax({
  641. url: "/WMS/WMSCreateItemLot/SelectICSExtensionEnable" + "?" + Math.random(),
  642. dataType: "json",
  643. async: false,
  644. success: function (data) {
  645. debugger;
  646. if (data != null && data.length > 0) {
  647. for (var i = 0; i < data.length; i++) {
  648. if (data[i].ColCode == 'ProjectCode') { $("#trProjectCode").css('display', 'none'); }
  649. if (data[i].ColCode == 'BatchCode') { $("#trBatchCode").css('display', 'none'); }
  650. if (data[i].ColCode == 'Version') { $("#trVersion").css('display', 'none'); }
  651. if (data[i].ColCode == 'Brand') { $("#trBrand").css('display', 'none'); }
  652. if (data[i].ColCode == 'cFree1') { $("#trcFree1").css('display', 'none'); }
  653. if (data[i].ColCode == 'cFree2') { $("#trcFree2").css('display', 'none'); }
  654. if (data[i].ColCode == 'cFree3') { $("#trcFree3").css('display', 'none'); }
  655. if (data[i].ColCode == 'cFree4') { $("#trcFree4").css('display', 'none'); }
  656. if (data[i].ColCode == 'cFree5') { $("#trcFree5").css('display', 'none'); }
  657. if (data[i].ColCode == 'cFree6') { $("#trcFree6").css('display', 'none'); }
  658. if (data[i].ColCode == 'cFree7') { $("#trcFree7").css('display', 'none'); }
  659. if (data[i].ColCode == 'cFree8') { $("#trcFree8").css('display', 'none'); }
  660. if (data[i].ColCode == 'cFree9') { $("#trcFree9").css('display', 'none'); }
  661. if (data[i].ColCode == 'cFree10') { $("#trcFree10").css('display', 'none'); }
  662. //if (i >= 4) {
  663. // if (data[i].ColName == 'cFree' + (i - 3)) {$("#trcFree'" + (i - 3) + "'").css('display', 'none');}
  664. //}
  665. }
  666. }
  667. }
  668. });
  669. $("#minPackQty").change(minPackQty_Change);
  670. $("#thisCreateQty").change(thisCreateQty_Change);
  671. $("#cretePageCount").change(function () {
  672. var createPageCount = $("#cretePageCount").val() * 1;//本次生成张数
  673. createPageCount = createPageCount.toFixed(0);
  674. if (createPageCount <= 0) {
  675. $.modalAlertNew("WMS00102");
  676. return false;
  677. }
  678. });
  679. });
  680. //最小包装量值改变事件
  681. function minPackQty_Change() {
  682. debugger;
  683. var thisCreateQty = $("#thisCreateQty").val() * 1;//本次生成数量
  684. thisCreateQty = thisCreateQty.toFixed(2);
  685. var minPackQty = $("#minPackQty").val() * 1;//最小包装量
  686. minPackQty = minPackQty.toFixed(2);
  687. var createPageCount = $("#cretePageCount").val() * 1;//本次生成张数
  688. var Quantity = $("#Quantity").val() * 1;//数量
  689. var YAmount = $("#YAmount").val() * 1;//辅计量数量
  690. createPageCount = createPageCount.toFixed(0);
  691. if (minPackQty <= 0) {
  692. $.modalAlertNew("WMS00102");
  693. return false;
  694. }
  695. //不可以整除,生成张数+1;
  696. if (thisCreateQty % minPackQty != 0) {
  697. createPageCount = parseInt(thisCreateQty / minPackQty) + 1;
  698. $("#cretePageCount").val(createPageCount);
  699. }
  700. else {
  701. createPageCount = parseInt(thisCreateQty / minPackQty);
  702. $("#cretePageCount").val(createPageCount);
  703. }
  704. var Ratio = YAmount / Quantity * minPackQty;
  705. $("#Amount").val(Ratio);//自动计算出的条码辅计量数量
  706. }
  707. //本次生成数量值改变事件
  708. function thisCreateQty_Change() {
  709. debugger;
  710. var Quantity_str = $("#Quantity").val() * 1;//采购订单总数
  711. var CreatedQty_str = $("#CreatedQty").val() * 1;//已生成数量
  712. var thisCreateQty_str = $("#thisCreateQty").val() * 1;//本次生成数量
  713. var Quantity = Number(Quantity_str);
  714. var CreatedQty = Number(CreatedQty_str);
  715. var thisCreateQty = Number(thisCreateQty_str);
  716. if (thisCreateQty <= 0) {
  717. $.modalAlertNew("WMS00102");
  718. return false;
  719. }
  720. if (thisCreateQty <= 0 || thisCreateQty > (Quantity - CreatedQty)) {
  721. var maxQty = Quantity - CreatedQty;
  722. $.modalAlertNew("WMS00103",maxQty);
  723. //$.modalAlert("请输入0到" + maxQty + "范围内的数!");
  724. $("#thisCreateQty").val("");
  725. return false;
  726. } else {
  727. minPackQty_Change();
  728. return true;
  729. }
  730. var minPackQty = $("#minPackQty").val() * 1;//最小包装量
  731. minPackQty_Change();
  732. }
  733. function submitForm() {
  734. debugger;
  735. if (!$('#form1').formValid()) {
  736. return false;
  737. }
  738. var thisCreateQty = $("#thisCreateQty").val() * 1;//本次生成数量
  739. thisCreateQty = thisCreateQty.toFixed(2);
  740. var minPackQty = $("#minPackQty").val() * 1;//最小包装量
  741. minPackQty = minPackQty.toFixed(2);
  742. var createPageCount = $("#cretePageCount").val() * 1;//本次生成张数
  743. createPageCount = createPageCount.toFixed(0);
  744. //校验
  745. var flag1 = thisCreateQty_Change();
  746. //var flag2 = CheckNum();
  747. var VendorLot = $("#VendorLotNo").val();
  748. if (flag1) { }
  749. else {
  750. return false;
  751. }
  752. var Quantity = $("#Quantity").val() * 1;//采购订单总数
  753. Quantity = Quantity.toFixed(2);
  754. var CreatedQty = $("#CreatedQty").val() * 1;//已生成数量
  755. CreatedQty = CreatedQty.toFixed(2);
  756. if (Quantity == CreatedQty ) {
  757. return false;
  758. }
  759. var ExpirationDate = '';//条码失效日期
  760. var EffectiveEnable = $("#EffectiveEnable").val();//料品是否启用有效天数
  761. var EffectiveDays = $("#EffectiveDays").val();//料品有效期天数
  762. var PRODUCTDATE = $("#PRODUCTDATE").val();//条码生产日期
  763. if (EffectiveEnable=='1') {
  764. var ExpirationDate= dateChange(EffectiveDays, PRODUCTDATE);
  765. } else {
  766. var ExpirationDate = '2999-12-31 00:00:00.000';
  767. }
  768. var obj = {
  769. thisCreateQty: thisCreateQty,
  770. minPackQty: minPackQty,
  771. createPageCount: createPageCount,
  772. VendorLot: VendorLot,
  773. PRODUCTDATE: PRODUCTDATE,
  774. ExpirationDate:ExpirationDate,
  775. Amount: $("#Amount").val(),
  776. //自由项
  777. ProjectCode: $("#ProjectCode").val(),
  778. BatchCode: $("#BatchCode").val(),
  779. Version: $("#Version").val(),
  780. Brand: $("#Brand").val(),
  781. cFree1: $("#cFree1").val(),
  782. cFree2: $("#cFree2").val(),
  783. cFree3: $("#cFree3").val(),
  784. cFree4: $("#cFree4").val(),
  785. cFree5: $("#cFree5").val(),
  786. cFree6: $("#cFree6").val(),
  787. cFree7: $("#cFree7").val(),
  788. cFree8: $("#cFree8").val(),
  789. cFree9: $("#cFree9").val(),
  790. cFree10: $("#cFree10").val(),
  791. }
  792. if (Type=='1') {
  793. $.submitForm({
  794. url: "/WMS/WMSCreateItemLot/SubmitForm?ApplyNegCode=" + ApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  795. param: {
  796. keyValue: JSON.stringify(obj)
  797. },
  798. success: function () {
  799. $.currentWindow().$("#gridList").trigger("reloadGrid");
  800. }
  801. })
  802. }
  803. if (Type=='2') {
  804. $.submitForm({
  805. url: "/WMS/WMSCreateItemLot/SubmitFormWeiWai?OApplyNegCode=" + OApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  806. param: {
  807. keyValue: JSON.stringify(obj)
  808. },
  809. success: function () {
  810. $.currentWindow().$("#gridList").trigger("reloadGrid");
  811. }
  812. })
  813. }
  814. if (Type == '3') {
  815. var QiSetNum = '';
  816. var Msg = '';
  817. if ($("#Enable").val() == 'true') {
  818. var Header = {
  819. WorkPoint:WorkPoints,
  820. DetailID: MODetailID,
  821. Type: '生产订单',
  822. }
  823. var keyValue = [];
  824. keyValue.push(Header);
  825. $.ajax({
  826. url: "/WMS/WMSCreateItemLot/GetQiSetNum" + "?" + Math.random(),
  827. data: { keyValue: JSON.stringify(keyValue) },
  828. dataType: "json",
  829. async: false,
  830. success: function (data) {
  831. Msg = data.msg;
  832. QiSetNum = data.Num;
  833. }
  834. });
  835. }
  836. if (Msg!='') {
  837. $.modalAlert(Msg);
  838. return;
  839. }
  840. if (thisCreateQty > (QiSetNum - CreatedQty)) {
  841. $.modalAlert("该订单未发料,请发料后生成条码!");
  842. $("#thisCreateQty").val("");
  843. return ;
  844. }
  845. $.submitForm({
  846. url: "/WMS/WMSCreateItemLot/SubmitFormChengPing?MOCode=" + MOCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  847. param: {
  848. keyValue: JSON.stringify(obj)
  849. },
  850. success: function () {
  851. $.currentWindow().$("#gridList").trigger("reloadGrid");
  852. }
  853. })
  854. }
  855. if (Type == '4') {
  856. $.submitForm({
  857. url: "/WMS/WMSCreateItemLot/SubmitFormXiaoShou?SDNCode=" + SDNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  858. param: {
  859. keyValue: JSON.stringify(obj)
  860. },
  861. success: function () {
  862. $.currentWindow().$("#gridList").trigger("reloadGrid");
  863. }
  864. })
  865. }
  866. if (Type == '5') {
  867. $.submitForm({
  868. url: "/WMS/WMSCreateItemLot/SubmitFormQiTa?InCode=" + InCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  869. param: {
  870. keyValue: JSON.stringify(obj)
  871. },
  872. success: function () {
  873. $.currentWindow().$("#gridList").trigger("reloadGrid");
  874. }
  875. })
  876. }
  877. if (Type == '6') {
  878. $.submitForm({
  879. url: "/WMS/WMSCreateItemLot/SubmitFormGuiHuan?ReturnCode=" + ReturnCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  880. param: {
  881. keyValue: JSON.stringify(obj)
  882. },
  883. success: function () {
  884. $.currentWindow().$("#gridList").trigger("reloadGrid");
  885. }
  886. })
  887. }
  888. if (Type == '7') {
  889. $.submitForm({
  890. url: "/WMS/WMSCreateItemLot/SubmitFormSHDH?DNCode=" + DNCode + "&Sequence=" + Sequence + "&INVCode=" + $("#InvCode").val() + "&WorkPoint=" + WorkPoints,
  891. param: {
  892. keyValue: JSON.stringify(obj)
  893. },
  894. success: function () {
  895. $.currentWindow().$("#gridList").trigger("reloadGrid");
  896. }
  897. })
  898. }
  899. if (Type == '8') {
  900. $.submitForm({
  901. url: "/WMS/WMSCreateItemLot/SubmitFormWWSHDH?ODNCode=" + ODNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  902. param: {
  903. keyValue: JSON.stringify(obj)
  904. },
  905. success: function () {
  906. $.currentWindow().$("#gridList").trigger("reloadGrid");
  907. }
  908. })
  909. }
  910. if (Type == '9') {
  911. $.submitForm({
  912. url: "/WMS/WMSCreateItemLot/SubmitFormKLCPRK?RCVCode=" + RCVCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  913. param: {
  914. keyValue: JSON.stringify(obj)
  915. },
  916. success: function () {
  917. $.currentWindow().$("#gridList").trigger("reloadGrid");
  918. }
  919. })
  920. }
  921. if (Type == '10') {
  922. $.submitForm({
  923. url: "/WMS/WMSCreateItemLot/SubmitFormJSD?DNCode=" + DNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  924. param: {
  925. keyValue: JSON.stringify(obj)
  926. },
  927. success: function () {
  928. $.currentWindow().$("#gridList").trigger("reloadGrid");
  929. }
  930. })
  931. }
  932. if (Type == '11') {
  933. $.submitForm({
  934. url: "/WMS/WMSCreateItemLot/SubmitFormWWJSD?ODNCode=" + ODNCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  935. param: {
  936. keyValue: JSON.stringify(obj)
  937. },
  938. success: function () {
  939. $.currentWindow().$("#gridList").trigger("reloadGrid");
  940. }
  941. })
  942. }
  943. if (Type == '12') {
  944. $.submitForm({
  945. url: "/WMS/WMSCreateItemLot/SubmitFormLLSQTL?ApplyNegCode=" + LLApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  946. param: {
  947. keyValue: JSON.stringify(obj)
  948. },
  949. success: function () {
  950. $.currentWindow().$("#gridList").trigger("reloadGrid");
  951. }
  952. })
  953. }
  954. if (Type == '13') {
  955. $.submitForm({
  956. url: "/WMS/WMSCreateItemLot/SubmitFormCLCKT?ApplyNegCode=" + CLApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  957. param: {
  958. keyValue: JSON.stringify(obj)
  959. },
  960. success: function () {
  961. $.currentWindow().$("#gridList").trigger("reloadGrid");
  962. }
  963. })
  964. }
  965. if (Type == '14') {
  966. $.submitForm({
  967. url: "/WMS/WMSCreateItemLot/SubmitFormWWLL?OApplyNegCode=" + WWLLOApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  968. param: {
  969. keyValue: JSON.stringify(obj)
  970. },
  971. success: function () {
  972. $.currentWindow().$("#gridList").trigger("reloadGrid");
  973. }
  974. })
  975. }
  976. if (Type == '15') {
  977. $.submitForm({
  978. url: "/WMS/WMSCreateItemLot/SubmitFormWWCL?OApplyNegCode=" + WWCLOApplyNegCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  979. param: {
  980. keyValue: JSON.stringify(obj)
  981. },
  982. success: function () {
  983. $.currentWindow().$("#gridList").trigger("reloadGrid");
  984. }
  985. })
  986. }
  987. if (Type == '16') {
  988. $.submitForm({
  989. url: "/WMS/WMSCreateItemLot/SubmitFormFGGD?FGGDMOCode=" + FGGDMOCode + "&Sequence=" + Sequence + "&WorkPoint=" + WorkPoints,
  990. param: {
  991. keyValue: JSON.stringify(obj)
  992. },
  993. success: function () {
  994. $.currentWindow().$("#gridList").trigger("reloadGrid");
  995. }
  996. })
  997. }
  998. }
  999. function dateChange(num ,date ) {
  1000. if (!date) {
  1001. date = new Date();//没有传入值时,默认是当前日期
  1002. date = date.getFullYear() + '-' + (date.getMonth() + 1) + '-' + date.getDate();
  1003. }
  1004. date += " 00:00:00";//设置为当天凌晨12点
  1005. date = Date.parse(new Date(date))/1000;//转换为时间戳
  1006. date += (86400) * num;//修改后的时间戳
  1007. var newDate = new Date(parseInt(date) * 1000);//转换为时间
  1008. return newDate.getFullYear() + '-' + (newDate.getMonth() + 1) + '-' + newDate.getDate();
  1009. }
  1010. </script>
  1011. <form id="form1">
  1012. <div style="padding-top: 20px; margin-right: 20px;">
  1013. <table class="form">
  1014. <tr>
  1015. <th class="formTitle">料品编码</th>
  1016. <td class="formValue">
  1017. <input id="InvCode" name="InvCode" type="text" class="form-control " />
  1018. <input id="Enable" name="Enable" type="text" style="display:none" />
  1019. </td>
  1020. </tr>
  1021. <tr>
  1022. <th class="formTitle">料品名称</th>
  1023. <td class="formValue">
  1024. <input id="INVNAME" name="INVNAME" type="text" class="form-control " />
  1025. </td>
  1026. </tr>
  1027. <tr>
  1028. <th class="formTitle">规格型号</th>
  1029. <td class="formValue">
  1030. <input id="INVSTD" name="INVSTD" type="text" class="form-control " />
  1031. </td>
  1032. </tr>
  1033. <tr>
  1034. <th class="formTitle">计量单位</th>
  1035. <td class="formValue">
  1036. <input id="INVUOM" name="INVUOM" type="text" class="form-control " />
  1037. </td>
  1038. </tr>
  1039. <tr>
  1040. <th class="formTitle">数量</th>
  1041. <td class="formValue">
  1042. <input id="Quantity" name="Quantity" type="text" class="form-control " />
  1043. <input id="YAmount" name="YAmount" type="text" style="display:none" />
  1044. <input id="DJQuantity" name="DJQuantity" type="text" style="display:none" />
  1045. </td>
  1046. </tr>
  1047. <tr>
  1048. <th class="formTitle">已生成条码数量</th>
  1049. <td class="formValue">
  1050. <input id="CreatedQty" name="CreatedQty" type="text" class="form-control " />
  1051. </td>
  1052. </tr>
  1053. <tr>
  1054. <th class="formTitle"><span style="color: red;">*</span>本次生成数量</th>
  1055. <td class="formValue">
  1056. <input id="thisCreateQty" name="thisCreateQty" type="text" class="form-control required" placeholder="请输入本次生成数量" />
  1057. </td>
  1058. </tr>
  1059. <tr>
  1060. <th class="formTitle"><span style="color: red;">*</span>最小包装量</th>
  1061. <td class="formValue">
  1062. <input id="minPackQty" name="minPackQty" type="text" class="form-control required" placeholder="请输入最小包装量" />
  1063. </td>
  1064. </tr>
  1065. <tr>
  1066. <th class="formTitle"><span style="color: red;">*</span>生产日期</th>
  1067. <td class="formValue">
  1068. <input type="text" name="PRODUCTDATE" id="PRODUCTDATE" class="form-control required" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="生产日期" />
  1069. <input id="EffectiveEnable" name="EffectiveEnable" type="text" style="display:none" />
  1070. <input id="EffectiveDays" name="EffectiveDays" type="text" style="display:none" />
  1071. </td>
  1072. </tr>
  1073. <tr>
  1074. <th class="formTitle"><span style="color: red;">*</span>生成张数</th>
  1075. <td class="formValue">
  1076. <input id="cretePageCount" name="cretePageCount" class="form-control required" type="text" placeholder="请输入生成张数" />
  1077. </td>
  1078. </tr>
  1079. <tr>
  1080. <th class="formTitle">辅计量数量</th>
  1081. <td class="formValue">
  1082. <input id="Amount" name="Amount" class="form-control" type="text" placeholder="请输入辅计量数量" />
  1083. </td>
  1084. </tr>
  1085. @*sssss*@
  1086. <tr id="trProjectCode">
  1087. <th class="formTitle">项目号</th>
  1088. <td class="formValue">
  1089. <input id="ProjectCode" name="ProjectCode" class="form-control " type="text" placeholder="请输入项目号" />
  1090. </td>
  1091. </tr>
  1092. <tr id="trBatchCode">
  1093. <th class="formTitle">批次</th>
  1094. <td class="formValue">
  1095. <input id="BatchCode" name="BatchCode" class="form-control " type="text" placeholder="请输入批次" />
  1096. </td>
  1097. </tr>
  1098. <tr id="trVersion">
  1099. <th class="formTitle">版本</th>
  1100. <td class="formValue">
  1101. <input id="Version" name="Version" class="form-control " type="text" placeholder="请输入版本" />
  1102. </td>
  1103. </tr>
  1104. <tr id="trBrand">
  1105. <th class="formTitle">厂牌</th>
  1106. <td class="formValue">
  1107. <input id="Brand" name="Brand" type="text" class="form-control " placeholder="请输入厂牌" />
  1108. </td>
  1109. </tr>
  1110. <tr id="trcFree1">
  1111. <th class="formTitle">自由项1</th>
  1112. <td class="formValue">
  1113. <input id="cFree1" name="cFree1" type="text" class="form-control " placeholder="请输入自由项1" />
  1114. </td>
  1115. </tr>
  1116. <tr id="trcFree2">
  1117. <th class="formTitle">自由项2</th>
  1118. <td class="formValue">
  1119. <input id="cFree2" name="cFree2" type="text" class="form-control " placeholder="请输入自由项2" />
  1120. </td>
  1121. </tr>
  1122. <tr id="trcFree3">
  1123. <th class="formTitle">自由项3</th>
  1124. <td class="formValue">
  1125. <input id="cFree3" name="cFree3" type="text" class="form-control " placeholder="请输入自由项3" />
  1126. </td>
  1127. </tr>
  1128. <tr id="trcFree4">
  1129. <th class="formTitle">自由项4</th>
  1130. <td class="formValue">
  1131. <input id="cFree4" name="cFree4" type="text" class="form-control " placeholder="请输入自由项4" />
  1132. </td>
  1133. </tr>
  1134. <tr id="trcFree5">
  1135. <th class="formTitle">自由项5</th>
  1136. <td class="formValue">
  1137. <input id="cFree5" name="cFree5" type="text" class="form-control " placeholder="请输入自由项5" />
  1138. </td>
  1139. </tr>
  1140. <tr id="trcFree6">
  1141. <th class="formTitle">自由项6</th>
  1142. <td class="formValue">
  1143. <input id="cFree6" name="cFree6" type="text" class="form-control " placeholder="请输入自由项6" />
  1144. </td>
  1145. </tr>
  1146. <tr id="trcFree7">
  1147. <th class="formTitle">自由项7</th>
  1148. <td class="formValue">
  1149. <input id="cFree7" name="cFree7" type="text" class="form-control " placeholder="请输入自由项7" />
  1150. </td>
  1151. </tr>
  1152. <tr id="trcFree8">
  1153. <th class="formTitle">自由项8</th>
  1154. <td class="formValue">
  1155. <input id="cFree8" name="cFree8" type="text" class="form-control " placeholder="请输入自由项8" />
  1156. </td>
  1157. </tr>
  1158. <tr id="trcFree9">
  1159. <th class="formTitle">自由项9</th>
  1160. <td class="formValue">
  1161. <input id="cFree9" name="cFree9" type="text" class="form-control " placeholder="请输入自由项9" />
  1162. </td>
  1163. </tr>
  1164. <tr id="trcFree10">
  1165. <th class="formTitle">自由项10</th>
  1166. <td class="formValue">
  1167. <input id="cFree10" name="cFree10" type="text" class="form-control " placeholder="请输入自由项10" />
  1168. </td>
  1169. </tr>
  1170. </table>
  1171. </div>
  1172. </form>