Browse Source

提交

master
赵新宇 4 days ago
parent
commit
68b88086b8
  1. 128
      API/TaskManager.Contracts/Dtos/Dtos.cs
  2. 26
      API/TaskManager.Entity/11-18/SUPPLIER_CON_DATE.cs
  3. 12
      API/TaskManager.Entity/11-18/SUPPLIER_CON_MMRP.cs
  4. 2
      API/TaskManager.Entity/11-18/SUPPLIER_CON_PO.cs
  5. 17
      API/TaskManager.Entity/Entity.cs
  6. 89
      API/TaskManager.EntityFramework/JobDbContext.cs
  7. 5242
      API/TaskManager.EntityFramework/Migrations/20250609023049_z202506090001.Designer.cs
  8. 385
      API/TaskManager.EntityFramework/Migrations/20250609023049_z202506090001.cs
  9. 5242
      API/TaskManager.EntityFramework/Migrations/20250609031426_z202506090002.Designer.cs
  10. 36
      API/TaskManager.EntityFramework/Migrations/20250609031426_z202506090002.cs
  11. 5260
      API/TaskManager.EntityFramework/Migrations/20250609033910_z202506090003.Designer.cs
  12. 22
      API/TaskManager.EntityFramework/Migrations/20250609033910_z202506090003.cs
  13. 5227
      API/TaskManager.EntityFramework/Migrations/20250609034358_z202506090004.Designer.cs
  14. 842
      API/TaskManager.EntityFramework/Migrations/20250609034358_z202506090004.cs
  15. 5227
      API/TaskManager.EntityFramework/Migrations/20250609035549_z202506090005.Designer.cs
  16. 566
      API/TaskManager.EntityFramework/Migrations/20250609035549_z202506090005.cs
  17. 5227
      API/TaskManager.EntityFramework/Migrations/20250609051230_z202506090006.Designer.cs
  18. 37
      API/TaskManager.EntityFramework/Migrations/20250609051230_z202506090006.cs
  19. 5227
      API/TaskManager.EntityFramework/Migrations/20250609053405_z202506090007.Designer.cs
  20. 22
      API/TaskManager.EntityFramework/Migrations/20250609053405_z202506090007.cs
  21. 5252
      API/TaskManager.EntityFramework/Migrations/20250609054243_z202506090008.Designer.cs
  22. 579
      API/TaskManager.EntityFramework/Migrations/20250609054243_z202506090008.cs
  23. 261
      API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs
  24. 2
      API/TaskManager.EntityFramework/Repository/Repository.cs
  25. 35
      API/Wood.Service/Controllers/CheryRecurringJobOutPageController.cs
  26. 6
      API/Wood.Service/Controllers/CherySupplierMrpDataService.cs
  27. 24
      API/Wood.Service/Controllers/CherySupplierPoService.cs

128
API/TaskManager.Contracts/Dtos/Dtos.cs

@ -170,37 +170,37 @@ namespace TaskManager.Contracts.Dtos
/// 数量1
/// </summary>
[JsonPropertyName("quantity1")]
public int Quantity1 { get; set; } = 1;
public decimal? Quantity1 { get; set; } = 1;
/// <summary>
/// 数量2
/// </summary>
[JsonPropertyName("quantity2")]
public int Quantity2 { get; set; } = 1;
public decimal? Quantity2 { get; set; } = 1;
/// <summary>
/// 数量3
/// </summary>
[JsonPropertyName("quantity3")]
public int Quantity3 { get; set; } = 1;
public decimal? Quantity3 { get; set; } = 1;
/// <summary>
/// 数量4
/// </summary>
[JsonPropertyName("quantity4")]
public int Quantity4 { get; set; } = 1;
public decimal? Quantity4 { get; set; } = 1;
/// <summary>
/// 数量5
/// </summary>
[JsonPropertyName("quantity5")]
public int Quantity5 { get; set; } = 1;
public decimal? Quantity5 { get; set; } = 1;
/// <summary>
/// 数量6
/// </summary>
[JsonPropertyName("quantity6")]
public int Quantity6 { get; set; } = 1;
public decimal? Quantity6 { get; set; } = 1;
/// <summary>
/// 工厂
@ -286,18 +286,18 @@ namespace TaskManager.Contracts.Dtos
public string PlantId { get; set; }
public string PlantName { get; set; }
public string StartMonth { get; set; }
public int QuantityDemand1 { get; set; }
public int QuantityDemand2 { get; set; }
public int QuantityDemand3 { get; set; }
public int QuantityDemand4 { get; set; }
public int QuantityDemand5 { get; set; }
public int QuantityDemand6 { get; set; }
public int QuantityDemand7 { get; set; }
public int QuantityDemand8 { get; set; }
public int QuantityDemand9 { get; set; }
public int QuantityDemand10 { get; set; }
public int QuantityDemand11 { get; set; }
public int QuantityDemand12 { get; set; }
public decimal? QuantityDemand1 { get; set; }
public decimal? QuantityDemand2 { get; set; }
public decimal? QuantityDemand3 { get; set; }
public decimal? QuantityDemand4 { get; set; }
public decimal? QuantityDemand5 { get; set; }
public decimal? QuantityDemand6 { get; set; }
public decimal? QuantityDemand7 { get; set; }
public decimal? QuantityDemand8 { get; set; }
public decimal? QuantityDemand9 { get; set; }
public decimal? QuantityDemand10 { get; set; }
public decimal? QuantityDemand11 { get; set; }
public decimal? QuantityDemand12 { get; set; }
public string IsUpdate { get; set; }
public string CreateByUser { get; set; }
public DateTime CreateTime { get; set; }
@ -423,7 +423,7 @@ namespace TaskManager.Contracts.Dtos
/// <summary>
/// 需求数量
/// </summary>
public int QuantityDemand { get; set; } = 1;
public decimal? QuantityDemand { get; set; } = 1;
/// <summary>
/// 交货日期-格式:yyyy-MM-dd
@ -1067,7 +1067,7 @@ namespace TaskManager.Contracts.Dtos
public DateTime CreateTime { get; set; }
public string UpdateByUser { get; set; }
public DateTime UpdateTime { get; set; }
public int IsDelete { get; set; }
public string IsDelete { get; set; }
public int Version { get; set; }
}
@ -1171,18 +1171,18 @@ public class SUPPLIER_MRP_WARNING_DETAIL_DTO : CherryReadBaseEntityDto
public string VentureSpecific { get; set; }
public string Measures { get; set; }
public string StartMonth { get; set; }
public int QuantityMeet1 { get; set; }
public int QuantityMeet2 { get; set; }
public int QuantityMeet3 { get; set; }
public int QuantityMeet4 { get; set; }
public int QuantityMeet5 { get; set; }
public int QuantityMeet6 { get; set; }
public int QuantityMeet7 { get; set; }
public int QuantityMeet8 { get; set; }
public int QuantityMeet9 { get; set; }
public int QuantityMeet10 { get; set; }
public int QuantityMeet11 { get; set; }
public int QuantityMeet12 { get; set; }
public decimal? QuantityMeet1 { get; set; }
public decimal? QuantityMeet2 { get; set; }
public decimal? QuantityMeet3 { get; set; }
public decimal? QuantityMeet4 { get; set; }
public decimal? QuantityMeet5 { get; set; }
public decimal? QuantityMeet6 { get; set; }
public decimal? QuantityMeet7 { get; set; }
public decimal? QuantityMeet8 { get; set; }
public decimal? QuantityMeet9 { get; set; }
public decimal? QuantityMeet10 { get; set; }
public decimal? QuantityMeet11 { get; set; }
public decimal? QuantityMeet12 { get; set; }
}
public class SUPPLIER_CON_MMRP_DTO
@ -1266,52 +1266,52 @@ public class SUPPLIER_MRP_WARNING_DETAIL_DTO : CherryReadBaseEntityDto
/// <summary>
/// 需求起始日期(格式:yyyy-MM-dd)
/// </summary>
public DateTime StartDate { get; set; }
public DateTime? StartDate { get; set; }
/// <summary>
/// 需求起始日期的需求数量
/// </summary>
public int QuantityDemand1 { get; set; } = 1;
public decimal? QuantityDemand1 { get; set; } = 1;
/// <summary>
/// 起始日期+1天的需求数量
/// </summary>
public int QuantityDemand2 { get; set; } = 1;
public decimal? QuantityDemand2 { get; set; } = 1;
/// <summary>
/// 起始日期+2天的需求数量(以此类推)
/// </summary>
public int QuantityDemand3 { get; set; } = 1;
public decimal? QuantityDemand3 { get; set; } = 1;
// 省略 QuantityDemand4 至 QuantityDemand31 的重复注释(格式与上述一致)
public decimal QuantityDemand4 { get; set; } = 0;
public decimal QuantityDemand5 { get; set; } = 0;
public decimal QuantityDemand6 { get; set; } = 0;
public decimal QuantityDemand7 { get; set; } = 0;
public decimal QuantityDemand8 { get; set; } = 0;
public decimal QuantityDemand9 { get; set; } = 0;
public decimal QuantityDemand10 { get; set; } = 0;
public decimal QuantityDemand11 { get; set; } = 0;
public decimal QuantityDemand12 { get; set; } = 0;
public decimal QuantityDemand13 { get; set; } = 0;
public decimal QuantityDemand14 { get; set; } = 0;
public decimal QuantityDemand15 { get; set; } = 0;
public decimal QuantityDemand16 { get; set; } = 0;
public decimal QuantityDemand17 { get; set; } = 0;
public decimal QuantityDemand18 { get; set; } = 0;
public decimal QuantityDemand19 { get; set; } = 0;
public decimal QuantityDemand20 { get; set; } = 0;
public decimal QuantityDemand21 { get; set; } = 0;
public decimal QuantityDemand22 { get; set; } = 0;
public decimal QuantityDemand23 { get; set; } = 0;
public decimal QuantityDemand24 { get; set; } = 0;
public decimal QuantityDemand25 { get; set; } = 0;
public decimal QuantityDemand26 { get; set; } = 0;
public decimal QuantityDemand27 { get; set; } = 0;
public decimal QuantityDemand28 { get; set; } = 0;
public decimal QuantityDemand29 { get; set; } = 0;
public decimal QuantityDemand30 { get; set; } = 0;
public decimal QuantityDemand31 { get; set; } = 0;
public decimal? QuantityDemand4 { get; set; } = 0;
public decimal? QuantityDemand5 { get; set; } = 0;
public decimal? QuantityDemand6 { get; set; } = 0;
public decimal? QuantityDemand7 { get; set; } = 0;
public decimal? QuantityDemand8 { get; set; } = 0;
public decimal? QuantityDemand9 { get; set; } = 0;
public decimal? QuantityDemand10 { get; set; } = 0;
public decimal? QuantityDemand11 { get; set; } = 0;
public decimal? QuantityDemand12 { get; set; } = 0;
public decimal? QuantityDemand13 { get; set; } = 0;
public decimal? QuantityDemand14 { get; set; } = 0;
public decimal? QuantityDemand15 { get; set; } = 0;
public decimal? QuantityDemand16 { get; set; } = 0;
public decimal? QuantityDemand17 { get; set; } = 0;
public decimal? QuantityDemand18 { get; set; } = 0;
public decimal? QuantityDemand19 { get; set; } = 0;
public decimal? QuantityDemand20 { get; set; } = 0;
public decimal? QuantityDemand21 { get; set; } = 0;
public decimal? QuantityDemand22 { get; set; } = 0;
public decimal? QuantityDemand23 { get; set; } = 0;
public decimal? QuantityDemand24 { get; set; } = 0;
public decimal? QuantityDemand25 { get; set; } = 0;
public decimal? QuantityDemand26 { get; set; } = 0;
public decimal? QuantityDemand27 { get; set; } = 0;
public decimal? QuantityDemand28 { get; set; } = 0;
public decimal? QuantityDemand29 { get; set; } = 0;
public decimal? QuantityDemand30 { get; set; } = 0;
public decimal? QuantityDemand31 { get; set; } = 0;
/// <summary>
/// 数据变更标识(1=更新需求,0=未变更)

