Browse Source

更新版本

master
赵新宇 3 weeks ago
parent
commit
f1cf7622af
  1. 14
      API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_EMPLOYEE_DTO.cs
  2. 5
      API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_INFO_DTO.cs
  3. 10
      API/TaskManager.Contracts/Dtos/10_17/SUPPLIER_PRO_PROCESS_EQUIPMENT_DTO.cs
  4. 44
      API/TaskManager.Contracts/Dtos/Dtos.cs
  5. 301
      API/TaskManager.EntityFramework/JobDbContext.cs
  6. 10295
      API/TaskManager.EntityFramework/Migrations/20250627034559_z202506270004.Designer.cs
  7. 1010
      API/TaskManager.EntityFramework/Migrations/20250627034559_z202506270004.cs
  8. 354
      API/TaskManager.EntityFramework/Migrations/JobDbContextModelSnapshot.cs
  9. 5
      API/Wood.Service/Controllers/CheryRecurringJobInputPageController.cs

14
API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_EMPLOYEE_DTO.cs

@ -1,7 +1,9 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using TaskManager.Contracts.Dtos;
@ -67,7 +69,9 @@ namespace TaskManager.Contracts.Dtos
/// <summary>
/// 供应商修改时间,格式(yyyy-MM-ddHH:mm:ss)
/// </summary>
public string DataUpdateTime { get; set; }
///
[JsonConverter(typeof(DtoDateTimeConverter))]
public DateTime? DataUpdateTime { get; set; }
/// <summary>
/// 岗位代码
/// </summary>
@ -83,11 +87,15 @@ namespace TaskManager.Contracts.Dtos
/// <summary>
/// 资质获取时间
/// </summary>
public string CheckInTime { get; set; }
///
[JsonConverter(typeof(DtoDateTimeConverter))]
public DateTime? CheckInTime { get; set; }
/// <summary>
/// 资质失去时间
/// </summary>
public string CheckOutTime { get; set; }
[JsonConverter(typeof(DtoDateTimeConverter))]
public DateTime? CheckOutTime { get; set; }
}
}

5
API/TaskManager.Contracts/Dtos/01_09/SUPPLIER_INFO_DTO.cs

@ -1,7 +1,9 @@
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Text.Json.Serialization;
using System.Threading.Tasks;
using TaskManager.Contracts.Dtos;
@ -59,7 +61,8 @@ namespace TaskManager.Contracts.Dtos
/// <summary>
/// 供应商修改时间,格式(yyyy-MM-ddHH:mm:ss)
/// </summary>
public string DataUpdateTime { get; set; }
[JsonConverter(typeof(DtoDateTimeConverter))]
public DateTime? DataUpdateTime { get; set; }
/// <summary>
/// 产线顺序
/// </summary>

10
API/TaskManager.Contracts/Dtos/10_17/SUPPLIER_PRO_PROCESS_EQUIPMENT_DTO.cs

