@using WeApp @using WeApp.Configuration @using WeApp.Authorization @using WeApp.Views.Shared.Modals @using WeApp.Views.Shared.SearchForm @using WeApp.Views.Shared.Table @{ ViewBag.Title = "培训营分组维护"; string activeMenu = PermissionNames.PagesTrainMgGroupMg; ViewBag.ActiveMenu = PermissionNames.PagesTrainMgCampMg; string campNo = ViewBag.CampNo, state = ViewBag.State; var searchForm = new SearchFormViewModel(new List() { },"search-form",false); var table = new TableViewModel(IwbConsts.ApiAppUrl + "CampGroup/GetAll", activeMenu, searchForm) .SetFields(new List() { new FieldItem("name", "分组名称"), new FieldItem("campName", "培训营"), new FieldItem("campGroupState", "培训营分组状态","StateFormatter"), new FieldItem("startDate", "开始时间","DateTimeFormatter"), new FieldItem("engDate", "结束时间","DateTimeFormatter"), new FieldItem("trainingMinute", "演练时长"), }); } @section css{ } @Html.Partial("Table/_Table", table) @section modal{ @{ var modal = new ModalViewModel("分组", new ModalBodyViewModel(new List() { new InputHide("id"), new InputHide("campNo"), new Input("name", "分组名称"), })); } @Html.Partial("Modals/_Modal", modal) } @section scripts { }
@*@Html.DropDownList("hid-type", type)*@