26
API/TaskManager.Entity/11-18/SUPPLIER_CON_DATE.cs

@ -60,79 +60,79 @@ namespace TaskManager.Entity.Entitys
/// </summary>
[ExporterHeader(DisplayName = "起始日期")]
[ImporterHeader(Name = "起始日期")]
public string StartDate { get; set; }
public DateTime? StartDate { get; set; }
/// <summary>
/// 满足数量1,数量锁定,7日内满足数量必须等于需求数量
/// </summary>
[ExporterHeader(DisplayName = "满足数量1")]
[ImporterHeader(Name = "满足数量1")]
public decimal QuantityMeet1 { get; set; }
public decimal? QuantityMeet1 { get; set; }
/// <summary>
/// 满足数量2,
/// </summary>
[ExporterHeader(DisplayName = "满足数量2")]
[ImporterHeader(Name = "满足数量2")]
public decimal QuantityMeet2 { get; set; }
public decimal? QuantityMeet2 { get; set; }
/// <summary>
/// 满足数量3,
/// </summary>
[ExporterHeader(DisplayName = "满足数量3")]
[ImporterHeader(Name = "满足数量3")]
public decimal QuantityMeet3 { get; set; }
public decimal? QuantityMeet3 { get; set; }
/// <summary>
/// 满足数量4,
/// </summary>
[ExporterHeader(DisplayName = "满足数量4")]
[ImporterHeader(Name = "满足数量4")]
public decimal QuantityMeet4 { get; set; }
public decimal? QuantityMeet4 { get; set; }
/// <summary>
/// 满足数量5,
/// </summary>
[ExporterHeader(DisplayName = "满足数量5")]
[ImporterHeader(Name = "满足数量5")]
public decimal QuantityMeet5 { get; set; }
public decimal? QuantityMeet5 { get; set; }
/// <summary>
/// 满足数量6,
/// </summary>
[ExporterHeader(DisplayName = "满足数量6")]
[ImporterHeader(Name = "满足数量6")]
public decimal QuantityMeet6 { get; set; }
public decimal? QuantityMeet6 { get; set; }
/// <summary>
/// 满足数量7,
/// </summary>
[ExporterHeader(DisplayName = "满足数量7")]
[ImporterHeader(Name = "满足数量7")]
public decimal QuantityMeet7 { get; set; }
public decimal? QuantityMeet7 { get; set; }
/// <summary>
/// 满足数量8,根据物料需求计划接口发布的需求天数,针对企业自身产能情况反馈可满足数量注:目前发送数据为滚动12天的数据,13至31天的字段为预留,未来可能会增加至31天
/// </summary>
[ExporterHeader(DisplayName = "满足数量8")]
[ImporterHeader(Name = "满足数量8")]
public decimal QuantityMeet8 { get; set; }
public decimal? QuantityMeet8 { get; set; }
/// <summary>
/// 满足数量9,
/// </summary>
[ExporterHeader(DisplayName = "满足数量9")]
[ImporterHeader(Name = "满足数量9")]
public decimal QuantityMeet9 { get; set; }
public decimal? QuantityMeet9 { get; set; }
/// <summary>
/// 满足数量10,
/// </summary>
[ExporterHeader(DisplayName = "满足数量10")]
[ImporterHeader(Name = "满足数量10")]
public decimal QuantityMeet10 { get; set; }
public decimal? QuantityMeet10 { get; set; }
/// <summary>
/// 满足数量11,
/// </summary>
[ExporterHeader(DisplayName = "满足数量11")]
[ImporterHeader(Name = "满足数量11")]
public decimal QuantityMeet11 { get; set; }
public decimal? QuantityMeet11 { get; set; }
/// <summary>
/// 满足数量12,
/// </summary>
[ExporterHeader(DisplayName = "满足数量12")]
[ImporterHeader(Name = "满足数量12")]
public decimal QuantityMeet12 { get; set; }
public decimal? QuantityMeet12 { get; set; }
/// <summary>
/// 满足数量13,
/// </summary>

