using System.Threading.Tasks; using System.Web.Mvc; using Abp.Web.Mvc.Authorization; using Abp.Runtime.Caching; using WePlatform.BaseSystem.Query; namespace WePlatform.Controllers { [AbpMvcAuthorize] public class EngineModelController : IwbControllerBase { public QueryAppService QueryApp { get; } public EngineModelController( ICacheManager cacheManager, QueryAppService queryApp) { QueryApp = queryApp; CacheManager = cacheManager; } [AbpMvcAuthorize] public ActionResult Engine() { return View(); } [AbpMvcAuthorize] public ActionResult Component() { return View(); } [AbpMvcAuthorize] public async Task EvalModel() { ViewBag.Target = await QueryApp.GetEvalTargetSelectStr(); return View(); } [AbpMvcAuthorize] public async Task Model() { ViewBag.Engine = await QueryApp.GetEngineSelectStr(); ViewBag.Model = await QueryApp.GetEngineModelTypeSelectStr(); return View(); } [AbpMvcAuthorize] public async Task EvalTarget() { ViewBag.TargetType = await QueryApp.GetEvalTargetTypeSelectStr(); return View(); } [AbpMvcAuthorize] public ActionResult ReportTemplate() { return View(); } } }