From b21e745d4950a7648ef1255535221b381fe8d9cd 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:22:04 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
API/TaskManager.Contracts/Dtos/Dtos.cs | 2 +-
API/TaskManager.Entity/Entity.cs | 19 +
.../20250610061746_z2025061000024.Designer.cs | 5323 ++++++++++++++++
.../20250610061746_z2025061000024.cs | 49 +
...50610062047_z20250610000240002.Designer.cs | 5330 +++++++++++++++++
.../20250610062047_z20250610000240002.cs | 158 +
.../Migrations/JobDbContextModelSnapshot.cs | 28 +-
.../Wood.Admin.WebApi.csproj | 8 +
.../CheryRecurringJobInputPageController.cs | 2 +-
.../CheryRecurringJobOutPageController.cs | 14 +-
API/Wood.Service/Controllers/LogService.cs | 93 +-
.../Controllers/RecurringJobBaseController.cs | 3 +
12 files changed, 11000 insertions(+), 29 deletions(-)
create mode 100644 API/TaskManager.EntityFramework/Migrations/20250610061746_z2025061000024.Designer.cs
create mode 100644 API/TaskManager.EntityFramework/Migrations/20250610061746_z2025061000024.cs
create mode 100644 API/TaskManager.EntityFramework/Migrations/20250610062047_z20250610000240002.Designer.cs
create mode 100644 API/TaskManager.EntityFramework/Migrations/20250610062047_z20250610000240002.cs
diff --git a/API/TaskManager.Contracts/Dtos/Dtos.cs b/API/TaskManager.Contracts/Dtos/Dtos.cs
index c392c1b..adeb208 100644
--- a/API/TaskManager.Contracts/Dtos/Dtos.cs
+++ b/API/TaskManager.Contracts/Dtos/Dtos.cs
@@ -1096,7 +1096,7 @@ namespace TaskManager.Contracts.Dtos
public string MaterialDescription { get; set; }
public string SummarySign { get; set; }
public string DateRequired { get; set; }
- public int QuantityDemand { get; set; }
+ public decimal? QuantityDemand { get; set; }
public string ConfirmTime { get; set; }
public decimal? CreatQuantity { get; set; }
public decimal? QuantityDelivery { get; set; }
diff --git a/API/TaskManager.Entity/Entity.cs b/API/TaskManager.Entity/Entity.cs
index 4e5742d..35b9512 100644
--- a/API/TaskManager.Entity/Entity.cs
+++ b/API/TaskManager.Entity/Entity.cs
@@ -29,10 +29,12 @@ namespace TaskManager.Entity
///
[ExporterHeader(DisplayName = "API路径")]
[ImporterHeader(Name = "API路径")]
+ [MaxLength(400)]
public string? Api { get; set; }
///
/// 任务周期设置
///
+ [MaxLength(400)]
[ExporterHeader(DisplayName = "任务周期设置")]
[ImporterHeader(Name = "任务周期设置")]
public string? Corn { get; set; }
@@ -41,6 +43,7 @@ namespace TaskManager.Entity
///
[ExporterHeader(IsIgnore = true)]
[ImporterHeader(IsIgnore = true)]
+ [MaxLength(400)]
public string? Module { get; set; }
///
@@ -48,6 +51,7 @@ namespace TaskManager.Entity
///
[ExporterHeader(DisplayName = "客户")]
[ImporterHeader(Name = "客户")]
+ [MaxLength(50)]
public string? Client { get; set; }
@@ -56,10 +60,12 @@ namespace TaskManager.Entity
///
[ExporterHeader(DisplayName = "备注")]
[ImporterHeader(Name = "备注")]
+
public string? Remark { get; set; }
///
/// 表名
///
+ [MaxLength(100)]
[ExporterHeader(DisplayName = "表名")]
[ImporterHeader(Name = "表名")]
@@ -67,11 +73,13 @@ namespace TaskManager.Entity
///
/// 任务名称
///
+ [MaxLength(200)]
[ExporterHeader(DisplayName = "任务名称")]
public string? TaskName { get; set; }
///
/// 全路径
///
+ [MaxLength(500)]
[ExporterHeader(DisplayName = "调用全路径")]
[ImporterHeader(Name = "调用全路径")]
public string? Url { get; set; }
@@ -81,6 +89,17 @@ namespace TaskManager.Entity
[ExporterHeader(DisplayName = "是否自动执行")]
[ImporterHeader(Name = "是否自动执行")]
public bool IsAuto { get; set; }
+
+ ///
+ /// 是否自动执行
+ ///
+ [ExporterHeader(DisplayName = "分页大小")]
+ [ImporterHeader(Name = "分页大小")]
+ public int PageSize { get; set; } = 500;
+
+
+
+
public TaskConifgure()
{ }
diff --git a/API/TaskManager.EntityFramework/Migrations/20250610061746_z2025061000024.Designer.cs b/API/TaskManager.EntityFramework/Migrations/20250610061746_z2025061000024.Designer.cs
new file mode 100644
index 0000000..0aa652a
--- /dev/null
+++ b/API/TaskManager.EntityFramework/Migrations/20250610061746_z2025061000024.Designer.cs
@@ -0,0 +1,5323 @@
+//
+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("20250610061746_z2025061000024")]
+ partial class z2025061000024
+ {
+ ///
+ 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.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(max)");
+
+ 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.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.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