using System; using System.Collections.Generic; using System.Data; using System.Linq; using System.Text; using Domain; using CommonEntity; namespace Service { public interface IHostManager : IGenericManager { IList LoadAllID_HostNumberMapping(); IList LoadAll_RoomNumberMapping(); IList LoadAll(string order, string sort, Group group, string roomNumber); IList LoadAll(Group group); IList LoadAll(string hotelCode); IList LoadAll(int hotelID, string roomNumber = ""); IList LoadAll(IList groupList, RoomStatus roomStatus, RoomType roomType); IList 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); /// /// /// /// /// /// /// 楼层 /// 语言:0/中文,1/英文 /// IList LoadRooms(out long total, int page, int rows, int? groupId, int lang, int hotelID); IList GetByGroup(Group group); IList LoadRoomNumbers(); DataTable LoadRoomNumbers(Group group, int hotelID); 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 GetByRoomNumberSupply(string roomNumber); /// /// 返回指定房号的主机 /// /// /// Host GetByRoomNumber(string roomNumber, int hotelID); Host GetByRoomNumber(int roomid, int hotelID); Host GetByRoomNumber(string roomNumber, string hotelCode); /// /// 返回与指定 host 连通的 Host,结果中不包含指定的host。 /// /// /// //IList GetConnectRoomHosts(Host host); /// /// 返回指 HostID 的房号 /// /// /// string GetRoomNumber(int hostID); /// /// 升级RCU主机 /// /// 升级包 /// RCU主机 void UpdateHost(HostUpdate hostUpdate, FileType fileType, string fileHref, string fileMd5, IList hosts, bool isTFTP); /// /// 针对C主机升级 /// /// 升级包 /// RCU主机 void UpdateHostC(HostUpdate hostUpdate, FileType fileType, string fileHref, string fileMd5, IList hosts); /// /// 更改房态 /// /// /// void ChangeRoomStatus(Host host, RoomStatus roomStatus, string wxValidate = ""); /// /// 更改房态 /// /// /// 2:出租,4:待租,8:退房,16:空房 void ChangeRoomStatus(Host host, int roomStatusID, string wxValidate = ""); /// /// 批量更改主机网络设置 /// /// RCU主机列表 /// IP地址 /// 子网掩码 /// 默认网关 /// 通讯端口 void ChangeNetworkSetting(IList hostList, string ip, string subnetmask, string gateway, ushort port); /// /// 设置或取消连通房 /// /// 主机列表 /// false/设置连通房,true/取消连通房,默认false //void ConnectRoom(IList hosts, bool cancel = false); /// /// 主机授权 /// /// /// void AccreditForHost(IList hostList, DateTime expires); /// /// 下发设备密钥 /// /// void SetDeviceSecret(Host host); /// /// 获取主机密钥 /// /// void SendForGetHostSecret(Host host); /// /// 同步主机信息 /// /// void SyncHostInfo(Host host); /// /// 下发主机信息 /// /// void PublishHostInfo(Host host); /// /// 下发主机信息 /// /// /// 指定地址和设置内容 void PublishHostInfo(Host host, byte[] sendData); /// /// 保存智能语音绑定信息 /// /// void SaveSmartVoiceBinding(Host host); /// /// 透传 /// /// /// /// void PublishUDPData(string hostnumber,string mac,byte[] data,byte cmdtype,bool isoriginal=false); /// /// 根据房型获取主机列表(C主机升级使用) /// /// /// /// IList LoadHostByRoomType(int hotelID, int roomTypeID); IList LoadHostByRoomTypeChengZiHao(int hotelID, int roomTypeID, string roomNumber); /// /// 根据房型获取所有主机列表 /// /// /// /// IList LoadAllHostByRoomType(int hotelID, int roomTypeID); /// /// 凌晨定时 /// /// /// void TimerECO(string hotelcode, int sheng_jiang_value); /// /// 阿宝添加的 /// 获取所有任务的信息 /// List GetInitializeKTMission(); /// /// 空调定时控制 /// void AirConditionTimer_Controller(int hotel_id, string HotelCode,string HotelCreateDate,int host_id, string RoomNo,KongTiaoTimer k); void LoggerTest(); List Get_ECOList(); void ECO_Execute(string hotelid); void Zero_Refresh(); //tftp void Send_Query_Data(byte[] data, string host_number, string mac); void Send_Setting_Data(byte[] data, string host_number, string mac); } }