@using WePlatform @using WePlatform.Configuration @using WePlatform.Authorization @using WePlatform.Views.Shared.Modals @using WePlatform.Views.Shared.SearchForm @using WePlatform.Views.Shared.Table @{ ViewBag.Title = "环境资源信息维护"; string activeMenu = PermissionNames.PagesResourceMgEnvironReMg; //The menu item will be active for this page. ViewBag.ActiveMenu = activeMenu; string resourceType = ViewBag.ResourceType; var searchForm = new SearchFormViewModel(new List() { new SearchItem("resourceName","资源名称"), new SearchItem("messageCode","消息代码"), }, "search-form", false); var table = new TableViewModel(IwbConsts.ApiAppUrl + "EnvironResource/GetAll", activeMenu, searchForm) .SetFields(new List() { new FieldItem("id", "编码"), new FieldItem("resourceName", "资源名称"), new FieldItem("resourceType", "资源类型","ResourceTypeFormatter"), new FieldItem("messageCode", "消息代码"), new FieldItem("resourcePath", "资源路径","PathFormatter"), }); } @section css{ } @Html.Partial("Table/_Table", table) @section modal{ @{ var modal = new ModalViewModel("环境资源", new ModalBodyViewModel(new List() { new InputHide("id"), new Input("resourceName", "资源名称"), new Input("resourceType", "资源类型").SetSelectOptions(resourceType), new Input("messageCode", "消息代码"), new InputFile("resourcePath", "资源路径").SetFileOption("fileInfo","fileName","fileExt"), new InputTextarea("description", "资源描述").SetNotRequired(), })); } @Html.Partial("Modals/_Modal", modal) } @section scripts { }
@*@Html.DropDownList("hid-type", type)*@