using System; using System.Collections.Generic; using System.Linq; using SqlSugar; namespace ZR.Model.mes.pro { /// /// 生产任务 /// [SugarTable("pro_worktask")] public class ProWorktask { /// /// 生产任务id /// [SugarColumn(ColumnName="task_id" ,IsPrimaryKey = true ,IsIdentity = true )] public int TaskId { get; set; } /// /// 生产任务code /// [SugarColumn(ColumnName="task_code" )] public string TaskCode { get; set; } /// /// 生产计划ID /// [SugarColumn(ColumnName="workorder_id" )] public string WorkorderId { get; set; } /// /// 生产计划编号 /// [SugarColumn(ColumnName="workorder_code" )] public string WorkorderCode { get; set; } /// /// 计划名称 /// [SugarColumn(ColumnName="workorder_name" )] public string WorkorderName { get; set; } /// /// 工序id /// [SugarColumn(ColumnName="process_id" )] public int? ProcessId { get; set; } /// /// 工序编码 /// [SugarColumn(ColumnName="process_code" )] public string ProcessCode { get; set; } /// /// 工序名称 /// [SugarColumn(ColumnName="process_name" )] public string ProcessName { get; set; } /// /// 物料id /// [SugarColumn(ColumnName="material_id" )] public int? MaterialId { get; set; } /// /// 物料编码 /// [SugarColumn(ColumnName="material_code" )] public string MaterialCode { get; set; } /// /// 物料名称 /// [SugarColumn(ColumnName="material_name" )] public string MaterialName { get; set; } /// /// 单位 /// [SugarColumn(ColumnName="unit" )] public string Unit { get; set; } /// /// 排产数量 /// [SugarColumn(ColumnName="quantity" )] public decimal? Quantity { get; set; } /// /// 已经生产数量 /// [SugarColumn(ColumnName="quantity_produced" )] public decimal? QuantityProduced { get; set; } /// /// 合格品数量 /// [SugarColumn(ColumnName="quantity_quanlify" )] public decimal? QuantityQuanlify { get; set; } /// /// 不良品数量 /// [SugarColumn(ColumnName="quantity_unquanlify" )] public decimal? QuantityUnquanlify { get; set; } /// /// 开始生产时间 /// [SugarColumn(ColumnName="start_time" )] public DateTime? StartTime { get; set; } /// /// 生产时长 /// [SugarColumn(ColumnName="duration" )] public decimal? Duration { get; set; } /// /// 完成生产时间 /// [SugarColumn(ColumnName="end_time" )] public DateTime? EndTime { get; set; } /// /// 甘特图显示颜色 /// [SugarColumn(ColumnName="color_code" )] public string ColorCode { get; set; } /// /// 需求日期 /// [SugarColumn(ColumnName="request_date" )] public string RequestDate { get; set; } /// /// 生产状态 /// [SugarColumn(ColumnName="status" )] public string Status { get; set; } /// /// 备注 /// [SugarColumn(ColumnName="remark" )] public string Remark { get; set; } /// /// 预留字段1 /// [SugarColumn(ColumnName="attr1" )] public string Attr1 { get; set; } /// /// 预留字段2 /// [SugarColumn(ColumnName="attr2" )] public string Attr2 { get; set; } /// /// 预留字段3 /// [SugarColumn(ColumnName="attr3" )] public string Attr3 { get; set; } /// /// 预留字段4 /// [SugarColumn(ColumnName="attr4" )] public string Attr4 { get; set; } /// /// 租户号 /// [SugarColumn(ColumnName="TENANT_ID" )] public string TenantId { get; set; } /// /// 乐观锁 /// [SugarColumn(ColumnName="REVISION" )] public int? Revision { get; set; } /// /// 创建人 /// [SugarColumn(ColumnName="CREATED_BY" )] public string CreatedBy { get; set; } /// /// 创建时间 /// [SugarColumn(ColumnName="CREATED_TIME" )] public DateTime? CreatedTime { get; set; } /// /// 更新人 /// [SugarColumn(ColumnName="UPDATED_BY" )] public string UpdatedBy { get; set; } /// /// 更新时间 /// [SugarColumn(ColumnName="UPDATED_TIME" )] public DateTime? UpdatedTime { get; set; } } }