12
API/TaskManager.Entity/11-18/SUPPLIER_CON_MMRP.cs

@ -66,37 +66,37 @@ namespace TaskManager.Entity.Entitys
/// </summary>
[ExporterHeader(DisplayName = "满足数量1")]
[ImporterHeader(Name = "满足数量1")]
public decimal QuantityMeet1 { get; set; }
public decimal? QuantityMeet1 { get; set; }
/// <summary>
/// 满足数量2
/// </summary>
[ExporterHeader(DisplayName = "满足数量2")]
[ImporterHeader(Name = "满足数量2")]
public decimal QuantityMeet2 { get; set; }
public decimal? QuantityMeet2 { get; set; }
/// <summary>
/// 满足数量3
/// </summary>
[ExporterHeader(DisplayName = "满足数量3")]
[ImporterHeader(Name = "满足数量3")]
public decimal QuantityMeet3 { get; set; }
public decimal? QuantityMeet3 { get; set; }
/// <summary>
/// 满足数量4
/// </summary>
[ExporterHeader(DisplayName = "满足数量4")]
[ImporterHeader(Name = "满足数量4")]
public decimal QuantityMeet4 { get; set; }
public decimal? QuantityMeet4 { get; set; }
/// <summary>
/// 满足数量5
/// </summary>
[ExporterHeader(DisplayName = "满足数量5")]
[ImporterHeader(Name = "满足数量5")]
public decimal QuantityMeet5 { get; set; }
public decimal? QuantityMeet5 { get; set; }
/// <summary>
/// 满足数量6
/// </summary>
[ExporterHeader(DisplayName = "满足数量6")]
[ImporterHeader(Name = "满足数量6")]
public decimal QuantityMeet6 { get; set; }
public decimal? QuantityMeet6 { get; set; }
/// <summary>
/// 满足数量7
/// </summary>

2
API/TaskManager.Entity/11-18/SUPPLIER_CON_PO.cs

@ -30,7 +30,7 @@ namespace TaskManager.Entity.Entitys
/// </summary>
[ExporterHeader(DisplayName = "满足数量")]
[ImporterHeader(Name = "满足数量")]
public decimal QuantityMeet { get; set; }
public decimal? QuantityMeet { get; set; }
/// <summary>
/// 反馈结果,1-异常;0-无异常(匹配峰值需求缺口,如果可满足峰值,即选择无异常)
/// </summary>

17
API/TaskManager.Entity/Entity.cs

@ -227,11 +227,13 @@ namespace TaskManager.Entity
/// 请求发出日期
/// </summary>
[ExporterHeader(DisplayName = "请求发出日期")]
[MaxLength(30)]
public string? RequestDate { get; set; }
/// <summary>
/// 同步ID
/// </summary>
[ExporterHeader(DisplayName = "奇瑞记录ID")]
[MaxLength(50)]
public string? Id { get; set; }
}
@ -638,7 +640,7 @@ namespace TaskManager.Entity
/// </summary>
[JsonPropertyName("quantityDemand12")]
[ExporterHeader(DisplayName = "需求数量12")]
public int QuantityDemand12 { get; set; } =0;
public decimal? QuantityDemand12 { get; set; } =0;
/// <summary>
/// 当文件夹数据发生变更时(更新需求=1/否则=0)
@ -748,19 +750,20 @@ namespace TaskManager.Entity
/// 需求起始日期(格式:yyyy-MM-dd)
/// </summary>
[ExporterHeader(DisplayName = "需求起始日期")]
public DateTime StartDate { get; set; }
public DateTime? StartDate { get; set; }
/// <summary>
/// 需求起始日期的需求数量
/// </summary>
[ExporterHeader(DisplayName = "第1天需求数量")]
public int QuantityDemand1 { get; set; } =0;
public decimal? QuantityDemand1 { get; set; } =0;
/// <summary>
/// 起始日期+1天的需求数量
/// </summary>
[ExporterHeader(DisplayName = "第2天需求数量")]
public int QuantityDemand2 { get; set; } =0;
public decimal? QuantityDemand2 { get; set; } =0;
/// <summary>
/// 起始日期+2天的需求数量(以此类推)
@ -1157,12 +1160,12 @@ namespace TaskManager.Entity
/// 到货数量
/// </summary>
[ExporterHeader(DisplayName = "到货数量")]
public int QuantityDelivery { get; set; } =0;
public decimal? QuantityDelivery { get; set; } =0;
/// <summary>
/// 备注:含批次号信息
/// </summary>
[MaxLength(50)]
[ExporterHeader(DisplayName = "备注")]
public string? Note { get; set; }
@ -1673,7 +1676,7 @@ namespace TaskManager.Entity
/// 数量
/// </summary>
[ExporterHeader(DisplayName = "数量")]
public int QuantityDelivery { get; set; } =0;
public decimal? QuantityDelivery { get; set; } =0;
/// <summary>
/// 创建时间

89
API/TaskManager.EntityFramework/JobDbContext.cs

