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.
|
|
@{ ViewBag.Title = "Form"; Layout = "~/Views/Shared/_Form.cshtml"; } <script> var keyValue = $.request("keyValue"); $(function () { initControl(); if (!!keyValue) { $.ajax({ url: "/ProductManage/DiscountRate/GetFormJson", data: { keyValue: keyValue }, dataType: "json", async: false, success: function (data) { $("#form1").formSerialize(data); } }); } }); function initControl() { $("#F_Id").bindSelect({ url: "/ProductManage/DiscountRate/GetTreeSelectJson", }); $("#CusCode").bindSelect({ url: "/ProductManage/DiscountRate/GetSelectJsonCustomer", }); } function submitForm() { if (!$('#form1').formValid()) { return false; } $.submitForm({ url: "/ProductManage/DiscountRate/SubmitForm?keyValue=" + keyValue, param: $("#form1").formSerialize(), success: function () { $.currentWindow().$("#gridList").trigger("reloadGrid"); } }) } </script>
<form id="form1"> <div style="padding-top: 20px; margin-right: 20px;"> <table class="form"> <tr> <th class="formTitle">客户编号</th> <td class="formValue"> @*<input id="CusCode" name="CusCode" type="text" class="form-control required" placeholder="Please enter CusCode" />*@ <select id="CusCode" name="CusCode" class="form-control required"> <option value="">==请选择==</option> </select> </td> </tr> <tr> <th class="formTitle">1.0-1.49 成</th> <td class="formValue"> <input id="DiscountC1" name="DiscountC1" type="text" class="form-control required" placeholder="Please enter Discount" /> </td> </tr> <tr> <th class="formTitle">1.5-1.99 成</th> <td class="formValue"> <input id="DiscountC2" name="DiscountC2" type="text" class="form-control required" placeholder="Please enter Discount" /> </td> </tr> <tr> <th class="formTitle">2.0-2.99 成</th> <td class="formValue"> <input id="DiscountC3" name="DiscountC3" type="text" class="form-control required" placeholder="Please enter Discount" /> </td> </tr> <tr> <th class="formTitle">1.0-1.49 评</th> <td class="formValue"> <input id="DiscountP1" name="DiscountP1" type="text" class="form-control required" placeholder="Please enter Discount" /> </td> </tr> <tr> <th class="formTitle">1.5-1.99 评</th> <td class="formValue"> <input id="DiscountP2" name="DiscountP2" type="text" class="form-control required" placeholder="Please enter Discount" /> </td> </tr> <tr> <th class="formTitle">2.0-2.99 评</th> <td class="formValue"> <input id="DiscountP3" name="DiscountP3" type="text" class="form-control required" placeholder="Please enter Discount" /> </td> </tr> </table> </div> </form>
|