From ed15151ec577ffce1e828146acbfe9d36fc806f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=AD=A6=20=E8=B5=B5?= <89237069@qq.com> Date: Tue, 10 Jun 2025 14:44:02 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- API/TaskManager.Entity/Entity.cs | 5 +- ...50610064324_z20250610000240003.Designer.cs | 5342 +++++++++++++++++ .../20250610064324_z20250610000240003.cs | 69 + .../Migrations/JobDbContextModelSnapshot.cs | 14 +- .../CheryRecurringJobInputPageController.cs | 20 +- .../CheryRecurringJobOutPageController.cs | 6 +- .../CherySupplierMrpDataService.cs | 8 +- .../CherySupplierMrpMonthService.cs | 7 +- .../Controllers/CherySupplierPoService.cs | 7 +- .../Controllers/RecurringJobBaseController.cs | 6 +- .../Controllers/TaskConifgureController.cs | 78 +- 11 files changed, 5509 insertions(+), 53 deletions(-) create mode 100644 API/TaskManager.EntityFramework/Migrations/20250610064324_z20250610000240003.Designer.cs create mode 100644 API/TaskManager.EntityFramework/Migrations/20250610064324_z20250610000240003.cs diff --git a/API/TaskManager.Entity/Entity.cs b/API/TaskManager.Entity/Entity.cs index 35b9512..2a1bcb3 100644 --- a/API/TaskManager.Entity/Entity.cs +++ b/API/TaskManager.Entity/Entity.cs @@ -19,7 +19,7 @@ namespace TaskManager.Entity public interface IDoExecute { - Task ExecuteAsync(string url, string path, string takName,string client); + Task ExecuteAsync(string url, string path, string takName,string client, int pageSize); } public class TaskConifgure:BaseEntity { @@ -259,6 +259,9 @@ namespace TaskManager.Entity public string? Id { get; set; } } + + [Index(nameof(Id), IsUnique = true)] + public class CherryConReadBaseEntity : BaseEntity { diff --git a/API/TaskManager.EntityFramework/Migrations/20250610064324_z20250610000240003.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250610064324_z20250610000240003.Designer.cs new file mode 100644 index 0000000..3b3101a --- /dev/null +++ b/API/TaskManager.EntityFramework/Migrations/20250610064324_z20250610000240003.Designer.cs @@ -0,0 +1,5342 @@ +// +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("20250610064324_z20250610000240003")] + partial class z20250610000240003 + { + /// + 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") + .HasMaxLength(10) + .HasColumnType("NVARCHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("NVARCHAR"); + + b.Property("Measures") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); + + b.Property("PlantId") + .HasMaxLength(64) + .HasColumnType("NVARCHAR"); + + 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") + .HasMaxLength(32) + .HasColumnType("NVARCHAR"); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("StartDate") + .HasColumnType("datetime2"); + + b.Property("SupplierCode") + .HasMaxLength(32) + .HasColumnType("NVARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); + + b.Property("VentureType") + .HasMaxLength(50) + .HasColumnType("NVARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + 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") + .HasMaxLength(10) + .HasColumnType("NVARCHAR"); + + b.Property("Id") + .HasColumnType("nvarchar(450)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("NVARCHAR"); + + b.Property("Measures") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); + + b.Property("PlantId") + .HasMaxLength(64) + .HasColumnType("NVARCHAR"); + + 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") + .HasMaxLength(32) + .HasColumnType("NVARCHAR"); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("StartMonth") + .HasMaxLength(7) + .HasColumnType("NVARCHAR"); + + b.Property("SupplierCode") + .HasMaxLength(32) + .HasColumnType("NVARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); + + b.Property("VentureType") + .HasMaxLength(50) + .HasColumnType("NVARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + 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") + .HasMaxLength(10) + .HasColumnType("NVARCHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Measures") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); + + b.Property("PurchaseOrder") + .HasMaxLength(50) + .HasColumnType("NVARCHAR"); + + 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") + .HasMaxLength(10) + .HasColumnType("NVARCHAR"); + + b.Property("SupplierCode") + .HasMaxLength(32) + .HasColumnType("NVARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VentureSpecific") + .HasMaxLength(255) + .HasColumnType("NVARCHAR"); + + b.Property("VentureType") + .HasMaxLength(50) + .HasColumnType("NVARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + 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_ATTACHMENT_DATA_DT", 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("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_DT", (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("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("Type") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WorkshopName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_OEE_TIME_DETAILS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS", 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(64) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeviceCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("MaxProcessingCapacity") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("MoldCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("MoldName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProcessCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProcessName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProcessOrder") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("Rhythm") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("RhythmUnit") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TechCode") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TechName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("TechVersion") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("ValidPeriod") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_PROCESS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CalibrationDate") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CalibrationDueDays") + .IsRequired() + .HasMaxLength(12) + .HasColumnType("CHAR"); + + b.Property("CavityCount") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CoolingChannelLayout") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CurrentLocation") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CurrentUsageCount") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("DesignLifeUnits") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("DesignLifeValue") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("DetectionAccuracy") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("DetectionRange") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("DeviceStatus") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("DeviceType") + .HasPrecision(1) + .HasColumnType("DECIMAL"); + + b.Property("Manufacturer") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("Material") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ModelNumber") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("MoldSize") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("OverhaulCount") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("ProductionDate") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("CHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("SerialNumber") + .IsRequired() + .HasMaxLength(64) + .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("ToleranceRange") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("UnitType") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WearThreshold") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.Entitys.SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CalibrationDate") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CalibrationDueDays") + .IsRequired() + .HasMaxLength(12) + .HasColumnType("CHAR"); + + b.Property("CavityCount") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CoolingChannelLayout") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("CurrentLocation") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CurrentUsageCount") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("DesignLifeUnits") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("DesignLifeValue") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("DetectionAccuracy") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("DetectionRange") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("DeviceStatus") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("DeviceType") + .HasPrecision(1) + .HasColumnType("DECIMAL"); + + b.Property("Manufacturer") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("Material") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ModelNumber") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("MoldSize") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("OverhaulCount") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("ProductionDate") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("CHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("SerialNumber") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ToleranceRange") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("UnitType") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WearThreshold") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_PROCESS_EQUIPMENT_DT", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_BOM", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("BomCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("BomName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("BomVersion") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("MaterialUnit") + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("SubMaterialCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubMaterialName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SubMaterialQuota") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("SubMaterialType") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("SubMaterialUnit") + .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("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductType") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_BOM", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_DEL_STATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataCreateTime") + .HasColumnType("datetime2"); + + b.Property("DeliveryNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDelivery") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReceivingCrossings") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("RoadReceiveTime") + .HasColumnType("datetime2"); + + b.Property("RoadShippedTime") + .HasColumnType("datetime2"); + + b.Property("SerialNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SerialSrate") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SupplierReceiveTime") + .HasColumnType("datetime2"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + 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("CheckInTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CheckOutTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("HaveQuantity") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("OperatorId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("OperatorName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PositionId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PositionName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("QualificationLevel") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(64) + .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("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_EMPLOYEE", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_DT", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheckInTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CheckOutTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("HaveQuantity") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("OperatorId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("OperatorName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PositionId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PositionName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("QualificationLevel") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(64) + .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("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_EMPLOYEE_DT", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO", 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(64) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("KeyStation") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + 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(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineOrder") + .HasPrecision(16) + .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("StationOrder") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + 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(64) + .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_INFO", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INFO_DT", 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(64) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("KeyStation") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + 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(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineOrder") + .HasPrecision(16) + .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("StationOrder") + .HasPrecision(16) + .HasColumnType("DECIMAL"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("VendorProductNo") + .IsRequired() + .HasMaxLength(64) + .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_INFO_DT", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_INV_DATA", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityCurrent") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StockState") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + 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") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("IsUpdate") + .HasColumnType("nvarchar(max)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDemand1") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand10") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand11") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand12") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand13") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand14") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand15") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand16") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand17") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand18") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand19") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand2") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand20") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand21") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand22") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand23") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand24") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand25") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand26") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand27") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand28") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand29") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand3") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand30") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand31") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand4") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand5") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand6") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand7") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand8") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand9") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StartDate") + .HasColumnType("datetime2"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.ToTable("SUPPLIER_MRP_DATE"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_MONTH", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "createByUser"); + + b.Property("CreateTime") + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "createTime"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "isDelete"); + + b.Property("IsUpdate") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "isUpdate"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "materialCode"); + + b.Property("MaterialDescription") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "materialDescription"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "plantId"); + + b.Property("PlantName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "plantName"); + + b.Property("QuantityDemand1") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand1"); + + b.Property("QuantityDemand10") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand10"); + + b.Property("QuantityDemand11") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand11"); + + b.Property("QuantityDemand12") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand12"); + + b.Property("QuantityDemand2") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand2"); + + b.Property("QuantityDemand3") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand3"); + + b.Property("QuantityDemand4") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand4"); + + b.Property("QuantityDemand5") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand5"); + + b.Property("QuantityDemand6") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand6"); + + b.Property("QuantityDemand7") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand7"); + + b.Property("QuantityDemand8") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand8"); + + b.Property("QuantityDemand9") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantityDemand9"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("StartMonth") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "startMonth"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); + + b.Property("UpdateTime") + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "updateTime"); + + b.Property("Version") + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "version"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.ToTable("SUPPLIER_MRP_MONTH"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_STATE", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("ConfirmTime") + .HasColumnType("datetime2"); + + b.Property("CreatQuantity") + .HasColumnType("decimal(18,2)"); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateRequired") + .HasColumnType("datetime2"); + + b.Property("DemandSrate") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("DemandType") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("OnTimePercentage") + .HasColumnType("decimal(18,2)"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDelivery") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityInTransit") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityReceive") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SummaryCreatQuantity") + .HasColumnType("decimal(18,2)"); + + b.Property("SummaryQuantityDelivery") + .HasColumnType("decimal(18,2)"); + + b.Property("SummaryQuantityInTransit") + .HasColumnType("decimal(18,2)"); + + b.Property("SummaryQuantityReceive") + .HasColumnType("decimal(18,2)"); + + b.Property("SummarySign") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.ToTable("SUPPLIER_MRP_STATE"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_MRP_WARNING", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateGap") + .HasColumnType("decimal(18,2)"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("InventoryGap") + .HasColumnType("decimal(18,2)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityCurrent") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityInTransit") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityPlanned") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityPlannedDelivery") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReckonDate") + .HasColumnType("datetime2"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.ToTable("SUPPLIER_MRP_WARNING"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PO", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("Batch") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Country") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeliveryDate") + .HasColumnType("datetime2"); + + b.Property("DeliveryPlace") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("ItemType") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialUnit") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Note") + .HasColumnType("nvarchar(max)"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PurchaseOrder") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Purchaser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDelivery") + .HasColumnType("decimal(18,2)"); + + b.Property("QuantityDemand") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SerialNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Supplier") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TradeTerms") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("VoucherDate") + .HasColumnType("datetime2"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.ToTable("SUPPLIER_PO"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CPS", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CarrierCode") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("Cc") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("Characteristic") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheckMode") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("CheckResult") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + 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("CollectTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DecimalValue") + .HasPrecision(26, 15) + .HasColumnType("DECIMAL"); + + b.Property("DetectionMode") + .HasMaxLength(20) + .HasColumnType("VARCHAR"); + + b.Property("DeviceCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("EmpCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("EmpName") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("FttQty") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("GatherSpot") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("IntputQty") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("LimitUpdateTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("LowerLimit") + .HasPrecision(26, 15) + .HasColumnType("DECIMAL"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("Parameter") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ProductionLineId") + .IsRequired() + .HasMaxLength(64) + .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("SamplingRate") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("Sc") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("Spc") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + b.Property("StandardValue") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("StationId") + .IsRequired() + .HasMaxLength(64) + .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("UnitCn") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("UnitEn") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("UpperLimit") + .HasPrecision(26, 15) + .HasColumnType("DECIMAL"); + + b.Property("VendorFieldCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorFieldDesc") + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorFieldName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + 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_CPS", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_CSCHEDUL", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("AssemblyMaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ModelCategory") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Models") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MotorMaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("OnLineDate") + .HasColumnType("datetime2"); + + b.Property("OnLineTime") + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); + + b.Property("Plant") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionLineId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionLineName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SortDate") + .HasColumnType("datetime2"); + + b.Property("SortTime") + .HasMaxLength(8) + .HasColumnType("nvarchar(8)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.ToTable("SUPPLIER_PRO_CSCHEDUL"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_DATA", 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("ChildHardwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ChildPackageInfo") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ChildSoftwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ChildSource") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("CollectTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateTime") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("CHAR"); + + b.Property("EmpCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("EmpName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("FinalQualityStatus") + .IsRequired() + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("InstrumentQualityStatus") + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("ManualQualityStatus") + .HasMaxLength(8) + .HasColumnType("VARCHAR"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("MaterialInputTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("MaterialOutputTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ParentHardwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ParentSoftwareRevision") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("PlantId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlantName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("ProductBatchNo") + .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("StationId") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("StationName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SubBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubProdName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SubProdNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubProdNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("SubProdSn") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierCode") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierName") + .HasMaxLength(100) + .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("VendorFieldName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("VendorFieldNum") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + 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_DATA", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_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") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("ProductionLineName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + 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") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("WorkshopName") + .HasMaxLength(50) + .HasColumnType("nvarchar"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_FIRST_PASSYIELD", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_HSCHEDUL", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Models") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("OnLineTime") + .HasColumnType("datetime2"); + + b.Property("ProductionLineId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionLineName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionType") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.ToTable("SUPPLIER_PRO_HSCHEDUL"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_MATERIAL_STOCK", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CheckNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CheckResult") + .IsRequired() + .HasMaxLength(2) + .HasColumnType("CHAR"); + + b.Property("CheckTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ComponentCode") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ComponentName") + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DeadLine") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("DeviceCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("DeviceName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("EmpCode") + .IsRequired() + .HasMaxLength(16) + .HasColumnType("VARCHAR"); + + b.Property("EmpName") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("FeatureLower") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("FeatureName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("FeatureUnit") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("FeatureUpper") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("FeatureValue") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("LimitUpdateTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("SamplingRate") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("StandardValue") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SubBatchNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubBatchNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("SubBatchSn") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierAddress") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SubSupplierName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SupplierSubCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierSubName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("VendorFieldCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("VendorFieldDesc") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.ToTable("SUPPLIER_PRO_MATERIAL_STOCK", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_PLANING", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("Assembly") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "assembly"); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "createByUser"); + + b.Property("CreateTime") + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "createTime"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "isDelete"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "materialCode"); + + b.Property("Models") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "models"); + + b.Property("Omterior") + .HasColumnType("nvarchar(max)"); + + b.Property("Pattern") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "pattern"); + + b.Property("Plant") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "plant"); + + b.Property("Quantity1") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity1"); + + b.Property("Quantity2") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity2"); + + b.Property("Quantity3") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity3"); + + b.Property("Quantity4") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity4"); + + b.Property("Quantity5") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity5"); + + b.Property("Quantity6") + .HasColumnType("decimal(18,2)") + .HasAnnotation("Relational:JsonPropertyName", "quantity6"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("ReleaseEdition") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "releaseEdition"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SalseDepartment") + .HasColumnType("nvarchar(max)"); + + b.Property("StartMonth") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "startMonth"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("Type") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "type"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)") + .HasAnnotation("Relational:JsonPropertyName", "updateByUser"); + + b.Property("UpdateTime") + .HasColumnType("datetime2") + .HasAnnotation("Relational:JsonPropertyName", "updateTime"); + + b.Property("Version") + .HasColumnType("int") + .HasAnnotation("Relational:JsonPropertyName", "version"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.ToTable("SUPPLIER_PRO_PLANING"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_PRO_SCHEDULING", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("ActualBeginTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("ActualEndTime") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("CheryProductName") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("CheryProductNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("ManufactureInputNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ManufactureNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("ManufactureNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ManufactureOutputNum") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("PlanBeginTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("PlanEndTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("PlanNo") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("PlanStatus") + .IsRequired() + .HasMaxLength(1) + .HasColumnType("CHAR"); + + 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("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("VendorProductName") + .IsRequired() + .HasMaxLength(100) + .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_SCHEDULING", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.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") + .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_PRO_TSCHEDUL", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("FinalOnLineTime") + .HasColumnType("datetime2"); + + b.Property("FinalWorkshop") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .IsRequired() + .HasMaxLength(5) + .HasColumnType("nvarchar(5)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Models") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("OnLineTime") + .HasColumnType("datetime2"); + + b.Property("ProductionLineId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ProductionLineName") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("Vin") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.ToTable("SUPPLIER_PRO_TSCHEDUL"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_RETURN", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DemandPickupTime") + .HasColumnType("datetime2"); + + b.Property("Feedback") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("Judge") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("LotNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PickUpCrossings") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PickUpLocation") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Plant") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDelivery") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("ReturnNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ReturnReason") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ReturnType") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SerialNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SerialSrate") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.ToTable("SUPPLIER_RETURN"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SA_WEEK", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DateReceived") + .HasColumnType("datetime2"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("IsDelete") + .HasColumnType("int"); + + b.Property("MaterialCode") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("MaterialDescription") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PlantId") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("PurchasingGroup") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("QuantityDemand") + .HasColumnType("decimal(18,2)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("ScheduleAgreement") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("SerialNumber") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("UpdateByUser") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("Version") + .HasColumnType("int"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.ToTable("SUPPLIER_SA_WEEK"); + }); + + modelBuilder.Entity("TaskManager.Entity.SUPPLIER_SINV_DATA", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataUpdateTime") + .IsRequired() + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("Id") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("InventoryStatus") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("MaterialCode") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("VARCHAR"); + + b.Property("MaterialDescription") + .IsRequired() + .HasMaxLength(100) + .HasColumnType("VARCHAR"); + + b.Property("MaterialType") + .IsRequired() + .HasMaxLength(20) + .HasColumnType("VARCHAR"); + + b.Property("ProductionCycle") + .IsRequired() + .HasMaxLength(10) + .HasColumnType("VARCHAR"); + + b.Property("QuantityCurrent") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("QuantityPlan") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("ReadState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.Property("Remark") + .HasMaxLength(500) + .HasColumnType("NVarchar"); + + b.Property("RequestDate") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SafetyStock") + .HasPrecision(16, 5) + .HasColumnType("DECIMAL"); + + b.Property("SupplierBatch") + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SupplierCode") + .IsRequired() + .HasMaxLength(32) + .HasColumnType("VARCHAR"); + + b.Property("SupplierName") + .IsRequired() + .HasMaxLength(64) + .HasColumnType("VARCHAR"); + + b.Property("SupplieryxqDate") + .HasMaxLength(19) + .HasColumnType("CHAR"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("WriteState") + .ValueGeneratedOnAdd() + .HasColumnType("bit") + .HasDefaultValue(false); + + b.HasKey("UId"); + + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + + b.ToTable("SUPPLIER_SINV_DATA", (string)null); + }); + + modelBuilder.Entity("TaskManager.Entity.TaskAllocation", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Creator") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("Subscriber") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TableName") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TaskName") + .IsRequired() + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("TaskAllocation"); + }); + + modelBuilder.Entity("TaskManager.Entity.TaskConifgure", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("Api") + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("Client") + .HasMaxLength(50) + .HasColumnType("nvarchar(50)"); + + b.Property("Corn") + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("IsAuto") + .HasColumnType("bit"); + + b.Property("Module") + .HasMaxLength(400) + .HasColumnType("nvarchar(400)"); + + b.Property("PageSize") + .HasColumnType("int"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TableName") + .HasMaxLength(100) + .HasColumnType("nvarchar(100)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TaskName") + .HasMaxLength(200) + .HasColumnType("nvarchar(200)"); + + b.Property("Url") + .HasMaxLength(500) + .HasColumnType("nvarchar(500)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("TaskConifgure"); + }); + + modelBuilder.Entity("TaskManager.Entity.TaskLog", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("Info") + .HasColumnType("nvarchar(max)"); + + b.Property("Path") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TaskName") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("Type") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("Version") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("TaskLogs"); + }); + + modelBuilder.Entity("TaskManager.Entity.TaskSub", b => + { + b.Property("UId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("UId")); + + b.Property("CreateTime") + .HasColumnType("datetime2"); + + b.Property("CreateUser") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("CreationTime") + .HasColumnType("datetime2"); + + b.Property("DataCount") + .HasColumnType("int"); + + b.Property("Domain") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("FailedCount") + .HasColumnType("int"); + + b.Property("FailedInfo") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("ReadState") + .HasColumnType("bit"); + + b.Property("Remark") + .HasColumnType("nvarchar(max)"); + + b.Property("Site") + .IsRequired() + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("Subscriber") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("SyncedPageCount") + .HasColumnType("int"); + + b.Property("TableName") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("TaskId") + .HasColumnType("uniqueidentifier"); + + b.Property("TaskName") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("UpdateTime") + .HasColumnType("datetime2"); + + b.Property("UpdateUser") + .HasMaxLength(30) + .HasColumnType("nvarchar(30)"); + + b.Property("WriteState") + .HasColumnType("bit"); + + b.HasKey("UId"); + + b.ToTable("TaskSub"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/API/TaskManager.EntityFramework/Migrations/20250610064324_z20250610000240003.cs b/API/TaskManager.EntityFramework/Migrations/20250610064324_z20250610000240003.cs new file mode 100644 index 0000000..0f65bdc --- /dev/null +++ b/API/TaskManager.EntityFramework/Migrations/20250610064324_z20250610000240003.cs @@ -0,0 +1,69 @@ +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace TaskManager.EntityFramework.Migrations +{ + /// + public partial class z20250610000240003 : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.AlterColumn( + name: "Id", + table: "SUPPLIER_CON_MMRP", + type: "nvarchar(450)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(max)", + oldNullable: true); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_PO_Id", + table: "SUPPLIER_CON_PO", + column: "Id", + unique: true, + filter: "[Id] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_MMRP_Id", + table: "SUPPLIER_CON_MMRP", + column: "Id", + unique: true, + filter: "[Id] IS NOT NULL"); + + migrationBuilder.CreateIndex( + name: "IX_SUPPLIER_CON_DATE_Id", + table: "SUPPLIER_CON_DATE", + column: "Id", + unique: true, + filter: "[Id] IS NOT NULL"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_PO_Id", + table: "SUPPLIER_CON_PO"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_MMRP_Id", + table: "SUPPLIER_CON_MMRP"); + + migrationBuilder.DropIndex( + name: "IX_SUPPLIER_CON_DATE_Id", + table: "SUPPLIER_CON_DATE"); + + migrationBuilder.AlterColumn( + name: "Id", + table: "SUPPLIER_CON_MMRP", + type: "nvarchar(max)", + nullable: true, + oldClrType: typeof(string), + oldType: "nvarchar(450)", + oldNullable: true); + } + } +} diff --git a/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs b/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs index ff64db2..c20de41 100644 --- a/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs +++ b/API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs @@ -215,6 +215,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + b.ToTable("SUPPLIER_CON_DATE", (string)null); }); @@ -234,7 +238,7 @@ namespace TaskManager.EntityFramework.Migrations .HasColumnType("NVARCHAR"); b.Property("Id") - .HasColumnType("nvarchar(max)"); + .HasColumnType("nvarchar(450)"); b.Property("MaterialCode") .HasMaxLength(50) @@ -335,6 +339,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + b.ToTable("SUPPLIER_CON_MMRP", (string)null); }); @@ -404,6 +412,10 @@ namespace TaskManager.EntityFramework.Migrations b.HasKey("UId"); + b.HasIndex("Id") + .IsUnique() + .HasFilter("[Id] IS NOT NULL"); + b.ToTable("SUPPLIER_CON_PO", (string)null); }); diff --git a/API/Wood.Service/Controllers/CheryRecurringJobInputPageController.cs b/API/Wood.Service/Controllers/CheryRecurringJobInputPageController.cs index 2d2f3f6..bb5ad80 100644 --- a/API/Wood.Service/Controllers/CheryRecurringJobInputPageController.cs +++ b/API/Wood.Service/Controllers/CheryRecurringJobInputPageController.cs @@ -64,16 +64,18 @@ namespace TaskManager.Controllers Path = first.Api; TaskName = first.TaskName; Client = client; + CPageSize = first.PageSize; await SyncTaskSubTable(TaskName, Client); } - protected override async Task DoExecutingAsync(string url, string path, string takName, string client) + protected override async Task DoExecutingAsync(string url, string path, string takName, string client, int pagesize) { Url = url; Path = path; TaskName = takName; Client = client; + CPageSize = pagesize; await SyncTaskSubTable(TaskName,Client); } @@ -497,7 +499,7 @@ namespace TaskManager.Controllers } catch (Exception ex) { - await _logger.AddError(ex.Message, TaskName); + //await _logger.AddError(ex.Message, TaskName); return new JsonResult(new { Code = 400, Message = "导入失败:" + ex.Message }); } } @@ -529,10 +531,18 @@ namespace TaskManager.Controllers - public override void Write(Utf8JsonWriter writer, decimal value, JsonSerializerOptions options) + public class DecimalTrimConverter : JsonConverter { - // 关键步骤:使用 TrimTrailingZeros() 去掉末尾的 0 - writer.WriteStringValue(value.ToString("0.########################", CultureInfo.InvariantCulture)); + public override decimal Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options) + { + return reader.GetDecimal(); + } + + public override void Write(Utf8JsonWriter writer, decimal value, JsonSerializerOptions options) + { + // 关键步骤:使用 TrimTrailingZeros() 去掉末尾的 0 + writer.WriteStringValue(value.ToString("0.########################", CultureInfo.InvariantCulture)); + } } } } diff --git a/API/Wood.Service/Controllers/CheryRecurringJobOutPageController.cs b/API/Wood.Service/Controllers/CheryRecurringJobOutPageController.cs index e2beb6e..1a03d03 100644 --- a/API/Wood.Service/Controllers/CheryRecurringJobOutPageController.cs +++ b/API/Wood.Service/Controllers/CheryRecurringJobOutPageController.cs @@ -407,14 +407,16 @@ namespace TaskManager.Controllers Url =first.Url; Path = first.Api; TaskName = taskName; + CPageSize = first.PageSize; await FetchAllDataAsync(inputdate); } - protected override async Task DoExecutingAsync(string url, string path, string takName, string client) + protected override async Task DoExecutingAsync(string url, string path, string takName, string client, int pagesize) { Url = url; Path = path; TaskName = takName; Client = client; + CPageSize = pagesize; await FetchAllDataAsync(string.Empty); } @@ -707,7 +709,7 @@ namespace TaskManager.Controllers } catch (Exception ex) { - await _logger.AddError(ex.Message, TaskName); + //await _logger.AddError(ex.Message, TaskName); return new JsonResult(new { Code = 400, Message = "导入失败:" + ex.Message }); } } diff --git a/API/Wood.Service/Controllers/CherySupplierMrpDataService.cs b/API/Wood.Service/Controllers/CherySupplierMrpDataService.cs index c75fc6a..4264333 100644 --- a/API/Wood.Service/Controllers/CherySupplierMrpDataService.cs +++ b/API/Wood.Service/Controllers/CherySupplierMrpDataService.cs @@ -70,7 +70,13 @@ namespace TaskManager.Controllers list.Add(con); }); - await dbContext.BulkInsertAsync(list, options => { options.Transaction = dbTransaction; options.UseTableLock = false; }); + await dbContext.BulkMergeAsync(list, options => { options.Transaction = dbTransaction; options.UseTableLock = false; + + options.ColumnPrimaryKeyExpression = p => p.Id ; + + + + }); } return; } diff --git a/API/Wood.Service/Controllers/CherySupplierMrpMonthService.cs b/API/Wood.Service/Controllers/CherySupplierMrpMonthService.cs index cc23541..a7a8665 100644 --- a/API/Wood.Service/Controllers/CherySupplierMrpMonthService.cs +++ b/API/Wood.Service/Controllers/CherySupplierMrpMonthService.cs @@ -54,7 +54,12 @@ namespace TaskManager.Controllers list.Add(con); }); - await dbContext.BulkInsertAsync(list, options=> { options.Transaction = dbTransaction; options.UseTableLock = false; }); + await dbContext.BulkMergeAsync(list, options=> { options.Transaction = dbTransaction; options.UseTableLock = false; + + options.ColumnPrimaryKeyExpression = p => p.Id; + + + }); } return; } diff --git a/API/Wood.Service/Controllers/CherySupplierPoService.cs b/API/Wood.Service/Controllers/CherySupplierPoService.cs index 8a90682..bfde997 100644 --- a/API/Wood.Service/Controllers/CherySupplierPoService.cs +++ b/API/Wood.Service/Controllers/CherySupplierPoService.cs @@ -41,7 +41,12 @@ namespace TaskManager.Controllers list.Add(con); }); - await dbContext.BulkInsertAsync(list, options => { options.Transaction = dbTransaction; options.UseTableLock = false; }); + await dbContext.BulkMergeAsync(list, options => { options.Transaction = dbTransaction; options.UseTableLock = false; + + options.ColumnPrimaryKeyExpression = p => p.Id; + + + }); } return; } diff --git a/API/Wood.Service/Controllers/RecurringJobBaseController.cs b/API/Wood.Service/Controllers/RecurringJobBaseController.cs index 3ba46f1..de469b9 100644 --- a/API/Wood.Service/Controllers/RecurringJobBaseController.cs +++ b/API/Wood.Service/Controllers/RecurringJobBaseController.cs @@ -161,17 +161,17 @@ namespace TaskManager.Controllers //await _logger.AddInfo($"{TaskName}结束执行作业{uid}", TaskName); } [NonAction] - public async Task ExecuteAsync(string url, string path, string taskName,string client) + public async Task ExecuteAsync(string url, string path, string taskName,string client,int pageSize) { var str = DateTime.Now.ToLongTimeString(); await BeforeExecuteAsync(str); - await DoExecutingAsync(url, path, taskName,client); + await DoExecutingAsync(url, path, taskName,client,pageSize); await AfterExecuteAsync(str); } - protected async virtual Task DoExecutingAsync(string url, string path, string takName,string client) + protected async virtual Task DoExecutingAsync(string url, string path, string takName,string client,int pageSize) { diff --git a/API/Wood.Service/Controllers/TaskConifgureController.cs b/API/Wood.Service/Controllers/TaskConifgureController.cs index f3eef6a..c606002 100644 --- a/API/Wood.Service/Controllers/TaskConifgureController.cs +++ b/API/Wood.Service/Controllers/TaskConifgureController.cs @@ -61,9 +61,10 @@ namespace TaskManager.Controllers var url = first.Url; var path = first.Api; var client = first.Client; + var pagesize = first.PageSize; var controller = _builder.GetRequiredService(); - await controller.ExecuteAsync(url, path, taskName,client); + await controller.ExecuteAsync(url, path, taskName,client,pagesize); } @@ -333,13 +334,14 @@ namespace TaskManager.Controllers var url = task.Url; var path = task.Api; var client = task.Client; + var pagesize = task.PageSize; switch (task.TaskName) { case "来料检验数据": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -347,7 +349,7 @@ namespace TaskManager.Controllers case "排产数据": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -355,7 +357,7 @@ namespace TaskManager.Controllers case "供应商基础信息": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -363,7 +365,7 @@ namespace TaskManager.Controllers case "人员资质信息": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -371,7 +373,7 @@ namespace TaskManager.Controllers case "BOM主数据": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -379,7 +381,7 @@ namespace TaskManager.Controllers case "过程控制项质量数据": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -387,7 +389,7 @@ namespace TaskManager.Controllers case "生产过程数据": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -395,7 +397,7 @@ namespace TaskManager.Controllers case "产品一次合格率": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -403,7 +405,7 @@ namespace TaskManager.Controllers case "工位一次合格率": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -411,7 +413,7 @@ namespace TaskManager.Controllers case "缺陷业务数据": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -419,7 +421,7 @@ namespace TaskManager.Controllers case "环境业务数据": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -427,7 +429,7 @@ namespace TaskManager.Controllers case "设备OEE达成率": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -435,7 +437,7 @@ namespace TaskManager.Controllers case "OEE时间明细": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -443,7 +445,7 @@ namespace TaskManager.Controllers case "物料主数据": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -451,7 +453,7 @@ namespace TaskManager.Controllers case "附件类数据": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -459,7 +461,7 @@ namespace TaskManager.Controllers case "工艺装备": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -467,7 +469,7 @@ namespace TaskManager.Controllers case "工艺": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -476,7 +478,7 @@ namespace TaskManager.Controllers case "整车月度生产计划1": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -484,7 +486,7 @@ namespace TaskManager.Controllers case "M+6月物料需求计划1": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -492,7 +494,7 @@ namespace TaskManager.Controllers case "整车月度生产计划2": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -500,7 +502,7 @@ namespace TaskManager.Controllers case "M+6月物料需求计划2": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -508,7 +510,7 @@ namespace TaskManager.Controllers case "日物料需求计划": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -516,7 +518,7 @@ namespace TaskManager.Controllers case "计划协议": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -524,7 +526,7 @@ namespace TaskManager.Controllers case "采购订单": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -532,7 +534,7 @@ namespace TaskManager.Controllers case "过焊装未过总装": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -540,7 +542,7 @@ namespace TaskManager.Controllers case "过涂装未过总装": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -548,7 +550,7 @@ namespace TaskManager.Controllers case "排序供货": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -556,7 +558,7 @@ namespace TaskManager.Controllers case "看板配送单": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -564,7 +566,7 @@ namespace TaskManager.Controllers case "退货单": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -572,7 +574,7 @@ namespace TaskManager.Controllers case "奇瑞RDC共享库存": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -580,7 +582,7 @@ namespace TaskManager.Controllers case "日MRP状态监控": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -588,7 +590,7 @@ namespace TaskManager.Controllers case "日MRP预警推移": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -596,7 +598,7 @@ namespace TaskManager.Controllers case "M+6月物料需求计划风险确认": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -604,7 +606,7 @@ namespace TaskManager.Controllers case "日物料需求计划风险确认": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -612,7 +614,7 @@ namespace TaskManager.Controllers case "采购订单风险确认": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -621,7 +623,7 @@ namespace TaskManager.Controllers RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local ); @@ -629,7 +631,7 @@ namespace TaskManager.Controllers case "供应商共享库存-晚上": RecurringJob.AddOrUpdate( task.TaskName, - x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client), + x => ((IDoExecute)x).ExecuteAsync(url, path, task.TaskName, client,pagesize), task.Corn, TimeZoneInfo.Local );