using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace Mesnac.Compressor.Entity { /// /// 单工位保存数据 /// public class stationPara { #region 显示数据 private string _state = ""; public string state { get { return _state; } set { _state = value; } } /// /// 检测值 /// private string _data = ""; public string data { get { return _data; } set { _data = value; } } #endregion #region 保存数据 //工作完成信号 public bool NewFlag = false; //工作请求信号 public bool AskWork= false; public bool QGCT = false; public bool subLine1 = false; public bool subLine2 = false; public bool subLine3 = false; /// /// 动盘扫码枪开关信号 /// public bool DP_OpenFlag = false; /// /// 当前工位是否重做 /// public bool ReWork = false; /// /// 是否重投 /// public bool Restart = false; /// /// /// public bool BarcodeUpdate = false; /// /// 物料条码是否上传 /// public bool MaterialBarcodeUpdate = false; /// /// 支线条码上传 /// public bool ZhiXianBarUp = false; /// /// 物料条码 /// public string MaterialBarcode = ""; /// /// 产品状态 /// public int ProductOkNg = 0; /// /// 机种ID /// public int machineID = 0; /// /// 任务号 /// public int MaskID = 0; public string RFIDNo { get; set; } public string productDate { get; set; } public string semibacode = ""; public string MainBarcode = ""; public string ProductBarcode = ""; private List _savedatalist = new List(); public List SavedataList { get { return _savedatalist; } set { _savedatalist = value; } } #endregion public List subLineList = new List(); } public class subLine { public string lineID = ""; public string barcode = ""; } public class dataUnite { public string actValue { get; set; } public string MaxValue { get; set; } public string MinValue { get; set; } public int result { get; set; } public string Remark { get; set; } } public class StationInfo { public string stationID = ""; public string StationCode = ""; public string StationName = ""; public string TableName = ""; public string PreTableName = ""; public int ParaCount = 0; public string StationType = ""; //add by yinzf 2023-3-2 //设备对应PLC的名称A1 public string PLCName = ""; /// /// PLC地址块号 /// public int PLCBlock = 0; public bool NGTakeStation = true; //end add public string lineID = ""; public string barcodeHead = ""; public bool IfMainline { get; set; }//是否是主线 /// /// 数据处理是否处理 /// public bool handle = true; public stationPara Data = new stationPara(); } public class MachineInfo { public string MachineName = ""; public string MachineID = ""; public int stationCount = 0; public StationInfo StationOne = new StationInfo(); public StationInfo StationTwo = new StationInfo(); } }