using AUCMA.STORE.DeviceAdapter; using AUCMA.STORE.Entity.Enums; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace AUCMA.STORE.Entity.DAO { /// /// 设备信息 /// public class BaseDeviceInfo { public BaseDeviceInfo() { } public BaseDeviceInfo(UInt16 m_iDeviceId,string m_plcName, string m_strConnectStr, string m_strDeviceType, LocationArea m_plcArea) { this.m_iDeviceId = m_iDeviceId; this.m_plcName = m_plcName; this.m_strConnectStr = m_strConnectStr; this.m_strDeviceType = m_strDeviceType; this.m_plcArea = m_plcArea; } /// /// 设备ID /// public UInt16 m_iDeviceId = 0; //设备ID public string m_plcName = ""; /// /// 连接字符串 /// public string m_strConnectStr = null; //连接字符串 /// /// 连接方式 /// public byte m_iConnectMode = 1; //连接方式 /// /// 设备类型 /// public string m_strDeviceType = ""; //设备类型 /// /// 设备类 /// public IDeviceAdapter m_IDeviceAdapter = null; /// /// 连接状态,初始化0,1已连接,0未连接 /// public byte m_ConnectState = 0; //连接状态,初始化0,1已连接,0未连接 public LocationArea m_plcArea; } }