@ -1,4 +1,7 @@
using Magicodes.ExporterAndImporter.Core;
using System.ComponentModel;
using System.Text.Json.Serialization;
using TaskManager.Contracts.Dtos;
namespace TaskManager.Entity.Entitys
{
@ -84,7 +87,9 @@ namespace TaskManager.Entity.Entitys
/// </summary>
[ExporterHeader(DisplayName = "工艺装备制造日期")]
[ImporterHeader(Name = "工艺装备制造日期")]
public string ProductionDate { get; set; }
[JsonConverter(typeof(DtoDateTimeYYYYMMDDConverter))]
public DateTime? ProductionDate { get; set; }
/// <summary>
/// 主要材质
/// </summary>
@ -156,7 +161,8 @@ namespace TaskManager.Entity.Entitys
/// </summary>
[ExporterHeader(DisplayName = "最近校准日期")]
[ImporterHeader(Name = "最近校准日期")]
public string CalibrationDate { get; set; }
[JsonConverter(typeof(DtoDateTimeConverter))]
public DateTime? CalibrationDate { get; set; }
/// <summary>
/// 校准到期天数
/// </summary>

44
API/TaskManager.Contracts/Dtos/Dtos.cs

@ -1615,7 +1615,49 @@ public class SUPPLIER_MRP_WARNING_DETAIL_DTO : CherryReadBaseEntityDto
#endregion
public class DtoDateTimeConverter : System.Text.Json.Serialization.JsonConverter<DateTime>
{
private const string Format = "yyyy-MM-dd HH:mm:ss";
public override DateTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{
if (reader.TokenType == JsonTokenType.String)
{
if (DateTime.TryParse(reader.GetString(), out var dateTime))
{
return dateTime;
}
}
return reader.GetDateTime();
}
public override void Write(Utf8JsonWriter writer, DateTime value, JsonSerializerOptions options)
{
writer.WriteStringValue(value.ToString(Format));
}
}
public class DtoDateTimeYYYYMMDDConverter : System.Text.Json.Serialization.JsonConverter<DateTime>
{
private const string Format = "yyyy-MM-dd";
public override DateTime Read(ref Utf8JsonReader reader, Type typeToConvert, JsonSerializerOptions options)
{
if (reader.TokenType == JsonTokenType.String)
{
if (DateTime.TryParse(reader.GetString(), out var dateTime))
{
return dateTime;
}
}
return reader.GetDateTime();
}
public override void Write(Utf8JsonWriter writer, DateTime value, JsonSerializerOptions options)
{
writer.WriteStringValue(value.ToString(Format));
}
}

301
API/TaskManager.EntityFramework/JobDbContext.cs

@ -515,11 +515,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.VendorFieldCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
//库存有效日期,格式(yyyy-MM-ddHH:mm:ss)
b.Property(e => e.DeadLine).HasColumnType("VARCHAR").HasMaxLength(30).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -566,11 +566,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.ActualBeginTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(false);
//实际结束时间,时间格式:yyyy-MM-ddHH:mm:ss
b.Property(e => e.ActualEndTime).HasColumnType("CHAR").HasMaxLength(19).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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -615,11 +615,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
//奇瑞零件名称
b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -666,11 +666,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.CheckInTime).IsRequired();
//资质失去时间
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -713,11 +713,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.SubMaterialQuota).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
//BOM变更时间,格式(yyyy-MM-ddHH:mm:ss)
b.Property(e => e.DataUpdateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -822,11 +822,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.DeviceCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
//检测设备名称
b.Property(e => e.DeviceName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -923,11 +923,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.ChildHardwareRevision).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false);
//子件软件版本号
b.Property(e => e.ChildSoftwareRevision).HasColumnType("VARCHAR").HasMaxLength(64).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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -980,11 +980,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.StatisticalTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
//值统计时间,格式(yyyy-MM-ddHH:mm:ss)
b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -1044,9 +1044,9 @@ namespace TaskManager.EntityFramework
b.Property(e => e.StatisticalTime).HasColumnType("CHAR").HasMaxLength(19);
//值统计时间,格式(yyyy-MM-ddHH:mm:ss)
b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19);
b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500);
b.HasKey(e => e.UId);
});
#endregion
@ -1109,11 +1109,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.DefectsLevel).HasColumnType("CHAR").HasMaxLength(1).IsRequired();
//缺陷录入时间,格式(yyyy-MM-ddHH:mm:ss)
b.Property(e => e.StatisticalTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -1156,11 +1156,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.DataCollectionPoint).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(false);
//数据采集的时间,格式(yyyy-MM-ddHH:mm:ss)
b.Property(e => e.CollectTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -1215,11 +1215,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.StatisticalTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
//值统计时间,格式(yyyy-MM-ddHH:mm:ss)
b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -1264,11 +1264,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.StartTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
//结束时间,格式(yyyy-MM-ddHH:mm:ss)
b.Property(e => e.EndTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -1317,11 +1317,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.MpnName).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(false);
//物料有效期(天)
b.Property(e => e.ValidDays).HasColumnType("VARCHAR").HasMaxLength(12).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -1364,11 +1364,7 @@ namespace TaskManager.EntityFramework
b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
//供应商总成SN码
b.Property(e => e.VendorProductSn).HasColumnType("VARCHAR").HasMaxLength(100).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);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -1437,11 +1433,8 @@ namespace TaskManager.EntityFramework
b.Property(e => e.DetectionRange).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
//检测单位
b.Property(e => e.UnitType).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
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);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -1488,11 +1481,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.Rhythm).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
//节拍单位
b.Property(e => e.RhythmUnit).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -1543,11 +1536,11 @@ namespace TaskManager.EntityFramework
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(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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -1637,11 +1630,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.QuantityMeet30).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量31,
b.Property(e => e.QuantityMeet31).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -1667,11 +1660,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.VentureSpecific).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false);
//应对措施,当反馈结果=1时,此字段必输描述具体应对措施
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -1707,11 +1700,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.SupplierBatch).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false);
//有效期截止日期 非必填
b.Property(e => e.SupplieryxqDate).HasColumnType("CHAR").HasMaxLength(19).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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -1758,11 +1751,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
//奇瑞零件名称
b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
b.Ignore(e => e.TaskId);
});
@ -1808,11 +1801,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.CheckInTime).IsRequired();
//资质失去时间
b.Property(e => e.CheckOutTime).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
b.Ignore(e => e.TaskId);
});
@ -1854,11 +1847,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
//供应商总成SN码
b.Property(e => e.VendorProductSn).HasColumnType("VARCHAR").HasMaxLength(100).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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
b.Ignore(e => e.TaskId);
});
@ -1926,11 +1919,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.DetectionRange).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
//检测单位
b.Property(e => e.UnitType).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
b.Ignore(e => e.TaskId);
});
@ -2003,11 +1996,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.VendorFieldCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
//库存有效日期,格式(yyyy-MM-ddHH:mm:ss)
b.Property(e => e.DeadLine).HasColumnType("VARCHAR").HasMaxLength(10).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -2054,11 +2047,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.ActualBeginTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired(false);
//实际结束时间,时间格式:yyyy-MM-ddHH:mm:ss
b.Property(e => e.ActualEndTime).HasColumnType("CHAR").HasMaxLength(19).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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -2103,11 +2096,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
//奇瑞零件名称
b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -2154,11 +2147,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.CheckInTime).IsRequired();
//资质失去时间
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -2201,11 +2194,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.SubMaterialQuota).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
//BOM变更时间,格式(yyyy-MM-ddHH:mm:ss)
b.Property(e => e.DataUpdateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -2310,11 +2303,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.DeviceCode).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
//检测设备名称
b.Property(e => e.DeviceName).HasColumnType("VARCHAR").HasMaxLength(100).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -2411,11 +2404,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.ChildHardwareRevision).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false);
//子件软件版本号
b.Property(e => e.ChildSoftwareRevision).HasColumnType("VARCHAR").HasMaxLength(64).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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -2468,11 +2461,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.StatisticalTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
//值统计时间,格式(yyyy-MM-ddHH:mm:ss)
b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -2532,9 +2525,9 @@ namespace TaskManager.EntityFramework
b.Property(e => e.StatisticalTime).HasColumnType("CHAR").HasMaxLength(19);
//值统计时间,格式(yyyy-MM-ddHH:mm:ss)
b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19);
b.Property(e => e.UId).HasColumnType("bigint").ValueGeneratedOnAdd().IsRequired();
b.Property(e => e.Remark).HasColumnType("NVarchar").HasMaxLength(500);
b.HasKey(e => e.UId);
});
#endregion
@ -2597,11 +2590,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.DefectsLevel).HasColumnType("CHAR").HasMaxLength(1).IsRequired();
//缺陷录入时间,格式(yyyy-MM-ddHH:mm:ss)
b.Property(e => e.StatisticalTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -2644,11 +2637,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.DataCollectionPoint).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired(false);
//数据采集的时间,格式(yyyy-MM-ddHH:mm:ss)
b.Property(e => e.CollectTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -2703,11 +2696,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.StatisticalTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
//值统计时间,格式(yyyy-MM-ddHH:mm:ss)
b.Property(e => e.DateTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -2752,11 +2745,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.StartTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
//结束时间,格式(yyyy-MM-ddHH:mm:ss)
b.Property(e => e.EndTime).HasColumnType("CHAR").HasMaxLength(19).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -2805,11 +2798,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.MpnName).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired(false);
//物料有效期(天)
b.Property(e => e.ValidDays).HasColumnType("CHAR").HasMaxLength(12).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -2852,11 +2845,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
//供应商总成SN码
b.Property(e => e.VendorProductSn).HasColumnType("VARCHAR").HasMaxLength(100).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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -2925,11 +2918,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.DetectionRange).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
//检测单位
b.Property(e => e.UnitType).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -2976,11 +2969,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.Rhythm).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired();
//节拍单位
b.Property(e => e.RhythmUnit).HasColumnType("VARCHAR").HasMaxLength(16).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -3031,11 +3024,11 @@ namespace TaskManager.EntityFramework
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(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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -3125,11 +3118,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.QuantityMeet30).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).IsRequired(false);
//满足数量31,
b.Property(e => e.QuantityMeet31).HasColumnType("DECIMAL").HasPrecision(precision: 16, scale: 5).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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -3155,11 +3148,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.VentureSpecific).HasColumnType("NVARCHAR").HasMaxLength(255).IsRequired(false);
//应对措施,当反馈结果=1时,此字段必输描述具体应对措施
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -3195,11 +3188,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.SupplierBatch).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired(false);
//有效期截止日期 非必填
b.Property(e => e.SupplieryxqDate).HasColumnType("CHAR").HasMaxLength(19).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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
});
#endregion
@ -3246,11 +3239,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.CheryProductNo).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
//奇瑞零件名称
b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
b.Ignore(e => e.TaskId);
});
@ -3296,11 +3289,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.CheckInTime).IsRequired();
//资质失去时间
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
b.Ignore(e => e.TaskId);
});
@ -3342,11 +3335,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.CheryProductName).HasColumnType("VARCHAR").HasMaxLength(64).IsRequired();
//供应商总成SN码
b.Property(e => e.VendorProductSn).HasColumnType("VARCHAR").HasMaxLength(100).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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
b.Ignore(e => e.TaskId);
});
@ -3414,11 +3407,11 @@ namespace TaskManager.EntityFramework
b.Property(e => e.DetectionRange).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
//检测单位
b.Property(e => e.UnitType).HasColumnType("VARCHAR").HasMaxLength(32).IsRequired();
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);
b.Property(e => e.ReadState).HasDefaultValue(true);
b.Property(e => e.WriteState).HasDefaultValue(false);
b.HasKey(e => e.UId);
b.Ignore(e => e.TaskId);
});

