@using ContractService.Configuration @using ContractService.Authorization @using ContractService.Views.Shared.Modals @using ContractService.Views.Shared.Query @using ContractService.Views.Shared.SearchForm @using ContractService.Views.Shared.Table @{ ViewBag.Title = "律所信息维护"; string activeMenu = PermissionNames.PagesLegalLawFirmMgLawFirmMg; //The menu item will be active for this page. ViewBag.ActiveMenu = activeMenu; var searchForm = new SearchFormViewModel(new List() { new SearchItem("name", "") }); var table = new TableViewModel(IwbConsts.ApiAppUrl + "LawFirm/GetAll", activeMenu, searchForm) .SetFields(new List() { new FieldItem("name", "律所名称"), new FieldItem("displayName", "系统显示名称"), //new FieldItem("description", ""), new FieldItem("masterLawyerName", "律所负责人"), }); var inputs = new List() { new InputHide("id"), new Input("name", "律所名称"), new Input("displayName", "系统显示名称"), new InputTextarea("description", "律所简介").SetNotRequired(), }; var inputs_lawyer = new List() { new Input("code", "律师编号").SetDivClass("form-group row req"), new Input("lawyerName", "律师姓名").SetDivClass("form-group row req"), new Input("email", "电子邮箱").SetDivClass("form-group row req"), new Input("phoneNumber", "联系号码").SetDivClass("form-group row req"), new InputDate("birthday", "出生日期").SetNotRequired(), new Input("idCard", "身份证号",@class:"isIdCardNo").SetNotRequired(), new Input("phoneNumber2", "备用号码").SetNotRequired(), new InputTextarea("profile", "律师简介").SetNotRequired(), }; var modalBody = new ModalBodyViewModel() .AddTab("lawFirm", "律所信息", inputs) .AddTab("lawyer", "律所负责人", inputs_lawyer); var modal = new ModalViewModel("律所").SetBody(modalBody); var modal_master = new ModalViewModel("变更律所负责人", "", new ModalBodyViewModel(new List() { new InputHide("no"), new AjaxSelect("lawyerNo","律所负责人","MasterLawyer","","query_lawyer","lawyerNo") }, "form-master"), "modal-master"); } @section css{ } @Html.Partial("Table/_Table", table) @section modal{ @Html.Partial("Modals/_Modal", modal) @Html.Partial("Modals/_Modal", modal_master) @Html.Partial("Query/_Lawyer", new QuerySearchModel("query_lawyer", "lawyerNo").SetOriginField("id").SetSearchFun("SetLawFirmQueryFun()").SetAjaxSelectName("name")) } @section scripts { }
@*@Html.DropDownList("hid-type", type)*@