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

91 lines
2.7 KiB

3 years ago
  1. 
  2. @{
  3. ViewBag.Title = "Index";
  4. Layout = "~/Views/Shared/_Index.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 ContainerID = $.request("ContainerID");
  16. var LotNo = $.request("LotNo");
  17. $(function () {
  18. if (ID != "") {
  19. $("#ContainerID").val(ContainerID);
  20. $("#LotNo").val(LotNo);
  21. }
  22. });
  23. function submitForm() {
  24. var ContainerID = $("#ContainerID").val();
  25. var LotNo = $("#LotNo").val();
  26. //var Enable = $('input[name="State"]:checked').val();
  27. if (ContainerID == "" || ContainerID == undefined) {
  28. $.modalAlert("请先输入箱号!");
  29. return;
  30. }
  31. if (LotNo == "" || LotNo == undefined) {
  32. $.modalAlert("请先输入条码!");
  33. return;
  34. }
  35. var objArr = {
  36. ID:ID,
  37. ContainerID: ContainerID,
  38. LotNo: LotNo,
  39. }
  40. debugger;
  41. if (ID!="") {
  42. $.submitForm({
  43. url: "/WMS/BasicSettings/UpdateICSContainerLot" + "?" + Math.random(),
  44. param: { keyValue: JSON.stringify(objArr) },
  45. success: function () {
  46. $.currentWindow().$("#gridList").trigger("reloadGrid");
  47. }
  48. })
  49. } else {
  50. $.submitForm({
  51. url: "/WMS/BasicSettings/InsertICSContainerLot" + "?" + Math.random(),
  52. param: { keyValue: JSON.stringify(objArr) },
  53. success: function () {
  54. $.currentWindow().$("#gridList").trigger("reloadGrid");
  55. }
  56. })
  57. }
  58. }
  59. </script>
  60. <form id="form1">
  61. <div style="padding-top: 20px; margin-right: 20px;">
  62. <table class="form">
  63. <tr>
  64. <th class="formTitle">箱号:</th>
  65. <td class="formValue">
  66. <input id="ContainerID" name="ContainerID" type="text" class="form-control required" style="width: 300px;" maxlength="50" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="父容器ID" />
  67. </td>
  68. </tr>
  69. <tr>
  70. <th class="formTitle">条码:</th>
  71. <td class="formValue">
  72. <input id="LotNo" name="LotNo" type="text" class="form-control required" style="width: 300px;" maxlength="50" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="容器代码" />
  73. </td>
  74. </tr>
  75. </table>
  76. </div>
  77. </form>