@ -5,6 +5,7 @@ using Microsoft.EntityFrameworkCore.ChangeTracking;
using Microsoft.EntityFrameworkCore.Infrastructure;
using Microsoft.EntityFrameworkCore.Metadata;
using Microsoft.Extensions.Configuration;
using OfficeOpenXml.FormulaParsing.Excel.Functions.Logical;
using System;
using System;
using System.Collections.Generic;
@ -1309,35 +1310,35 @@ namespace TaskManager.EntityFramework
{
b.ToTable("SUPPLIER_CON_MMRP");
//供应商代码
b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
b.Property(e => e.SupplierCode).HasColumnType("NVARCHAR").HasMaxLength(32).IsRequired(false);
//需求发布版次,取自M+6月物料需求计划接口中的需求发布版次,针对与这个版次的需求进行风险反馈
b.Property(e => e.ReleaseEdition).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
b.Property(e => e.ReleaseEdition).HasColumnType("NVARCHAR").HasMaxLength(32).IsRequired(false);
//零件号,奇瑞零件号
b.Property(e => e.MaterialCode).HasColumnType("VARCHAR").HasMaxLength(50).IsRequired();
b.Property(e => e.MaterialCode).HasColumnType("NVARCHAR").HasMaxLength(50).IsRequired(false);
//工厂代码,
b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
b.Property(e => e.PlantId).HasColumnType("NVARCHAR").HasMaxLength(64).IsRequired(false);
//反馈结果,1-异常;0-无异常(匹配峰值需求缺口,如果可满足峰值,即选择无异常)
b.Property(e => e.FeedbackResults).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired();
b.Property(e => e.FeedbackResults).HasColumnType("NVARCHAR").HasMaxLength(10).IsRequired(false);
//风险类型,当反馈结果=1时,此字段必输1.生产节拍不足2.人员不足3.原材料不足4.设备异常5.其他
b.Property(e => e.VentureType).HasColumnType("VARCHAR").HasMaxLength(50).IsRequired(false);
b.Property(e => e.VentureType).HasColumnType("NVARCHAR").HasMaxLength(50).IsRequired(false);
//具体风险,当反馈结果=1时,此字段必输描述具体风险
b.Property(e => e.VentureSpecific).HasColumnType("VARCHAR").HasMaxLength(255).IsRequired(false);
b.Property(e => e.VentureSpecific).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false);
//应对措施,当反馈结果=1时,此字段必输描述具体应对措施
b.Property(e => e.Measures).HasColumnType("VARCHAR").HasMaxLength(255).IsRequired(false);
b.Property(e => e.Measures).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false);
//起始月份-格式:yyyy-MM
b.Property(e => e.StartMonth).HasColumnType("CHAR").HasMaxLength(7).IsRequired();
b.Property(e => e.StartMonth).HasColumnType("NVARCHAR").HasMaxLength(7).IsRequired(false);
//满足数量1
b.Property(e => e.QuantityMeet1).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
b.Property(e => e.QuantityMeet1).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量2
b.Property(e => e.QuantityMeet2).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
b.Property(e => e.QuantityMeet2).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量3
b.Property(e => e.QuantityMeet3).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
b.Property(e => e.QuantityMeet3).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量4
b.Property(e => e.QuantityMeet4).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
b.Property(e => e.QuantityMeet4).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量5
b.Property(e => e.QuantityMeet5).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
b.Property(e => e.QuantityMeet5).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量6
b.Property(e => e.QuantityMeet6).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
b.Property(e => e.QuantityMeet6).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量7
b.Property(e => e.QuantityMeet7).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量8
@ -1365,47 +1366,47 @@ namespace TaskManager.EntityFramework
{
b.ToTable("SUPPLIER_CON_DATE");
//供应商代码
b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
b.Property(e => e.SupplierCode).HasColumnType("NVARCHAR").HasMaxLength(32).IsRequired(false);
//需求发布版次,取自日物料需求计划接口中的需求发布版次,针对与这个版次的需求进行风险反馈
b.Property(e => e.ReleaseEdition).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
b.Property(e => e.ReleaseEdition).HasColumnType("NVARCHAR").HasMaxLength(32).IsRequired(false);
//零件号,奇瑞零件号
b.Property(e => e.MaterialCode).HasColumnType("VARCHAR").HasMaxLength(50).IsRequired();
b.Property(e => e.MaterialCode).HasColumnType("NVARCHAR").HasMaxLength(50).IsRequired(false);
//工厂代码
b.Property(e => e.PlantId).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
b.Property(e => e.PlantId).HasColumnType("NVARCHAR").HasMaxLength(64).IsRequired(false);
//反馈结果,1-异常;0-无异常(匹配峰值需求缺口,如果可满足峰值,即选择无异常)
b.Property(e => e.FeedbackResults).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired();
b.Property(e => e.FeedbackResults).HasColumnType("NVARCHAR").HasMaxLength(10).IsRequired(false);
//风险类型,当反馈结果=1时,此字段必输1.生产节拍不足2.人员不足3.原材料不足4.设备异常5.其他
b.Property(e => e.VentureType).HasColumnType("VARCHAR").HasMaxLength(50).IsRequired(false);
b.Property(e => e.VentureType).HasColumnType("NVARCHAR").HasMaxLength(50).IsRequired(false);
//具体风险,当反馈结果=1时,此字段必输描述具体风险
b.Property(e => e.VentureSpecific).HasColumnType("VARCHAR").HasMaxLength(255).IsRequired(false);
b.Property(e => e.VentureSpecific).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false);
//应对措施,当反馈结果=1时,此字段必输描述具体应对措施
b.Property(e => e.Measures).HasColumnType("VARCHAR").HasMaxLength(255).IsRequired(false);
b.Property(e => e.Measures).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false);
//起始日期,格式:yyyy-MM-dd
b.Property(e => e.StartDate).HasColumnType("CHAR").HasMaxLength(10).IsRequired();
//满足数量1,数量锁定,7日内满足数量必须等于需求数量
b.Property(e => e.QuantityMeet1).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
b.Property(e => e.QuantityMeet1).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量2,
b.Property(e => e.QuantityMeet2).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
b.Property(e => e.QuantityMeet2).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量3,
b.Property(e => e.QuantityMeet3).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
b.Property(e => e.QuantityMeet3).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量4,
b.Property(e => e.QuantityMeet4).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
b.Property(e => e.QuantityMeet4).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量5,
b.Property(e => e.QuantityMeet5).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
b.Property(e => e.QuantityMeet5).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量6,
b.Property(e => e.QuantityMeet6).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
b.Property(e => e.QuantityMeet6).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量7,
b.Property(e => e.QuantityMeet7).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
b.Property(e => e.QuantityMeet7).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量8,根据物料需求计划接口发布的需求天数,针对企业自身产能情况反馈可满足数量注:目前发送数据为滚动12天的数据,13至31天的字段为预留,未来可能会增加至31天
b.Property(e => e.QuantityMeet8).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
b.Property(e => e.QuantityMeet8).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量9,
b.Property(e => e.QuantityMeet9).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
b.Property(e => e.QuantityMeet9).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量10,
b.Property(e => e.QuantityMeet10).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
b.Property(e => e.QuantityMeet10).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量11,
b.Property(e => e.QuantityMeet11).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
b.Property(e => e.QuantityMeet11).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量12,
b.Property(e => e.QuantityMeet12).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
b.Property(e => e.QuantityMeet12).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量13,
b.Property(e => e.QuantityMeet13).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量14,
@ -1459,21 +1460,21 @@ namespace TaskManager.EntityFramework
{
b.ToTable("SUPPLIER_CON_PO");
//供应商代码
b.Property(e => e.SupplierCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
b.Property(e => e.SupplierCode).HasColumnType("NVARCHAR").HasMaxLength(32).IsRequired(false);
//采购订单号
b.Property(e => e.PurchaseOrder).HasColumnType("VARCHAR").HasMaxLength(50).IsRequired();
b.Property(e => e.PurchaseOrder).HasColumnType("NVARCHAR").HasMaxLength(50).IsRequired(false);
//行项目号
b.Property(e => e.SerialNumber).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired();
b.Property(e => e.SerialNumber).HasColumnType("NVARCHAR").HasMaxLength(10).IsRequired(false);
//满足数量
b.Property(e => e.QuantityMeet).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
b.Property(e => e.QuantityMeet).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//反馈结果,1-异常;0-无异常(匹配峰值需求缺口,如果可满足峰值,即选择无异常)
b.Property(e => e.FeedbackResults).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired();
b.Property(e => e.FeedbackResults).HasColumnType("NVARCHAR").HasMaxLength(10).IsRequired(false);
//风险类型,当反馈结果=1时,此字段必输1.生产节拍不足2.人员不足3.原材料不足4.设备异常5.其他
b.Property(e => e.VentureType).HasColumnType("VARCHAR").HasMaxLength(50).IsRequired(false);
b.Property(e => e.VentureType).HasColumnType("NVARCHAR").HasMaxLength(50).IsRequired(false);
//具体风险,当反馈结果=1时,此字段必输描述具体风险
b.Property(e => e.VentureSpecific).HasColumnType("VARCHAR").HasMaxLength(255).IsRequired(false);
b.Property(e => e.VentureSpecific).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false);
//应对措施,当反馈结果=1时,此字段必输描述具体应对措施
b.Property(e => e.Measures).HasColumnType("VARCHAR").HasMaxLength(255).IsRequired(false);
b.Property(e => e.Measures).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false);
b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500).IsRequired(false);
b.Property(e => e.ReadState).HasDefaultValue(false);

5242
API/TaskManager.EntityFramework/Migrations/20250609023049_z202506090001.Designer.cs

File diff suppressed because it is too large

385
API/TaskManager.EntityFramework/Migrations/20250609023049_z202506090001.cs

