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

91 lines
2.6 KiB

@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Index.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>
var ID = $.request("ID");
var ContainerID = $.request("ContainerID");
var LotNo = $.request("LotNo");
$(function () {
if (ID != "") {
$("#ContainerID").val(ContainerID);
$("#LotNo").val(LotNo);
}
});
function submitForm() {
var ContainerID = $("#ContainerID").val();
var LotNo = $("#LotNo").val();
//var Enable = $('input[name="State"]:checked').val();
if (ContainerID == "" || ContainerID == undefined) {
$.modalAlertNew("WMS00024");
return;
}
if (LotNo == "" || LotNo == undefined) {
$.modalAlertNew("WMS00025");
return;
}
var objArr = {
ID:ID,
ContainerID: ContainerID,
LotNo: LotNo,
}
debugger;
if (ID!="") {
$.submitForm({
url: "/WMS/BasicSettings/UpdateICSContainerLot" + "?" + Math.random(),
param: { keyValue: JSON.stringify(objArr) },
success: function () {
$.currentWindow().$("#gridList").trigger("reloadGrid");
}
})
} else {
$.submitForm({
url: "/WMS/BasicSettings/InsertICSContainerLot" + "?" + 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="ContainerID" name="ContainerID" type="text" class="form-control required" style="width: 300px;" maxlength="50" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="父容器ID" />
</td>
</tr>
<tr>
<th class="formTitle">条码:</th>
<td class="formValue">
<input id="LotNo" name="LotNo" type="text" class="form-control required" style="width: 300px;" maxlength="50" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="容器代码" />
</td>
</tr>
</table>
</div>
</form>