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.
|
|
@{ 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"); $(function () { if (ID != "") { $.ajax({ url: "/WMS/BasicSettings/GetSys_Language?ID=" + ID , //data: { keyValue: keyValue }, dataType: "json", async: false, success: function (data) { debugger; $("#Code").val(data.rows[0].Code); $("#CnValue").val(data.rows[0].CnValue); $("#TwValue").val(data.rows[0].TwValue); $("#EnValue").val(data.rows[0].EnValue); } }); } else { $.ajax({ url: "/WMS/BasicSettings/GetSys_LanguageCode" + "?" + Math.random(), dataType: "json", async: false, success: function (data) { if (data.Code != '') { $("#Code").val(data.Code); $("#Code").attr("disabled", "disabled"); } } }); }
});
function submitForm() { var Code = $("#Code").val(); var CnValue = $("#CnValue").val(); var TwValue = $("#TwValue").val(); var EnValue = $("#EnValue").val(); if (Code == "" || Code == undefined) { $.modalAlertNew("WMS00105"); return; } if (CnValue == "" || CnValue == undefined) { $.modalAlertNew("WMS00106"); return; } if (TwValue == "" || TwValue == undefined) { $.modalAlertNew("WMS00107"); return; } if (EnValue == "" || EnValue == undefined) { $.modalAlertNew("WMS00108"); return; } var objArr = { ID:ID, Code: Code, CnValue: CnValue, TwValue: TwValue, EnValue: EnValue } debugger; if (ID!="") { $.submitForm({ url: "/WMS/BasicSettings/UpdateSys_Language" + "?" + Math.random(), param: { keyValue: JSON.stringify(objArr) }, success: function () { $.currentWindow().$("#gridList").trigger("reloadGrid"); } }) } else { $.submitForm({ url: "/WMS/BasicSettings/InsertSys_Language" + "?" + 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">编码:</th> <td class="formValue"> <input id="Code" name="Code" 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"> <textarea id="CnValue" name="CnValue" cols="200" class="form-control" number="500" style="height:32px;line-height:32px"></textarea> </td> </tr> <tr> <th class="formTitle">中文繁体:</th> <td class="formValue"> <textarea id="TwValue" name="TwValue" cols="200" class="form-control" number="500" style="height:32px;line-height:32px"></textarea> </td> </tr> <tr> <th class="formTitle">英文:</th> <td class="formValue"> <textarea id="EnValue" name="EnValue" cols="200" class="form-control" number="500" style="height:32px;line-height:32px"></textarea> </td> </tr>
</table> </div> </form>
|