using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using Domain; using CommonEntity; namespace Dao { public interface IHostRepository : IRepository { IList LoadAllID_HostNumberMapping(); IList LoadAll_RoomNumberMapping(); IList LoadAll(string order, string sort, IList groups, string roomNumber); IList LoadAll(IList groupList); IList LoadAll(int hotelID, string roomNumber = ""); IList LoadAll(IList groupList, RoomStatus roomStatus, RoomType roomType); IQueryable LoadAllByPage(out long total, int page, int rows, string order, string sort, int groupId, int hotelID, string roomNumber, string mac, string roomType, int isSyncRoomNumber); DataTable LoadHostWithPage(out long total, int page, int rows, string order, string sort, int groupId, int hotelID, string roomNumber, string mac, string roomType); IList LoadRooms(out long total, int page, int rows, int? groupId, int lang, int hotelID); IList GetByHotelCode(string hotelcode); Host GetByHostNumber(string hostNumber, string code = ""); //Host GetByRoomNumber(string roomNumber, string code); Host GetByMAC(string mac, int hotelID); /// /// 通过mac地址获取主机列表(只限C系列主机) /// /// /// IList LoadByMac(string mac); Host GetByXiaoDuCUID(string cuid); Host GetByTianMaoCUID(string cuid); Host GetByTCLCUID(string cuid); Host GetByHuaWeiCUID(string cuid); Host GetByHiWeiCUID(string cuid); //Host GetByIP(string ip); IList GetByGroup(Group group); DataTable LoadRoomNumbers(Group group, int hotelID); /// /// 获取主机总数 /// /// int GetHostsCount(); /// /// 返回与指定 host 连通的 Host,结果中不包含指定的host。 /// /// /// //IList GetConnectRoomHosts(Host host); /// /// 设置主机基本信息(房态更新命令) /// /// void SetHostInfo(Host host); /// /// 设置房卡:插卡同时插入新记录,拔卡同时更新拔卡时间 /// /// 主机 /// 房卡 void SetRoomCard(Host host, RoomCard roomCard); /// /// 设置主机温度 /// /// 主机 /// 主机温度 void SetHostTemp(Host host, int hostTemp); /// /// 设置主机bool字段内容 /// /// /// /// void SetHostByField(int hostID, string field, bool value); /// /// 设置门锁状态 /// /// 主机 /// True/开,False/关 void SetDoorLockStatus(Host host, bool doorLockStatus); /// /// 设置微信锁 /// /// /// void SetLockStatus(Host host, int lockStatus); /// /// 设置保险箱状态 /// /// 主机 /// 保险箱:0关,1开,2未接保险箱 void SetSafeBoxStatus(Host host, int safeBoxStatus); /// /// 设置是否已发布 /// /// /// void SetPublish(Host host, bool isPublish); /// /// 设置当前温度 /// /// 主机 /// 当前温度 //void SetCurrentTemp(Host host, int currentTemp); /// /// 设置设定温度 /// /// 主机 /// 设定温度 //void SetSettingTemp(Host host, int settingTemp); /// /// 设置风速 /// /// 主机 /// 风速 //void SetSpeed(Host host, int speed); /// /// 根据房型获取主机列表(C主机升级使用) /// /// /// /// IList LoadHostByRoomType(int hotelID, int roomTypeID); /// /// 根据房型获取所有主机列表 /// /// /// /// IList LoadAllHostByRoomType(int hotelID, int roomTypeID); /// /// 新添加的 /// /// /// /// IList LoadHostByRoomTypeChengZiHao(int hotelID, int roomTypeID, string roomNumber); /// /// 设置升级状态 /// /// /// void SetUpgradeStatus(Host host, int upgradeStatus, bool isReseet = false); /// /// 设置Model和Launcher /// /// /// /// void SetModelAndLauncher(Host host, string lanIP, int lanPort, string model, string launcher, DateTime expireTime, DateTime setExpireTime); } }