using System; using System.Collections.Generic; using System.Linq; using System.Web; namespace WebSite.Models { public class FloorModel { private IList floorRooms = new List(); public IList FloorRooms { get { return this.floorRooms; } set { if (value != null) { this.floorRooms = value; } } } public int Sort { get; set; } } public class RoomModel { private string roomNumber = ""; private string roomStatus = ""; private IList services = new List(); private IList airDetect = new List(); private IList customers = new List(); public int ID { get; set; } /// /// 主机状态:是否在线 /// public bool HostStatus { get; set; } //public ServiceModel CurrentService { get { return new ServiceModel { Code = "B00", Color = "#FFFFFF" }; } } /// /// 房号 /// public string RoomNumber { get { return this.roomNumber; } set { this.roomNumber = value ?? ""; } } /// /// 房态名称 /// public string RoomStatus { get { return this.roomStatus; } set { this.roomStatus = value ?? ""; } } public int RoomStatusID { get; set; } public string Identity { get; set; } public int AirID { get; set; }//空调ID public string ModalAddress { get; set; }//空调回路地址 public int AirStatus { get; set; }//空调开关状态,2/关,1/开 public string AirStatusName { get; set; }//空调开关状态 public int RoomTemp { get; set; } public int SettingTemp { get; set; } public int Mode { get; set; } public int FanSpeed { get; set; } public int Valve { get; set; } public string ValveName { get; set; } /// /// 客房电源 /// public bool PowerSupply { get; set; } public string PowerSupplyName { get; set; } /// /// 门锁状态 /// public int LockStatus { get; set; } /// /// 门锁状态名称 /// public string LockStatusName { get; set; } /// /// 锁电压 /// public float LockVoltage { get; set; } /// /// 外设离线数量 /// public int PeripheralOfflineCount { get; set; } /// /// 外设低电数量 /// public int PeripheralLowPowerCount { get; set; } /// /// 外设描述 /// public string Peripheral { get; set; } /// /// 是否是连通房 /// public bool IsConnectingRoom { get; set; } /// /// 碳达人 /// public string CarbonVIP { get; set; } /// /// 功率 /// public string Power { get; set; } public ServiceModel SOS { get; set; } public ServiceModel DND { get; set; } public ServiceModel Clean { get; set; } public ServiceModel Checkout { get; set; } public IList Services { get { return this.services; } set { if (value != null) { this.services = value; } } } public IList AirDetects { get { return this.airDetect; } set { if (value != null) { this.airDetect = value; } } } /// /// 当前入住人信息 /// public IList Customers { get { return this.customers; } set { if (value != null) { this.customers = value; } } } } public class ServiceModel { public string Code { get; set; } public string Name { get; set; } public int Status { get; set; } public string Color { get; set; } } public class AirDetectModel { public string Name { get; set; } public string Value { get; set; } } public class RoomInfoModel { public int HostID { get; set; } public string RoomNumber { get; set; } public string RoomStatus { get; set; } public string Identity { get; set; } public string HostStatus { get; set; } public string IP { get; set; } public int Port { get; set; } public bool PowerSupply { get; set; } } public class RoomCustomer { /// /// 0 身份证,1 护照,2 军官证,3 其他 /// public string idtype { get; set; } /// /// 证件号 /// public string idcard { get; set; } /// /// 姓名 /// public string customer { get; set; } /// /// 性别:男、女 /// public string sex { get; set; } /// /// 0 国内,1 国际 /// public string country { get; set; } /// /// 入住时间 /// public DateTime checkindate { get; set; } /// /// 电话号码 /// public string phoneNumber { get; set; } } }