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.
124 lines
3.5 KiB
124 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>
|
|
|
|
|
|
$(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>
|
|
|
|
|