@using IwbZero.IwbDataQuery @using IwbZero.ToolCommon.StringModel @using WeApp.Configuration @using WeApp.Authorization @using WeApp.Views.Shared.Modals @using WeApp.Views.Shared.SearchForm @using WeApp.Views.Shared.Table @using WeEngine.Enum @{ ViewBag.Title = "演练培训营管理"; string activeMenu = PermissionNames.PagesTrainMgCampMg; //The menu item will be active for this page. ViewBag.ActiveMenu = activeMenu; string auditState = ViewBag.AutidState, state = ViewBag.State, stuHelp = ViewBag.SthHelp, variableType = IwbDataType.GetDataTypeSelectStr(); var searchForm = new SearchFormViewModel(new List() { new SearchItem("name","培训营名称"), new SearchItem("packageName","方案包名称"), new SearchItem("campState","方案包状态",FieldType.I).SetSelectItem(state), new SearchItem("planDate","计划日期",FieldType.D), }); var table = new TableViewModel(IwbConsts.ApiAppUrl + "Camp/GetAll", activeMenu, searchForm) .SetFields(new List() { new FieldItem("name", "培训营名称"), new FieldItem("packageName", "方案包名称"), new FieldItem("scoreRule", "评分规则"), new FieldItem("campState", "方案包状态","StateFormatter").SetWidth(100), new FieldItem("roundScore", "每轮总分").SetWidth(100), new FieldItem("planDate", "计划日期","DateTimeFormatter").SetWidth(200), new FieldItem("", "操作","ActionFormatter").SetWidth(200), }); var input = new ModalBodyViewModel(new List() { new InputHide("id"), new InputHide("packageName"), new InputHide("engineModelType"), new Input("name", "培训营名称"), new Input("packageNo", "方案包编号").SetSelectOptions(""), new Input("address", "培训地点"), new InputDateTime("planDate", "计划日期"), new InputNumber("roundScore", "每轮总分").SetMin(100), new InputNumber("maxRoundMinute", "每轮时长").SetMin(1), //new Input("scoreRule", "评分规则",@class:"expression").SetHelp("请以@分隔 [系统评分(权重|总分),专家评分(权重|总分),电话评分(权重|总分)] (例: 7|500@2|10@1|100)"), //new Input("campState", "审核状态").SetSelectOptions(auditState), //new InputTextarea("description", "培训目标").SetNotRequired(), }); var input2 = new ModalBodyViewModel(new List() { //new InputNumber("roundScore", "每轮总分").SetMin(100), //new InputNumber("maxRoundMinute", "每轮时长").SetMin(1), new Input("scoreRule", "评分规则",@class:"expression").SetHelp("请以@分隔 [系统评分(权重|总分),专家评分(权重|总分),电话评分(权重|总分)] (例: 7|500@2|10@1|100)"), new Input("campState", "审核状态").SetSelectOptions(auditState), new Input("stuHelp", "学员提示").SetSelectOptions(stuHelp,true).SetNotRequired(), new InputTextarea("description", "培训目标").SetNotRequired(), }); } @section css{ } @Html.Partial("Table/_Table", table) @section modal{
} @section scripts { }
@*@Html.DropDownList("hid-type", type)*@