EngineModelController.cs 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. using System.Threading.Tasks;
  2. using System.Web.Mvc;
  3. using Abp.Web.Mvc.Authorization;
  4. using Abp.Runtime.Caching;
  5. using WePlatform.BaseSystem.Query;
  6. namespace WePlatform.Controllers
  7. {
  8. [AbpMvcAuthorize]
  9. public class EngineModelController : IwbControllerBase
  10. {
  11. public QueryAppService QueryApp { get; }
  12. public EngineModelController( ICacheManager cacheManager, QueryAppService queryApp)
  13. {
  14. QueryApp = queryApp;
  15. CacheManager = cacheManager;
  16. }
  17. [AbpMvcAuthorize]
  18. public ActionResult Engine()
  19. {
  20. return View();
  21. }
  22. [AbpMvcAuthorize]
  23. public ActionResult Component()
  24. {
  25. return View();
  26. }
  27. [AbpMvcAuthorize]
  28. public async Task<ActionResult> EvalModel()
  29. {
  30. ViewBag.Target = await QueryApp.GetEvalTargetSelectStr();
  31. return View();
  32. }
  33. [AbpMvcAuthorize]
  34. public async Task<ActionResult> Model()
  35. {
  36. ViewBag.Engine = await QueryApp.GetEngineSelectStr();
  37. ViewBag.Model = await QueryApp.GetEngineModelTypeSelectStr();
  38. return View();
  39. }
  40. [AbpMvcAuthorize]
  41. public async Task<ActionResult> EvalTarget()
  42. {
  43. ViewBag.TargetType = await QueryApp.GetEvalTargetTypeSelectStr();
  44. return View();
  45. }
  46. [AbpMvcAuthorize]
  47. public ActionResult ReportTemplate()
  48. {
  49. return View();
  50. }
  51. }
  52. }