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.

117 lines
4.9 KiB

4 days ago
  1. @{
  2. ViewBag.Title = "Form";
  3. Layout = "~/Views/Shared/_Form.cshtml";
  4. }
  5. <script>
  6. var keyValue = $.request("keyValue");
  7. $(function () {
  8. initControl();
  9. if (!!keyValue) {
  10. $.ajax({
  11. url: "/ProductManage/PreSell/GetFormJson",
  12. data: { keyValue: keyValue },
  13. dataType: "json",
  14. async: false,
  15. success: function (data) {
  16. $("#form1").formSerialize(data);
  17. }
  18. });
  19. }
  20. });
  21. function initControl() {
  22. $("#F_Id").bindSelect({
  23. url: "/ProductManage/PreSell/GetTreeSelectJson",
  24. });
  25. }
  26. function submitForm() {
  27. if (!$('#form1').formValid()) {
  28. return false;
  29. }
  30. $.submitForm({
  31. url: "/ProductManage/PreSell/SubmitForm?keyValue=" + keyValue,
  32. param: $("#form1").formSerialize(),
  33. success: function () {
  34. $.currentWindow().$("#gridList").trigger("reloadGrid");
  35. }
  36. })
  37. }
  38. </script>
  39. <form id="form1">
  40. <div style="padding-top: 20px; margin-right: 20px;">
  41. <table class="form">
  42. <tr>
  43. <th class="formTitle">Product No</th>
  44. <td class="formValue">
  45. <input id="ProductSN" name="ProductSN" type="text" class="form-control required" placeholder="Please enter Product SN" />
  46. </td>
  47. <th class="formTitle">Weight</th>
  48. <td class="formValue">
  49. <input id="Weight" name="Weight" type="text" class="form-control required" placeholder="Please enter Weight" />
  50. </td>
  51. </tr>
  52. <tr>
  53. <th class="formTitle">Measurement</th>
  54. <td class="formValue">
  55. <input id="Measurement" name="Measurement" type="text" class="form-control required" placeholder="Please enter Measurement" />
  56. </td>
  57. <th class="formTitle">Shape</th>
  58. <td class="formValue">
  59. <input id="Shape" name="Shape" type="text" class="form-control required" placeholder="Please enter Shape" />
  60. </td>
  61. </tr>
  62. <tr>
  63. <th class="formTitle">Certificate No</th>
  64. <td class="formValue">
  65. <input id="CertificateNo" name="CertificateNo" type="text" class="form-control required" placeholder="Please enter Certificate No" />
  66. </td>
  67. <th class="formTitle">Color</th>
  68. <td class="formValue">
  69. <input id="Color" name="Color" type="text" class="form-control required" placeholder="Please enter Color" />
  70. </td>
  71. </tr>
  72. <tr>
  73. <th class="formTitle">Clarity</th>
  74. <td class="formValue">
  75. <input id="Clarity" name="Clarity" type="text" class="form-control required" placeholder="Please enter Clarity" />
  76. </td>
  77. <th class="formTitle">Polish</th>
  78. <td class="formValue">
  79. <input id="Polish" name="Polish" type="text" class="form-control required" placeholder="Please enter Polish" />
  80. </td>
  81. </tr>
  82. <tr>
  83. <th class="formTitle">Symmetry</th>
  84. <td class="formValue">
  85. <input id="Symmetry" name="Symmetry" type="text" class="form-control required" placeholder="Please enter Symmetry" />
  86. </td>
  87. <th class="formTitle">Cut</th>
  88. <td class="formValue">
  89. <input id="Cut" name="Cut" type="text" class="form-control required" placeholder="Please enter Cut" />
  90. </td>
  91. </tr>
  92. <tr>
  93. <th class="formTitle">Other</th>
  94. <td class="formValue">
  95. <input id="Other" name="Other" type="text" class="form-control required" placeholder="Please enter Other" />
  96. </td>
  97. <th class="formTitle">InvQty</th>
  98. <td class="formValue">
  99. <input id="InvQty" name="InvQty" type="text" class="form-control required" placeholder="Please enter InvQty" />
  100. </td>
  101. </tr>
  102. <tr>
  103. <th class="formTitle">Location</th>
  104. <td class="formValue">
  105. <input id="Location" name="Location" type="text" class="form-control required" placeholder="Please enter Location" />
  106. </td>
  107. <th class="formTitle" style="height: 35px;">Is Lock</th>
  108. <td class="formValue" style="padding-top: 1px;">
  109. <div class="ckbox">
  110. <input id="IsLock" name="IsLock" type="checkbox"><label for="IsLock">Lock</label>
  111. </div>
  112. </td>
  113. </tr>
  114. </table>
  115. </div>
  116. </form>