| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- @{
- 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/CalculateUnit/SaveCulcalateUnit",
- 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">
- <input id="CalculateUnit" type="text" class="form-control" isvalid="yes" checkexpession="NotNull"/>
- </td>
-
- </tr>
-
- </table>
- </div>
|