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

119 lines
3.8 KiB

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. <style>
  7. #ISO {
  8. width: 10px;
  9. }
  10. </style>
  11. <link href="~/Content/js/select2/select2.min.css" rel="stylesheet" />
  12. <script src="~/Content/js/select2/select2.min.js"></script>
  13. <script>
  14. var ID = $.request("ID");
  15. var InvCode = $.request("InvCode");
  16. var WHCode = $.request("WHCode");
  17. var BatchEnable = $.request("BatchEnable");
  18. $(function () {
  19. if (ID != "") {
  20. $("#InvCode").val(InvCode);
  21. $("#WHCode").val(WHCode);
  22. if (BatchEnable == 'true') {
  23. $("#StatusYes").prop("checked", true);
  24. } else {
  25. $("#StatusNo").prop("checked", true);
  26. }
  27. }
  28. });
  29. function submitForm() {
  30. var InvCode = $("#InvCode").val();
  31. var WHCode = $("#WHCode").val();
  32. var Enable = $('input[name="State"]:checked').val();
  33. if (InvCode == "" || InvCode == undefined) {
  34. $.modalAlertNew("WMS00042");
  35. return;
  36. }
  37. if (WHCode == "" || WHCode == undefined) {
  38. $.modalAlertNew("WMS00043");
  39. return;
  40. }
  41. if (Enable == "" || Enable == undefined) {
  42. $.modalAlertNew("WMS00020");
  43. return;
  44. }
  45. var objArr = {
  46. ID:ID,
  47. InvCode: InvCode,
  48. WHCode: WHCode,
  49. BatchEnable: Enable
  50. }
  51. debugger;
  52. $.submitForm({
  53. url: "/WMS/BasicSettings/UpdateICSInventoryBatchEnable" + "?" + Math.random(),
  54. param: { keyValue: JSON.stringify(objArr) },
  55. success: function () {
  56. $.currentWindow().$("#gridList").trigger("reloadGrid");
  57. }
  58. })
  59. }
  60. //function ChcekboxChange() {
  61. // debugger;
  62. // $("#changechaeckbox").find("input[type='checkbox']").each(function (i, n) {
  63. // if ($(this).prop('checked') == false) {
  64. // $(this).val("");
  65. // }
  66. // });
  67. </script>
  68. <form id="form1">
  69. <div style="padding-top: 20px; margin-right: 20px;">
  70. <table class="form">
  71. <tr>
  72. <th class="formTitle">料品编码:</th>
  73. <td class="formValue">
  74. <input id="InvCode" name="InvCode" type="text" class="form-control required" style="width: 300px;" maxlength="10" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="列编码" />
  75. </td>
  76. </tr>
  77. <tr>
  78. <th class="formTitle">仓库编码:</th>
  79. <td class="formValue">
  80. <input id="WHCode" name="WHCode" type="text" class="form-control required" style="width: 300px;" maxlength="10" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="列名称" />
  81. </td>
  82. </tr>
  83. <tr>
  84. <td>
  85. <label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;是否启用批次:</label>
  86. </td>
  87. <td>
  88. <div class="input-group" id="changechaeckbox">
  89. <input type="radio" name="State" value="0" id="StatusYes" style="width:30px" /><label for="cb-NoQuotedPrice">是</label>
  90. <input type="radio" name="State" value="1" id="StatusNo" style="width:30px" /><label for="cb-QuotedPrice">否</label>
  91. </div>
  92. </td>
  93. <td>&nbsp;&nbsp;&nbsp;</td>
  94. <td>
  95. <span class="input-group-btn">
  96. <button id="btn_search" type="button" class="btn btn-primary"><i class="fa fa-search"></i></button>
  97. </span>
  98. </td>
  99. <td style="padding-left: 10px;"></td>
  100. </tr>
  101. </table>
  102. </div>
  103. </form>