@using Abp.Runtime.Session @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.PagesEngineModelMgEngineMg; //The menu item will be active for this page. ViewBag.ActiveMenu = activeMenu; var searchForm = new SearchFormViewModel(new List() { new SearchItem("engineName","引擎名称"), }, "search-form", false); var table = new TableViewModel(IwbConsts.ApiAppUrl + "Engine/GetAll", activeMenu, searchForm) .SetFields(new List() { new FieldItem("engineName", "引擎名称"), new FieldItem("version", "引擎版本"), //new FieldItem("description", "引擎描述"), new FieldItem("engineTypeName", "引擎类型名称"), }); } @section css{ } @Html.Partial("Table/_Table", table) @section modal{ @{ var inputs = new List() { new InputHide("id"), new Input("engineName", "引擎名称").SetNotRequired(), new Input("version", "引擎版本").SetNotRequired(), new InputTextarea("description", "引擎描述").SetNotRequired() }; if (AbpSession.UserType == UsersAndRolesTypeDefinition.Supper) { inputs.Add(new Input("engineTypeName", "引擎类型名称").SetNotRequired()); } var modal = new ModalViewModel("引擎", new ModalBodyViewModel(inputs)); } @Html.Partial("Modals/_Modal", modal) } @section scripts { }
@*@Html.DropDownList("hid-type", type)*@