@ -0,0 +1,385 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506090001 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "UpdateUser",
table: "TaskSub",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "TaskName",
table: "TaskSub",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "TableName",
table: "TaskSub",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Subscriber",
table: "TaskSub",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Site",
table: "TaskSub",
type: "nvarchar(30)",
maxLength: 30,
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<string>(
name: "FailedInfo",
table: "TaskSub",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Domain",
table: "TaskSub",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CreateUser",
table: "TaskSub",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Type",
table: "TaskLogs",
type: "nvarchar(20)",
maxLength: 20,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "TaskName",
table: "TaskLogs",
type: "nvarchar(20)",
maxLength: 20,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Info",
table: "TaskLogs",
type: "nvarchar(20)",
maxLength: 20,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "TaskLogs",
type: "datetime2",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "datetime2");
migrationBuilder.AddColumn<string>(
name: "Path",
table: "TaskLogs",
type: "nvarchar(20)",
maxLength: 20,
nullable: true);
migrationBuilder.AddColumn<string>(
name: "Version",
table: "TaskLogs",
type: "nvarchar(20)",
maxLength: 20,
nullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDelivery",
table: "SUPPLIER_PO",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn<string>(
name: "Note",
table: "SUPPLIER_PO",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand2",
table: "SUPPLIER_MRP_DATE",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand1",
table: "SUPPLIER_MRP_DATE",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn<string>(
name: "IsDelete",
table: "SUPPLIER_INV_DATA",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(int),
oldType: "int");
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDelivery",
table: "SUPPLIER_DEL_STATE",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(int),
oldType: "int");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.DropColumn(
name: "Path",
table: "TaskLogs");
migrationBuilder.DropColumn(
name: "Version",
table: "TaskLogs");
migrationBuilder.AlterColumn<string>(
name: "UpdateUser",
table: "TaskSub",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "TaskName",
table: "TaskSub",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "TableName",
table: "TaskSub",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Subscriber",
table: "TaskSub",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Site",
table: "TaskSub",
type: "nvarchar(max)",
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30);
migrationBuilder.AlterColumn<string>(
name: "FailedInfo",
table: "TaskSub",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Domain",
table: "TaskSub",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "CreateUser",
table: "TaskSub",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Type",
table: "TaskLogs",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(20)",
oldMaxLength: 20,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "TaskName",
table: "TaskLogs",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(20)",
oldMaxLength: 20,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Info",
table: "TaskLogs",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(20)",
oldMaxLength: 20,
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "CreationTime",
table: "TaskLogs",
type: "datetime2",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
oldClrType: typeof(DateTime),
oldType: "datetime2",
oldNullable: true);
migrationBuilder.AlterColumn<int>(
name: "QuantityDelivery",
table: "SUPPLIER_PO",
type: "int",
nullable: false,
defaultValue: 0,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Note",
table: "SUPPLIER_PO",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<int>(
name: "QuantityDemand2",
table: "SUPPLIER_MRP_DATE",
type: "int",
nullable: false,
defaultValue: 0,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<int>(
name: "QuantityDemand1",
table: "SUPPLIER_MRP_DATE",
type: "int",
nullable: false,
defaultValue: 0,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
migrationBuilder.AlterColumn<int>(
name: "IsDelete",
table: "SUPPLIER_INV_DATA",
type: "int",
nullable: false,
oldClrType: typeof(string),
oldType: "nvarchar(max)");
migrationBuilder.AlterColumn<int>(
name: "QuantityDelivery",
table: "SUPPLIER_DEL_STATE",
type: "int",
nullable: false,
defaultValue: 0,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
}
}
}

5242
API/TaskManager.EntityFramework/Migrations/20250609031426_z202506090002.Designer.cs

File diff suppressed because it is too large

36
API/TaskManager.EntityFramework/Migrations/20250609031426_z202506090002.cs

@ -0,0 +1,36 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506090002 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<decimal>(
name: "QuantityDemand12",
table: "SUPPLIER_MRP_MONTH",
type: "decimal(18,2)",
nullable: true,
oldClrType: typeof(int),
oldType: "int");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<int>(
name: "QuantityDemand12",
table: "SUPPLIER_MRP_MONTH",
type: "int",
nullable: false,
defaultValue: 0,
oldClrType: typeof(decimal),
oldType: "decimal(18,2)",
oldNullable: true);
}
}
}

5260
API/TaskManager.EntityFramework/Migrations/20250609033910_z202506090003.Designer.cs

File diff suppressed because it is too large

22
API/TaskManager.EntityFramework/Migrations/20250609033910_z202506090003.cs

@ -0,0 +1,22 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506090003 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}

5227
API/TaskManager.EntityFramework/Migrations/20250609034358_z202506090004.Designer.cs

File diff suppressed because it is too large

842
API/TaskManager.EntityFramework/Migrations/20250609034358_z202506090004.cs

@ -0,0 +1,842 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506090004 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32);
migrationBuilder.AlterColumn<string>(
name: "SerialNumber",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet",
table: "SUPPLIER_CON_PO",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<string>(
name: "PurchaseOrder",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10);
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32);
migrationBuilder.AlterColumn<string>(
name: "StartMonth",
table: "SUPPLIER_CON_MMRP",
type: "CHAR(7)",
maxLength: 7,
nullable: true,
oldClrType: typeof(string),
oldType: "CHAR(7)",
oldMaxLength: 7);
migrationBuilder.AlterColumn<string>(
name: "ReleaseEdition",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet6",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet5",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet4",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet3",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet2",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet1",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<string>(
name: "PlantId",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(64)",
maxLength: 64,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(64)",
oldMaxLength: 64);
migrationBuilder.AlterColumn<string>(
name: "MaterialCode",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10);
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32);
migrationBuilder.AlterColumn<string>(
name: "ReleaseEdition",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet9",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet8",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet7",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet6",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet5",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet4",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet3",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet2",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet12",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet11",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet10",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet1",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: true,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5);
migrationBuilder.AlterColumn<string>(
name: "PlantId",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(64)",
maxLength: 64,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(64)",
oldMaxLength: 64);
migrationBuilder.AlterColumn<string>(
name: "MaterialCode",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SerialNumber",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(10)",
maxLength: 10,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet",
table: "SUPPLIER_CON_PO",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PurchaseOrder",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(50)",
maxLength: 50,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(10)",
maxLength: 10,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "StartMonth",
table: "SUPPLIER_CON_MMRP",
type: "CHAR(7)",
maxLength: 7,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "CHAR(7)",
oldMaxLength: 7,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ReleaseEdition",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet6",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet5",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet4",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet3",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet2",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet1",
table: "SUPPLIER_CON_MMRP",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PlantId",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(64)",
oldMaxLength: 64,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialCode",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(50)",
maxLength: 50,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(10)",
maxLength: 10,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ReleaseEdition",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(32)",
maxLength: 32,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet9",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet8",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet7",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet6",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet5",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet4",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet3",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet2",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet12",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet11",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet10",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<decimal>(
name: "QuantityMeet1",
table: "SUPPLIER_CON_DATE",
type: "DECIMAL(16,5)",
precision: 16,
scale: 5,
nullable: false,
defaultValue: 0m,
oldClrType: typeof(decimal),
oldType: "DECIMAL(16,5)",
oldPrecision: 16,
oldScale: 5,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PlantId",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(64)",
maxLength: 64,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(64)",
oldMaxLength: 64,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialCode",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(50)",
maxLength: 50,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(10)",
maxLength: 10,
nullable: false,
defaultValue: "",
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
}
}
}

5227
API/TaskManager.EntityFramework/Migrations/20250609035549_z202506090005.Designer.cs

File diff suppressed because it is too large

566
API/TaskManager.EntityFramework/Migrations/20250609035549_z202506090005.cs

