1234567891011121314151617181920212223242526272829303132333435363738 |
- using LeaRun.Application.Busines.NBManage;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.Mvc;
- using LeaRun.Util.WebControl;
- using LeaRun.Util;
- namespace LeaRun.Application.Web.Areas.NBManage.Controllers
- {
- /// <summary>
- /// 地区tree列表获取
- /// </summary>
- public class NBAreasController : MvcControllerBase
- {
- NBAreasBLL bll = new NBAreasBLL();
- #region 获取可扩展列表
- /// <summary>
- /// 获取可扩展列表
- /// </summary>
- /// <param name="showcheck"></param>
- /// <returns></returns>
- [HttpGet]
- public ActionResult GetTreeJson(bool showcheck = true)
- {
- return Content(bll.GetTreeEntity("0", showcheck, 0).ToList().TreeToJson("0"));
- }
- public ActionResult GetAreaTreeJson(bool showcheck = true)
- {
- return Content(bll.GetAreaTreeJson("0", showcheck).ToList().TreeToJson("0"));
- }
- #endregion
- }
- }
|