|
|
using System;
|
|
|
using System.Collections.Generic;
|
|
|
using System.Linq;
|
|
|
using SqlSugar;
|
|
|
namespace Models
|
|
|
{
|
|
|
/// <summary>
|
|
|
/// 辅助计算全局数据记录表
|
|
|
///</summary>
|
|
|
[SugarTable("glbcaldata")]
|
|
|
public class Glbcaldata
|
|
|
{
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// 备 注:主键
|
|
|
/// 默认值:
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName="id" ,IsPrimaryKey = true,IsIdentity = true) ]
|
|
|
public int Id { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 备 注:产品码编号
|
|
|
/// 默认值:
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName="lastProduceId" ) ]
|
|
|
public int LastProduceId { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 备 注:产品码起始条码头
|
|
|
/// 默认值:
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName="ProducePreSn" ) ]
|
|
|
public string? ProducePreSn { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 备 注:当前生产的机种ID
|
|
|
/// 默认值:
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName="curmodelId" ) ]
|
|
|
public int? CurmodelId { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 备 注:线路id,即对应cfglineattr的主键
|
|
|
/// 默认值:
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName="lineid" ) ]
|
|
|
public int? Lineid { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 备 注:暂不用(0 - 未启动;1 - 正常; 2 - 预停止)
|
|
|
/// 默认值:
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName="curmodelstatus" ) ]
|
|
|
public int? Curmodelstatus { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 备 注:暂不用(当前机种切换表cfgproductswitch中的id)
|
|
|
/// 默认值:
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName="curswitchid" ) ]
|
|
|
public int? Curswitchid { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 备 注:负责人姓名,界面手工填写,plc可不填
|
|
|
/// 默认值:
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName="chargername" ) ]
|
|
|
public string? Chargername { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 备 注:启动时间
|
|
|
/// 默认值:
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName="starttime" ) ]
|
|
|
public DateTime? Starttime { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 备 注:结束时间
|
|
|
/// 默认值:
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName="stoptime" ) ]
|
|
|
public DateTime? Stoptime { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 备 注:状态 0-未启动 1-进行中 2-结束
|
|
|
/// 默认值:
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName="status" ) ]
|
|
|
public int Status { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 备 注:操作人员-账户,即上位机登录账户
|
|
|
/// 默认值:
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName="opername" ) ]
|
|
|
public string? Opername { get; set; }
|
|
|
|
|
|
/// <summary>
|
|
|
/// 备 注:包含该机种所含工位代码集合,用','分割,例如'OP10,OP20'
|
|
|
/// 默认值:
|
|
|
///</summary>
|
|
|
[SugarColumn(ColumnName="includestation" ) ]
|
|
|
public string? Includestation { get; set; }
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
} |