| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697 |
- 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 ResourceLibController : IwbControllerBase
- {
- public QueryAppService QueryApp { get;}
- public ResourceLibController( ICacheManager cacheManager, QueryAppService queryApp)
- {
- QueryApp = queryApp;
- CacheManager = cacheManager;
- }
- #region WELib
- [AbpMvcAuthorize]
- public async Task<ActionResult> SceneInfo()
- {
- ViewBag.Category = await QueryApp.GetCategorySelectStr();
- ViewBag.Behavior = await QueryApp.GetBehaviorSelectStr();
- ViewBag.Environment = await QueryApp.GetEnvironmentSelectStr();
- ViewBag.SceneType = await QueryApp.GetSceneTypeStr();
- ViewBag.BehaviorType = await QueryApp.GetBehaviorScoreTypeStr();
- ViewBag.BehaviorType2 = QueryApp.GetBehaviorNonEvolutionTypeStr();
- ViewBag.GuideType = await QueryApp.GetGuideTypeSelectStr();
- return View();
- }
- [AbpMvcAuthorize]
- public async Task<ActionResult> BehaviorInfo()
- {
- ViewBag.Category = await QueryApp.GetCategorySelectStr();
- ViewBag.Role = await QueryApp.GetBehaviorRoleSelectStr();
- ViewBag.Knowledge = await QueryApp.GetKnowledgeSelectStr();
- ViewBag.Environment = await QueryApp.GetEnvironmentSelectStr();
- return View();
- }
- [AbpMvcAuthorize]
- public ActionResult Plan()
- {
- return View();
- }
- [AbpMvcAuthorize]
- public async Task<ActionResult> Knowledge()
- {
- ViewBag.Plan = await QueryApp.GetPlanTreeSelectStr(); ;
- return View();
- }
- [AbpMvcAuthorize]
- public async Task<ActionResult> Prompt()
- {
- ViewBag.GuideType = await QueryApp.GetGuideTypeSelectStr();
- return View();
- }
- [AbpMvcAuthorize]
- public ActionResult Supply()
- {
- return View();
- }
- [AbpMvcAuthorize]
- public async Task<ActionResult> EnvironResourceInfo()
- {
- ViewBag.ResourceType = await QueryApp.GetResourceTypeStr();
- return View();
- }
- #endregion
- #region WEBASE
- [AbpMvcAuthorize]
- public ActionResult SceneCategory()
- {
- return View();
- }
- [AbpMvcAuthorize]
- public async Task<ActionResult> BehaviorRole()
- {
- ViewBag.Role = await QueryApp.GetBehaviorRoleSelectStr();
- ViewBag.Category = await QueryApp.GetCategorySelectStr();
- return View();
- }
- #endregion
- }
- }
|