8 changed files with 334 additions and 20 deletions
-
74WMS-BS/NFine.Application/WMS/BasicSettingsApp.cs
-
74WMS-BS/NFine.Web/Areas/OMAY/Views/OMAYKPI/OMAYKPIIndex.cshtml
-
18WMS-BS/NFine.Web/Areas/OMAY/Views/OMAYSalesDelivery/OMAYSalesDeliveryIndex.cshtml
-
42WMS-BS/NFine.Web/Areas/WMS/Controllers/BasicSettingsController.cs
-
18WMS-BS/NFine.Web/Areas/WMS/Views/BasicSettings/ICSINVENTORY.cshtml
-
124WMS-BS/NFine.Web/Areas/WMS/Views/BasicSettings/ICSINVENTORYEnable.cshtml
-
3WMS-BS/NFine.Web/Areas/WMS/Views/Print/PrintView.cshtml
-
1WMS-BS/NFine.Web/NFine.Web.csproj
@ -0,0 +1,124 @@ |
|||
|
|||
|
|||
@{ |
|||
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> |
|||
|
|||
|
|||
$(function () { |
|||
GetTextValues(); |
|||
}); |
|||
|
|||
|
|||
|
|||
|
|||
|
|||
function GetTextValues() { |
|||
$.ajax({ |
|||
url: "/WMS/BasicSettings/GetINVEnable?" + Math.random(), |
|||
type:"post", |
|||
dataType: "json", |
|||
async: false, |
|||
success: function (data) { |
|||
if (data.Msg != "") |
|||
{ |
|||
$.modalAlert(data.Msg, "warning"); |
|||
return; |
|||
} |
|||
else |
|||
{ |
|||
//是否IQC检验 |
|||
if (data.rows[0].InvIQC == '1') { |
|||
$("#InvIQCYes").prop("checked", true); |
|||
} else { |
|||
|
|||
$("#InvIQCNo").prop("checked", true); |
|||
} |
|||
//是否FQC检验 |
|||
if (data.rows[0].InvFQC == '1') { |
|||
$("#InvFQCYes").prop("checked", true); |
|||
} else { |
|||
|
|||
$("#InvFQCNo").prop("checked", true); |
|||
} |
|||
} |
|||
} |
|||
}); |
|||
|
|||
|
|||
} |
|||
|
|||
function submitForm() { |
|||
var InvIQC = $('input[name="InvIQC"]:checked').val();//是否IQC检验 |
|||
var InvFQC = $('input[name="InvFQC"]:checked').val();//是否FQC检验 |
|||
if (InvIQC == "" || InvIQC == undefined) { |
|||
$.modalAlertNew("WMS00027"); |
|||
return; |
|||
} |
|||
if (InvFQC == "" || InvFQC == undefined) { |
|||
$.modalAlertNew("WMS00028"); |
|||
return; |
|||
} |
|||
|
|||
if (!$('#form1').formValid()) { |
|||
return false; |
|||
} |
|||
|
|||
var objArr = { |
|||
InvIQC: InvIQC, |
|||
InvFQC: InvFQC, |
|||
} |
|||
debugger; |
|||
|
|||
$.submitForm({ |
|||
url: "/WMS/BasicSettings/UpdateINVEnable" + "?" + 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"> 是否IQC检验:</th> |
|||
<td class="formValue"> |
|||
<div class="input-group" id="InvIQCchaeckbox"> |
|||
<input type="radio" name="InvIQC" value="1" id="InvIQCYes" style="width:60px" /><label for="cb-NoQuotedPrice">开启</label> |
|||
<input type="radio" name="InvIQC" value="0" id="InvIQCNo" style="width:60px" /><label for="cb-QuotedPrice">关闭</label> |
|||
</div> |
|||
|
|||
</td> |
|||
</tr> |
|||
|
|||
<tr> |
|||
<th class="formTitle"> 是否FQC检验:</th> |
|||
<td class="formValue"> |
|||
<div class="input-group" id="InvFQCchaeckbox"> |
|||
<input type="radio" name="InvFQC" value="1" id="InvFQCYes" style="width:60px" /><label for="cb-NoQuotedPrice">开启</label> |
|||
<input type="radio" name="InvFQC" value="0" id="InvFQCNo" style="width:60px" /><label for="cb-QuotedPrice">关闭</label> |
|||
</div> |
|||
|
|||
</td> |
|||
|
|||
</tr> |
|||
</table> |
|||
</div> |
|||
</form> |
|||
|
|||
|
Reference in new issue
xxxxxxxxxx