You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
221 lines
4.4 KiB
C#
221 lines
4.4 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace Mesnac.Compressor.Entity
|
|
{
|
|
/// <summary>
|
|
/// 单工位保存数据
|
|
/// </summary>
|
|
public class stationPara
|
|
{
|
|
#region 显示数据
|
|
private string _state = "";
|
|
public string state
|
|
{
|
|
get
|
|
{
|
|
return _state;
|
|
}
|
|
set
|
|
{
|
|
_state = value;
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 检测值
|
|
/// </summary>
|
|
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;
|
|
|
|
/// <summary>
|
|
/// 动盘扫码枪开关信号
|
|
/// </summary>
|
|
public bool DP_OpenFlag = false;
|
|
|
|
/// <summary>
|
|
/// 当前工位是否重做
|
|
/// </summary>
|
|
public bool ReWork = false;
|
|
|
|
/// <summary>
|
|
/// 是否重投
|
|
/// </summary>
|
|
public bool Restart = false;
|
|
|
|
/// <summary>
|
|
///
|
|
/// </summary>
|
|
public bool BarcodeUpdate = false;
|
|
|
|
|
|
/// <summary>
|
|
/// 物料条码是否上传
|
|
/// </summary>
|
|
public bool MaterialBarcodeUpdate = false;
|
|
|
|
/// <summary>
|
|
/// 支线条码上传
|
|
/// </summary>
|
|
public bool ZhiXianBarUp = false;
|
|
|
|
/// <summary>
|
|
/// 物料条码
|
|
/// </summary>
|
|
public string MaterialBarcode = "";
|
|
|
|
/// <summary>
|
|
/// 产品状态
|
|
/// </summary>
|
|
public int ProductOkNg = 0;
|
|
|
|
/// <summary>
|
|
/// 机种ID
|
|
/// </summary>
|
|
public int machineID = 0;
|
|
|
|
/// <summary>
|
|
/// 任务号
|
|
/// </summary>
|
|
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<dataUnite> _savedatalist = new List<dataUnite>();
|
|
public List<dataUnite> SavedataList
|
|
{
|
|
get
|
|
{
|
|
return _savedatalist;
|
|
}
|
|
set
|
|
{
|
|
_savedatalist = value;
|
|
}
|
|
}
|
|
|
|
#endregion
|
|
|
|
public List<subLine> subLineList = new List<subLine>();
|
|
|
|
}
|
|
|
|
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 = "";
|
|
/// <summary>
|
|
/// PLC地址块号
|
|
/// </summary>
|
|
public int PLCBlock = 0;
|
|
|
|
public bool NGTakeStation = true;
|
|
|
|
//end add
|
|
|
|
public string lineID = "";
|
|
public string barcodeHead = "";
|
|
public bool IfMainline
|
|
{ get; set; }//是否是主线
|
|
|
|
/// <summary>
|
|
/// 数据处理是否处理
|
|
/// </summary>
|
|
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();
|
|
|
|
}
|
|
|
|
|
|
}
|