@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.PagesResourceMgGuideMgSupplyMg; //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 + "Supply/GetAll", activeMenu, searchForm) .SetFields(new List() { new FieldItem("name", "名称"), new FieldItem("quantity", "数量"), }); } @section css{ } @Html.Partial("Table/_Table", table) @section modal{ @{ var modal = new ModalViewModel("应急物资", new ModalBodyViewModel(new List() { new InputHide("id"), new Input("name", "名称"), new InputNumber("quantity", "数量").SetMin(0), new InputTextarea("description", "描述").SetNotRequired(), })); } @Html.Partial("Modals/_Modal", modal) } @section scripts { }
@*@Html.DropDownList("hid-type", type)*@