12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091 |
- using LeaRun.Util.WebControl;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Web;
- using System.Web.Mvc;
- using LeaRun.Application.Service.WaterWellManage;
- using LeaRun.Application.Entity.WaterWellManage;
- using LeaRun.Application.Busines.WaterWell;
- namespace LeaRun.Application.Web.Areas.WaterWellManage.Controllers
- {
- public class DeviceController : Controller
- {
- private DeviceBLL deviceBll = new DeviceBLL();
- public ActionResult Index()
- {
- return View();
- }
- #region 获取可扩展列表
- /// <summary>
- /// 获取可扩展列表
- /// </summary>
- /// <param name="showcheck"></param>
- /// <returns></returns>
- [HttpGet]
- public ActionResult GetTreeJson(bool showcheck = true)
- {
- return Content(deviceBll.GetTreeEntity("0", showcheck).ToList().TreeToJson("sys0"));
- }
- #endregion
- #region 获取无父级别列表
- /// <summary>
- /// 获取无父级别列表
- /// </summary>
- /// <param name="showcheck"></param>
- /// <returns></returns>
- [HttpGet]
- public ActionResult GetNoParentJson(bool showcheck = true)
- {
- string lsit = deviceBll.GetTreeList(showcheck);
- return Content(lsit);
- }
- #endregion
- #region 查询测点(模糊查询)
- /// <summary>
- /// 查询测点(模糊查询)
- /// </summary>
- /// <param name="name"></param>
- /// <returns></returns>
- [HttpGet]
- public ActionResult SearchWaterWellLikeName(string name)
- {
- string data = deviceBll.SearchWaterWellLikeName(name);
- return Content(data);
- }
- #endregion
- #region 查询名称
- /// <summary>
- /// 查询名称
- /// </summary>
- /// <param name="name"></param>
- /// <returns></returns>
- [HttpGet]
- public ActionResult SearchWaterWellName()
- {
- string data = deviceBll.SearchWaterWellName();
- return Content(data);
- }
- #endregion
- #region 获取所有设备列表
- /// <summary>
- /// 获取所有设备列表
- /// </summary>
- /// <returns></returns>
- [HttpGet]
- public ActionResult GetAllDevice()
- {
- return Content(deviceBll.GetAllDevice());
- }
- #endregion
- }
- }
|