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