@ -0,0 +1,566 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506090005 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "VentureType",
table: "SUPPLIER_CON_PO",
type: "NVARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VentureSpecific",
table: "SUPPLIER_CON_PO",
type: "NVARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_PO",
type: "NVARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SerialNumber",
table: "SUPPLIER_CON_PO",
type: "NVARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PurchaseOrder",
table: "SUPPLIER_CON_PO",
type: "NVARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Measures",
table: "SUPPLIER_CON_PO",
type: "NVARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_PO",
type: "NVARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VentureType",
table: "SUPPLIER_CON_MMRP",
type: "NVARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VentureSpecific",
table: "SUPPLIER_CON_MMRP",
type: "NVARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_MMRP",
type: "NVARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "StartMonth",
table: "SUPPLIER_CON_MMRP",
type: "NVARCHAR(7)",
maxLength: 7,
nullable: true,
oldClrType: typeof(string),
oldType: "CHAR(7)",
oldMaxLength: 7,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ReleaseEdition",
table: "SUPPLIER_CON_MMRP",
type: "NVARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PlantId",
table: "SUPPLIER_CON_MMRP",
type: "NVARCHAR(64)",
maxLength: 64,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(64)",
oldMaxLength: 64,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Measures",
table: "SUPPLIER_CON_MMRP",
type: "NVARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialCode",
table: "SUPPLIER_CON_MMRP",
type: "NVARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_MMRP",
type: "NVARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VentureType",
table: "SUPPLIER_CON_DATE",
type: "NVARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VentureSpecific",
table: "SUPPLIER_CON_DATE",
type: "NVARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_DATE",
type: "NVARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "StartDate",
table: "SUPPLIER_CON_DATE",
type: "NVARCHAR(10)",
maxLength: 10,
nullable: false,
oldClrType: typeof(string),
oldType: "CHAR(10)",
oldMaxLength: 10);
migrationBuilder.AlterColumn<string>(
name: "ReleaseEdition",
table: "SUPPLIER_CON_DATE",
type: "NVARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PlantId",
table: "SUPPLIER_CON_DATE",
type: "NVARCHAR(64)",
maxLength: 64,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(64)",
oldMaxLength: 64,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Measures",
table: "SUPPLIER_CON_DATE",
type: "NVARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialCode",
table: "SUPPLIER_CON_DATE",
type: "NVARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_DATE",
type: "NVARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "VARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "VentureType",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VentureSpecific",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SerialNumber",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PurchaseOrder",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Measures",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_PO",
type: "VARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VentureType",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VentureSpecific",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "StartMonth",
table: "SUPPLIER_CON_MMRP",
type: "CHAR(7)",
maxLength: 7,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(7)",
oldMaxLength: 7,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "ReleaseEdition",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PlantId",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(64)",
maxLength: 64,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(64)",
oldMaxLength: 64,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Measures",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialCode",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_MMRP",
type: "VARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VentureType",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "VentureSpecific",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "SupplierCode",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "StartDate",
table: "SUPPLIER_CON_DATE",
type: "CHAR(10)",
maxLength: 10,
nullable: false,
oldClrType: typeof(string),
oldType: "NVARCHAR(10)",
oldMaxLength: 10);
migrationBuilder.AlterColumn<string>(
name: "ReleaseEdition",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(32)",
maxLength: 32,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(32)",
oldMaxLength: 32,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "PlantId",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(64)",
maxLength: 64,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(64)",
oldMaxLength: 64,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Measures",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(255)",
maxLength: 255,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(255)",
oldMaxLength: 255,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "MaterialCode",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "FeedbackResults",
table: "SUPPLIER_CON_DATE",
type: "VARCHAR(10)",
maxLength: 10,
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(10)",
oldMaxLength: 10,
oldNullable: true);
}
}
}

5227
API/TaskManager.EntityFramework/Migrations/20250609051230_z202506090006.Designer.cs

File diff suppressed because it is too large

37
API/TaskManager.EntityFramework/Migrations/20250609051230_z202506090006.cs

@ -0,0 +1,37 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506090006 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<DateTime>(
name: "StartDate",
table: "SUPPLIER_MRP_DATE",
type: "datetime2",
nullable: true,
oldClrType: typeof(DateTime),
oldType: "datetime2");
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<DateTime>(
name: "StartDate",
table: "SUPPLIER_MRP_DATE",
type: "datetime2",
nullable: false,
defaultValue: new DateTime(1, 1, 1, 0, 0, 0, 0, DateTimeKind.Unspecified),
oldClrType: typeof(DateTime),
oldType: "datetime2",
oldNullable: true);
}
}
}

5227
API/TaskManager.EntityFramework/Migrations/20250609053405_z202506090007.Designer.cs

File diff suppressed because it is too large

22
API/TaskManager.EntityFramework/Migrations/20250609053405_z202506090007.cs

@ -0,0 +1,22 @@
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506090007 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
}
}
}

5252
API/TaskManager.EntityFramework/Migrations/20250609054243_z202506090008.Designer.cs

File diff suppressed because it is too large

579
API/TaskManager.EntityFramework/Migrations/20250609054243_z202506090008.cs

@ -0,0 +1,579 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
#nullable disable
namespace TaskManager.EntityFramework.Migrations
{
/// <inheritdoc />
public partial class z202506090008 : Migration
{
/// <inheritdoc />
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_SINV_DATA",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_SINV_DATA",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_RETURN",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_RETURN",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PO",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_PO",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_MRP_WARNING",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_MRP_WARNING",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_MRP_STATE",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_MRP_STATE",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_MRP_MONTH",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_MRP_MONTH",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_MRP_DATE",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_MRP_DATE",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_INV_DATA",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_INV_DATA",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_DEL_STATE",
type: "nvarchar(30)",
maxLength: 30,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_DEL_STATE",
type: "nvarchar(50)",
maxLength: 50,
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(max)",
oldNullable: true);
migrationBuilder.AlterColumn<DateTime>(
name: "StartDate",
table: "SUPPLIER_CON_DATE",
type: "datetime2",
nullable: true,
oldClrType: typeof(string),
oldType: "NVARCHAR(10)",
oldMaxLength: 10);
}
/// <inheritdoc />
protected override void Down(MigrationBuilder migrationBuilder)
{
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_SINV_DATA",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_SINV_DATA",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_SA_WEEK",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_RETURN",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_RETURN",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_TSCHEDUL",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_PLANING",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_HSCHEDUL",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_PRO_CSCHEDUL",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_PO",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_PO",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_MRP_WARNING",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_MRP_WARNING",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_MRP_STATE",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_MRP_STATE",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_MRP_MONTH",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_MRP_MONTH",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_MRP_DATE",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_MRP_DATE",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_INV_DATA",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_INV_DATA",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "RequestDate",
table: "SUPPLIER_DEL_STATE",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(30)",
oldMaxLength: 30,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "Id",
table: "SUPPLIER_DEL_STATE",
type: "nvarchar(max)",
nullable: true,
oldClrType: typeof(string),
oldType: "nvarchar(50)",
oldMaxLength: 50,
oldNullable: true);
migrationBuilder.AlterColumn<string>(
name: "StartDate",
table: "SUPPLIER_CON_DATE",
type: "NVARCHAR(10)",
maxLength: 10,
nullable: false,
defaultValue: "",
oldClrType: typeof(DateTime),
oldType: "datetime2",
oldNullable: true);
}
}
}

261
API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs

