@using ContractService.Configuration @using ContractService.Authorization @using ContractService.Views.Shared.Modals @using ContractService.Views.Shared.SearchForm @using ContractService.Views.Shared.Table @{ ViewBag.Title = "律师信息维护"; string activeMenu = PermissionNames.PagesLegalLawFirmMgLawyerMg; //The menu item will be active for this page. ViewBag.ActiveMenu = activeMenu; string lawFirmNo = ViewBag.LawFirmNo ?? ""; var searchForm = new SearchFormViewModel(new List() { new SearchItem("code","律师编号"), new SearchItem("name","律师姓名"), new SearchItem("email", "电子邮箱"), new SearchItem("birthday","出生日期",FieldType.Dn), new SearchItem("phoneNumber","联系号码"), }); var table = new TableViewModel(IwbConsts.ApiAppUrl + "Lawyer/GetAll", activeMenu, searchForm) .SetFields(new List() { new FieldItem("code", "律师编号"), new FieldItem("name", "律师姓名"), new FieldItem("email", "电子邮箱"), new FieldItem("userName", "绑定账号","UserNameFormatter"), //new FieldItem("profile", "律师简介"), new FieldItem("birthday", "出生日期", "DateFormatter"), new FieldItem("phoneNumber", "联系号码"), new FieldItem("phoneNumber2", "备用号码"), new FieldItem("idCard", "身份证号"), }); if (AbpSession.AccountType == AccountTypeDefinition.System) { table.AddField(new FieldItem("lawFirmName", "律所名称")); table.AddField(new FieldItem("organizationName", "律所部门")); table.AddField(new FieldItem("isMaster", "是否负责人", "IsMasterFormatter")); } else { table.AddField(new FieldItem("organizationName", "律所部门")); } var inputs = new List() { new InputHide("id"), new InputHide("lawFirmNo"), new Input("code", "律师编号").SetNotRequired(), new Input("name", "律师姓名"), new Input("email", "电子邮箱"), new Input("organizationNo", "员工部门").SetSelectOptions(""), new InputDate("birthday", "出生日期").SetNotRequired(), new Input("idCard", "身份证号",@class:"isIdCardNo").SetNotRequired(), new Input("phoneNumber", "联系号码"), new Input("phoneNumber2", "备用号码").SetNotRequired(), new InputTextarea("profile", "律师简介").SetNotRequired(), }; var modalBody = new ModalBodyViewModel().AddInputs(inputs); var modal = new ModalViewModel("律师").SetBody(modalBody); var modal_bind = new ModalViewModel("绑定账号", "", new ModalBodyViewModel(new List() { new InputHide("lawyerNo"), new Input("userName","用户账号").SetSelectOptions("") }, "form-bind"), "modal-bind"); } @section css{ } @Html.Partial("Table/_Table", table) @section modal{ @Html.Partial("Modals/_Modal", modal) @Html.Partial("Modals/_Modal", modal_bind) @*@Html.Partial("Query/_User", new QuerySearchModel("query_user", "userName").SetOriginField("userName").SetSearchFun("SetUserQueryFun()").SetAjaxSelectName("name"))*@ } @section scripts { }
@*@Html.DropDownList("hid-type", type)*@