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.
119 lines
3.8 KiB
119 lines
3.8 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>
|
|
var ID = $.request("ID");
|
|
var InvCode = $.request("InvCode");
|
|
var WHCode = $.request("WHCode");
|
|
var BatchEnable = $.request("BatchEnable");
|
|
|
|
$(function () {
|
|
if (ID != "") {
|
|
$("#InvCode").val(InvCode);
|
|
$("#WHCode").val(WHCode);
|
|
if (BatchEnable == 'true') {
|
|
$("#StatusYes").prop("checked", true);
|
|
} else {
|
|
$("#StatusNo").prop("checked", true);
|
|
}
|
|
|
|
}
|
|
});
|
|
|
|
|
|
function submitForm() {
|
|
var InvCode = $("#InvCode").val();
|
|
var WHCode = $("#WHCode").val();
|
|
var Enable = $('input[name="State"]:checked').val();
|
|
if (InvCode == "" || InvCode == undefined) {
|
|
$.modalAlertNew("WMS00042");
|
|
return;
|
|
}
|
|
if (WHCode == "" || WHCode == undefined) {
|
|
$.modalAlertNew("WMS00043");
|
|
return;
|
|
}
|
|
if (Enable == "" || Enable == undefined) {
|
|
$.modalAlertNew("WMS00020");
|
|
return;
|
|
}
|
|
var objArr = {
|
|
ID:ID,
|
|
InvCode: InvCode,
|
|
WHCode: WHCode,
|
|
BatchEnable: Enable
|
|
}
|
|
debugger;
|
|
|
|
$.submitForm({
|
|
url: "/WMS/BasicSettings/UpdateICSInventoryBatchEnable" + "?" + Math.random(),
|
|
param: { keyValue: JSON.stringify(objArr) },
|
|
success: function () {
|
|
$.currentWindow().$("#gridList").trigger("reloadGrid");
|
|
}
|
|
})
|
|
|
|
}
|
|
|
|
//function ChcekboxChange() {
|
|
// debugger;
|
|
// $("#changechaeckbox").find("input[type='checkbox']").each(function (i, n) {
|
|
// if ($(this).prop('checked') == false) {
|
|
// $(this).val("");
|
|
// }
|
|
|
|
// });
|
|
|
|
</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" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="列编码" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">仓库编码:</th>
|
|
<td class="formValue">
|
|
<input id="WHCode" name="WHCode" type="text" class="form-control required" style="width: 300px;" maxlength="10" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="列名称" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<label> 是否启用批次:</label>
|
|
</td>
|
|
<td>
|
|
<div class="input-group" id="changechaeckbox">
|
|
<input type="radio" name="State" value="0" id="StatusYes" style="width:30px" /><label for="cb-NoQuotedPrice">是</label>
|
|
<input type="radio" name="State" value="1" id="StatusNo" style="width:30px" /><label for="cb-QuotedPrice">否</label>
|
|
</div>
|
|
|
|
</td>
|
|
<td> </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>
|
|
|
|
|