using Microsoft.EntityFrameworkCore; using System; using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using System.ComponentModel.DataAnnotations.Schema; using System.Linq; using System.Text; using System.Threading.Tasks; namespace iWare.Wms.Core { /// /// 修改表WorkPieceInfo记得同步修改WorkPieceInfoLog表 /// [Table("WorkPieceLog")] [Comment("工件接收信息履历表")] public class WorkPieceLog : DEntityBase { /// /// 数据来源 /// public string DataCapturePointCname { get; set; } /// /// 工件号 /// [Comment("工件号")] [Required, MaxLength(32)] public string WorkPieceID { get; set; } /// /// 供应商 /// [Comment("供应商")] [MaxLength(2)] public string WorkPieceIDTo1 { get; set; } /// /// 零件设计尾号 /// [Comment("零件设计尾号")] [MaxLength(4)] public string WorkPieceIDTo2 { get; set; } /// /// 年月日 /// [Comment("年月日")] [MaxLength(6)] public string WorkPieceIDTo3 { get; set; } /// /// 班次 /// [Comment("班次")] [MaxLength(2)] public string WorkPieceIDTo4 { get; set; } /// /// 流水号 /// [Comment("流水号")] [MaxLength(4)] public string WorkPieceIDTo5 { get; set; } /// /// 模具号 /// [Comment("模具号")] [MaxLength(2)] public string WorkPieceIDTo6 { get; set; } /// /// 炉号 /// [Comment("炉号")] [MaxLength(2)] public string WorkPieceIDTo7 { get; set; } /// /// 工序代号 /// [Comment("工序代号")] [MaxLength(32)] public string WorkingProcedure { get; set; } /// /// 监控点代号 /// [Comment("监控点代号")] [MaxLength(32)] public string MonitoringPoint { get; set; } /// /// 质量状态 /// [Comment("质量状态")] public int QualityState { get; set; } /// /// 设备编号 /// [Comment("设备编号")] [MaxLength(32)] public string EquipmentID { get; set; } /// /// 上线时间 /// [Comment("上线时间")] public DateTime OnlineTime { get; set; } /// /// 下线时间 /// [Comment("下线时间")] public DateTime OfflineTime { get; set; } /// /// 加工时长 /// [Comment("加工时长")] public int ProcessingDuration { get; set; } /// /// 机床状态 /// [Comment("机床状态")] public int MachineToolState { get; set; } /// /// 报警类型 /// [Comment("报警类型")] [MaxLength(32)] public int AlertType { get; set; } /// /// 报警内容 /// [Comment("报警内容")] [MaxLength(255)] public string AlertMsg { get; set; } /// /// 工件件数信息 /// [Comment("工件件数信息")] public int WorkPieceNumber { get; set; } /// /// 工件上料时间 /// [Comment("工件上料时间")] public DateTime WorkPieceOnlineTime { get; set; } /// /// 工件下料时间 /// [Comment("工件下料时间")] public DateTime WorkPieceOfflineTime { get; set; } /// /// 工件加工开始时间 /// [Comment("工件加工开始时间")] public DateTime WorkPieceStartMachiningTime { get; set; } /// /// 工件加工结束时间 /// [Comment("工件加工结束时间")] public DateTime WorkPieceEndMachiningTime { get; set; } /// /// 刀具编号 /// [Comment("刀具编号")] [MaxLength(32)] public string KnifeToolID { get; set; } /// /// 刀具名称 /// [Comment("刀具名称")] [MaxLength(32)] public string KnifeToolName { get; set; } /// /// 刀具码 /// [Comment("刀具码")] [MaxLength(32)] public string KnifeToolCode { get; set; } /// /// 刀具型号 /// [Comment("刀具型号")] [MaxLength(32)] public string KnifeToolModel { get; set; } /// /// 刀沿数 /// [Comment("刀沿数")] public int KnifeEdgeNumber { get; set; } /// /// 刀具内部号 /// [Comment("刀具内部号")] [MaxLength(32)] public string KnifeToolinsideID { get; set; } /// /// 刀库号 /// [Comment("刀库号")] [MaxLength(32)] public string KnifeWarehouseID { get; set; } /// /// 刀位编号 /// [Comment("刀位编号")] [MaxLength(32)] public string KnifePositionID { get; set; } /// /// 额定寿命 /// [Comment("额定寿命")] public int KnifeToolLife { get; set; } /// /// 预警寿命 /// [Comment("预警寿命")] public int KnifeToolEarlyWarningLife { get; set; } /// /// 剩余寿命 /// [Comment("剩余寿命")] public int KnifeToolSurplusLife { get; set; } /// /// 备注 /// [Comment("备注")] [MaxLength(255)] public string Remarks { get; set; } /// /// 备注 /// [Comment("备注")] [MaxLength(255)] public string MyRemarks { get; set; } /// /// 日志类型 /// [Comment("日志类型")] public int? PieceLogType { get; set; } /// /// 日志类型 /// [Comment("日志类型")] [MaxLength(255)] public string PieceLogTypeName { get; set; } } }