@ -34,37 +34,34 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("datetime2");
b.Property<string>("FeedbackResults")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<string>("MaterialCode")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<string>("Measures")
.HasMaxLength(255)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<string>("PlantId")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<decimal>("QuantityMeet1")
b.Property<decimal?>("QuantityMeet1")
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
b.Property<decimal>("QuantityMeet10")
b.Property<decimal?>("QuantityMeet10")
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
b.Property<decimal>("QuantityMeet11")
b.Property<decimal?>("QuantityMeet11")
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
b.Property<decimal>("QuantityMeet12")
b.Property<decimal?>("QuantityMeet12")
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
@ -96,7 +93,7 @@ namespace TaskManager.EntityFramework.Migrations
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
b.Property<decimal>("QuantityMeet2")
b.Property<decimal?>("QuantityMeet2")
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
@ -140,7 +137,7 @@ namespace TaskManager.EntityFramework.Migrations
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
b.Property<decimal>("QuantityMeet3")
b.Property<decimal?>("QuantityMeet3")
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
@ -152,27 +149,27 @@ namespace TaskManager.EntityFramework.Migrations
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
b.Property<decimal>("QuantityMeet4")
b.Property<decimal?>("QuantityMeet4")
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
b.Property<decimal>("QuantityMeet5")
b.Property<decimal?>("QuantityMeet5")
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
b.Property<decimal>("QuantityMeet6")
b.Property<decimal?>("QuantityMeet6")
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
b.Property<decimal>("QuantityMeet7")
b.Property<decimal?>("QuantityMeet7")
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
b.Property<decimal>("QuantityMeet8")
b.Property<decimal?>("QuantityMeet8")
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
b.Property<decimal>("QuantityMeet9")
b.Property<decimal?>("QuantityMeet9")
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
@ -182,34 +179,30 @@ namespace TaskManager.EntityFramework.Migrations
.HasDefaultValue(false);
b.Property<string>("ReleaseEdition")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<string>("Remark")
.HasMaxLength(500)
.HasColumnType("NVarchar");
b.Property<string>("StartDate")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("CHAR");
b.Property<DateTime?>("StartDate")
.HasColumnType("datetime2");
b.Property<string>("SupplierCode")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<Guid>("TaskId")
.HasColumnType("uniqueidentifier");
b.Property<string>("VentureSpecific")
.HasMaxLength(255)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<string>("VentureType")
.HasMaxLength(50)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<bool>("WriteState")
.ValueGeneratedOnAdd()
@ -233,25 +226,22 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("datetime2");
b.Property<string>("FeedbackResults")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<string>("MaterialCode")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<string>("Measures")
.HasMaxLength(255)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<string>("PlantId")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<decimal>("QuantityMeet1")
b.Property<decimal?>("QuantityMeet1")
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
@ -267,23 +257,23 @@ namespace TaskManager.EntityFramework.Migrations
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
b.Property<decimal>("QuantityMeet2")
b.Property<decimal?>("QuantityMeet2")
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
b.Property<decimal>("QuantityMeet3")
b.Property<decimal?>("QuantityMeet3")
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
b.Property<decimal>("QuantityMeet4")
b.Property<decimal?>("QuantityMeet4")
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
b.Property<decimal>("QuantityMeet5")
b.Property<decimal?>("QuantityMeet5")
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
b.Property<decimal>("QuantityMeet6")
b.Property<decimal?>("QuantityMeet6")
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
@ -305,34 +295,31 @@ namespace TaskManager.EntityFramework.Migrations
.HasDefaultValue(false);
b.Property<string>("ReleaseEdition")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<string>("Remark")
.HasMaxLength(500)
.HasColumnType("NVarchar");
b.Property<string>("StartMonth")
.IsRequired()
.HasMaxLength(7)
.HasColumnType("CHAR");
.HasColumnType("NVARCHAR");
b.Property<string>("SupplierCode")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<Guid>("TaskId")
.HasColumnType("uniqueidentifier");
b.Property<string>("VentureSpecific")
.HasMaxLength(255)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<string>("VentureType")
.HasMaxLength(50)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<bool>("WriteState")
.ValueGeneratedOnAdd()
@ -356,20 +343,18 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("datetime2");
b.Property<string>("FeedbackResults")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<string>("Measures")
.HasMaxLength(255)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<string>("PurchaseOrder")
.IsRequired()
.HasMaxLength(50)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<decimal>("QuantityMeet")
b.Property<decimal?>("QuantityMeet")
.HasPrecision(16, 5)
.HasColumnType("DECIMAL");
@ -383,25 +368,23 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("NVarchar");
b.Property<string>("SerialNumber")
.IsRequired()
.HasMaxLength(10)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<string>("SupplierCode")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<Guid>("TaskId")
.HasColumnType("uniqueidentifier");
b.Property<string>("VentureSpecific")
.HasMaxLength(255)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<string>("VentureType")
.HasMaxLength(50)
.HasColumnType("VARCHAR");
.HasColumnType("NVARCHAR");
b.Property<bool>("WriteState")
.ValueGeneratedOnAdd()
@ -1933,7 +1916,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(50)");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("IsDelete")
.HasColumnType("int");
@ -1950,8 +1934,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("QuantityDelivery")
.HasColumnType("int");
b.Property<decimal?>("QuantityDelivery")
.HasColumnType("decimal(18,2)");
b.Property<bool>("ReadState")
.HasColumnType("bit");
@ -1964,7 +1948,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(max)");
b.Property<string>("RequestDate")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<DateTime?>("RoadReceiveTime")
.HasColumnType("datetime2");
@ -2518,10 +2503,12 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("datetime2");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("IsDelete")
.HasColumnType("int");
b.Property<string>("IsDelete")
.IsRequired()
.HasColumnType("nvarchar(max)");
b.Property<string>("MaterialCode")
.HasMaxLength(50)
@ -2549,7 +2536,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(max)");
b.Property<string>("RequestDate")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<string>("StockState")
.HasMaxLength(50)
@ -2595,7 +2583,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("datetime2");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("IsDelete")
.HasColumnType("int");
@ -2619,8 +2608,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("QuantityDemand1")
.HasColumnType("int");
b.Property<decimal?>("QuantityDemand1")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("QuantityDemand10")
.HasColumnType("decimal(18,2)");
@ -2652,8 +2641,8 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<decimal>("QuantityDemand19")
.HasColumnType("decimal(18,2)");
b.Property<int>("QuantityDemand2")
.HasColumnType("int");
b.Property<decimal?>("QuantityDemand2")
.HasColumnType("decimal(18,2)");
b.Property<decimal>("QuantityDemand20")
.HasColumnType("decimal(18,2)");
@ -2723,9 +2712,10 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(max)");
b.Property<string>("RequestDate")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<DateTime>("StartDate")
b.Property<DateTime?>("StartDate")
.HasColumnType("datetime2");
b.Property<Guid>("TaskId")
@ -2770,7 +2760,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("datetime2");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("IsDelete")
.HasColumnType("int")
@ -2813,8 +2804,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("decimal(18,2)")
.HasAnnotation("Relational:JsonPropertyName", "quantityDemand11");
b.Property<int>("QuantityDemand12")
.HasColumnType("int")
b.Property<decimal?>("QuantityDemand12")
.HasColumnType("decimal(18,2)")
.HasAnnotation("Relational:JsonPropertyName", "quantityDemand12");
b.Property<decimal>("QuantityDemand2")
@ -2861,7 +2852,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(max)");
b.Property<string>("RequestDate")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<string>("StartMonth")
.HasMaxLength(50)
@ -2928,7 +2920,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(50)");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("IsDelete")
.HasColumnType("int");
@ -2971,7 +2964,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(max)");
b.Property<string>("RequestDate")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<decimal?>("SummaryCreatQuantity")
.HasColumnType("decimal(18,2)");
@ -3032,7 +3026,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("decimal(18,2)");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<decimal?>("InventoryGap")
.HasColumnType("decimal(18,2)");
@ -3074,7 +3069,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(max)");
b.Property<string>("RequestDate")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<Guid>("TaskId")
.HasColumnType("uniqueidentifier");
@ -3131,7 +3127,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(50)");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("IsDelete")
.HasColumnType("int");
@ -3153,8 +3150,7 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(50)");
b.Property<string>("Note")
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
.HasColumnType("nvarchar(max)");
b.Property<string>("PlantId")
.HasMaxLength(50)
@ -3172,8 +3168,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("QuantityDelivery")
.HasColumnType("int");
b.Property<decimal?>("QuantityDelivery")
.HasColumnType("decimal(18,2)");
b.Property<decimal?>("QuantityDemand")
.HasColumnType("decimal(18,2)");
@ -3185,7 +3181,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(max)");
b.Property<string>("RequestDate")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<string>("SerialNumber")
.HasMaxLength(50)
@ -3507,7 +3504,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("datetime2");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("IsDelete")
.HasColumnType("int");
@ -3558,7 +3556,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(max)");
b.Property<string>("RequestDate")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<DateTime?>("SortDate")
.HasColumnType("datetime2");
@ -3987,7 +3986,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("datetime2");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("IsDelete")
.HasColumnType("int");
@ -4026,7 +4026,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(max)");
b.Property<string>("RequestDate")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<Guid>("TaskId")
.HasColumnType("uniqueidentifier");
@ -4321,7 +4322,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(max)");
b.Property<string>("RequestDate")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<string>("SalseDepartment")
.HasColumnType("nvarchar(max)");
@ -4653,7 +4655,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(50)");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("IsDelete")
.HasColumnType("int");
@ -4688,7 +4691,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(max)");
b.Property<string>("RequestDate")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<Guid>("TaskId")
.HasColumnType("uniqueidentifier");
@ -4741,7 +4745,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(50)");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("IsDelete")
.HasColumnType("int");
@ -4784,7 +4789,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(max)");
b.Property<string>("RequestDate")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<string>("ReturnNumber")
.HasMaxLength(50)
@ -4849,7 +4855,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("datetime2");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<int>("IsDelete")
.HasColumnType("int");
@ -4880,7 +4887,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("nvarchar(max)");
b.Property<string>("RequestDate")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<string>("ScheduleAgreement")
.HasMaxLength(50)
@ -4928,7 +4936,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("CHAR");
b.Property<string>("Id")
.HasColumnType("nvarchar(max)");
.HasMaxLength(50)
.HasColumnType("nvarchar(50)");
b.Property<string>("InventoryStatus")
.IsRequired()
@ -4973,7 +4982,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("NVarchar");
b.Property<string>("RequestDate")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<decimal>("SafetyStock")
.HasPrecision(16, 5)
@ -5118,11 +5128,16 @@ namespace TaskManager.EntityFramework.Migrations
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
b.Property<DateTime>("CreationTime")
b.Property<DateTime?>("CreationTime")
.HasColumnType("datetime2");
b.Property<string>("Info")
.HasColumnType("nvarchar(max)");
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b.Property<string>("Path")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b.Property<bool>("ReadState")
.HasColumnType("bit");
@ -5134,10 +5149,16 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("uniqueidentifier");
b.Property<string>("TaskName")
.HasColumnType("nvarchar(max)");
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b.Property<string>("Type")
.HasColumnType("nvarchar(max)");
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b.Property<string>("Version")
.HasMaxLength(20)
.HasColumnType("nvarchar(20)");
b.Property<bool>("WriteState")
.HasColumnType("bit");
@ -5159,7 +5180,8 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("datetime2");
b.Property<string>("CreateUser")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2");
@ -5168,13 +5190,15 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("int");
b.Property<string>("Domain")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<int>("FailedCount")
.HasColumnType("int");
b.Property<string>("FailedInfo")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<bool>("ReadState")
.HasColumnType("bit");
@ -5184,28 +5208,33 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<string>("Site")
.IsRequired()
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<string>("Subscriber")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<int>("SyncedPageCount")
.HasColumnType("int");
b.Property<string>("TableName")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<Guid>("TaskId")
.HasColumnType("uniqueidentifier");
b.Property<string>("TaskName")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<DateTime?>("UpdateTime")
.HasColumnType("datetime2");
b.Property<string>("UpdateUser")
.HasColumnType("nvarchar(max)");
.HasMaxLength(30)
.HasColumnType("nvarchar(30)");
b.Property<bool>("WriteState")
.HasColumnType("bit");

