@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.PagesClientMgStaffMg; //The menu item will be active for this page. ViewBag.ActiveMenu = activeMenu; string companyNo = ViewBag.CompanyNo ?? ""; var searchForm = new SearchFormViewModel(new List() { new SearchItem("code","员工编号"), new SearchItem("name","员工姓名"), new SearchItem("email", "电子邮箱"), new SearchItem("birthday","出生日期",FieldType.Dn), new SearchItem("phoneNumber","联系号码"), }, "search-form", false); var table = new TableViewModel(IwbConsts.ApiAppUrl + "ClientStaff/GetAll", activeMenu, searchForm) .SetFields(new List() { new FieldItem("code", "员工编号"), new FieldItem("name", "员工姓名"), //new FieldItem("profile", "员工描述"), new FieldItem("userName", "绑定账号","UserNameFormatter"), new FieldItem("birthday", "出生日期", "DateFormatter"), new FieldItem("idCard", "身份证号"), new FieldItem("phoneNumber", "联系号码"), new FieldItem("phoneNumber2", "备用号码"), }); if (AbpSession.AccountType == AccountTypeDefinition.System) { table.AddField(new FieldItem("companyName", "公司信息")); 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 Input("code", "员工编号"), new Input("name", "员工姓名"), new Input("email", "电子邮箱"), new Input("organizationNo", "员工部门").SetSelectOptions(""), new Input("phoneNumber", "联系号码"), new InputDate("birthday", "出生日期").SetNotRequired(), new Input("idCard", "身份证号").SetNotRequired(), 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("staffNo"), 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) } @section scripts { }
@*@Html.DropDownList("hid-type", type)*@