173 lines
4.8 KiB
C#
173 lines
4.8 KiB
C#
|
||
using SqlSugar;
|
||
|
||
namespace RIZO.Admin.WebApi.PLC.Model
|
||
{
|
||
/// <summary>
|
||
/// 产线PLC生产参数数据表
|
||
/// </summary>
|
||
[SugarTable("plc_production_data")]
|
||
public class PlcProductionData
|
||
{
|
||
/// <summary>
|
||
/// 主键ID
|
||
/// </summary>
|
||
[SugarColumn(IsPrimaryKey = true, IsIdentity = true)]
|
||
public int Id { get; set; }
|
||
|
||
/// <summary>
|
||
/// 产线编号(如line2)
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "line_code")]
|
||
public string LineCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 工站编码
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "workstationCode")]
|
||
public string WorkstationCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 工站名称
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "workstationName")]
|
||
public string WorkstationName { get; set; }
|
||
|
||
/// <summary>
|
||
/// PLC IP地址
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "plc_ip")]
|
||
public string PlcIp { get; set; }
|
||
|
||
/// <summary>
|
||
/// 产品编码
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "product_code")]
|
||
public string ProductCode { get; set; }
|
||
|
||
/// <summary>
|
||
/// 产品名称
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "product_name")]
|
||
public string ProductName { get; set; }
|
||
|
||
/// <summary>
|
||
/// 产品型号
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "product_model")]
|
||
public string ProductModel { get; set; }
|
||
|
||
/// <summary>
|
||
/// 参数名称
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "param_name")]
|
||
public string ParamName { get; set; }
|
||
|
||
/// <summary>
|
||
/// 参数值(兼容数值/字符串类型)
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "param_value")]
|
||
public string ParamValue { get; set; }
|
||
|
||
/// <summary>
|
||
/// 数据发生时间(系统时间)
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "occur_time")]
|
||
public DateTime? OccurTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 合格标志:0-默认,1-合格,2-不合格
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "qualification_flag")]
|
||
public string QualificationFlag { get; set; }
|
||
|
||
/// <summary>
|
||
/// 返工标志:0-正常,1-返工
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "rework_flag")]
|
||
public string ReworkFlag { get; set; }
|
||
|
||
/// <summary>
|
||
/// 生产节拍(秒)
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "production_cycle")]
|
||
public int? ProductionCycle { get; set; }
|
||
|
||
/// <summary>
|
||
/// 设备自动手动:0-自动,1-手动
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "automanual")]
|
||
public int? AutoManual { get; set; }
|
||
|
||
/// <summary>
|
||
/// 运行状态:1=空闲,2=运行中,3=故障;
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "runstatus")]
|
||
public int? RunStatus { get; set; }
|
||
|
||
/// <summary>
|
||
/// 托盘号
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "trayNo")]
|
||
public string TrayNo { get; set; }
|
||
|
||
/// <summary>
|
||
/// 生产模式
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "produceModel")]
|
||
public string ProduceModel { get; set; }
|
||
|
||
/// <summary>
|
||
/// 设备在线状态1=离线,0=在线
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "onlineStatus")]
|
||
public string OnlineStatus { get; set; }
|
||
/// <summary>
|
||
/// 备注
|
||
/// </summary>
|
||
public string Remark { get; set; }
|
||
|
||
/// <summary>
|
||
/// 创建人
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "cREATED_BY")]
|
||
public string CreatedBy { get; set; }
|
||
|
||
/// <summary>
|
||
/// 创建时间
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "cREATED_TIME")]
|
||
public DateTime? CreatedTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 更新人
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "uPDATED_BY")]
|
||
public string UpdatedBy { get; set; }
|
||
|
||
/// <summary>
|
||
/// 更新时间
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "uPDATED_TIME")]
|
||
public DateTime? UpdatedTime { get; set; }
|
||
|
||
/// <summary>
|
||
/// 条码查询
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "SN_1")]
|
||
public string SN1 { get; set; }
|
||
|
||
/// <summary>
|
||
/// 结果上传条码
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "SN_2")]
|
||
public string SN2 { get; set; }
|
||
|
||
/// <summary>
|
||
/// 相机结果1,OK,2,NG
|
||
/// </summary>
|
||
[SugarColumn(ColumnName = "cameraResult")]
|
||
public string CameraResult { get; set; }
|
||
|
||
}
|
||
} |