纽威
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.
 
 
 
 
 

94 lines
3.4 KiB

@{
ViewBag.Title = "Form";
Layout = "~/Views/Shared/_Form.cshtml";
}
<script>
var keyValues = $.request("keyValues");
$(function () {
initControl();
@*$.ajax({
url: "/ProductManage/PreSell/GetFormJson",
data: { keyValue: @NFine.Code.OperatorProvider.Provider.GetCurrent().UserId },
dataType: "json",
async: false,
success: function (data) {
$("#form1").formSerialize(data);
$("#form1").find('.form-control,select,input').attr('readonly', 'readonly');
$("#form1").find('div.ckbox label').attr('for', '');
}
});*@
});
function initControl() {
$("#F_Id").bindSelect({
url: "/ProductManage/PreSell/GetTreeSelectJson",
});
$("#F_PreSell").bindSelect({
url: "/ProductManage/PreSell/GetGridJsonPS",
id: "F_Id",
text: "PreSellNo"
});
$("#F_CusName").bindSelect({
url: "/SystemManage/Customer/GetFormJsonCus",
id: "F_Id",
text: "F_CusName"
});
$("#PreSellNo").bindText({
url: "/ProductManage/PreSell/GetOrderNo",
});
}
function submitForm() {
var postData = $("#form1").formSerialize();
postData["newPreSellNo"] = $("#PreSellNo").val();
postData["oldPreSell"] = $("#F_PreSell").val();
postData["IsUse"] = $("#PreSellNoOld").get(0).checked;
postData["keyValue"] = keyValues;
postData["CusID"] = $("#F_CusName").val();
postData["CusName"] = $("#F_CusName").text();
$.submitForm2({
url: "/ProductManage/PreSell/SubmitForm",
param: postData,
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" style="width:120px;">Order No</th>
<td class="formValue">
<input id="PreSellNo" name="PreSellNo" type="text" class="form-control required" />
</td>
</tr>
<tr>
<th class="formTitle" style="width:120px;">Order Rule</th>
<td class="formValue">
<div class="ckbox">
<input id="PreSellNoOld" name="PreSellNoOld" type="checkbox"><label for="PreSellNoOld">Use Historical Orders</label>
</div>
</td>
</tr>
<tr>
<th class="formTitle" style="width:120px;">Historical Order No</th>
<td class="formValue">
<select id="F_PreSell" name="F_PreSell" class="form-control required">
<option value="">====Please Choose====</option>
</select>
</td>
</tr>
<tr>
<th class="formTitle" style="width:120px;">Customer</th>
<td class="formValue">
<select id="F_CusName" name="F_CusName" class="form-control required">
<option value="">====Please Choose====</option>
</select>
</td>
</tr>
</table>
</div>
</form>