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.9 KiB
119 lines
3.9 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 ColCode = $.request("ColCode");
|
|
var ColName = decodeURI($.request("ColName"));
|
|
var Enable = decodeURI($.request("Enable"));
|
|
$(function () {
|
|
if (ID != "") {
|
|
$("#ColCode").val(ColCode);
|
|
$("#ColName").val(ColName);
|
|
if (Enable=='是') {
|
|
$("#StatusYes").prop("checked", true);
|
|
} else {
|
|
$("#StatusNo").prop("checked", true);
|
|
}
|
|
}
|
|
});
|
|
|
|
|
|
function submitForm() {
|
|
var ColCode = $("#ColCode").val();
|
|
var ColName = $("#ColName").val();
|
|
var Enable = $('input[name="State"]:checked').val();
|
|
if (ColCode == "" || ColCode == undefined) {
|
|
$.modalAlert("请先输入编码!");
|
|
return;
|
|
}
|
|
if (ColName == "" || ColName == undefined) {
|
|
$.modalAlert("请先输入列名称!");
|
|
return;
|
|
}
|
|
if (Enable == "" || Enable == undefined) {
|
|
$.modalAlert("请选择是否启用!");
|
|
return;
|
|
}
|
|
var objArr = {
|
|
ID:ID,
|
|
ColCode: ColCode,
|
|
ColName: ColName,
|
|
Enable: Enable
|
|
}
|
|
debugger;
|
|
if (ID!="") {
|
|
$.submitForm({
|
|
url: "/WMS/BasicSettings/UpdateICSExtensionEnable" + "?" + Math.random(),
|
|
param: { keyValue: JSON.stringify(objArr) },
|
|
success: function () {
|
|
$.currentWindow().$("#gridList").trigger("reloadGrid");
|
|
}
|
|
})
|
|
} else {
|
|
$.submitForm({
|
|
url: "/WMS/BasicSettings/InsertICSExtensionEnable" + "?" + 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="ColCode" name="ColCode" 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="ColName" name="ColName" 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="1" id="StatusYes" style="width:30px" /><label for="cb-NoQuotedPrice">是</label>
|
|
<label style="width:85px"></label>
|
|
<input type="radio" name="State" value="0" id="StatusNo" style="width:30px" /><label for="cb-QuotedPrice">否</label>
|
|
</div>
|
|
|
|
</td>
|
|
|
|
</tr>
|
|
|
|
|
|
</table>
|
|
</div>
|
|
</form>
|
|
|
|
|