diff --git a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ATTACHMENT_DATA.cs b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ATTACHMENT_DATA.cs
index 567d4b5..f956c6b 100644
--- a/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ATTACHMENT_DATA.cs
+++ b/API/TaskManager.Entity/11-18/SUPPLIER_PRO_ATTACHMENT_DATA.cs
@@ -7,10 +7,10 @@ namespace TaskManager.Entity.Entitys
///
public class SUPPLIER_PRO_ATTACHMENT_DATA : BaseEntity
{
+
///
/// 供应商代码
///
-
[ExporterHeader(DisplayName = "供应商代码")]
public string SupplierCode { get; set; }
///
diff --git a/API/TaskManager.Entity/Entity.cs b/API/TaskManager.Entity/Entity.cs
index 7985552..d55d9a7 100644
--- a/API/TaskManager.Entity/Entity.cs
+++ b/API/TaskManager.Entity/Entity.cs
@@ -15,7 +15,7 @@ namespace TaskManager.Entity
public interface IDoExecute
{
- Task ExecuteAsync(string url, string path, string takName);
+ Task ExecuteAsync(string url, string path, string takName,string client);
}
public class TaskConifgure:BaseEntity
{
@@ -67,10 +67,50 @@ namespace TaskManager.Entity
}
- public class TaskLog:BaseEntity
+
+ public class TEA_SUBSCRIBE
{
+ [Key]
+ [Required]
+ public Guid GUID { get; set; }
+
+ [MaxLength(50)]
+ public string TableName { get; set; }
+
+ [MaxLength(50)]
+ public string Creator { get; set; }
+
+ [MaxLength(50)]
+ public string Subscriber { get; set; }
+
+ [DatabaseGenerated(DatabaseGeneratedOption.Identity)]
+ public int UID { get; set; }
+
+ [MaxLength(50)]
+ public string CreateUser { get; set; }
+
+ [Required]
+ public DateTime CreateTime { get; set; }
+
+ public string Remark { get; set; }
+
+ [MaxLength(50)]
+ public string UpdateUser { get; set; }
+
+ public DateTime? UpdateTime { get; set; }
+
+ [Required]
+ public bool Enable { get; set; }
+ }
+
+
+
+
+ public class TaskLog:BaseEntity
+ {
+
///
/// 详细描述
///
@@ -106,6 +146,10 @@ namespace TaskManager.Entity
}
public class BaseEntity
{
+ public BaseEntity()
+ {
+ }
+
[Key]
[DatabaseGenerated(DatabaseGeneratedOption.Identity)]
[ExporterHeader(IsIgnore=true)]
@@ -122,6 +166,9 @@ namespace TaskManager.Entity
public string? Remark { get; set; }
[ExporterHeader(IsIgnore = true)]
public Guid TaskId { get; set; }
+
+
+
}
public class CherryReadBaseEntity:BaseEntity
@@ -133,11 +180,7 @@ namespace TaskManager.Entity
///
/// 同步ID
///
- public string? Id { get; set; }
-
-
-
-
+ public string? Id { get; set; }
}
///
@@ -213,6 +256,11 @@ namespace TaskManager.Entity
/// 最后更新时间(任务最后修改的时间戳,可为空)
///
public DateTime? UpdateTime { get; set; }
+ ///
+ /// 已同步页数
+ ///
+ [ExporterHeader(DisplayName = "更新完成时间")]
+ public int SyncedPageCount { get; set; }
}
@@ -375,9 +423,6 @@ namespace TaskManager.Entity
public class SUPPLIER_MRP_MONTH : CherryReadBaseEntity
{
-
-
-
///
/// 需求发布版次:M+6月物料需求计划风险确认接口对应需求版次,需求ID
///
diff --git a/API/TaskManager.EntityFramework/JobDbContext.cs b/API/TaskManager.EntityFramework/JobDbContext.cs
index 784d904..cabe64c 100644
--- a/API/TaskManager.EntityFramework/JobDbContext.cs
+++ b/API/TaskManager.EntityFramework/JobDbContext.cs
@@ -203,6 +203,11 @@ namespace TaskManager.EntityFramework
public DbSet TaskLogs { get; set; }
+
+ public DbSet TaskSub { get; set; }
+
+
+
public DbSet TaskConifgure { get; set; }
//public DbSet TaskConifgures { get; set; }
diff --git a/API/TaskManager.EntityFramework/Migrations/20250529092933_z202505290001.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250529092933_z202505290001.Designer.cs
new file mode 100644
index 0000000..8545888
--- /dev/null
+++ b/API/TaskManager.EntityFramework/Migrations/20250529092933_z202505290001.Designer.cs
@@ -0,0 +1,4487 @@
+//
+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("20250529092933_z202505290001")]
+ partial class z202505290001
+ {
+ ///
+ 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_CON_DATE", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("FeedbackResults")
+ .IsRequired()
+ .HasMaxLength(10)
+ .HasColumnType("VARCHAR");
+
+ b.Property("MaterialCode")
+ .IsRequired()
+ .HasMaxLength(50)
+ .HasColumnType("VARCHAR");
+
+ b.Property("Measures")
+ .HasMaxLength(255)
+ .HasColumnType("VARCHAR");
+
+ b.Property("PlantId")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("QuantityMeet1")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet10")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet11")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet12")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet13")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet14")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet15")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet16")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet17")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet18")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet19")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet2")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet20")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet21")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet22")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet23")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet24")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet25")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet26")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet27")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet28")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet29")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet3")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet30")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet31")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet4")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet5")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet6")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet7")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet8")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet9")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("ReadState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.Property("ReleaseEdition")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("Remark")
+ .HasMaxLength(500)
+ .HasColumnType("NVarchar");
+
+ b.Property("StartDate")
+ .IsRequired()
+ .HasMaxLength(10)
+ .HasColumnType("CHAR");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("VentureSpecific")
+ .HasMaxLength(255)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VentureType")
+ .HasMaxLength(50)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WriteState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_CON_DATE", (string)null);
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_MMRP", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("FeedbackResults")
+ .IsRequired()
+ .HasMaxLength(10)
+ .HasColumnType("VARCHAR");
+
+ b.Property("MaterialCode")
+ .IsRequired()
+ .HasMaxLength(50)
+ .HasColumnType("VARCHAR");
+
+ b.Property("Measures")
+ .HasMaxLength(255)
+ .HasColumnType("VARCHAR");
+
+ b.Property("PlantId")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("QuantityMeet1")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet10")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet11")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet12")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet2")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet3")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet4")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet5")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet6")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet7")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet8")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("QuantityMeet9")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("ReadState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.Property("ReleaseEdition")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("Remark")
+ .HasMaxLength(500)
+ .HasColumnType("NVarchar");
+
+ b.Property("StartMonth")
+ .IsRequired()
+ .HasMaxLength(7)
+ .HasColumnType("CHAR");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("VentureSpecific")
+ .HasMaxLength(255)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VentureType")
+ .HasMaxLength(50)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WriteState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_CON_MMRP", (string)null);
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_CON_PO", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("FeedbackResults")
+ .IsRequired()
+ .HasMaxLength(10)
+ .HasColumnType("VARCHAR");
+
+ b.Property("Measures")
+ .HasMaxLength(255)
+ .HasColumnType("VARCHAR");
+
+ b.Property("PurchaseOrder")
+ .IsRequired()
+ .HasMaxLength(50)
+ .HasColumnType("VARCHAR");
+
+ b.Property("QuantityMeet")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("ReadState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.Property("Remark")
+ .HasMaxLength(500)
+ .HasColumnType("NVarchar");
+
+ b.Property("SerialNumber")
+ .IsRequired()
+ .HasMaxLength(10)
+ .HasColumnType("VARCHAR");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("VentureSpecific")
+ .HasMaxLength(255)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VentureType")
+ .HasMaxLength(50)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WriteState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_CON_PO", (string)null);
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ATTACHMENT_DATA", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CheryProductName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .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("DeviceId")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar");
+
+ b.Property("DeviceName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("FileName")
+ .IsRequired()
+ .HasMaxLength(300)
+ .HasColumnType("VARCHAR");
+
+ b.Property("FileUrl")
+ .IsRequired()
+ .HasMaxLength(1000)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductionLineId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductionLineName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ReadState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.Property("Remark")
+ .HasMaxLength(500)
+ .HasColumnType("NVarchar");
+
+ b.Property("StationId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("StationName")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("SupplierName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Type")
+ .IsRequired()
+ .HasMaxLength(16)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductSn")
+ .HasMaxLength(100)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WriteState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_PRO_ATTACHMENT_DATA", (string)null);
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_ENVIRONMENT", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("ChineseUnit")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("CollectTime")
+ .IsRequired()
+ .HasMaxLength(19)
+ .HasColumnType("CHAR");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("DataCollectionPoint")
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("EnvIndicatorName")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("VARCHAR");
+
+ b.Property("EquipmentCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("EquipmentName")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("VARCHAR");
+
+ b.Property("LowerLimit")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("NumValue")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("PlantId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("PlantName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductionLineId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductionLineName")
+ .IsRequired()
+ .HasMaxLength(100)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ReadState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.Property("Remark")
+ .HasMaxLength(500)
+ .HasColumnType("NVarchar");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("SupplierName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("UpperLimit")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("WorkshopId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WorkshopName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WriteState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_PRO_ENVIRONMENT", (string)null);
+ });
+
+ 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")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.Property("Remark")
+ .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")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_PRO_FLAW", (string)null);
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_MATERIAL_DATA", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CheryProductName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("CheryProductNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("DateTime")
+ .HasMaxLength(19)
+ .HasColumnType("CHAR");
+
+ b.Property("Launched")
+ .HasMaxLength(6)
+ .HasColumnType("VARCHAR");
+
+ b.Property("MpnCode")
+ .HasMaxLength(16)
+ .HasColumnType("VARCHAR");
+
+ b.Property("MpnName")
+ .HasMaxLength(16)
+ .HasColumnType("VARCHAR");
+
+ b.Property("OemHardwareRevision")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("OemModel")
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("OemProjectName")
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("OemSoftwareRevision")
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("PlantId")
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("PlantName")
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProcurementType")
+ .HasMaxLength(16)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ReadState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.Property("Remark")
+ .HasMaxLength(500)
+ .HasColumnType("NVarchar");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("SupplierName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("TaskId")
+ .HasColumnType("uniqueidentifier");
+
+ b.Property("Type")
+ .HasPrecision(1)
+ .HasColumnType("DECIMAL");
+
+ b.Property("ValidDays")
+ .IsRequired()
+ .HasMaxLength(12)
+ .HasColumnType("CHAR");
+
+ b.Property("VendorHardwareRevision")
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("WriteState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_PRO_MATERIAL_DATA", (string)null);
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CheryProductName")
+ .IsRequired()
+ .HasMaxLength(64)
+ .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("DeviceId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("DeviceName")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar");
+
+ b.Property("ManufactureNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ 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("Rate")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("RateTagValue")
+ .HasPrecision(16, 5)
+ .HasColumnType("DECIMAL");
+
+ b.Property("ReadState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.Property("Remark")
+ .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(64)
+ .HasColumnType("VARCHAR");
+
+ b.Property("VendorProductNo")
+ .IsRequired()
+ .HasMaxLength(32)
+ .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")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.HasKey("UId");
+
+ b.ToTable("SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", (string)null);
+ });
+
+ modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_OEE_TIME_DETAILS", b =>
+ {
+ b.Property("UId")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bigint");
+
+ SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId"));
+
+ b.Property("CreationTime")
+ .HasColumnType("datetime2");
+
+ b.Property("DeviceId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("DeviceName")
+ .IsRequired()
+ .HasMaxLength(33)
+ .HasColumnType("VARCHAR");
+
+ b.Property("EndTime")
+ .IsRequired()
+ .HasMaxLength(19)
+ .HasColumnType("CHAR");
+
+ b.Property("PlantId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("PlantName")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductionLineId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("ProductionLineName")
+ .HasMaxLength(50)
+ .HasColumnType("nvarchar");
+
+ b.Property("ReadState")
+ .ValueGeneratedOnAdd()
+ .HasColumnType("bit")
+ .HasDefaultValue(false);
+
+ b.Property("RecId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("Remark")
+ .HasMaxLength(500)
+ .HasColumnType("NVarchar");
+
+ b.Property("StartTime")
+ .IsRequired()
+ .HasMaxLength(19)
+ .HasColumnType("CHAR");
+
+ b.Property("StationId")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("StationName")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("SubType")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("SubTypeName")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("SupplierCode")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property("SupplierName")
+ .IsRequired()
+ .HasMaxLength(32)
+ .HasColumnType("VARCHAR");
+
+ b.Property