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; }
|
/// <summary>
|
/// 设备编号
|
/// </summary>
|
public int Devid { get; set; }
|
/// <summary>
|
/// 无线模块IP地址
|
/// </summary>
|
public string WirelessIP { get; set; }
|
/// <summary>
|
/// 地址号
|
/// </summary>
|
public int WirelessNum { get; set; } = 0;
|
/// <summary>
|
/// 是否可以使用
|
/// </summary>
|
public bool Available { get; set; }
|
/// <summary>
|
/// 否为呼叫器 是为门控制
|
/// </summary>
|
public bool IsIOmodule { get; set; }
|
/// <summary>
|
/// 说明
|
/// </summary>
|
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;
|
}
|
}
|
}
|