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

149 lines
5.8 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
  1. 
  2. @{
  3. ViewBag.Title = "Index";
  4. Layout = "~/Views/Shared/_Form.cshtml";
  5. }
  6. <script>
  7. var ID = $.request("ID");
  8. debugger;
  9. var WorkPoints = '@NFine.Code.OperatorProvider.Provider.GetCurrent().Location'
  10. $(function () {
  11. $("#minPackQty").keyup(function () {
  12. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  13. }).bind("paste", function () { //CTR+V事件处理
  14. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  15. }).css("ime-mode", "disabled"); //CSS设置输入法不可用
  16. $("#thisCreateQty").keyup(function () {
  17. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  18. }).bind("paste", function () { //CTR+V事件处理
  19. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  20. }).css("ime-mode", "disabled"); //CSS设置输入法不可用
  21. $("#cretePageCount").keyup(function () {
  22. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  23. }).bind("paste", function () { //CTR+V事件处理
  24. $(this).val($(this).val().replace(/[^0-9.]/g, ''));
  25. }).css("ime-mode", "disabled"); //CSS设置输入法不可用
  26. var VenCode = "";
  27. var WorkPoint = "";
  28. debugger;
  29. //initControl();
  30. if (!!ID) {
  31. $.ajax({
  32. url: "/WMS/BasicSettings/GetICSInventoryLotInfo?ID=" + ID ,
  33. //data: { keyValue: keyValue },
  34. dataType: "json",
  35. async: false,
  36. success: function (data) {
  37. debugger;
  38. $("#LotNo").val(data.rows[0].LotNo);
  39. $("#InvCode").val(data.rows[0].InvCode);
  40. $("#INVNAME").val(data.rows[0].InvName);
  41. $("#ProductDate").val(data.rows[0].ProductDate);
  42. $("#ExpirationDate").val(data.rows[0].ExpirationDate);
  43. $("#Quantity").val(data.rows[0].Quantity);
  44. $("#LotNo").attr("disabled", "disabled");
  45. $("#InvCode").attr("disabled", "disabled");
  46. $("#INVNAME").attr("disabled", "disabled");
  47. $("#ProductDate").attr("disabled", "disabled");
  48. $("#Quantity").attr("disabled", "disabled");
  49. }
  50. });
  51. }
  52. });
  53. function submitForm() {
  54. debugger;
  55. if (!$('#form1').formValid()) {
  56. return false;
  57. }
  58. var LotNo = $("#LotNo").val();//条码
  59. var Inv = $('input[name="Inv"]:checked').val();//是否IQC检验
  60. var ExpirationDate = $("#ExpirationDate").val();//条码失效日期
  61. var InvCode = $("#InvCode").val();
  62. var Quantity = $("#Quantity").val();
  63. if (Inv == "" || Inv == undefined) {
  64. $.modalAlertNew("WMS00104");
  65. return;
  66. }
  67. $.submitForm({
  68. url: "/WMS/BasicSettings/UpdateExpirationDate?ID=" + ID + "&ExpirationDate=" + ExpirationDate + "&Inv=" + Inv + "&LotNo=" + LotNo + "&InvCode=" + InvCode + "&Quantity=" + Quantity,
  69. param: {
  70. keyValue: JSON.stringify(obj)
  71. },
  72. success: function () {
  73. $.currentWindow().$("#gridList").trigger("reloadGrid");
  74. }
  75. })
  76. }
  77. </script>
  78. <form id="form1">
  79. <div style="padding-top: 20px; margin-right: 20px;">
  80. <table class="form">
  81. <tr>
  82. <th class="formTitle">条码</th>
  83. <td class="formValue">
  84. <input id="LotNo" name="LotNo" type="text" class="form-control " />
  85. </td>
  86. </tr>
  87. <tr>
  88. <th class="formTitle">料品编码</th>
  89. <td class="formValue">
  90. <input id="InvCode" name="InvCode" type="text" class="form-control " />
  91. </td>
  92. </tr>
  93. <tr>
  94. <th class="formTitle">物料描述</th>
  95. <td class="formValue">
  96. <input id="INVNAME" name="INVNAME" type="text" class="form-control " />
  97. </td>
  98. </tr>
  99. <tr>
  100. <th class="formTitle">数量</th>
  101. <td class="formValue">
  102. <input id="Quantity" name="Quantity" type="text" class="form-control " />
  103. <input id="YAmount" name="YAmount" type="text" style="display:none" />
  104. </td>
  105. </tr>
  106. <tr>
  107. <th class="formTitle">生产日期</th>
  108. <td class="formValue">
  109. <input type="text" name="ProductDate" id="ProductDate" class="form-control " onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="生产日期" />
  110. </td>
  111. </tr>
  112. <tr>
  113. <th class="formTitle">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;检验结果:</th>
  114. <td class="formValue">
  115. <div class="input-group" id="Invchaeckbox">
  116. <input type="radio" name="Inv" value="1" id="InvYes" style="width:60px" /><label for="InvYes">合格</label>
  117. <input type="radio" name="Inv" value="0" id="InvNo" style="width:60px" /><label for="InvNo">不合格</label>
  118. </div>
  119. </td>
  120. </tr>
  121. <tr>
  122. <th class="formTitle"><span style="color: red;">*</span>失效日期</th>
  123. <td class="formValue">
  124. <input type="text" name="ExpirationDate" id="ExpirationDate" class="form-control required" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="失效日期" />
  125. </td>
  126. </tr>
  127. </table>
  128. </div>
  129. </form>