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

111 lines
4.5 KiB

3 years 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. $.ajax({
  10. url: "/ProductManage/Maintain/GetFormJson",
  11. data: { keyValue: keyValue },
  12. dataType: "json",
  13. async: false,
  14. success: function (data) {
  15. $("#form1").formSerialize(data);
  16. $("#form1").find('.form-control,select,input').attr('readonly', 'readonly');
  17. $("#form1").find('div.ckbox label').attr('for', '');
  18. }
  19. });
  20. });
  21. function initControl() {
  22. $("#F_Id").bindSelect({
  23. url: "/ProductManage/PreSaleOrder/GetTreeSelectJson",
  24. });
  25. }
  26. </script>
  27. <form id="form1">
  28. <div style="padding-top: 20px; margin-right: 20px;">
  29. <table class="form">
  30. <tr>
  31. <th class="formTitle">Product No</th>
  32. <td class="formValue">
  33. <input id="ProductSN" name="ProductSN" type="text" class="form-control required" />
  34. </td>
  35. <th class="formTitle">Weight</th>
  36. <td class="formValue">
  37. <input id="Weight" name="Weight" type="text" class="form-control required" />
  38. </td>
  39. </tr>
  40. <tr>
  41. <th class="formTitle">Measurement</th>
  42. <td class="formValue">
  43. <input id="Measurement" name="Measurement" type="text" class="form-control required" />
  44. </td>
  45. <th class="formTitle">Shape</th>
  46. <td class="formValue">
  47. <input id="Shape" name="Shape" type="text" class="form-control required" />
  48. </td>
  49. </tr>
  50. <tr>
  51. <th class="formTitle">Certificate No</th>
  52. <td class="formValue">
  53. <input id="CertificateNo" name="CertificateNo" type="text" class="form-control required" />
  54. </td>
  55. <th class="formTitle">Color</th>
  56. <td class="formValue">
  57. <input id="Color" name="Color" type="text" class="form-control required" />
  58. </td>
  59. </tr>
  60. <tr>
  61. <th class="formTitle">Clarity</th>
  62. <td class="formValue">
  63. <input id="Clarity" name="Clarity" type="text" class="form-control required" />
  64. </td>
  65. <th class="formTitle">Polish</th>
  66. <td class="formValue">
  67. <input id="Polish" name="Polish" type="text" class="form-control required" />
  68. </td>
  69. </tr>
  70. <tr>
  71. <th class="formTitle">Symmetry</th>
  72. <td class="formValue">
  73. <input id="Symmetry" name="Symmetry" type="text" class="form-control required" />
  74. </td>
  75. <th class="formTitle">Cut</th>
  76. <td class="formValue">
  77. <input id="Cut" name="Cut" type="text" class="form-control required" />
  78. </td>
  79. </tr>
  80. <tr>
  81. <th class="formTitle">Other</th>
  82. <td class="formValue">
  83. <input id="Other" name="Other" type="text" class="form-control required" />
  84. </td>
  85. <th class="formTitle">InvQty</th>
  86. <td class="formValue">
  87. <input id="InvQty" name="InvQty" type="text" class="form-control required" />
  88. </td>
  89. </tr>
  90. <tr>
  91. <th class="formTitle">Location</th>
  92. <td class="formValue">
  93. <input id="Location" name="Location" type="text" class="form-control required" />
  94. </td>
  95. <th class="formTitle" style="height: 35px;">Price</th>
  96. <td class="formValue" style="padding-top: 1px;">
  97. <input id="Price" name="Price" type="text" class="form-control required" />
  98. </td>
  99. </tr>
  100. <tr>
  101. <th class="formTitle" style="height: 35px;">Is Lock</th>
  102. <td class="formValue" style="padding-top: 1px;" colspan="3">
  103. <div class="ckbox">
  104. <input id="IsLock" name="IsLock" type="checkbox"><label for="IsLock">Lock</label>
  105. </div>
  106. </td>
  107. </tr>
  108. </table>
  109. </div>
  110. </form>