@using ShwasherSys @using ShwasherSys.Authorization.Permissions @using ShwasherSys.Models.Layout @using ShwasherSys.Views.Shared.New.Modals @using ShwasherSys.Views.Shared.New.Table @{ ViewBag.Title = "证照信息维护"; string activeMenu = PermissionNames.PagesCompanyLicenseDocument; //The menu item will be active for this page. ViewBag.ActiveMenu = activeMenu; List group = ViewBag.LicenseGroup; var searchForm = new SearchFormViewModal(new List() { new SearchItem("no","证照编码"), new SearchItem("name","证照名称"), new SearchItem("licenseGroup","证照组").SetSearchItem(group), new SearchItem("licenseType","证照类型").SetSearchItem(new List(){}), },"search-form",false); var table = new TableViewModel( "/api/services/app/LicenseDocument/GetAll", activeMenu, searchForm) .SetFields(new List() { new FieldItem("no", "证照编码"), new FieldItem("name", "证照名称"), new FieldItem("licenseGroup", "证照组"), new FieldItem("licenseType", "证照类型"), new FieldItem("expireDate", "过期时间","ExDateFormatter"), }); } @section css{ } @Html.Partial("New/Table/_Table", table) @section modal{ @{ var modal = new ModalViewModel("证照", new ModalBodyViewModel(new List() { new InputHide("id"), new Input("no", "证照编码"), new Input("name", "证照名称"), new InputTextarea("description", "证照描述").SetNotRequired(), new Input("licenseGroup", "证照组").SetSelectOptions(group), new Input("licenseType", "证照类型",InputTypes.List), new InputDate("expireDate", "过期时间"), new InputFile("filePath", "附件路径").SetFileOption("fileInfo","fileName","fileExt",100).SetHelp("上传PDF文件更佳").SetNotRequired().SetOuterBefore("
").SetOuterAfter("
"), })); } @Html.Partial("New/Modals/_Modal", modal) } @section scripts { }
@*@Html.DropDownList("hid-type", type)*@