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.
 
 
 
 

75 lines
2.6 KiB

@{
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",
});
}
function submitForm() {
if (!$('#form1').formValid()) {
return false;
}
$.submitForm({
url: "/ProductManage/DiscountRate/SubmitForms?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" />
</td>
</tr>
<tr>
<th class="formTitle">最小值</th>
<td class="formValue">
<input id="StartValue" name="StartValue" type="text" class="form-control required" placeholder="Please enter Discount" />
</td>
</tr>
<tr>
<th class="formTitle">最大值</th>
<td class="formValue">
<input id="EndValue" name="EndValue" type="text" class="form-control required" placeholder="Please enter Discount" />
</td>
</tr>
<tr>
<th class="formTitle">仓库</th>
<td class="formValue">
<input id="WHType" name="WHType" type="text" class="form-control required" placeholder="Please enter Discount" />
</td>
</tr>
<tr>
<th class="formTitle">折扣率</th>
<td class="formValue">
<input id="Discount" name="Discount" type="text" class="form-control required" placeholder="Please enter Discount" />
</td>
</tr>
</table>
</div>
</form>