123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329 |
- using LeaRun.Application.Entity.NBManage;
- using LeaRun.Application.Service.NBManage;
- using LeaRun.Util;
- using LeaRun.Util.WebControl;
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- namespace LeaRun.Application.Busines.NBManage
- {
- /// <summary>
- /// 用户管理
- /// </summary>
- public class NBUserManageBLL
- {
- NBUserManageService service = new NBUserManageService();
- #region 获取用户信息
- /// <summary>
- /// 获取用户信息
- /// </summary>
- /// <param name="pagination"></param>
- /// <param name="keyword"></param>
- /// <param name="searchType"></param>
- /// <param name="id"></param>
- /// <returns></returns>
- public string GetNBUserList(Pagination pagination, string keyword, string searchType, string id, string level)
- {
- return service.GetNBUserList(pagination, keyword, searchType, id, level);
- }
- #endregion
- #region 保存小区信息
- /// <summary>
- /// 保存小区信息
- /// </summary>
- /// <param name="data"></param>
- /// <returns></returns>
- public int SaveAreaForm(string data)
- {
- return service.SaveAreaForm(data);
- }
- #endregion
- #region 获取小区信息
- /// <summary>
- /// 获取小区信息
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- public string GetAreaInfo(string id)
- {
- return Json.ToJson(service.GetAreaInfo(id));
- }
- #endregion
- #region 修改小区信息
- /// <summary>
- /// 修改小区信息
- /// </summary>
- /// <param name="keyValue"></param>
- /// <param name="data"></param>
- /// <returns></returns>
- public int EditAreaForm(string id, string data)
- {
- return service.EditAreaForm(id, data);
- }
- #endregion
- #region 删除小区信息
- /// <summary>
- /// 删除小区信息
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- public int DeleteAreaForm(string id)
- {
- return service.DeleteAreaForm(id);
- }
- #endregion
- #region 获取楼宇信息
- /// <summary>
- /// 获取小区信息
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- public string GetBldgInfo(string id)
- {
- return Json.ToJson(service.GetBldgInfo(id));
- }
- #endregion
- #region 保存楼宇信息
- /// <summary>
- /// 保存楼宇信息
- /// </summary>
- /// <param name="data"></param>
- /// <returns></returns>
- public int SaveBldgForm(string parentId, string data)
- {
- return service.SaveBldgForm(parentId, data);
- }
- /// <summary>
- /// 批量保存楼宇信息
- /// </summary>
- /// <param name="data"></param>
- /// <returns></returns>
- public int SaveBatchBldgForm(string parentId, string data)
- {
- return service.SaveBatchBldgForm(parentId, data);
- }
- #endregion
- #region 修改楼宇信息
- /// <summary>
- /// 修改小区信息
- /// </summary>
- /// <param name="keyValue"></param>
- /// <param name="data"></param>
- /// <returns></returns>
- public int EditBldgForm(string parentId, string id, string data)
- {
- return service.EditBldgForm(parentId, id, data);
- }
- #endregion
- #region 删除楼宇信息
- /// <summary>
- /// 删除楼宇信息
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- public int DeleteBldgForm(string id)
- {
- return service.DeleteBldgForm(id);
- }
- #endregion
- #region 获取单元信息
- /// <summary>
- /// 获取小区信息
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- public string GetApmtInfo(string id)
- {
- return Json.ToJson(service.GetApmtInfo(id));
- }
- #endregion
- #region 保存单元信息
- /// <summary>
- /// 保存单元信息
- /// </summary>
- /// <param name="data"></param>
- /// <returns></returns>
- public int SaveApmtForm(string parentId, string data)
- {
- return service.SaveApmtForm(parentId, data);
- }
- /// <summary>
- /// 批量保存楼宇信息
- /// </summary>
- /// <param name="data"></param>
- /// <returns></returns>
- public int SaveBatchApmtForm(string parentId, string data)
- {
- return service.SaveBatchApmtForm(parentId, data);
- }
- #endregion
- #region 修改单元信息
- /// <summary>
- /// 修改小区信息
- /// </summary>
- /// <param name="keyValue"></param>
- /// <param name="data"></param>
- /// <returns></returns>
- public int EditApmtForm(string parentId, string id, string data)
- {
- return service.EditApmtForm(parentId, id, data);
- }
- #endregion
- #region 删除单元信息
- /// <summary>
- /// 删除单元信息
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- public int DeleteApmtForm(string id)
- {
- return service.DeleteApmtForm(id);
- }
- #endregion
- #region 添加用户时,先添加用户,再获得用户ID
- /// <summary>
- ///获得用户ID
- /// </summary>
- /// <param name="RoomNo">用户</param>
- /// <param name="ApmtID">单元ID</param>
- /// <param name="BldgID">楼宇ID</param>
- /// <param name="AreaID">小区ID</param>
- /// <returns></returns>
- public string GetRoomID(string RoomNo, string ApmtID, string BldgID, string AreaID)
- {
- return service.GetRoomID(RoomNo, ApmtID, BldgID, AreaID);
- }
- #endregion
- #region 保存用户信息
- /// <summary>
- /// 保存用户信息
- /// </summary>
- /// <param name="data"></param>
- /// <returns></returns>
- public int SaveUserForm(string parentId, string data)
- {
- return service.SaveUserForm(parentId, data);
- }
- /// <summary>
- /// 批量保存用户信息
- /// </summary>
- /// <param name="data"></param>
- /// <returns></returns>
- public int SaveBatchUserForm(string parentId, string data)
- {
- return service.SaveBatchUserForm(parentId, data);
- }
- #endregion
- #region 获取用户信息
- /// <summary>
- /// 获取用户信息
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- public string GetUserInfo(string id)
- {
- return Json.ToJson(service.GetUserInfo(id));
- }
- #endregion
- #region 修改用户信息
- /// <summary>
- /// 修改用户信息
- /// </summary>
- /// <param name="keyValue"></param>
- /// <param name="data"></param>
- /// <returns></returns>
- public int EditUserForm(string parentId, string id, string data)
- {
- return service.EditUserForm(parentId, id, data);
- }
- #endregion
- #region 删除用户信息
- /// <summary>
- /// 删除用户信息
- /// </summary>
- /// <param name="id"></param>
- /// <returns></returns>
- public int DeleteUserForm(string id)
- {
- return service.DeleteUserForm(id);
- }
- #endregion
- #region 保存表具信息
- /// <summary>
- /// 保存表具信息
- /// </summary>
- /// <param name="data"></param>
- /// <returns></returns>
- public int SaveMeterForm(string parentId, string data)
- {
- return service.SaveMeterForm(parentId, data);
- }
- #endregion
- /// <summary>
- /// 修改表设备信息
- /// </summary>
- /// <returns></returns>
- public int EditMeterForm(string keyValue, string data)
- {
- return service.EditMeterForm(keyValue, data);
- }
- #region 获取表具信息
- /// <summary>
- /// 保存用户信息
- /// </summary>
- /// <param name="data"></param>
- /// <returns></returns>
- public NBMeterEntity GetMeterByMeterId(string meterId)
- {
- return service.GetMeterByMeterId(meterId);
- }
- #endregion
- #region 删除表具信息
- /// <summary>
- /// 删除表具信息
- /// </summary>
- /// <param name="data"></param>
- /// <returns></returns>
- public int DeleteMeterForm(string meterId)
- {
- return service.DeleteMeterForm(meterId);
- }
- public string SaveMeterRemove(string meterId, string areaId, string bldgId, string apmtId, string roomId)
- {
- return service.SaveMeterRemove(meterId, areaId, bldgId, apmtId, roomId);
- }
- #endregion
- }
- }
|