@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.PagesResourceMgBasicMgSceneCategoryMg; //The menu item will be active for this page. ViewBag.ActiveMenu = activeMenu; var searchForm = new SearchFormViewModel(new List() { new SearchItem("categoryName","类别名称"), }, "search-form", false); var table = new TableViewModel(IwbConsts.ApiAppUrl + "SceneCategory/GetAll", activeMenu) .SetFields(new List() { //new FieldItem("parentNo", "父类别"), new FieldItem("categoryName", "类别名称",align:"left"), new FieldItem("", "操作","ActionsFormatter"), }) .SetPageArray(1000); } @section css{ } @Html.Partial("Table/_Table", table) @section modal{ @{ var modal = new ModalViewModel("场景类别", new ModalBodyViewModel(new List() { new InputHide("id"), new Input("parentNo", "父类别").SetNotRequired().SetSelectOptions(""), new Input("categoryName", "类别名称"), new InputNumber("sort", "类别排序"), new InputTextarea("description", "类别描述").SetNotRequired(), })); } @Html.Partial("Modals/_Modal", modal) } @section scripts { }
@*@Html.DropDownList("hid-type", type)*@