PartitionsController.cs 792 B

1234567891011121314151617181920212223242526272829
  1. using LeaRun.Application.Busines.DMAManage;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.Linq;
  5. using System.Web;
  6. using System.Web.Mvc;
  7. using LeaRun.Util.WebControl;
  8. namespace LeaRun.Application.Web.Areas.DMAManage.Controllers
  9. {
  10. public class PartitionsController : MvcControllerBase
  11. {
  12. PartitionsBLL partitionsBLL = new PartitionsBLL();
  13. #region 获取可扩展列表
  14. /// <summary>
  15. /// 获取可扩展列表
  16. /// </summary>
  17. /// <param name="showcheck"></param>
  18. /// <returns></returns>
  19. [HttpGet]
  20. public ActionResult GetTreeJson(bool showcheck = true)
  21. {
  22. return Content(partitionsBLL.GetTreeEntity("0", showcheck).ToList().TreeToJson("0"));
  23. }
  24. #endregion
  25. }
  26. }