using SqlSugar;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading;
using WCS.Data;
using WCS.Data.Models;
namespace WCS_Client.Frm
{
public class WCS_PLC
{
#region 属性
[SugarColumn(IsPrimaryKey = true)]
public string PLC_NAME { get; set; }
public string PLC_IP { get; set; }
public string PLC_EQUIPMENTTYPE { get; set; }
public bool PLC_ISENABLE { get; set; }
public bool PLC_CONNECTSTATUS { get; set; }
public int PLC_PORT { get; set; }
public int PLC_SLOT { get; set; }
public int PLC_RACK { get; set; }
///
/// WCS系统
///
public string PLC_WCSSYSTEM { get; set; }
public string PLC_NOTES { get; set; }
//DB集合
public List WCS_DBSet = new List();
//扫描的条码集合
[SugarColumn(IsIgnore = true)]
public List WCS_ScannSet { get; set; }
//设备信号集合
[SugarColumn(IsIgnore = true)]
public List WCS_EquipmentInfoSet { get; set; }
#endregion;
#region 函数
public void Init()
{
foreach (var item in WCS_DBSet)
{
item.DB_EQUDATA = new byte[item.DB_TOLLENGTH];
}
}
#endregion;
}
}