10295
API/TaskManager.EntityFramework/Migrations/20250627034559_z202506270004.Designer.cs

File diff suppressed because it is too large

1010
API/TaskManager.EntityFramework/Migrations/20250627034559_z202506270004.cs

File diff suppressed because it is too large

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

@ -22,6 +22,125 @@ namespace TaskManager.EntityFramework.Migrations
SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder);
modelBuilder.Entity("SUPPLIER_EMPLOYEE_DT", b =>
{
b.Property<long>("UId")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
b.Property<DateTime>("CheckInTime")
.HasColumnType("datetime2");
b.Property<DateTime>("CheckOutTime")
.HasColumnType("datetime2");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2");
b.Property<DateTime>("DataUpdateTime")
.HasColumnType("datetime2");
b.Property<string>("HaveQuantity")
.IsRequired()
.HasMaxLength(1)
.HasColumnType("CHAR");
b.Property<string>("OperatorId")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("VARCHAR");
b.Property<string>("OperatorName")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("VARCHAR");
b.Property<string>("PlantId")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("VARCHAR");
b.Property<string>("PlantName")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("VARCHAR");
b.Property<string>("PositionId")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("VARCHAR");
b.Property<string>("PositionName")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("VARCHAR");
b.Property<string>("ProductionLineId")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("VARCHAR");
b.Property<string>("ProductionLineName")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("VARCHAR");
b.Property<string>("QualificationLevel")
.IsRequired()
.HasMaxLength(16)
.HasColumnType("VARCHAR");
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
.HasColumnType("NVarchar");
b.Property<string>("StationId")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("VARCHAR");
b.Property<string>("StationName")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("VARCHAR");
b.Property<string>("SupplierCode")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("VARCHAR");
b.Property<string>("SupplierName")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("VARCHAR");
b.Property<string>("WorkshopId")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("VARCHAR");
b.Property<string>("WorkshopName")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("VARCHAR");
b.Property<bool>("WriteState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
b.HasKey("UId");
b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null);
});
modelBuilder.Entity("TaskManager.Entity.DynamicTable", b =>
{
b.Property<long>("UId")
@ -251,7 +370,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("ReleaseEdition")
.HasMaxLength(32)
@ -453,7 +572,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("ReleaseEdition")
.HasMaxLength(32)
@ -576,7 +695,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("ReleaseEdition")
.HasMaxLength(32)
@ -702,7 +821,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("ReleaseEdition")
.HasMaxLength(32)
@ -779,7 +898,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -854,7 +973,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -953,13 +1072,10 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("VARCHAR");
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasColumnType("bit");
b.Property<string>("Remark")
.HasMaxLength(500)
.HasColumnType("NVarchar");
.HasColumnType("nvarchar(max)");
b.Property<string>("RequestDate")
.HasMaxLength(30)
@ -1008,9 +1124,7 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("VARCHAR");
b.Property<bool>("WriteState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasColumnType("bit");
b.HasKey("UId");
@ -1077,7 +1191,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -1194,7 +1308,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -1331,7 +1445,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -1455,7 +1569,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -1594,7 +1708,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -1771,7 +1885,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -1927,7 +2041,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -2059,7 +2173,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -2195,7 +2309,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -2350,7 +2464,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -2475,7 +2589,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("RecId")
.IsRequired()
@ -2606,7 +2720,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("RecId")
.IsRequired()
@ -2745,11 +2859,10 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
.HasColumnType("NVarchar");
.HasColumnType("nvarchar(max)");
b.Property<string>("RequestDate")
.HasMaxLength(30)
@ -2940,13 +3053,10 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("datetime2");
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasColumnType("bit");
b.Property<string>("Remark")
.HasMaxLength(500)
.HasColumnType("NVarchar");
.HasColumnType("nvarchar(max)");
b.Property<string>("RequestDate")
.HasMaxLength(30)
@ -2996,9 +3106,7 @@ namespace TaskManager.EntityFramework.Migrations
.HasColumnType("VARCHAR");
b.Property<bool>("WriteState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasColumnType("bit");
b.HasKey("UId");
@ -3126,7 +3234,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -3305,11 +3413,10 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
.HasColumnType("NVarchar");
.HasColumnType("nvarchar(max)");
b.Property<string>("RequestDate")
.HasMaxLength(30)
@ -3430,7 +3537,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -3554,7 +3661,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -3678,7 +3785,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -4045,7 +4152,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -4100,128 +4207,6 @@ namespace TaskManager.EntityFramework.Migrations
b.ToTable("SUPPLIER_EMPLOYEE", (string)null);
});
modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_DT", b =>
{
b.Property<long>("UId")
.ValueGeneratedOnAdd()
.HasColumnType("bigint");
SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property<long>("UId"));
b.Property<DateTime?>("CheckInTime")
.IsRequired()
.HasColumnType("datetime2");
b.Property<DateTime?>("CheckOutTime")
.IsRequired()
.HasColumnType("datetime2");
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2");
b.Property<DateTime?>("DataUpdateTime")
.IsRequired()
.HasColumnType("datetime2");
b.Property<string>("HaveQuantity")
.IsRequired()
.HasMaxLength(1)
.HasColumnType("CHAR");
b.Property<string>("OperatorId")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("VARCHAR");
b.Property<string>("OperatorName")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("VARCHAR");
b.Property<string>("PlantId")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("VARCHAR");
b.Property<string>("PlantName")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("VARCHAR");
b.Property<string>("PositionId")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("VARCHAR");
b.Property<string>("PositionName")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("VARCHAR");
b.Property<string>("ProductionLineId")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("VARCHAR");
b.Property<string>("ProductionLineName")
.IsRequired()
.HasMaxLength(100)
.HasColumnType("VARCHAR");
b.Property<string>("QualificationLevel")
.IsRequired()
.HasMaxLength(16)
.HasColumnType("VARCHAR");
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
b.Property<string>("Remark")
.HasMaxLength(500)
.HasColumnType("NVarchar");
b.Property<string>("StationId")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("VARCHAR");
b.Property<string>("StationName")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("VARCHAR");
b.Property<string>("SupplierCode")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("VARCHAR");
b.Property<string>("SupplierName")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("VARCHAR");
b.Property<string>("WorkshopId")
.IsRequired()
.HasMaxLength(32)
.HasColumnType("VARCHAR");
b.Property<string>("WorkshopName")
.IsRequired()
.HasMaxLength(64)
.HasColumnType("VARCHAR");
b.Property<bool>("WriteState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
b.HasKey("UId");
b.ToTable("SUPPLIER_EMPLOYEE_DT", (string)null);
});
modelBuilder.Entity("TaskManager.Entity.SUPPLIER_EMPLOYEE_LOGS", b =>
{
b.Property<long>("UId")
@ -4301,7 +4286,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -4415,7 +4400,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -4505,8 +4490,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<DateTime>("CreationTime")
.HasColumnType("datetime2");
b.Property<DateTime?>("DataUpdateTime")
.IsRequired()
b.Property<DateTime>("DataUpdateTime")
.HasColumnType("datetime2");
b.Property<string>("KeyStation")
@ -4541,7 +4525,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -4661,7 +4645,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -6372,7 +6356,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -6643,7 +6627,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -7137,7 +7121,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -7389,7 +7373,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -7586,7 +7570,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -7730,7 +7714,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -8084,7 +8068,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -8270,7 +8254,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -8735,7 +8719,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -8868,7 +8852,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -9917,7 +9901,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)
@ -10020,7 +10004,7 @@ namespace TaskManager.EntityFramework.Migrations
b.Property<bool>("ReadState")
.ValueGeneratedOnAdd()
.HasColumnType("bit")
.HasDefaultValue(false);
.HasDefaultValue(true);
b.Property<string>("Remark")
.HasMaxLength(500)

5
API/Wood.Service/Controllers/CheryRecurringJobInputPageController.cs

@ -135,6 +135,7 @@ namespace TaskManager.Controllers
}
);
}
else
{
inputjson = JsonSerializer.Serialize(t,
@ -142,7 +143,9 @@ namespace TaskManager.Controllers
{
PropertyNamingPolicy = JsonNamingPolicy.CamelCase,
Converters =
{
{
new InputCustomDateTimeConverter(),
new InputCustomNullableDateTimeConverter(),
new DecimalTrimConverter(),
},
WriteIndented = false,// 可选,用于格式化输出

Loading…
Cancel
Save