using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.Linq; using System.Text; using System.Threading.Tasks; namespace WIDESEA_Common { //4 10004 192.168.10.111 502 True False 模块1 1000,8600 16,16 0,8000 16,16 //这个是我数块的IP跟模块配置了的DI DO的数量已经modbus的地址位 //这个是数据存储的类 public class Wireless_Entity { [Key] public int id { get; set; } /// /// 设备编号 /// public int Devid { get; set; } /// /// 无线模块IP地址 /// public string WirelessIP { get; set; } /// /// 地址号 /// public int WirelessNum { get; set; } = 0; /// /// 是否可以使用 /// public bool Available { get; set; } /// /// 否为呼叫器 是为门控制 /// public bool IsIOmodule { get; set; } /// /// 说明 /// public string Remark { get; set; } public string DIAdds { get; set; } public string DICounts { get; set; } public string DOAdds { get; set; } public string DOCounts { get; set; } // public int DIlength { get; set; } // public int DOlength { get; set; } public Wireless_Entity Clone() { Wireless_Entity t = new Wireless_Entity() { Devid = this.Devid, WirelessIP = this.WirelessIP, WirelessNum = this.WirelessNum, Available = this.Available, Remark = this.Remark, }; return t; } } }