namespace RIZO.Model.Mes.WorkOrder { /// /// 工单主表 /// [SugarTable("work_order")] public class WorkOrderInfo { /// /// 主键ID /// [SugarColumn(IsPrimaryKey = true, IsIdentity = true)] public long Id { get; set; } /// /// 工单编码(业务唯一标识) /// [SugarColumn(ColumnName = "work_order_code")] public string WorkOrderCode { get; set; } /// /// 工艺编码 /// [SugarColumn(ColumnName = "process_code")] public string ProcessCode { get; set; } /// /// 工艺名称 /// [SugarColumn(ColumnName = "process_name")] public string ProcessName { get; set; } /// /// 产线Code /// [SugarColumn(ColumnName = "line_code")] public string LineCode { get; set; } /// /// 产线名称 /// [SugarColumn(ColumnName = "line_name")] public string LineName { get; set; } /// /// 订单日期 /// [SugarColumn(ColumnName = "order_date")] public DateTime? OrderDate { get; set; } /// /// 产品编码 /// [SugarColumn(ColumnName = "product_code")] public string ProductCode { get; set; } /// /// 产品信息 /// [SugarColumn(ColumnName = "product_name")] public string ProductName { get; set; } /// /// 工单总数(非负) /// [SugarColumn(ColumnName = "total_qty")] public int TotalQty { get; set; } /// /// 合格数(非负) /// [SugarColumn(ColumnName = "ok_qty")] public int OkQty { get; set; } /// /// 不合格数(非负) /// [SugarColumn(ColumnName = "ng_qty")] public int NgQty { get; set; } /// /// 不良原因描述 /// [SugarColumn(ColumnName = "defect_reason")] public string DefectReason { get; set; } /// /// 工单状态(0-待执行、1-执行中、2-已完成、3-已取消) /// [SugarColumn(ColumnName = "order_status")] public int OrderStatus { get; set; } /// /// 创建人ID /// [SugarColumn(ColumnName = "create_by")] public string CreateBy { get; set; } /// /// 创建人名字 /// [SugarColumn(ColumnName = "create_name")] public string CreateName { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName = "create_time")] public DateTime? CreateTime { get; set; } /// /// 更新人ID /// [SugarColumn(ColumnName = "update_by")] public string UpdateBy { get; set; } /// /// 更新人名字 /// [SugarColumn(ColumnName = "update_name")] public string UpdateName { get; set; } /// /// 更新时间 /// [SugarColumn(ColumnName = "update_time")] public DateTime? UpdateTime { get; set; } } }