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.
147 lines
5.1 KiB
147 lines
5.1 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 TableCode = $.request("TableCode");
|
|
var ColumnCode = $.request("ColumnCode");
|
|
var Code = $.request("Code");
|
|
var Name = decodeURI($.request("Name"));
|
|
var Enable = decodeURI($.request("Enable"));
|
|
$(function () {
|
|
if (ID != "") {
|
|
$("#TableCode").val(TableCode);
|
|
$("#ColumnCode").val(ColumnCode);
|
|
$("#Code").val(Code);
|
|
$("#Name").val(Name);
|
|
if (Enable=='是') {
|
|
$("#StatusYes").prop("checked", true);
|
|
} else {
|
|
$("#StatusNo").prop("checked", true);
|
|
}
|
|
}
|
|
});
|
|
|
|
|
|
function submitForm() {
|
|
var Code = $("#Code").val();
|
|
var Name = $("#Name").val();
|
|
var TableCode = $("#TableCode").val();
|
|
var ColumnCode = $("#ColumnCode").val();
|
|
var Enable = $('input[name="State"]:checked').val();
|
|
if (Code == "" || Code == undefined) {
|
|
$.modalAlertNew("WMS00019");
|
|
return;
|
|
}
|
|
if (TableCode == "" || TableCode == undefined) {
|
|
$.modalAlertNew("WMS00019");
|
|
return;
|
|
}
|
|
if (ColumnCode == "" || ColumnCode == undefined) {
|
|
$.modalAlertNew("WMS00019");
|
|
return;
|
|
}
|
|
if (Name == "" || Name == undefined) {
|
|
$.modalAlertNew("WMS00026");
|
|
return;
|
|
}
|
|
if (Enable == "" || Enable == undefined) {
|
|
$.modalAlertNew("WMS00020");
|
|
return;
|
|
}
|
|
var objArr = {
|
|
ID:ID,
|
|
Code: Code,
|
|
Name: Name,
|
|
TableCode: TableCode,
|
|
ColumnCode: ColumnCode,
|
|
Enable: Enable
|
|
}
|
|
debugger;
|
|
if (ID!="") {
|
|
$.submitForm({
|
|
url: "/WMS/BasicSettings/UpdateICSColumnEnable" + "?" + Math.random(),
|
|
param: { keyValue: JSON.stringify(objArr) },
|
|
success: function () {
|
|
$.currentWindow().$("#gridList").trigger("reloadGrid");
|
|
}
|
|
})
|
|
} else {
|
|
$.submitForm({
|
|
url: "/WMS/BasicSettings/InsertICSColumnEnable" + "?" + 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="TableCode" name="TableCode" type="text" class="form-control required" style="width: 300px;" maxlength="50" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="表编码" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">列编号:</th>
|
|
<td class="formValue">
|
|
<input id="ColumnCode" name="ColumnCode" type="text" class="form-control required" style="width: 300px;" maxlength="50" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="表编码" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">列编码:</th>
|
|
<td class="formValue">
|
|
<input id="Code" name="Code" type="text" class="form-control required" style="width: 300px;" maxlength="20" onclick="WdatePicker({ dateFmt: 'yyyy-MM-dd' })" placeholder="列编码" />
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<th class="formTitle">列名称:</th>
|
|
<td class="formValue">
|
|
<input id="Name" name="Name" type="text" class="form-control required" style="width: 300px;" maxlength="20" 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>
|
|
|
|
|