diff --git a/API/TaskManager.Contracts/Dtos/01_09/Class1.cs b/API/TaskManager.Contracts/Dtos/01_09/Class1.cs
deleted file mode 100644
index 6caa457..0000000
--- a/API/TaskManager.Contracts/Dtos/01_09/Class1.cs
+++ /dev/null
@@ -1,12 +0,0 @@
-using System;
-using System.Collections.Generic;
-using System.Linq;
-using System.Text;
-using System.Threading.Tasks;
-
-namespace TaskManager.Contracts.Dtos._01_09
-{
- internal class Class1
- {
- }
-}
diff --git a/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_BOM_DTO.cs b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_BOM_DTO.cs
new file mode 100644
index 0000000..2198333
--- /dev/null
+++ b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_BOM_DTO.cs
@@ -0,0 +1,100 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using TaskManager.Contracts.Dtos;
+
+namespace TaskManager.Contracts.Dtos
+{
+ ///
+ /// BOM主数据
+ ///
+ public class SUPPLIER_BOM_DTO : BaseEntityDto
+ {
+ ///
+ /// 供应商代码
+ ///
+ public string SupplierCode { get; set; }
+
+ ///
+ /// 供应商名称
+ ///
+ public string SupplierName { get; set; }
+
+ ///
+ /// BOM编码
+ ///
+ public string BomCode { get; set; }
+
+ ///
+ /// BOM名称
+ ///
+ public string BomName { get; set; }
+
+ ///
+ /// BOM版本
+ ///
+ public string BomVersion { get; set; }
+
+ ///
+ /// 奇瑞零件号
+ ///
+ public string CheryProductNo { get; set; }
+
+ ///
+ /// 奇瑞零件名称
+ ///
+ public string CheryProductName { get; set; }
+
+ ///
+ /// 供应商父件编码
+ ///
+ public string VendorProductNo { get; set; }
+
+ ///
+ /// 供应商父件名称
+ ///
+ public string VendorProductName { get; set; }
+
+ ///
+ /// 父件类型(成品, 半成品)
+ ///
+ public string VendorProductType { get; set; }
+
+ ///
+ /// 父件单位
+ ///
+ public string MaterialUnit { get; set; }
+
+ ///
+ /// 子件编码
+ ///
+ public string SubMaterialCode { get; set; }
+
+ ///
+ /// 子件名称
+ ///
+ public string SubMaterialName { get; set; }
+
+ ///
+ /// 子件类型(半成品, 原材料)
+ ///
+ public string SubMaterialType { get; set; }
+
+ ///
+ /// 子件单位
+ ///
+ public string SubMaterialUnit { get; set; }
+
+ ///
+ /// 子件用量
+ ///
+ public decimal SubMaterialQuota { get; set; }
+
+ ///
+ /// BOM变更时间,格式(yyyy-MM-dd HH:mm:ss)
+ ///
+ public string DataUpdateTime { get; set; }
+ }
+}
diff --git a/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_EMPLOYEE_DTO.cs b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_EMPLOYEE_DTO.cs
new file mode 100644
index 0000000..54be819
--- /dev/null
+++ b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_EMPLOYEE_DTO.cs
@@ -0,0 +1,110 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using TaskManager.Contracts.Dtos;
+
+namespace TaskManager.Contracts.Dtos
+{
+ ///
+ /// 人员资质信息
+ ///
+ public class SUPPLIER_EMPLOYEE_DTO : BaseEntityDto
+ {
+ ///
+ /// 供应商代码
+ ///
+ public string SupplierCode { get; set; }
+
+ ///
+ /// 供应商名称
+ ///
+ public string SupplierName { get; set; }
+
+ ///
+ /// 工厂代码
+ ///
+ public string PlantId { get; set; }
+
+ ///
+ /// 工厂名称
+ ///
+ public string PlantName { get; set; }
+
+ ///
+ /// 车间代码
+ ///
+ public string WorkshopId { get; set; }
+
+ ///
+ /// 车间名称
+ ///
+ public string WorkshopName { get; set; }
+
+ ///
+ /// 产线代码
+ ///
+ public string ProductionLineId { get; set; }
+
+ ///
+ /// 产线名称
+ ///
+ public string ProductionLineName { get; set; }
+
+ ///
+ /// 工位代码
+ ///
+ public string StationId { get; set; }
+
+ ///
+ /// 工位名称
+ ///
+ public string StationName { get; set; }
+
+ ///
+ /// 工位人员账号
+ ///
+ public string OperatorId { get; set; }
+
+ ///
+ /// 工位人员姓名
+ ///
+ public string OperatorName { get; set; }
+
+ ///
+ /// 是否有资质(Y,N)
+ ///
+ public bool HaveQuantity { get; set; }
+
+ ///
+ /// 供应商修改时间,格式(yyyy-MM-dd HH:mm:ss)
+ ///
+ public string DataUpdateTime { get; set; }
+
+ ///
+ /// 岗位代码
+ ///
+ public string PositionId { get; set; }
+
+ ///
+ /// 岗位名称
+ ///
+ public string PositionName { get; set; }
+
+ ///
+ /// 资质等级(Level_4,Level_3,Level_2, Level_1)
+ ///
+ public string QualificationLevel { get; set; }
+
+ ///
+ /// 资质获取时间
+ ///
+ public string CheckInTime { get; set; }
+
+ ///
+ /// 资质失去时间
+ ///
+ public string CheckOutTime { get; set; }
+ }
+}
diff --git a/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_INFO_DTO.cs b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_INFO_DTO.cs
new file mode 100644
index 0000000..bffe9eb
--- /dev/null
+++ b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_INFO_DTO.cs
@@ -0,0 +1,105 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using TaskManager.Contracts.Dtos;
+
+namespace TaskManager.Contracts.Dtos
+{
+ ///
+ /// 供应商基础信息
+ ///
+ public class SUPPLIER_INFO_DTO : BaseEntityDto
+ {
+ ///
+ /// 供应商代码
+ ///
+ public string SupplierCode { get; set; }
+
+ ///
+ /// 供应商名称
+ ///
+ public string SupplierName { get; set; }
+
+ ///
+ /// 工厂代码
+ ///
+ public string PlantId { get; set; }
+
+ ///
+ /// 工厂名称
+ ///
+ public string PlantName { get; set; }
+
+ ///
+ /// 车间代码
+ ///
+ public string WorkshopId { get; set; }
+
+ ///
+ /// 车间名称
+ ///
+ public string WorkshopName { get; set; }
+
+ ///
+ /// 产线代码
+ ///
+ public string ProductionLineId { get; set; }
+
+ ///
+ /// 产线名称
+ ///
+ public string ProductionLineName { get; set; }
+
+ ///
+ /// 工位代码
+ ///
+ public string StationId { get; set; }
+
+ ///
+ /// 工位名称
+ ///
+ public string StationName { get; set; }
+
+ ///
+ /// 是否关键工位(Y/N)
+ ///
+ public bool KeyStation { get; set; }
+
+ ///
+ /// 供应商修改时间,格式(yyyy-MM-dd HH:mm:ss)
+ ///
+ public string DataUpdateTime { get; set; }
+
+ ///
+ /// 产线顺序
+ ///
+ public int ProductionLineOrder { get; set; }
+
+ ///
+ /// 工位顺序
+ ///
+ public int StationOrder { get; set; }
+
+ ///
+ /// 供应商总成零件号
+ ///
+ public string VendorProductNo { get; set; }
+
+ ///
+ /// 供应商总成零件名称
+ ///
+ public string VendorProductName { get; set; }
+
+ ///
+ /// 奇瑞零件号
+ ///
+ public string CheryProductNo { get; set; }
+
+ ///
+ /// 奇瑞零件名称
+ ///
+ public string CheryProductName { get; set; }
+ }
+}
diff --git a/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_CPS_DTO.cs b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_CPS_DTO.cs
new file mode 100644
index 0000000..7260019
--- /dev/null
+++ b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_CPS_DTO.cs
@@ -0,0 +1,255 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using TaskManager.Contracts.Dtos;
+
+namespace TaskManager.Contracts.Dtos
+{
+ ///
+ /// 过程控制项质量数据
+ ///
+ public class SUPPLIER_PRO_CPS_DTO : BaseEntityDto
+ {
+ ///
+ /// 供应商代码
+ ///
+ public string SupplierCode { get; set; }
+
+ ///
+ /// 供应商名称
+ ///
+ public string SupplierName { get; set; }
+
+ ///
+ /// 供应商总成零件号
+ ///
+ public string VendorProductNo { get; set; }
+
+ ///
+ /// 供应商总成零件名称
+ ///
+ public string VendorProductName { get; set; }
+
+ ///
+ /// 供应商总成SN码
+ ///
+ public string VendorProductSn { get; set; }
+
+ ///
+ /// 供应商总成批次号
+ ///
+ public string VendorProductBatch { get; set; }
+
+ ///
+ /// 奇瑞零件号
+ ///
+ public string CheryProductNo { get; set; }
+
+ ///
+ /// 奇瑞零件名称
+ ///
+ public string CheryProductName { get; set; }
+
+ ///
+ /// 奇瑞SN码
+ ///
+ public string CheryProductSn { get; set; }
+
+ ///
+ /// 生产批次号
+ ///
+ public string ProductBatchNo { get; set; }
+
+ ///
+ /// 生产工单号
+ ///
+ public string ManufactureNo { get; set; }
+
+ ///
+ /// 工厂代码
+ ///
+ public string PlantId { get; set; }
+
+ ///
+ /// 工厂名称
+ ///
+ public string PlantName { get; set; }
+
+ ///
+ /// 车间代码
+ ///
+ public string WorkshopId { get; set; }
+
+ ///
+ /// 车间名称
+ ///
+ public string WorkshopName { get; set; }
+
+ ///
+ /// 产线代码
+ ///
+ public string ProductionLineId { get; set; }
+
+ ///
+ /// 产线名称
+ ///
+ public string ProductionLineName { get; set; }
+
+ ///
+ /// 工位代码
+ ///
+ public string StationId { get; set; }
+
+ ///
+ /// 工位名称
+ ///
+ public string StationName { get; set; }
+
+ ///
+ /// 工位人员编号
+ ///
+ public string EmpCode { get; set; }
+
+ ///
+ /// 工位人员姓名
+ ///
+ public string EmpName { get; set; }
+
+ ///
+ /// 控制项名称
+ ///
+ public string VendorFieldName { get; set; }
+
+ ///
+ /// 控制项代码
+ ///
+ public string VendorFieldCode { get; set; }
+
+ ///
+ /// 控制项点位
+ ///
+ public string GatherSpot { get; set; }
+
+ ///
+ /// 控制项要求频率
+ ///
+ public decimal SamplingRate { get; set; }
+
+ ///
+ /// 上下限更新时间,格式(yyyy-MM-dd HH:mm:ss)
+ ///
+ public string LimitUpdateTime { get; set; }
+
+ ///
+ /// 控制项描述
+ ///
+ public string VendorFieldDesc { get; set; }
+
+ ///
+ /// 载体编码
+ ///
+ public string CarrierCode { get; set; }
+
+ ///
+ /// 投入数量
+ ///
+ public decimal IntputQty { get; set; }
+
+ ///
+ /// 一次合格数量
+ ///
+ public decimal FttQty { get; set; }
+
+ ///
+ /// 参数 , 是传Y,否传N
+ ///
+ public string Parameter { get; set; }
+
+ ///
+ /// 特性 , 是传Y,否传N
+ ///
+ public string Characteristic { get; set; }
+
+ ///
+ /// CC项 , 是传Y,否传N
+ ///
+ public bool Cc { get; set; }
+
+ ///
+ /// SC项 , 是传Y,否传N
+ ///
+ public bool Sc { get; set; }
+
+ ///
+ /// SPC , 是传Y,否传N
+ ///
+ public bool Spc { get; set; }
+
+ ///
+ /// 控制项标准值
+ ///
+ public string StandardValue { get; set; }
+
+ ///
+ /// 控制项上限
+ ///
+ public decimal UpperLimit { get; set; }
+
+ ///
+ /// 控制项下限
+ ///
+ public decimal LowerLimit { get; set; }
+
+ ///
+ /// 控制项实测值
+ ///
+ public decimal DecimalValue { get; set; }
+
+ ///
+ /// 控制项值的单位名称-中文
+ ///
+ public string UnitCn { get; set; }
+
+ ///
+ /// 控制项单位英文
+ ///
+ public string UnitEn { get; set; }
+
+ ///
+ /// 检测结果
+ ///
+ public string CheckResult { get; set; }
+
+ ///
+ /// 在线检测(inline,offline,both)
+ ///
+ public string DetectionMode { get; set; }
+
+ ///
+ /// 班次(白班,晚班,中班)
+ ///
+ public string WorkShift { get; set; }
+
+ ///
+ /// 采集时间,格式(yyyy-MM-dd HH:mm:ss)
+ ///
+ public string CollectTime { get; set; }
+
+ ///
+ /// 检测方式(人工,设备)
+ ///
+ public string CheckMode { get; set; }
+
+ ///
+ /// 检测设备编号
+ ///
+ public string DeviceCode { get; set; }
+
+ ///
+ /// 检测设备名称
+ ///
+ public string DeviceName { get; set; }
+ }
+}
diff --git a/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_DATA_DTO.cs b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_DATA_DTO.cs
new file mode 100644
index 0000000..408bdda
--- /dev/null
+++ b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_DATA_DTO.cs
@@ -0,0 +1,235 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using TaskManager.Contracts.Dtos;
+
+namespace TaskManager.Contracts.Dtos
+{
+ ///
+ /// 生产过程数据
+ ///
+ public class SUPPLIER_PRO_DATA_DTO : BaseEntityDto
+ {
+ ///
+ /// 供应商代码
+ ///
+ public string SupplierCode { get; set; }
+
+ ///
+ /// 供应商名称
+ ///
+ public string SupplierName { get; set; }
+
+ ///
+ /// 工厂代码
+ ///
+ public string PlantId { get; set; }
+
+ ///
+ /// 工厂名称
+ ///
+ public string PlantName { get; set; }
+
+ ///
+ /// 车间代码
+ ///
+ public string WorkshopId { get; set; }
+
+ ///
+ /// 车间名称
+ ///
+ public string WorkshopName { get; set; }
+
+ ///
+ /// 产线代码
+ ///
+ public string ProductionLineId { get; set; }
+
+ ///
+ /// 产线名称
+ ///
+ public string ProductionLineName { get; set; }
+
+ ///
+ /// 工位代码
+ ///
+ public string StationId { get; set; }
+
+ ///
+ /// 工位名称
+ ///
+ public string StationName { get; set; }
+
+ ///
+ /// 工位人员编号
+ ///
+ public string EmpCode { get; set; }
+
+ ///
+ /// 工位人员姓名
+ ///
+ public string EmpName { get; set; }
+
+ ///
+ /// 供应商总成零件名称
+ ///
+ public string VendorProductName { get; set; }
+
+ ///
+ /// 供应商总成零件号
+ ///
+ public string VendorProductNo { get; set; }
+
+ ///
+ /// 供应商总成批次号
+ ///
+ public string VendorProductBatch { get; set; }
+
+ ///
+ /// 供应商总成SN码
+ ///
+ public string VendorProductSn { get; set; }
+
+ ///
+ /// 子件编码
+ ///
+ public string SubProdNo { get; set; }
+
+ ///
+ /// 子件名称
+ ///
+ public string SubProdName { get; set; }
+
+ ///
+ /// 子件批次号
+ ///
+ public string SubBatchNo { get; set; }
+
+ ///
+ /// 子件分包号
+ ///
+ public string ChildPackageInfo { get; set; }
+
+ ///
+ /// 子件扣料数量
+ ///
+ public decimal SubProdNum { get; set; }
+
+ ///
+ /// 子件SN码
+ ///
+ public string SubProdSn { get; set; }
+
+ ///
+ /// 子件物料来源
+ ///
+ public string ChildSource { get; set; }
+
+ ///
+ /// 分供方代码
+ ///
+ public string SubSupplierCode { get; set; }
+
+ ///
+ /// 分供方名称(原注释“分分供方”可能为笔误,此处按“分供方”处理)
+ ///
+ public string SubSupplierName { get; set; }
+
+ ///
+ /// 奇瑞零件号
+ ///
+ public string CheryProductNo { get; set; }
+
+ ///
+ /// 奇瑞零件名称
+ ///
+ public string CheryProductName { get; set; }
+
+ ///
+ /// 奇瑞SN码
+ ///
+ public string CheryProductSn { get; set; }
+
+ ///
+ /// 生产工单号
+ ///
+ public string ManufactureNo { get; set; }
+
+ ///
+ /// 生产批次号
+ ///
+ public string ProductBatchNo { get; set; }
+
+ ///
+ /// 班次(白班,晚班,中班)
+ ///
+ public string WorkShift { get; set; }
+
+ ///
+ /// 进工位的时间,格式(yyyy-MM-dd HH:mm:ss)
+ ///
+ public string MaterialInputTime { get; set; }
+
+ ///
+ /// 出工位的时间,格式(yyyy-MM-dd HH:mm:ss)
+ ///
+ public string MaterialOutputTime { get; set; }
+
+ ///
+ /// 装配设备编号(原注释“vendorFieldNum”可能为“设备编号”,此处按业务逻辑命名)
+ ///
+ public string VendorFieldNum { get; set; }
+
+ ///
+ /// 装配设备名称
+ ///
+ public string VendorFieldName { get; set; }
+
+ ///
+ /// 设备判定的质量状态(合格与否,NG不合适 OK合适)
+ ///
+ public string InstrumentQualityStatus { get; set; }
+
+ ///
+ /// 人工判定的质量状态(合格与否,NG不合适 OK合适)
+ ///
+ public string ManualQualityStatus { get; set; }
+
+ ///
+ /// 最终质量状态(合格与否,NG不合适 OK合适)
+ ///
+ public string FinalQualityStatus { get; set; }
+
+ ///
+ /// 采集时间,格式(yyyy-MM-dd HH:mm:ss)
+ ///
+ public string CollectTime { get; set; }
+
+ ///
+ /// 子件绑定扫码时间,格式(yyyy-MM-dd HH:mm:ss)
+ ///
+ public string DateTime { get; set; }
+
+ ///
+ /// 父件硬件版本号
+ ///
+ public string ParentHardwareRevision { get; set; }
+
+ ///
+ /// 父件软件版本号
+ ///
+ public string ParentSoftwareRevision { get; set; }
+
+ ///
+ /// 子件硬件版本号
+ ///
+ public string ChildHardwareRevision { get; set; }
+
+ ///
+ /// 子件软件版本号
+ ///
+ public string ChildSoftwareRevision { get; set; }
+ }
+}
diff --git a/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_FIRST_PASSYIELD_DTO.cs b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_FIRST_PASSYIELD_DTO.cs
new file mode 100644
index 0000000..fa81c39
--- /dev/null
+++ b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_FIRST_PASSYIELD_DTO.cs
@@ -0,0 +1,125 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using TaskManager.Contracts.Dtos;
+
+namespace TaskManager.Contracts.Dtos
+{
+ ///
+ /// 产品一次合格率
+ ///
+ public class SUPPLIER_PRO_FIRST_PASSYIELD_DTO : BaseEntityDto
+ {
+ ///
+ /// 供应商代码
+ ///
+ public string SupplierCode { get; set; }
+
+ ///
+ /// 供应商名称
+ ///
+ public string SupplierName { get; set; }
+
+ ///
+ /// 供应商总成零件号
+ ///
+ public string VendorProductNo { get; set; }
+
+ ///
+ /// 供应商总成零件名称
+ ///
+ public string VendorProductName { get; set; }
+
+ ///
+ /// 工厂代码
+ ///
+ public string PlantId { get; set; }
+
+ ///
+ /// 工厂名称
+ ///
+ public string PlantName { get; set; }
+
+ ///
+ /// 车间代码
+ ///
+ public string WorkshopId { get; set; }
+
+ ///
+ /// 车间名称
+ ///
+ public string WorkshopName { get; set; }
+
+ ///
+ /// 产线代码
+ ///
+ public string ProductionLineId { get; set; }
+
+ ///
+ /// 产线名称
+ ///
+ public string ProductionLineName { get; set; }
+
+ ///
+ /// 奇瑞零件号
+ ///
+ public string CheryProductNo { get; set; }
+
+ ///
+ /// 奇瑞零件名称
+ ///
+ public string CheryProductName { get; set; }
+
+ ///
+ /// 生产工单号
+ ///
+ public string ManufactureNo { get; set; }
+
+ ///
+ /// 生产批次号
+ ///
+ public string ProductBatchNo { get; set; }
+
+ ///
+ /// 批次计划数量:每个批次号对应的计划数量
+ ///
+ public decimal WorkOrderNumber { get; set; }
+
+ ///
+ /// 不合格数
+ ///
+ public decimal DefectiveNumber { get; set; }
+
+ ///
+ /// 合格数:当班次合格数汇总
+ ///
+ public decimal AcceptableNumber { get; set; }
+
+ ///
+ /// 一次合格率实际值
+ ///
+ public decimal OncePassRateRealValue { get; set; }
+
+ ///
+ /// 一次合格率目标值
+ ///
+ public decimal OncePassRateTagValue { get; set; }
+
+ ///
+ /// 班次(白班,晚班,中班)
+ ///
+ public string WorkShift { get; set; }
+
+ ///
+ /// 生产日期,格式(yyyy-MM-dd HH:mm:ss)
+ ///
+ public string StatisticalTime { get; set; }
+
+ ///
+ /// 值统计时间,格式(yyyy-MM-dd HH:mm:ss)
+ ///
+ public string DateTime { get; set; }
+ }
+}
diff --git a/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_MATERIAL_STOCK_DTO.cs b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_MATERIAL_STOCK_DTO.cs
new file mode 100644
index 0000000..bd68fc0
--- /dev/null
+++ b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_MATERIAL_STOCK_DTO.cs
@@ -0,0 +1,165 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using TaskManager.Contracts.Dtos;
+
+namespace TaskManager.Contracts.Dtos
+{
+ ///
+ /// 来料检验数据
+ ///
+ public class SUPPLIER_PRO_MATERIAL_STOCK_DTO : BaseEntityDto
+ {
+ ///
+ /// 供应商代码
+ ///
+ public string SupplierCode { get; set; }
+
+ ///
+ /// 供应商名称
+ ///
+ public string SupplierName { get; set; }
+
+ ///
+ /// 供应商子零件编号
+ ///
+ public string SupplierSubCode { get; set; }
+
+ ///
+ /// 供应商子零件名称
+ ///
+ public string SupplierSubName { get; set; }
+
+ ///
+ /// 分供方代码
+ ///
+ public string SubSupplierCode { get; set; }
+
+ ///
+ /// 分供方名称
+ ///
+ public string SubSupplierName { get; set; }
+
+ ///
+ /// 分供方地址,分供方发货地址:省市区(县),不用于详细地址
+ ///
+ public string SubSupplierAddress { get; set; }
+
+ ///
+ /// 分供方子件编码
+ ///
+ public string ComponentCode { get; set; }
+
+ ///
+ /// 分供方子件名称
+ ///
+ public string ComponentName { get; set; }
+
+ ///
+ /// 子件批次号
+ ///
+ public string SubBatchNo { get; set; }
+
+ ///
+ /// 子件批次数量
+ ///
+ public decimal SubBatchNum { get; set; }
+
+ ///
+ /// 子件SN码
+ ///
+ public string SubBatchSn { get; set; }
+
+ ///
+ /// 检验人员编号
+ ///
+ public string EmpCode { get; set; }
+
+ ///
+ /// 检验人员姓名
+ ///
+ public string EmpName { get; set; }
+
+ ///
+ /// 检测设备编号
+ ///
+ public string DeviceCode { get; set; }
+
+ ///
+ /// 检测设备名称
+ ///
+ public string DeviceName { get; set; }
+
+ ///
+ /// 参数名称/特性名称
+ ///
+ public string FeatureName { get; set; }
+
+ ///
+ /// 参数单位/特性单位
+ ///
+ public string FeatureUnit { get; set; }
+
+ ///
+ /// 参数/特性标准值
+ ///
+ public string StandardValue { get; set; }
+
+ ///
+ /// 参数/特性上限值
+ ///
+ public string FeatureUpper { get; set; }
+
+ ///
+ /// 参数/特性下限值
+ ///
+ public string FeatureLower { get; set; }
+
+ ///
+ /// 参数/特性实测值
+ ///
+ public string FeatureValue { get; set; }
+
+ ///
+ /// 来料检验单号
+ ///
+ public string CheckNo { get; set; }
+
+ ///
+ /// 批次的最终判定结果,OK合格/NG不合格
+ ///
+ public string CheckResult { get; set; }
+
+ ///
+ /// 检验时间,格式(yyyy-MM-dd HH:mm:ss)
+ ///
+ public string CheckTime { get; set; }
+
+ ///
+ /// 控制项要求频率
+ ///
+ public decimal SamplingRate { get; set; }
+
+ ///
+ /// 上下限更新时间,格式(yyyy-MM-dd HH:mm:ss)
+ ///
+ public string LimitUpdateTime { get; set; }
+
+ ///
+ /// 控制项描述
+ ///
+ public string VendorFieldDesc { get; set; }
+
+ ///
+ /// 控制项代码
+ ///
+ public string VendorFieldCode { get; set; }
+
+ ///
+ /// 库存有效日期,格式(yyyy-MM-dd HH:mm:ss)
+ ///
+ public string DeadLine { get; set; }
+ }
+}
diff --git a/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_SCHEDULING_DTO.cs b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_SCHEDULING_DTO.cs
new file mode 100644
index 0000000..2dcfa1f
--- /dev/null
+++ b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_SCHEDULING_DTO.cs
@@ -0,0 +1,110 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using TaskManager.Contracts.Dtos;
+
+namespace TaskManager.Contracts.Dtos
+{
+ ///
+ /// 排产数据
+ ///
+ public class SUPPLIER_PRO_SCHEDULING_DTO : BaseEntityDto
+ {
+ ///
+ /// 供应商代码
+ ///
+ public string SupplierCode { get; set; }
+
+ ///
+ /// 供应商名称
+ ///
+ public string SupplierName { get; set; }
+
+ ///
+ /// 工厂代码
+ ///
+ public string PlantId { get; set; }
+
+ ///
+ /// 工厂名称
+ ///
+ public string PlantName { get; set; }
+
+ ///
+ /// 供应商总成零件号
+ ///
+ public string VendorProductNo { get; set; }
+
+ ///
+ /// 供应商总成零件名称
+ ///
+ public string VendorProductName { get; set; }
+
+ ///
+ /// 奇瑞零件号
+ ///
+ public string CheryProductNo { get; set; }
+
+ ///
+ /// 奇瑞零件名称
+ ///
+ public string CheryProductName { get; set; }
+
+ ///
+ /// 计划单号
+ ///
+ public string PlanNo { get; set; }
+
+ ///
+ /// 生产工单号
+ ///
+ public string ManufactureNo { get; set; }
+
+ ///
+ /// 生产批次号
+ ///
+ public string ProductBatchNo { get; set; }
+
+ ///
+ /// 批次计划数量
+ ///
+ public decimal ManufactureNum { get; set; }
+
+ ///
+ /// 批次投入数量
+ ///
+ public decimal ManufactureInputNum { get; set; }
+
+ ///
+ /// 批次产出数量
+ ///
+ public decimal ManufactureOutputNum { get; set; }
+
+ ///
+ /// 排产状态(0:未生产,1:生产中,2:已完工,3:已取消,4:已终止)
+ ///
+ public int PlanStatus { get; set; }
+
+ ///
+ /// 计划开始时间(格式:yyyy-MM-dd HH:mm:ss)
+ ///
+ public string PlanBeginTime { get; set; }
+
+ ///
+ /// 计划结束时间(格式:yyyy-MM-dd HH:mm:ss)
+ ///
+ public string PlanEndTime { get; set; }
+
+ ///
+ /// 实际开始时间(格式:yyyy-MM-dd HH:mm:ss)
+ ///
+ public string ActualBeginTime { get; set; }
+
+ ///
+ /// 实际结束时间(格式:yyyy-MM-dd HH:mm:ss)
+ ///
+ public string ActualEndTime { get; set; }
+ }
+}
diff --git a/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_STATION_FIRST_PASSYIELD_DTO.cs b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_STATION_FIRST_PASSYIELD_DTO.cs
new file mode 100644
index 0000000..62235a9
--- /dev/null
+++ b/API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_PRO_STATION_FIRST_PASSYIELD_DTO.cs
@@ -0,0 +1,135 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+using TaskManager.Contracts.Dtos;
+
+namespace TaskManager.Contracts.Dtos
+{
+ ///
+ /// 工位一次合格率
+ ///
+ public class SUPPLIER_PRO_STATION_FIRST_PASSYIELD_DTO : BaseEntityDto
+ {
+ ///
+ /// 供应商代码
+ ///
+ public string SupplierCode { get; set; }
+
+ ///
+ /// 供应商名称
+ ///
+ public string SupplierName { get; set; }
+
+ ///
+ /// 工厂代码
+ ///
+ public string PlantId { get; set; }
+
+ ///
+ /// 工厂名称
+ ///
+ public string PlantName { get; set; }
+
+ ///
+ /// 车间代码
+ ///
+ public string WorkshopId { get; set; }
+
+ ///
+ /// 车间名称
+ ///
+ public string WorkshopName { get; set; }
+
+ ///
+ /// 产线代码
+ ///
+ public string ProductionLineId { get; set; }
+
+ ///
+ /// 产线名称
+ ///
+ public string ProductionLineName { get; set; }
+
+ ///
+ /// 工位代码
+ ///
+ public string StationId { get; set; }
+
+ ///
+ /// 工位名称
+ ///
+ public string StationName { get; set; }
+
+ ///
+ /// 奇瑞零件号
+ ///
+ public string CheryProductNo { get; set; }
+
+ ///
+ /// 奇瑞零件名称
+ ///
+ public string CheryProductName { get; set; }
+
+ ///
+ /// 供应商总成零件号
+ ///
+ public string VendorProductNo { get; set; }
+
+ ///
+ /// 供应商总成零件名称
+ ///
+ public string VendorProductName { get; set; }
+
+ ///
+ /// 生产批次号
+ ///
+ public string ProductBatchNo { get; set; }
+
+ ///
+ /// 生产工单号(跟排产工单号关联)
+ ///
+ public string ManufactureNo { get; set; }
+
+ ///
+ /// 批次计划数量
+ ///
+ public decimal WorkOrderNumber { get; set; }
+
+ ///
+ /// 不合格数
+ ///
+ public decimal DefectiveNumber { get; set; }
+
+ ///
+ /// 合格数
+ ///
+ public decimal AcceptableNumber { get; set; }
+
+ ///
+ /// 一次合格率实际值(使用小数表示,如 0.9601 表示 96.01%,整数位最多10位,小数位最多3位)
+ ///
+ public decimal OncePassRateRealValue { get; set; }
+
+ ///
+ /// 一次合格率目标值(使用小数表示,如 0.96 表示 96.00%,整数位最多10位,小数位最多3位)
+ ///
+ public decimal OncePassRateTagValue { get; set; }
+
+ ///
+ /// 班次(白班,晚班,中班)
+ ///
+ public string WorkShift { get; set; }
+
+ ///
+ /// 生产日期,格式:yyyy-MM-dd HH:mm:ss
+ ///
+ public string StatisticalTime { get; set; }
+
+ ///
+ /// 值统计时间,格式:yyyy-MM-dd HH:mm:ss
+ ///
+ public string DateTime { get; set; }
+ }
+}
diff --git a/API/TaskManager.Contracts/Dtos/Dtos.cs b/API/TaskManager.Contracts/Dtos/Dtos.cs
index 142c353..e26e00f 100644
--- a/API/TaskManager.Contracts/Dtos/Dtos.cs
+++ b/API/TaskManager.Contracts/Dtos/Dtos.cs
@@ -1,4 +1,6 @@
using Newtonsoft.Json;
+using System.ComponentModel.DataAnnotations.Schema;
+using System.ComponentModel.DataAnnotations;
using System.Globalization;
using System.Text.Json;
using System.Text.Json.Serialization;
@@ -74,7 +76,20 @@ namespace TaskManager.Contracts.Dtos
}
+ public class BaseEntityDto
+ {
+ [Key]
+ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public long UId { get; set; }
+ public bool WriteState { get; set; }
+ public bool ReadState { get; set; }
+
+ public DateTime CreationTime { get; set; }
+ public string Remark { get; set; }
+
+ public Guid TaskId { get; set; }
+ }
public class CherryReadBaseEntityDto
{
diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ATTACHMENT_DATA.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ATTACHMENT_DATA.cs
new file mode 100644
index 0000000..87a1501
--- /dev/null
+++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ATTACHMENT_DATA.cs
@@ -0,0 +1,78 @@
+namespace TaskManager.Entity.Entitys
+{
+ ///
+ /// 附件类数据
+ ///
+ public class SUPPLIER_PRO_ATTACHMENT_DATA : BaseEntity
+ {
+ ///
+ /// 供应商代码
+ ///
+ public string SupplierCode { get; set; }
+ ///
+ /// 供应商名称
+ ///
+ public string SupplierName { get; set; }
+ ///
+ /// 数据类型(1产前管理;2人员资质;3监控视频)
+ ///
+ public string Type { get; set; }
+ ///
+ /// 文件名
+ ///
+ public string FileName { get; set; }
+ ///
+ /// 图文地址
+ ///
+ public string FileUrl { get; set; }
+ ///
+ /// 生成时间,格式(yyyy-MM-ddHH:mm:ss)
+ ///
+ public string DateTime { get; set; }
+ ///
+ /// 产线名称
+ ///
+ public string ProductionLineName { get; set; }
+ ///
+ /// 产线代码
+ ///
+ public string ProductionLineId { get; set; }
+ ///
+ /// 工位名称
+ ///
+ public string StationName { get; set; }
+ ///
+ /// 工位代码
+ ///
+ public string StationId { get; set; }
+ ///
+ /// 设备名称
+ ///
+ public string DeviceName { get; set; }
+ ///
+ /// 设备编码
+ ///
+ public string? DeviceId { get; set; }
+ ///
+ /// 供应商总成零件号
+ ///
+ public string VendorProductNo { get; set; }
+ ///
+ /// 供应商总成零件名称
+ ///
+ public string VendorProductName { get; set; }
+ ///
+ /// 奇瑞零件号
+ ///
+ public string CheryProductNo { get; set; }
+ ///
+ /// 奇瑞零件名称
+ ///
+ public string CheryProductName { get; set; }
+ ///
+ /// 供应商总成SN码
+ ///
+ public string? VendorProductSn { get; set; }
+ }
+
+}
diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ENVIRONMENT.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ENVIRONMENT.cs
new file mode 100644
index 0000000..cfcb0d7
--- /dev/null
+++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ENVIRONMENT.cs
@@ -0,0 +1,79 @@
+namespace TaskManager.Entity.Entitys
+{
+ ///
+ /// 环境业务数据
+ ///
+ public class SUPPLIER_PRO_ENVIRONMENT : BaseEntity
+ {
+ ///
+ /// 供应商代码
+ ///
+ public string SupplierCode { get; set; }
+ ///
+ /// 供应商名称
+ ///
+ public string SupplierName { get; set; }
+ ///
+ /// 工厂代码
+ ///
+ public string PlantId { get; set; }
+ ///
+ /// 工厂名称
+ ///
+ public string PlantName { get; set; }
+ ///
+ /// 车间代码
+ ///
+ public string WorkshopId { get; set; }
+ ///
+ /// 车间名称
+ ///
+ public string WorkshopName { get; set; }
+ ///
+ /// 产线代码
+ ///
+ public string ProductionLineId { get; set; }
+ ///
+ /// 产线名称
+ ///
+ public string ProductionLineName { get; set; }
+ ///
+ /// 环境指标名称,例如:温度、湿度、洁净度等
+ ///
+ public string EnvIndicatorName { get; set; }
+ ///
+ /// 指标实测值,(最大支持11位整数+5位小数)
+ ///
+ public decimal? NumValue { get; set; }
+ ///
+ /// 上限值,(最大支持11位整数+5位小数)
+ ///
+ public decimal UpperLimit { get; set; }
+ ///
+ /// 下限值,(最大支持11位整数+5位小数)
+ ///
+ public decimal LowerLimit { get; set; }
+ ///
+ /// 单位,相应的单位名称,如度数
+ ///
+ public string ChineseUnit { get; set; }
+ ///
+ /// 采集仪器代码,环境采集的仪器/工具代码
+ ///
+ public string EquipmentCode { get; set; }
+ ///
+ /// 采集仪器名称,环境采集的仪器/工具名称
+ ///
+ public string EquipmentName { get; set; }
+ ///
+ /// 数据采集的点位
+ ///
+ public string? DataCollectionPoint { get; set; }
+ ///
+ /// 数据采集的时间,格式(yyyy-MM-ddHH:mm:ss)
+ ///
+ public string CollectTime { get; set; }
+ }
+
+
+}
diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_FLAW.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_FLAW.cs
new file mode 100644
index 0000000..021c9e0
--- /dev/null
+++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_FLAW.cs
@@ -0,0 +1,124 @@
+using System;
+using System.Collections.Generic;
+using System.Linq;
+using System.Text;
+using System.Threading.Tasks;
+
+namespace TaskManager.Entity.Entitys
+{
+ ///
+ /// 缺陷业务数据
+ ///
+ public class SUPPLIER_PRO_FLAW : BaseEntity
+ {
+ ///
+ /// 供应商代码
+ ///
+ public string SupplierCode { get; set; }
+ ///
+ /// 供应商名称
+ ///
+ public string SupplierName { get; set; }
+ ///
+ /// 工厂代码
+ ///
+ public string PlantId { get; set; }
+ ///
+ /// 工厂名称
+ ///
+ public string PlantName { get; set; }
+ ///
+ /// 车间代码
+ ///
+ public string WorkshopId { get; set; }
+ ///
+ /// 车间名称
+ ///
+ public string WorkshopName { get; set; }
+ ///
+ /// 产线代码
+ ///
+ public string ProductionLineId { get; set; }
+ ///
+ /// 产线名称
+ ///
+ public string ProductionLineName { get; set; }
+ ///
+ /// 工位代码
+ ///
+ public string StationId { get; set; }
+ ///
+ /// 工位名称
+ ///
+ public string StationName { get; set; }
+ ///
+ /// 缺陷代码
+ ///
+ public string DefectsCode { get; set; }
+ ///
+ /// 缺陷名称
+ ///
+ public string DefectsName { get; set; }
+ ///
+ /// 缺陷分类(外观,尺寸,材料,功能,性能,其他)
+ ///
+ public string ClassOfName { get; set; }
+ ///
+ /// 供应商总成零件号
+ ///
+ public string VendorProductNo { get; set; }
+ ///
+ /// 供应商总成零件名称
+ ///
+ public string VendorProductName { get; set; }
+ ///
+ /// 供应商总成批次号
+ ///
+ public string VendorProductBatch { get; set; }
+ ///
+ /// 供应商总成SN码
+ ///
+ public string VendorProductSn { get; set; }
+ ///
+ /// 奇瑞零件号
+ ///
+ public string CheryProductNo { get; set; }
+ ///
+ /// 奇瑞零件名称
+ ///
+ public string CheryProductName { get; set; }
+ ///
+ /// 奇瑞SN码
+ ///
+ public string CheryProductSn { get; set; }
+ ///
+ /// 生产批次号
+ ///
+ public string ProductBatchNo { get; set; }
+ ///
+ /// 生产工单号,或生产批次(工单业务数据)
+ ///
+ public string ManufactureNo { get; set; }
+ ///
+ /// 班次(白班,晚班,中班)
+ ///
+ public string WorkShift { get; set; }
+ ///
+ /// 缺陷件数
+ ///
+ public decimal Numberofdefect { get; set; }
+ ///
+ /// 缺陷描述
+ ///
+ public string DefectsDesc { get; set; }
+ ///
+ /// 缺陷等级,(1.严重、2.一般、3.轻微)
+ ///
+ public string DefectsLevel { get; set; }
+ ///
+ /// 缺陷录入时间,格式(yyyy-MM-ddHH:mm:ss)
+ ///
+ public string StatisticalTime { get; set; }
+ }
+
+}
diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_MATERIAL_DATA.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_MATERIAL_DATA.cs
new file mode 100644
index 0000000..7521474
--- /dev/null
+++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_MATERIAL_DATA.cs
@@ -0,0 +1,90 @@
+namespace TaskManager.Entity.Entitys
+{
+ ///
+ /// 物料主数据
+ ///
+ public class SUPPLIER_PRO_MATERIAL_DATA : BaseEntity
+ {
+ ///
+ /// 供应商代码
+ ///
+ public string SupplierCode { get; set; }
+ ///
+ /// 供应商名称
+ ///
+ public string SupplierName { get; set; }
+ ///
+ /// 供应商物料号
+ ///
+ public string VendorProductNo { get; set; }
+ ///
+ /// 供应商物料名称
+ ///
+ public string VendorProductName { get; set; }
+ ///
+ /// 类型(成品,半成品,原材料)
+ ///
+ public decimal Type { get; set; }
+ ///
+ /// 供应商零件版本号
+ ///
+ public string? VendorHardwareRevision { get; set; }
+ ///
+ /// 奇瑞零件号
+ ///
+ public string CheryProductNo { get; set; }
+ ///
+ /// 奇瑞零件名称
+ ///
+ public string CheryProductName { get; set; }
+ ///
+ /// 奇瑞硬件版本号
+ ///
+ public string OemHardwareRevision { get; set; }
+ ///
+ /// 奇瑞软件版本号
+ ///
+ public string? OemSoftwareRevision { get; set; }
+ ///
+ /// 车型
+ ///
+ public string? OemModel { get; set; }
+ ///
+ /// 项目名称
+ ///
+ public string? OemProjectName { get; set; }
+ ///
+ /// 是否SOP(Y/N)
+ ///
+ public string? Launched { get; set; }
+ ///
+ /// 数据同步执行时间,格式(yyyy-MM-ddHH:mm:ss)
+ ///
+ public string? DateTime { get; set; }
+ ///
+ /// 供应商工厂代码
+ ///
+ public string? PlantId { get; set; }
+ ///
+ /// 供应商工厂名称
+ ///
+ public string? PlantName { get; set; }
+ ///
+ /// 芯片采购类型(AVAP,CS,CMcontro)
+ ///
+ public string? ProcurementType { get; set; }
+ ///
+ /// 芯片MPN标识码
+ ///
+ public string? MpnCode { get; set; }
+ ///
+ /// 芯片MPN标识名称
+ ///
+ public string? MpnName { get; set; }
+ ///
+ /// 物料有效期(天)
+ ///
+ public string ValidDays { get; set; }
+ }
+
+}
diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE.cs
new file mode 100644
index 0000000..ea82703
--- /dev/null
+++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE.cs
@@ -0,0 +1,102 @@
+namespace TaskManager.Entity.Entitys
+{
+ ///
+ /// 设备OEE达成率
+ ///
+ public class SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE : BaseEntity
+ {
+ ///
+ /// 供应商代码
+ ///
+ public string SupplierCode { get; set; }
+ ///
+ /// 供应商名称
+ ///
+ public string SupplierName { get; set; }
+ ///
+ /// 工厂代码
+ ///
+ public string PlantId { get; set; }
+ ///
+ /// 工厂名称
+ ///
+ public string PlantName { get; set; }
+ ///
+ /// 车间代码
+ ///
+ public string WorkshopId { get; set; }
+ ///
+ /// 车间名称
+ ///
+ public string WorkshopName { get; set; }
+ ///
+ /// 产线代码
+ ///
+ public string ProductionLineId { get; set; }
+ ///
+ /// 产线名称
+ ///
+ public string ProductionLineName { get; set; }
+ ///
+ /// 工位代码
+ ///
+ public string StationId { get; set; }
+ ///
+ /// 工位名称
+ ///
+ public string StationName { get; set; }
+ ///
+ /// 设备代码
+ ///
+ public string DeviceId { get; set; }
+ ///
+ /// 设备名称
+ ///
+ public string? DeviceName { get; set; }
+ ///
+ /// 奇瑞零件号
+ ///
+ public string CheryProductNo { get; set; }
+ ///
+ /// 奇瑞零件名称
+ ///
+ public string CheryProductName { get; set; }
+ ///
+ /// 供应商总成零件号
+ ///
+ public string VendorProductNo { get; set; }
+ ///
+ /// 供应商总成零件名称
+ ///
+ public string VendorProductName { get; set; }
+ ///
+ /// 生产批次号
+ ///
+ public string ProductBatchNo { get; set; }
+ ///
+ /// 生产工单号
+ ///
+ public string ManufactureNo { get; set; }
+ ///
+ /// OEE实际值
+ ///
+ public decimal Rate { get; set; }
+ ///
+ /// OEE目标值
+ ///
+ public decimal RateTagValue { get; set; }
+ ///
+ /// 班次(白班,晚班,中班)
+ ///
+ public string WorkShift { get; set; }
+ ///
+ /// 生产日期,格式(yyyy-MM-ddHH:mm:ss)
+ ///
+ public string StatisticalTime { get; set; }
+ ///
+ /// 值统计时间,格式(yyyy-MM-ddHH:mm:ss)
+ ///
+ public string DateTime { get; set; }
+ }
+
+}
diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_TIME_DETAILS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_TIME_DETAILS.cs
new file mode 100644
index 0000000..df7e0df
--- /dev/null
+++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_OEE_TIME_DETAILS.cs
@@ -0,0 +1,82 @@
+namespace TaskManager.Entity.Entitys
+{
+ ///
+ /// OEE时间明细
+ ///
+ public class SUPPLIER_PRO_OEE_TIME_DETAILS : BaseEntity
+ {
+ ///
+ /// 供应商代码
+ ///
+ public string SupplierCode { get; set; }
+ ///
+ /// 供应商名称
+ ///
+ public string SupplierName { get; set; }
+ ///
+ /// 工厂代码
+ ///
+ public string PlantId { get; set; }
+ ///
+ /// 工厂名称
+ ///
+ public string PlantName { get; set; }
+ ///
+ /// 车间代码
+ ///
+ public string WorkshopId { get; set; }
+ ///
+ /// 车间名称
+ ///
+ public string? WorkshopName { get; set; }
+ ///
+ /// 产线代码
+ ///
+ public string ProductionLineId { get; set; }
+ ///
+ /// 产线名称
+ ///
+ public string? ProductionLineName { get; set; }
+ ///
+ /// 工位代码
+ ///
+ public string StationId { get; set; }
+ ///
+ /// 工位名称
+ ///
+ public string StationName { get; set; }
+ ///
+ /// 设备代码
+ ///
+ public string DeviceId { get; set; }
+ ///
+ /// 设备名称
+ ///
+ public string DeviceName { get; set; }
+ ///
+ /// 记录ID
+ ///
+ public string RecId { get; set; }
+ ///
+ /// 大类(1计划工作,2计划停机,3非计划停机)
+ ///
+ public string Type { get; set; }
+ ///
+ /// 小类编码
+ ///
+ public string SubType { get; set; }
+ ///
+ /// 小类描述
+ ///
+ public string SubTypeName { get; set; }
+ ///
+ /// 开始时间,格式(yyyy-MM-ddHH:mm:ss)
+ ///
+ public string StartTime { get; set; }
+ ///
+ /// 结束时间,格式(yyyy-MM-ddHH:mm:ss)
+ ///
+ public string EndTime { get; set; }
+ }
+
+}
diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS.cs
new file mode 100644
index 0000000..dd4af58
--- /dev/null
+++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS.cs
@@ -0,0 +1,86 @@
+namespace TaskManager.Entity.Entitys
+{
+ ///
+ /// 工艺
+ ///
+ public class SUPPLIER_PRO_PROCESS : BaseEntity
+ {
+ ///
+ /// 奇瑞零件号
+ ///
+ public string CheryProductNo { get; set; }
+ ///
+ /// 奇瑞零件名称
+ ///
+ public string CheryProductName { get; set; }
+ ///
+ /// 供应商总成零件号
+ ///
+ public string VendorProductNo { get; set; }
+ ///
+ /// 供应商总成零件名称
+ ///
+ public string VendorProductName { get; set; }
+ ///
+ /// 供应商代码
+ ///
+ public string SupplierCode { get; set; }
+ ///
+ /// 供应商名称
+ ///
+ public string SupplierName { get; set; }
+ ///
+ /// 工艺编码
+ ///
+ public string TechCode { get; set; }
+ ///
+ /// 工艺名称
+ ///
+ public string TechName { get; set; }
+ ///
+ /// 有效期,格式(yyyy-MM-ddHH:mm:ss)
+ ///
+ public string ValidPeriod { get; set; }
+ ///
+ /// 工艺版本
+ ///
+ public string TechVersion { get; set; }
+ ///
+ /// 模具编码
+ ///
+ public string MoldCode { get; set; }
+ ///
+ /// 模具名称
+ ///
+ public string MoldName { get; set; }
+ ///
+ /// 最大加工能力
+ ///
+ public string MaxProcessingCapacity { get; set; }
+ ///
+ /// 工序编码
+ ///
+ public string ProcessCode { get; set; }
+ ///
+ /// 工序名称
+ ///
+ public string ProcessName { get; set; }
+ ///
+ /// 工序顺序号
+ ///
+ public decimal ProcessOrder { get; set; }
+ ///
+ /// 设备编码
+ ///
+ public string DeviceCode { get; set; }
+ ///
+ /// 工序节拍
+ ///
+ public decimal Rhythm { get; set; }
+ ///
+ /// 节拍单位
+ ///
+ public string RhythmUnit { get; set; }
+ }
+
+}
diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_EQUIPMENT.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_EQUIPMENT.cs
new file mode 100644
index 0000000..4f5a273
--- /dev/null
+++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_PROCESS_EQUIPMENT.cs
@@ -0,0 +1,130 @@
+namespace TaskManager.Entity.Entitys
+{
+ ///
+ /// 工艺装备
+ ///
+ public class SUPPLIER_PRO_PROCESS_EQUIPMENT : BaseEntity
+ {
+ ///
+ /// 供应商代码
+ ///
+ public string SupplierCode { get; set; }
+ ///
+ /// 供应商名称
+ ///
+ public string SupplierName { get; set; }
+ ///
+ /// 奇瑞零件号
+ ///
+ public string CheryProductNo { get; set; }
+ ///
+ /// 奇瑞零件名称
+ ///
+ public string CheryProductName { get; set; }
+ ///
+ /// 供应商总成零件号
+ ///
+ public string VendorProductNo { get; set; }
+ ///
+ /// 供应商总成零件名称
+ ///
+ public string VendorProductName { get; set; }
+ ///
+ /// 工艺装备类型分类(1模具;2检具;3夹具)
+ ///
+ public decimal DeviceType { get; set; }
+ ///
+ /// 工艺装备编码
+ ///
+ public string DeviceCode { get; set; }
+ ///
+ /// 工艺装备名称
+ ///
+ public string DeviceName { get; set; }
+ ///
+ /// 生产厂家
+ ///
+ public string Manufacturer { get; set; }
+ ///
+ /// 工艺装备型号
+ ///
+ public string ModelNumber { get; set; }
+ ///
+ /// 工艺装备序列号
+ ///
+ public string SerialNumber { get; set; }
+ ///
+ /// 工艺装备制造日期,格式(yyyy-MM-dd)
+ ///
+ public string ProductionDate { get; set; }
+ ///
+ /// 主要材质
+ ///
+ public string Material { get; set; }
+ ///
+ /// 当前存放地点
+ ///
+ public string CurrentLocation { get; set; }
+ ///
+ /// 工艺装备状态
+ ///
+ public string DeviceStatus { get; set; }
+ ///
+ /// 穴腔数量
+ ///
+ public decimal CavityCount { get; set; }
+ ///
+ /// 模具尺寸规格
+ ///
+ public string MoldSize { get; set; }
+ ///
+ /// 设计寿命单位
+ ///
+ public string DesignLifeUnits { get; set; }
+ ///
+ /// 设计寿命
+ ///
+ public string DesignLifeValue { get; set; }
+ ///
+ /// 当前剩余寿命,
+ ///
+ public string CurrentUsageCount { get; set; }
+ ///
+ /// 模具大修次数
+ ///
+ public decimal OverhaulCount { get; set; }
+ ///
+ /// 图纸编号描述
+ ///
+ public string CoolingChannelLayout { get; set; }
+ ///
+ /// 检测精度
+ ///
+ public string DetectionAccuracy { get; set; }
+ ///
+ /// 最近校准日期,格式(yyyy-MM-ddHH:mm:ss)
+ ///
+ public string CalibrationDate { get; set; }
+ ///
+ /// 校准到期天数
+ ///
+ public string CalibrationDueDays { get; set; }
+ ///
+ /// 允许误差范围
+ ///
+ public string ToleranceRange { get; set; }
+ ///
+ /// 磨损阈值
+ ///
+ public string WearThreshold { get; set; }
+ ///
+ /// 检测范围
+ ///
+ public string DetectionRange { get; set; }
+ ///
+ /// 检测单位
+ ///
+ public string UnitType { get; set; }
+ }
+
+}
diff --git a/API/TaskManager.Entity/Entity.cs b/API/TaskManager.Entity/Entity.cs
index 198a9f9..4aecce3 100644
--- a/API/TaskManager.Entity/Entity.cs
+++ b/API/TaskManager.Entity/Entity.cs
@@ -756,20 +756,4 @@ namespace TaskManager.Entity
public int Version { get; set; }
}
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
}
diff --git a/API/TaskManager.EntityFramework/JobDbContext.cs b/API/TaskManager.EntityFramework/JobDbContext.cs
index 61ad771..1e4e1b1 100644
--- a/API/TaskManager.EntityFramework/JobDbContext.cs
+++ b/API/TaskManager.EntityFramework/JobDbContext.cs
@@ -11,6 +11,7 @@ using System.Linq;
using System.Text;
using System.Threading.Tasks;
using TaskManager.Entity;
+using TaskManager.Entity.Entitys;
using Wood.Util;
@@ -114,40 +115,40 @@ namespace TaskManager.EntityFramework
///
public DbSet SUPPLIER_PRO_FLAW { get; set; }
- ///
- /// 环境业务数据
- ///
- public DbSet SUPPLIER_PRO_ENVIRONMENT { get; set; }
+ /////
+ ///// 环境业务数据
+ /////
+ //public DbSet SUPPLIER_PRO_ENVIRONMENT { get; set; }
- ///
- /// 设备OEE达成率
- ///
- public DbSet SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE { get; set; }
+ /////
+ ///// 设备OEE达成率
+ /////
+ //public DbSet SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE { get; set; }
- ///
- /// OEE时间明细
- ///
- public DbSet SUPPLIER_PRO_OEE_TIME_DETAILS { get; set; }
+ /////
+ ///// OEE时间明细
+ /////
+ //public DbSet SUPPLIER_PRO_OEE_TIME_DETAILS { get; set; }
- ///
- /// 物料主数据
- ///
- public DbSet SUPPLIER_PRO_MATERIAL_DATA { get; set; }
+ /////
+ ///// 物料主数据
+ /////
+ //public DbSet SUPPLIER_PRO_MATERIAL_DATA { get; set; }
- ///
- /// 附件类数据
- ///
- public DbSet SUPPLIER_PRO_ATTACHMENT_DATA { get; set; }
+ /////
+ ///// 附件类数据
+ /////
+ //public DbSet SUPPLIER_PRO_ATTACHMENT_DATA { get; set; }
- ///
- /// 工艺装备
- ///
- public DbSet SUPPLIER_PRO_PROCESS_EQUIPMENT { get; set; }
+ /////
+ ///// 工艺装备
+ /////
+ //public DbSet SUPPLIER_PRO_PROCESS_EQUIPMENT { get; set; }
- ///
- /// 工艺
- ///
- public DbSet SUPPLIER_PRO_PROCESS { get; set; }
+ /////
+ ///// 工艺
+ /////
+ //public DbSet SUPPLIER_PRO_PROCESS { get; set; }
///
/// 整车月度生产计划-2
@@ -251,10 +252,7 @@ namespace TaskManager.EntityFramework
// 其他配置...
-
-
-
- //工位一次合格率
+ # region 工位一次合格率
modelBuilder.Entity(b =>
{
b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD");
@@ -311,15 +309,454 @@ namespace TaskManager.EntityFramework
b.HasKey(e => e.UId);
});
+ #endregion
+ #region 缺陷业务数据
+ modelBuilder.Entity(b =>
+ {
+ b.ToTable("SUPPLIER_PRO_FLAW");
+ //供应商代码
+ b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //供应商名称
+ b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //工厂代码
+ b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //工厂名称
+ b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //车间代码
+ b.Property(e => e.WorkshopId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //车间名称
+ b.Property(e => e.WorkshopName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //产线代码
+ b.Property(e => e.ProductionLineId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //产线名称
+ b.Property(e => e.ProductionLineName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //工位代码
+ b.Property(e => e.StationId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //工位名称
+ b.Property(e => e.StationName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //缺陷代码
+ b.Property(e => e.DefectsCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //缺陷名称
+ b.Property(e => e.DefectsName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired();
+ //缺陷分类(外观,尺寸,材料,功能,性能,其他)
+ b.Property(e => e.ClassOfName).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //供应商总成零件号
+ b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //供应商总成零件名称
+ b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired();
+ //供应商总成批次号
+ b.Property(e => e.VendorProductBatch).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //供应商总成SN码
+ b.Property(e => e.VendorProductSn).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //奇瑞零件号
+ b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //奇瑞零件名称
+ b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired();
+ //奇瑞SN码
+ b.Property(e => e.CheryProductSn).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //生产批次号
+ b.Property(e => e.ProductBatchNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //生产工单号,或生产批次(工单业务数据)
+ b.Property(e => e.ManufactureNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //班次(白班,晚班,中班)
+ b.Property(e => e.WorkShift).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired();
+ //缺陷件数
+ b.Property(e => e.Numberofdefect).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ //缺陷描述
+ b.Property(e => e.DefectsDesc).HasColumnType("VARCHAR").HasMaxLength(255).IsRequired();
+ //缺陷等级,(1.严重、2.一般、3.轻微)
+ b.Property(e => e.DefectsLevel).HasColumnType("CHAR").HasMaxLength(1).IsRequired();
+ //缺陷录入时间,格式(yyyy-MM-ddHH:mm:ss)
+ b.Property(e => e.StatisticalTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
+ b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired();
+ b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
+ b.Property(e => e.ReadState).HasDefaultValue(false);
+ b.Property(e => e.WriteState).HasDefaultValue(false);
+ b.HasKey(e => e.UId);
- }
+ });
+ #endregion
+ #region 环境业务数据
+ modelBuilder.Entity(b =>
+ {
+ b.ToTable("SUPPLIER_PRO_ENVIRONMENT");
+ //供应商代码
+ b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //供应商名称
+ b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //工厂代码
+ b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //工厂名称
+ b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //车间代码
+ b.Property(e => e.WorkshopId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //车间名称
+ b.Property(e => e.WorkshopName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //产线代码
+ b.Property(e => e.ProductionLineId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //产线名称
+ b.Property(e => e.ProductionLineName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired();
+ //环境指标名称,例如:温度、湿度、洁净度等
+ b.Property(e => e.EnvIndicatorName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired();
+ //指标实测值,(最大支持11位整数+5位小数)
+ b.Property(e => e.NumValue).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
+ //上限值,(最大支持11位整数+5位小数)
+ b.Property(e => e.UpperLimit).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ //下限值,(最大支持11位整数+5位小数)
+ b.Property(e => e.LowerLimit).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ //单位,相应的单位名称,如度数
+ b.Property(e => e.ChineseUnit).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //采集仪器代码,环境采集的仪器/工具代码
+ b.Property(e => e.EquipmentCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //采集仪器名称,环境采集的仪器/工具名称
+ b.Property(e => e.EquipmentName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired();
+ //数据采集的点位
+ b.Property(e => e.DataCollectionPoint).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(false);
+ //数据采集的时间,格式(yyyy-MM-ddHH:mm:ss)
+ b.Property(e => e.CollectTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
+ b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired();
+ b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
+ b.Property(e => e.ReadState).HasDefaultValue(false);
+ b.Property(e => e.WriteState).HasDefaultValue(false);
+ b.HasKey(e => e.UId);
+ });
+ #endregion
+ #region 设备OEE达成率
+ modelBuilder.Entity(b =>
+ {
+ b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE");
+ //供应商代码
+ b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //供应商名称
+ b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //工厂代码
+ b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //工厂名称
+ b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //车间代码
+ b.Property(e => e.WorkshopId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //车间名称
+ b.Property(e => e.WorkshopName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //产线代码
+ b.Property(e => e.ProductionLineId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //产线名称
+ b.Property(e => e.ProductionLineName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //工位代码
+ b.Property(e => e.StationId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //工位名称
+ b.Property(e => e.StationName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //设备代码
+ b.Property(e => e.DeviceId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //设备名称
+ b.Property(e => e.DeviceName).HasColumnType("nvarchar").HasMaxLength(50).IsRequired(false);
+ //奇瑞零件号
+ b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //奇瑞零件名称
+ b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //供应商总成零件号
+ b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //供应商总成零件名称
+ b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //生产批次号
+ b.Property(e => e.ProductBatchNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //生产工单号
+ b.Property(e => e.ManufactureNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //OEE实际值
+ b.Property(e => e.Rate).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ //OEE目标值
+ b.Property(e => e.RateTagValue).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ //班次(白班,晚班,中班)
+ b.Property(e => e.WorkShift).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired();
+ //生产日期,格式(yyyy-MM-ddHH:mm:ss)
+ b.Property(e => e.StatisticalTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
+ //值统计时间,格式(yyyy-MM-ddHH:mm:ss)
+ b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
+ b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired();
+ b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
+ b.Property(e => e.ReadState).HasDefaultValue(false);
+ b.Property(e => e.WriteState).HasDefaultValue(false);
+ b.HasKey(e => e.UId);
+
+ });
+ #endregion
+
+ #region OEE时间明细
+ modelBuilder.Entity(b =>
+ {
+ b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS");
+ //供应商代码
+ b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //供应商名称
+ b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //工厂代码
+ b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //工厂名称
+ b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //车间代码
+ b.Property(e => e.WorkshopId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //车间名称
+ b.Property(e => e.WorkshopName).HasColumnType("nvarchar").HasMaxLength(50).IsRequired(false);
+ //产线代码
+ b.Property(e => e.ProductionLineId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //产线名称
+ b.Property(e => e.ProductionLineName).HasColumnType("nvarchar").HasMaxLength(50).IsRequired(false);
+ //工位代码
+ b.Property(e => e.StationId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //工位名称
+ b.Property(e => e.StationName).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //设备代码
+ b.Property(e => e.DeviceId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //设备名称
+ b.Property(e => e.DeviceName).HasColumnType("VARCHAR").HasMaxLength(33).IsRequired();
+ //记录ID
+ b.Property(e => e.RecId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //大类(1计划工作,2计划停机,3非计划停机)
+ b.Property(e => e.Type).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //小类编码
+ b.Property(e => e.SubType).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //小类描述
+ b.Property(e => e.SubTypeName).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //开始时间,格式(yyyy-MM-ddHH:mm:ss)
+ b.Property(e => e.StartTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
+ //结束时间,格式(yyyy-MM-ddHH:mm:ss)
+ b.Property(e => e.EndTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
+ b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired();
+ b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
+ b.Property(e => e.ReadState).HasDefaultValue(false);
+ b.Property(e => e.WriteState).HasDefaultValue(false);
+ b.HasKey(e => e.UId);
+ });
+ #endregion
+ #region 物料主数据
+ modelBuilder.Entity(b =>
+ {
+ b.ToTable("SUPPLIER_PRO_MATERIAL_DATA");
+ //供应商代码
+ b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //供应商名称
+ b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //供应商物料号
+ b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //供应商物料名称
+ b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //类型(成品,半成品,原材料)
+ b.Property(e => e.Type).HasColumnType("DECIMAL").HasPrecision(precision: 1, scale: 0).IsRequired();
+ //供应商零件版本号
+ b.Property(e => e.VendorHardwareRevision).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(false);
+ //奇瑞零件号
+ b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //奇瑞零件名称
+ b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //奇瑞硬件版本号
+ b.Property(e => e.OemHardwareRevision).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //奇瑞软件版本号
+ b.Property(e => e.OemSoftwareRevision).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(false);
+ //车型
+ b.Property(e => e.OemModel).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(false);
+ //项目名称
+ b.Property(e => e.OemProjectName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false);
+ //是否SOP(Y/N)
+ b.Property(e => e.Launched).HasColumnType("VARCHAR").HasMaxLength(6).IsRequired(false);
+ //数据同步执行时间,格式(yyyy-MM-ddHH:mm:ss)
+ b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(false);
+ //供应商工厂代码
+ b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(false);
+ //供应商工厂名称
+ b.Property(e => e.PlantName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false);
+ //芯片采购类型(AVAP,CS,CMcontro)
+ b.Property(e => e.ProcurementType).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(false);
+ //芯片MPN标识码
+ b.Property(e => e.MpnCode).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(false);
+ //芯片MPN标识名称
+ b.Property(e => e.MpnName).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(false);
+ //物料有效期(天)
+ b.Property(e => e.ValidDays).HasColumnType("CHAR").HasMaxLength(12).IsRequired();
+ b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired();
+ b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
+ b.Property(e => e.ReadState).HasDefaultValue(false);
+ b.Property(e => e.WriteState).HasDefaultValue(false);
+ b.HasKey(e => e.UId);
+ });
+ #endregion
+
+ #region 附件类数据
+ modelBuilder.Entity(b =>
+ {
+ b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA");
+ //供应商代码
+ b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //供应商名称
+ b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //数据类型(1产前管理;2人员资质;3监控视频)
+ b.Property(e => e.Type).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired();
+ //文件名
+ b.Property(e => e.FileName).HasColumnType("VARCHAR").HasMaxLength(300).IsRequired();
+ //图文地址
+ b.Property(e => e.FileUrl).HasColumnType("VARCHAR").HasMaxLength(1000).IsRequired();
+ //生成时间,格式(yyyy-MM-ddHH:mm:ss)
+ b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
+ //产线名称
+ b.Property(e => e.ProductionLineName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //产线代码
+ b.Property(e => e.ProductionLineId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //工位名称
+ b.Property(e => e.StationName).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //工位代码
+ b.Property(e => e.StationId).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //设备名称
+ b.Property(e => e.DeviceName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //设备编码
+ b.Property(e => e.DeviceId).HasColumnType("nvarchar").HasMaxLength(50).IsRequired(false);
+ //供应商总成零件号
+ b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //供应商总成零件名称
+ b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //奇瑞零件号
+ b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //奇瑞零件名称
+ b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //供应商总成SN码
+ b.Property(e => e.VendorProductSn).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired(false);
+ b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired();
+ b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
+ b.Property(e => e.ReadState).HasDefaultValue(false);
+ b.Property(e => e.WriteState).HasDefaultValue(false);
+ b.HasKey(e => e.UId);
+
+ });
+ #endregion
+
+ #region 工艺装备
+ modelBuilder.Entity(b =>
+ {
+ b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT");
+ //供应商代码
+ b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //供应商名称
+ b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //奇瑞零件号
+ b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //奇瑞零件名称
+ b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //供应商总成零件号
+ b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //供应商总成零件名称
+ b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //工艺装备类型分类(1模具;2检具;3夹具)
+ b.Property(e => e.DeviceType).HasColumnType("DECIMAL").HasPrecision(precision: 1, scale: 0).IsRequired();
+ //工艺装备编码
+ b.Property(e => e.DeviceCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //工艺装备名称
+ b.Property(e => e.DeviceName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //生产厂家
+ b.Property(e => e.Manufacturer).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //工艺装备型号
+ b.Property(e => e.ModelNumber).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //工艺装备序列号
+ b.Property(e => e.SerialNumber).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //工艺装备制造日期,格式(yyyy-MM-dd)
+ b.Property(e => e.ProductionDate).HasColumnType("CHAR").HasMaxLength(16).IsRequired();
+ //主要材质
+ b.Property(e => e.Material).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //当前存放地点
+ b.Property(e => e.CurrentLocation).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //工艺装备状态
+ b.Property(e => e.DeviceStatus).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired();
+ //穴腔数量
+ b.Property(e => e.CavityCount).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 0).IsRequired();
+ //模具尺寸规格
+ b.Property(e => e.MoldSize).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //设计寿命单位
+ b.Property(e => e.DesignLifeUnits).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired();
+ //设计寿命
+ b.Property(e => e.DesignLifeValue).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired();
+ //当前剩余寿命,
+ b.Property(e => e.CurrentUsageCount).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired();
+ //模具大修次数
+ b.Property(e => e.OverhaulCount).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 0).IsRequired();
+ //图纸编号描述
+ b.Property(e => e.CoolingChannelLayout).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //检测精度
+ b.Property(e => e.DetectionAccuracy).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //最近校准日期,格式(yyyy-MM-ddHH:mm:ss)
+ b.Property(e => e.CalibrationDate).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
+ //校准到期天数
+ b.Property(e => e.CalibrationDueDays).HasColumnType("CHAR").HasMaxLength(12).IsRequired();
+ //允许误差范围
+ b.Property(e => e.ToleranceRange).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //磨损阈值
+ b.Property(e => e.WearThreshold).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //检测范围
+ b.Property(e => e.DetectionRange).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //检测单位
+ b.Property(e => e.UnitType).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired();
+ b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
+ b.Property(e => e.ReadState).HasDefaultValue(false);
+ b.Property(e => e.WriteState).HasDefaultValue(false);
+ b.HasKey(e => e.UId);
+
+ });
+ #endregion
+
+ #region 工艺
+ modelBuilder.Entity(b =>
+ {
+ b.ToTable("SUPPLIER_PRO_PROCESS");
+ //奇瑞零件号
+ b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //奇瑞零件名称
+ b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //供应商总成零件号
+ b.Property(e => e.VendorProductNo).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //供应商总成零件名称
+ b.Property(e => e.VendorProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //供应商代码
+ b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //供应商名称
+ b.Property(e => e.SupplierName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //工艺编码
+ b.Property(e => e.TechCode).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //工艺名称
+ b.Property(e => e.TechName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //有效期,格式(yyyy-MM-ddHH:mm:ss)
+ b.Property(e => e.ValidPeriod).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
+ //工艺版本
+ b.Property(e => e.TechVersion).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired();
+ //模具编码
+ b.Property(e => e.MoldCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
+ //模具名称
+ b.Property(e => e.MoldName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //最大加工能力
+ b.Property(e => e.MaxProcessingCapacity).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //工序编码
+ b.Property(e => e.ProcessCode).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //工序名称
+ b.Property(e => e.ProcessName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //工序顺序号
+ b.Property(e => e.ProcessOrder).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 0).IsRequired();
+ //设备编码
+ b.Property(e => e.DeviceCode).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
+ //工序节拍
+ b.Property(e => e.Rhythm).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
+ //节拍单位
+ b.Property(e => e.RhythmUnit).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired();
+ b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired();
+ b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
+ b.Property(e => e.ReadState).HasDefaultValue(false);
+ b.Property(e => e.WriteState).HasDefaultValue(false);
+ b.HasKey(e => e.UId);
+ });
+ #endregion
+
+ }
}
}
diff --git a/API/TaskManager.EntityFramework/Migrations/20250529005719_2025052901.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250529005719_2025052901.Designer.cs
new file mode 100644
index 0000000..1d6ad7e
--- /dev/null
+++ b/API/TaskManager.EntityFramework/Migrations/20250529005719_2025052901.Designer.cs
@@ -0,0 +1,2411 @@
+//
+using System;
+using Microsoft.EntityFrameworkCore;
+using Microsoft.EntityFrameworkCore.Infrastructure;
+using Microsoft.EntityFrameworkCore.Metadata;
+using Microsoft.EntityFrameworkCore.Migrations;
+using Microsoft.EntityFrameworkCore.Storage.ValueConversion;
+using TaskManager.EntityFramework;
+
+#nullable disable
+
+namespace TaskManager.EntityFramework.Migrations
+{
+ [DbContext(typeof(JobDbContext))]
+ [Migration("20250529005719_2025052901")]
+ partial class _2025052901
+ {
+ ///
+ protected override void BuildTargetModel(ModelBuilder modelBuilder)
+ {
+#pragma warning disable 612, 618
+ modelBuilder
+ .HasAnnotation("ProductVersion", "8.0.0")
+ .HasAnnotation("Relational:MaxIdentifierLength", 128);
+
+ SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
+
+ modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_FLAW", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CheryProductName")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("VARCHAR");
+
+ b.Property("CheryProductNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("CheryProductSn")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ClassOfName")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("DefectsCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("DefectsDesc")
+ .IsRequired()
+ .HasMaxLength(255)
+ .HasColumnType("VARCHAR");
+
+ b.Property("DefectsLevel")
+ .IsRequired()
+ .HasMaxLength(1)
+ .HasColumnType("CHAR");
+
+ b.Property("DefectsName")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ManufactureNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("Numberofdefect")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("PlantId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("PlantName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductBatchNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductionLineId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductionLineName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ReadState")
+ .HasColumnType("bit");
+
+ b.Property("Remark")
+ .IsRequired()
+ .HasMaxLength(500)
+ .HasColumnType("NVarchar");
+
+ b.Property("StationId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("StationName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("StatisticalTime")
+ .IsRequired()
+ .HasMaxLength(19)
+ .HasColumnType("CHAR");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("SupplierName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("VendorProductBatch")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductName")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductSn")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WorkShift")
+ .IsRequired()
+ .HasMaxLength(10)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WorkshopId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WorkshopName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WriteState")
+ .HasColumnType("bit");
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_PRO_FLAW", (string)null);
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_STATION_FIRST_PASSYIELD", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("AcceptableNumber")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("CheryProductName")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("VARCHAR");
+
+ b.Property("CheryProductNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("DateTime")
+ .IsRequired()
+ .HasMaxLength(19)
+ .HasColumnType("CHAR");
+
+ b.Property("DefectiveNumber")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("ManufactureNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("OncePassRateRealValue")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("OncePassRateTagValue")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("PlantId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("PlantName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductBatchNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductionLineId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductionLineName")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ReadState")
+ .HasColumnType("bit");
+
+ b.Property("Remark")
+ .IsRequired()
+ .HasMaxLength(500)
+ .HasColumnType("NVarchar");
+
+ b.Property("StationId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("StationName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("StatisticalTime")
+ .IsRequired()
+ .HasMaxLength(19)
+ .HasColumnType("CHAR");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("SupplierName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("VendorProductName")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WorkOrderNumber")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("WorkShift")
+ .IsRequired()
+ .HasMaxLength(10)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WorkshopId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WorkshopName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WriteState")
+ .HasColumnType("bit");
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_PRO_STATION_FIRST_PASSYIELD", (string)null);
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("ReadState")
+ .HasColumnType("bit");
+
+ b.Property("Remark")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("WriteState")
+ .HasColumnType("bit");
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_BOM");
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_DATE", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("FeedbackResults")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("MaterialCode")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Measures")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("PlantId")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("QuantityMeet1")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet10")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet11")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet12")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet13")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet14")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet15")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet16")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet17")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet18")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet19")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet2")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet20")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet21")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet22")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet23")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet24")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet25")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet26")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet27")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet28")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet29")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet3")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet30")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet31")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet4")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet5")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet6")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet7")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet8")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet9")
+ .HasColumnType("int");
+
+ b.Property("ReadState")
+ .HasColumnType("bit");
+
+ b.Property("ReleaseEdition")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Remark")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("StartDate")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("VentureSpecific")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("VentureType")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("WriteState")
+ .HasColumnType("bit");
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_CON_DATE");
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_MMRP", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("FeedbackResults")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("MaterialCode")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Measures")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("PlantId")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("QuantityMeet1")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet10")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet11")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet12")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet2")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet3")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet4")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet5")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet6")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet7")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet8")
+ .HasColumnType("int");
+
+ b.Property("QuantityMeet9")
+ .HasColumnType("int");
+
+ b.Property("ReadState")
+ .HasColumnType("bit");
+
+ b.Property("ReleaseEdition")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Remark")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("StartMonth")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("VentureSpecific")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("VentureType")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("WriteState")
+ .HasColumnType("bit");
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_CON_MMRP");
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.SUPPLIER_CON_PO", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("FeedbackResults")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Measures")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("PurchaseOrder")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("QuantityMeet")
+ .HasColumnType("int");
+
+ b.Property("ReadState")
+ .HasColumnType("bit");
+
+ b.Property("Remark")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("SerialNumber")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("VentureSpecific")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("VentureType")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("WriteState")
+ .HasColumnType("bit");
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_CON_PO");
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CreateByUser")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("CreateTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("DataCreateTime")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("DeliveryNumber")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Id")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("IsDelete")
+ .HasColumnType("int");
+
+ b.Property("MaterialCode")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("MaterialDescription")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("PlantId")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("QuantityDelivery")
+ .HasColumnType("int");
+
+ b.Property("ReadState")
+ .HasColumnType("bit");
+
+ b.Property("ReceivingCrossings")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Remark")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("RequestDate")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("RoadReceiveTime")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("RoadShippedTime")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("SerialNumber")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("SerialSrate")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("SupplierReceiveTime")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("UpdateByUser")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UpdateTime")
+ .HasColumnType("datetime2");
+
+ b.Property("Version")
+ .HasColumnType("int");
+
+ b.Property("WriteState")
+ .HasColumnType("bit");
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_DEL_STATE");
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("ReadState")
+ .HasColumnType("bit");
+
+ b.Property("Remark")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("WriteState")
+ .HasColumnType("bit");
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_EMPLOYEE");
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("ReadState")
+ .HasColumnType("bit");
+
+ b.Property("Remark")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("WriteState")
+ .HasColumnType("bit");
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_INFO");
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CreateByUser")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("CreateTime")
+ .HasColumnType("datetime2");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("DataUpdateTime")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("Id")
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("IsDelete")
+ .HasColumnType("int");
+
+ b.Property("MaterialCode")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("MaterialDescription")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("PlantId")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("PlantName")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("QuantityCurrent")
+ .HasColumnType("int");
+
+ b.Property("ReadState")
+ .HasColumnType("bit");
+
+ b.Property("Remark")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("RequestDate")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("StockState")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("UpdateByUser")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("UpdateTime")
+ .HasColumnType("datetime2");
+
+ b.Property("Version")
+ .HasColumnType("int");
+
+ b.Property("WriteState")
+ .HasColumnType("bit");
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_INV_DATA");
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_DATE", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CreateByUser")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property("CreateTime")
+ .IsRequired()
+ .HasColumnType("nvarchar(max)");
+
+ b.Property