@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.PagesEngineModelMgEvalModelMg; //The menu item will be active for this page. ViewBag.ActiveMenu = activeMenu; string target = ViewBag.Target; var searchForm = new SearchFormViewModel(new List() { new SearchItem("modelName","模型名称"), }, "search-form", false); var table = new TableViewModel(IwbConsts.ApiAppUrl + "EvalModel/GetAll", activeMenu, searchForm) .SetFields(new List() { new FieldItem("modelName", "模型名称"), new FieldItem("evalTargetNo", "评估指标","EvalTargetFormatter"), new FieldItem("qualitativeExpression", "定性评估表达式"), new FieldItem("version", "模型版本"), new FieldItem("description", "模型描述"), }); } @section css{ } @Html.Partial("Table/_Table", table) @section modal{ @{ var modal = new ModalViewModel("模型", new ModalBodyViewModel(new List() { new InputHide("id"), new Input("modelName", "模型名称"), new Input("evalTargetNo", "评估指标").SetSelectOptions(target), new Input("qualitativeExpression", "定性评估表达式"), new Input("version", "模型版本").SetNotRequired(), new InputTextarea("description", "模型描述").SetNotRequired(), })); } @Html.Partial("Modals/_Modal", modal) } @section scripts { }
@*@Html.DropDownList("hid-type", type)*@