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

114 lines
3.5 KiB

@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Form.cshtml";
}
<style>
#ISO {
width: 10px;
}
</style>
<link href="~/Content/js/select2/select2.min.css" rel="stylesheet" />
<script src="~/Content/js/select2/select2.min.js"></script>
<script>
debugger;
var ID = $.request("ID");
var InvCode = $.request("InvCode");
var LocationCode = $.request("LocationCode");
var Enable = $.request("Enable");
$(function () {
if (ID!="") {
$("#InvCode").val(InvCode);
$("#LocationCode").val(LocationCode);
if (Enable == 'true') {
$("#StatusYes").prop("checked", true);
} else {
$("#StatusNo").prop("checked", true);
}
}
});
function submitForm() {
var InvCode = $("#InvCode").val();
var LocationCode = $("#LocationCode").val();
var Enable = $('input[name="State"]:checked').val();
if (InvCode == "" || InvCode == undefined) {
$.modalAlertNew("WMS00042");
return;
}
if (LocationCode == "" || LocationCode == undefined) {
$.modalAlertNew("WMS00048");
return;
}
if (Enable == "" || Enable == undefined) {
$.modalAlertNew("WMS00020");
return;
}
var objArr = {
ID:ID,
InvCode: InvCode,
LocationCode: LocationCode,
Enable: Enable
}
debugger;
$.submitForm({
url: "/WMS/BasicSettings/UpdateICSInventoryLocation" + "?" + Math.random(),
param: { keyValue: JSON.stringify(objArr) },
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="InvCode" name="InvCode" type="text" class="form-control required" style="width: 300px;" maxlength="10" placeholder="料品编码" />
</td>
</tr>
<tr>
<th class="formTitle">库位编码:</th>
<td class="formValue">
<input id="LocationCode" name="LocationCode" type="text" class="form-control required" style="width: 300px;" maxlength="10" placeholder="库位编码" />
</td>
</tr>
<tr>
<td>
<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;是否启用:</label>
</td>
<td>
<div class="input-group" id="changechaeckbox">
<input type="radio" name="State" value="1" id="StatusYes" style="width:30px" /><label for="cb-NoQuotedPrice">是</label>
<input type="radio" name="State" value="0" id="StatusNo" style="width:30px" /><label for="cb-QuotedPrice">否</label>
</div>
</td>
<td>&nbsp;&nbsp;&nbsp;</td>
<td>
<span class="input-group-btn">
<button id="btn_search" type="button" class="btn btn-primary"><i class="fa fa-search"></i></button>
</span>
</td>
<td style="padding-left: 10px;"></td>
</tr>
</table>
</div>
</form>