diff --git a/ZR.Model/MES/op/OpWorkorderSchedule.cs b/ZR.Model/MES/op/OpWorkorderSchedule.cs new file mode 100644 index 00000000..a15db61c --- /dev/null +++ b/ZR.Model/MES/op/OpWorkorderSchedule.cs @@ -0,0 +1,66 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ZR.Model.MES.op +{ + /// + /// 工单生产进度表 + /// + [SugarTable("op_workorder_schedule")] + public class OpWorkorderSchedule + { + /// + /// 流水号 + /// + [SugarColumn(ColumnName = "id", IsPrimaryKey = true)] + public string Id { get; set; } + + /// + /// 生产工单id + /// + [SugarColumn(ColumnName = "fk_pro_order_id")] + public string FkProOrderId { get; set; } + + /// + /// 总量 + /// + [SugarColumn(ColumnName = "total")] + public int? Total { get; set; } + + /// + /// 完成量 + /// + [SugarColumn(ColumnName = "completed")] + public int? Completed { get; set; } + + /// + /// 未完成量 + /// + [SugarColumn(ColumnName = "unfinished")] + public int? Unfinished { 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; } + } +} diff --git a/ZR.Model/MES/qu/QuRough.cs b/ZR.Model/MES/qu/QuRough.cs new file mode 100644 index 00000000..6c59d826 --- /dev/null +++ b/ZR.Model/MES/qu/QuRough.cs @@ -0,0 +1,85 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace ZR.Model.MES.qu +{ + /// + /// 毛坯统计表 + /// + [SugarTable("qu_rough")] + public class QuRough + { + /// + /// 流水号 + /// + [SugarColumn(ColumnName = "id", IsPrimaryKey = true)] + public string Id { get; set; } + + /// + /// 生产工单id + /// + [SugarColumn(ColumnName = "fk_pro_order_id")] + public string FkProOrderId { get; set; } + + /// + /// 需要数量 + /// + [SugarColumn(ColumnName = "require_num")] + public int? RequireNum { get; set; } + + /// + /// 实际数量 + /// + [SugarColumn(ColumnName = "actual_number")] + public int? ActualNumber { get; set; } + + /// + /// 合格数 + /// + [SugarColumn(ColumnName = "oks")] + public int? Oks { get; set; } + + /// + /// 不合格数 + /// + [SugarColumn(ColumnName = "ngs")] + public string Ngs { get; set; } + + /// + /// 合格率 + /// + [SugarColumn(ColumnName = "oks_ratio")] + public string OksRatio { get; set; } + + + /// + /// 是否上料 + /// + [SugarColumn(ColumnName = "isFeeding")] + public int IsFeeding { 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; } + } +} diff --git a/ZR.Model/ZR.Model.csproj b/ZR.Model/ZR.Model.csproj index d8ec2149..318b0d47 100644 --- a/ZR.Model/ZR.Model.csproj +++ b/ZR.Model/ZR.Model.csproj @@ -24,4 +24,8 @@ + + + + diff --git a/ZR.Service/mes/qu/IService/IQuRoughService.cs b/ZR.Service/mes/qu/IService/IQuRoughService.cs new file mode 100644 index 00000000..7335e65f --- /dev/null +++ b/ZR.Service/mes/qu/IService/IQuRoughService.cs @@ -0,0 +1,14 @@ +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using ZR.Model.MES.qu; + + +namespace ZR.Service.mes.qu.IService +{ + public interface IQuRoughService + { + } +} diff --git a/ZR.Service/mes/qu/QuRoughService.cs b/ZR.Service/mes/qu/QuRoughService.cs new file mode 100644 index 00000000..d6ba0f55 --- /dev/null +++ b/ZR.Service/mes/qu/QuRoughService.cs @@ -0,0 +1,17 @@ +using Infrastructure.Attribute; +using Microsoft.Extensions.DependencyInjection; +using SqlSugar; +using System; +using System.Collections.Generic; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using ZR.Model.MES.qu; + +namespace ZR.Service.mes.qu +{ + public class QuRoughService + { + } +}