| 12345678910111213141516171819202122232425262728293031323334353637383940 |
- using System.Threading.Tasks;
- using System.Web.Mvc;
- using Abp.Web.Mvc.Authorization;
- using Abp.Runtime.Caching;
- using IwbZero.ToolCommon.StringModel;
- using WeOnlineApp.BaseSystem.Query;
- namespace WeOnlineApp.Controllers
- {
- [AbpMvcAuthorize]
- public class TrainController : IwbControllerBase
- {
- public TrainController( ICacheManager cacheManager, QueryAppService queryApp)
- {
- QueryApp = queryApp;
- CacheManager = cacheManager;
- }
- protected QueryAppService QueryApp { get; }
- [AbpMvcAuthorize]
- public async Task<ActionResult> Camp()
- {
- ViewBag.State = await QueryApp.GetCampStateSelectStr();
- ViewBag.SubjectType = await QueryApp.GetCategorySelectStr();
- return View();
- }
- [AbpMvcAuthorize]
- public ActionResult CampAttach(string id)
- {
- if (id.IsEmpty())
- {
- CheckErrors("未发现培训营编号,请检查后再试!");
- }
- ViewBag.CampNo = id;
- return View();
- }
- }
- }
|