2
API/TaskManager.EntityFramework/Repository/Repository.cs

@ -165,7 +165,7 @@ namespace TaskManager.EntityFramework.Repository
public class PagingParams
{
private const int MaxPageSize = 50;
private const int MaxPageSize = 10000;
private int _pageSize = 10;
public int PageNumber { get; set; } = 1;

35
API/Wood.Service/Controllers/CheryRecurringJobOutPageController.cs

@ -314,7 +314,7 @@ namespace TaskManager.Controllers
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
Converters = {
new JsonStringEnumConverter(), // 枚举转换
new CustomDateTimeConverter("yyyy-MM-dd HH:mm:ss") // 日期转换
new CustomDateTimeConverter("yyyy-MM-dd HH:mm:ss","yyyy-MM-dd") // 日期转换
}
};
return JsonSerializer.Deserialize<PagedResponse<ToutputDetial>>(content, options);
@ -659,25 +659,46 @@ namespace TaskManager.Controllers
}
public class CustomDateTimeConverter : JsonConverter<DateTime>
{
private readonly string _format;
private readonly string[] _formats;
public CustomDateTimeConverter(string format)
public CustomDateTimeConverter(params string[] formats)
{
_format = format;
_formats = formats;
}
public override DateTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{
return DateTime.ParseExact(reader.GetString(), _format, null);
if (reader.TokenType != JsonTokenType.String)
{
throw new JsonException($"Expected string but got {reader.TokenType}");
}
var dateString = reader.GetString();
// 尝试解析多种日期格式
foreach (var format in _formats)
{
if (DateTime.TryParseExact(dateString, format, null, System.Globalization.DateTimeStyles.None, out var result))
{
return result;
}
}
// 如果无法解析,尝试默认解析
if (DateTime.TryParse(dateString, out var defaultResult))
{
return defaultResult;
}
throw new JsonException($"无法解析日期: {dateString}");
}
public override void Write(Utf8JsonWriter writer, DateTime value, JsonSerializerOptions options)
{
writer.WriteStringValue(value.ToString(_format));
writer.WriteStringValue(value.ToString(_formats[0]));
}
}
}

6
API/Wood.Service/Controllers/CherySupplierMrpDataService.cs

@ -33,9 +33,9 @@ namespace TaskManager.Controllers
con.VentureType = "";
con.VentureSpecific = "";
con.Measures = "";
con.StartDate = p.StartDate.ToString();
con.QuantityMeet1 =p.QuantityDemand1 ;
con.QuantityMeet2 =p.QuantityDemand2 ;
con.StartDate = p.StartDate;
con.QuantityMeet1 =p.QuantityDemand1==null? p.QuantityDemand1.Value : 0 ;
con.QuantityMeet2 = p.QuantityDemand2 == null ? p.QuantityDemand2.Value : 0;
con.QuantityMeet3 =p.QuantityDemand3 ;
con.QuantityMeet4 =p.QuantityDemand4 ;
con.QuantityMeet5 =p.QuantityDemand5 ;

24
API/Wood.Service/Controllers/CherySupplierPoService.cs

@ -28,7 +28,7 @@ namespace TaskManager.Controllers
con.SupplierCode = "8EG";
con.PurchaseOrder =p.PurchaseOrder ;
con.SerialNumber =p.SerialNumber ;
con.QuantityMeet =p.QuantityDelivery ;
con.QuantityMeet =p.QuantityDelivery==null? p.QuantityDelivery.Value : 0 ;
con.FeedbackResults ="" ;
con.VentureType ="" ;
con.VentureSpecific ="" ;
@ -37,28 +37,6 @@ namespace TaskManager.Controllers
//con.SupplierCode = "8EG";
//con.ReleaseEdition = p.ReleaseEdition;
//con.MaterialCode = p.MaterialCode;
//con.PlantId = p.PlantId;
//con.FeedbackResults = "0";
//con.VentureType = "1";
//con.VentureSpecific = "1";
//con.Measures = "1";
//con.StartMonth = p.StartMonth;
//con.QuantityMeet1 = p.QuantityDemand1;
//con.QuantityMeet2 = p.QuantityDemand2;
//con.QuantityMeet3 = p.QuantityDemand3;
//con.QuantityMeet4 = p.QuantityDemand4;
//con.QuantityMeet5 = p.QuantityDemand5;
//con.QuantityMeet6 = p.QuantityDemand6;
//con.QuantityMeet7 = p.QuantityDemand7;
//con.QuantityMeet8 = p.QuantityDemand8;
//con.QuantityMeet9 = p.QuantityDemand9;
//con.QuantityMeet10 = p.QuantityDemand10;
//con.QuantityMeet11 = p.QuantityDemand11;
//con.QuantityMeet12 = p.QuantityDemand12;
list.Add(con);
});

Loading…
Cancel
Save