123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148 |
- @{
- ViewBag.Title = "Form";
- Layout = "~/Views/Shared/_Form.cshtml";
- }
- <script>
- var keyValue = request('keyValue');
- //获取表单
- //if (!!keyValue) {
- // $.SetForm({
- // url: "../../CustomerManage/Customer/GetFormJson",
- // param: { keyValue: keyValue },
- // success: function (data) {
- // $("#form1").SetWebControls(data);
- // $("#Province").trigger("change"); $("#City").ComboBoxSetValue(data.City)
- // }
- // })
- //}
- //保存表单;
- function AcceptClick() {
- if (!$('#form1').Validform()) {
- return false;
- }
- var postData = $("#form1").GetWebControls(keyValue);
-
-
- $.SaveForm({
- url: "../../WarehouseManage/Warehouse/SaveFrom",
- param: postData,
- loading: "正在保存数据...",
- success: function () {
- $.currentIframe().$("#gridTable").trigger("reloadGrid");
- }
- })
- }
- </script>
- <div style="margin-top: 20px; margin-right: 30px;">
- <table id="form1" class="form">
- <tr>
- <td class="formTitle">编号<font face="宋体">*</font></td>
- <td class="formValue">
- <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
- </td>
-
- </tr>
- <tr>
- <td class="formTitle">仓库名称<font face="宋体">*</font></td>
- <td class="formValue">
- <div id="name" type="select" class="ui-select" isvalid="yes" checkexpession="NotNull">
- <ul></ul>
- </div>
- </td>
- </tr>
- <tr>
- <td class="formTitle">材料名称<font face="宋体">*</font></td>
- <td class="formValue">
- <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
- </td>
- </tr>
- <tr>
- <td class="formTitle">规格型号<font face="宋体">*</font></td>
- <td class="formValue">
- <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
- </td>
- </tr>
- <tr>
- <td class="formTitle">计量单位<font face="宋体">*</font></td>
- <td class="formValue">
- <div id="name" type="select" class="ui-select" isvalid="yes" checkexpession="NotNull">
- <ul></ul>
- </div>
- </td>
- </tr>
- <tr>
- <td class="formTitle">最大库存<font face="宋体">*</font></td>
- <td class="formValue">
- <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
- </td>
- <td class="formTitle">最小库存<font face="宋体">*</font></td>
- <td class="formValue">
- <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
- </td>
- </tr>
- <tr>
- <td class="formTitle">采购价<font face="宋体">*</font></td>
- <td class="formValue">
- <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
- </td>
- <td class="formTitle">零售价<font face="宋体">*</font></td>
- <td class="formValue">
- <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
- </td>
- </tr>
- <tr>
- <td class="formTitle">最低零售价<font face="宋体">*</font></td>
- <td class="formValue">
- <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
- </td>
- <td class="formTitle">库存数量<font face="宋体">*</font></td>
- <td class="formValue">
- <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
- </td>
- </tr>
- <tr>
- <td class="formTitle">成本单价<font face="宋体">*</font></td>
- <td class="formValue">
- <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
- </td>
- <td class="formTitle">成本<font face="宋体">*</font></td>
- <td class="formValue">
- <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
- </td>
- </tr>
- <tr>
- <td class="formTitle">室内基价费<font face="宋体">*</font></td>
- <td class="formValue">
- <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
- </td>
- <td class="formTitle">室外基价费<font face="宋体">*</font></td>
- <td class="formValue">
- <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
- </td>
- </tr>
- <tr>
- <td class="formTitle">室内人工费<font face="宋体">*</font></td>
- <td class="formValue">
- <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
- </td>
- <td class="formTitle">室外人工费<font face="宋体">*</font></td>
- <td class="formValue">
- <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
- </td>
- </tr>
- <tr>
- <td class="formTitle">室内机械费<font face="宋体">*</font></td>
- <td class="formValue">
- <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
- </td>
- <td class="formTitle">室外机械费<font face="宋体">*</font></td>
- <td class="formValue">
- <input id="Code" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
- </td>
- </tr>
- </table>
- </div>
|