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