Form.cshtml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148
  1. @{
  2. ViewBag.Title = "Form";
  3. Layout = "~/Views/Shared/_Form.cshtml";
  4. }
  5. <script>
  6. var keyValue = request('keyValue');
  7. //获取表单
  8. //if (!!keyValue) {
  9. // $.SetForm({
  10. // url: "../../CustomerManage/Customer/GetFormJson",
  11. // param: { keyValue: keyValue },
  12. // success: function (data) {
  13. // $("#form1").SetWebControls(data);
  14. // $("#Province").trigger("change"); $("#City").ComboBoxSetValue(data.City)
  15. // }
  16. // })
  17. //}
  18. //保存表单;
  19. function AcceptClick() {
  20. if (!$('#form1').Validform()) {
  21. return false;
  22. }
  23. var postData = $("#form1").GetWebControls(keyValue);
  24. $.SaveForm({
  25. url: "../../WarehouseManage/Warehouse/SaveFrom",
  26. param: postData,
  27. loading: "正在保存数据...",
  28. success: function () {
  29. $.currentIframe().$("#gridTable").trigger("reloadGrid");
  30. }
  31. })
  32. }
  33. </script>
  34. <div style="margin-top: 20px; margin-right: 30px;">
  35. <table id="form1" class="form">
  36. <tr>
  37. <td class="formTitle">编号<font face="宋体">*</font></td>
  38. <td class="formValue">
  39. <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
  40. </td>
  41. </tr>
  42. <tr>
  43. <td class="formTitle">仓库名称<font face="宋体">*</font></td>
  44. <td class="formValue">
  45. <div id="name" type="select" class="ui-select" isvalid="yes" checkexpession="NotNull">
  46. <ul></ul>
  47. </div>
  48. </td>
  49. </tr>
  50. <tr>
  51. <td class="formTitle">材料名称<font face="宋体">*</font></td>
  52. <td class="formValue">
  53. <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
  54. </td>
  55. </tr>
  56. <tr>
  57. <td class="formTitle">规格型号<font face="宋体">*</font></td>
  58. <td class="formValue">
  59. <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
  60. </td>
  61. </tr>
  62. <tr>
  63. <td class="formTitle">计量单位<font face="宋体">*</font></td>
  64. <td class="formValue">
  65. <div id="name" type="select" class="ui-select" isvalid="yes" checkexpession="NotNull">
  66. <ul></ul>
  67. </div>
  68. </td>
  69. </tr>
  70. <tr>
  71. <td class="formTitle">最大库存<font face="宋体">*</font></td>
  72. <td class="formValue">
  73. <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
  74. </td>
  75. <td class="formTitle">最小库存<font face="宋体">*</font></td>
  76. <td class="formValue">
  77. <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
  78. </td>
  79. </tr>
  80. <tr>
  81. <td class="formTitle">采购价<font face="宋体">*</font></td>
  82. <td class="formValue">
  83. <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
  84. </td>
  85. <td class="formTitle">零售价<font face="宋体">*</font></td>
  86. <td class="formValue">
  87. <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
  88. </td>
  89. </tr>
  90. <tr>
  91. <td class="formTitle">最低零售价<font face="宋体">*</font></td>
  92. <td class="formValue">
  93. <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
  94. </td>
  95. <td class="formTitle">库存数量<font face="宋体">*</font></td>
  96. <td class="formValue">
  97. <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
  98. </td>
  99. </tr>
  100. <tr>
  101. <td class="formTitle">成本单价<font face="宋体">*</font></td>
  102. <td class="formValue">
  103. <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
  104. </td>
  105. <td class="formTitle">成本<font face="宋体">*</font></td>
  106. <td class="formValue">
  107. <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
  108. </td>
  109. </tr>
  110. <tr>
  111. <td class="formTitle">室内基价费<font face="宋体">*</font></td>
  112. <td class="formValue">
  113. <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
  114. </td>
  115. <td class="formTitle">室外基价费<font face="宋体">*</font></td>
  116. <td class="formValue">
  117. <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
  118. </td>
  119. </tr>
  120. <tr>
  121. <td class="formTitle">室内人工费<font face="宋体">*</font></td>
  122. <td class="formValue">
  123. <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
  124. </td>
  125. <td class="formTitle">室外人工费<font face="宋体">*</font></td>
  126. <td class="formValue">
  127. <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
  128. </td>
  129. </tr>
  130. <tr>
  131. <td class="formTitle">室内机械费<font face="宋体">*</font></td>
  132. <td class="formValue">
  133. <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
  134. </td>
  135. <td class="formTitle">室外机械费<font face="宋体">*</font></td>
  136. <td class="formValue">
  137. <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
  138. </td>
  139. </tr>
  140. </table>
  141. </div>