@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.PagesEngineModelMgModelMg; string engine = ViewBag.Engine, model = ViewBag.Model; ViewBag.ActiveMenu = activeMenu; var searchForm = new SearchFormViewModel(new List() { new SearchItem("modelName","模型名称"), new SearchItem("modelType","模型类型",FieldType.I).SetSelectItem(model,false), new SearchItem("engineNo","推演引擎",expType:ExpType.Equal).SetSelectItem(engine,false), }, "search-form", false); var table = new TableViewModel(IwbConsts.ApiAppUrl + "EngineModel/GetAll", activeMenu, searchForm) .SetFields(new List() { new FieldItem("modelName", "模型名称"), new FieldItem("version", "模型版本"), new FieldItem("modelType", "模型类型","ModelTypeFormatter"), new FieldItem("engineName", "推演引擎","EngineFormatter"), }); } @section css{ } @Html.Partial("Table/_Table", table) @section modal{ @{ var modal = new ModalViewModel("模型", new ModalBodyViewModel(new List() { new InputHide("id"), new Input("modelName", "模型名称").SetNotRequired(), new InputNumber("modelType", "模型类型").SetNotRequired().SetSelectOptions(model,isAddBlank:false), new Input("engineNo", "推演引擎").SetNotRequired().SetSelectOptions(engine,isAddBlank:false), new Input("version", "模型版本").SetNotRequired(), new InputTextarea("description", "模型描述").SetNotRequired(), })); } @Html.Partial("Modals/_Modal", modal) } @section scripts { }
@*@Html.DropDownList("hid-type", type)*@