.NET快速資訊化系統開發框架 V3.2 -> Web 使用者管理模組編輯介面-組織機構選擇支援級聯選擇
阿新 • • 發佈:2018-12-30
AddUser: function () { //新增使用者 var addDialog = top.$.hDialog({ href: formUrl, title: '新增使用者', width: 610, height: 640, iconCls: 'icon16_user_add', onLoad: function () { UserAdminMethod.initData(); BindOrganize(); top.$('#Enabled').attr("checked", true); top.$('#Description').val(""); top.$('#UserName').focus(); }, submit: function () { if (top.$('#uiform').validate().form()) { var postData = pageMethod.serializeJson(top.$('#uiform')); postData.CompanyName = top.$('#CompanyId').combobox('getText'); postData.SubCompanyName = top.$('#SubCompanyId').combobox('getText'); postData.DepartmentName = top.$('#DepartmentId').combobox('getText'); postData.SubDepartmentName = top.$('#SubDepartmentId').combobox('getText'); postData.WorkgroupName = top.$('#WorkgroupId').combobox('getText'); $.ajaxjson("/FrameworkModules/UserAdmin/SubmitForm", postData, function (d) { if (d.Success) { msg.ok(d.Message); addDialog.dialog('close'); mygrid.reload(); } else { MessageOrRedirect(d); } }); } else { msg.warning('請輸入使用者名稱稱。'); top.$('#UserName').focus(); } } }); return false; }