28 changed files with 13133 additions and 318 deletions
@ -1,12 +0,0 @@ |
|||||
using System; |
|
||||
using System.Collections.Generic; |
|
||||
using System.Linq; |
|
||||
using System.Text; |
|
||||
using System.Threading.Tasks; |
|
||||
|
|
||||
namespace TaskManager.Contracts.Dtos._01_09 |
|
||||
{ |
|
||||
internal class Class1 |
|
||||
{ |
|
||||
} |
|
||||
} |
|
@ -0,0 +1,100 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using TaskManager.Contracts.Dtos; |
||||
|
|
||||
|
namespace TaskManager.Contracts.Dtos |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// BOM主数据
|
||||
|
/// </summary>
|
||||
|
public class SUPPLIER_BOM_DTO : BaseEntityDto |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 供应商代码
|
||||
|
/// </summary>
|
||||
|
public string SupplierCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商名称
|
||||
|
/// </summary>
|
||||
|
public string SupplierName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// BOM编码
|
||||
|
/// </summary>
|
||||
|
public string BomCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// BOM名称
|
||||
|
/// </summary>
|
||||
|
public string BomName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// BOM版本
|
||||
|
/// </summary>
|
||||
|
public string BomVersion { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件号
|
||||
|
/// </summary>
|
||||
|
public string CheryProductNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件名称
|
||||
|
/// </summary>
|
||||
|
public string CheryProductName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商父件编码
|
||||
|
/// </summary>
|
||||
|
public string VendorProductNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商父件名称
|
||||
|
/// </summary>
|
||||
|
public string VendorProductName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 父件类型(成品, 半成品)
|
||||
|
/// </summary>
|
||||
|
public string VendorProductType { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 父件单位
|
||||
|
/// </summary>
|
||||
|
public string MaterialUnit { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 子件编码
|
||||
|
/// </summary>
|
||||
|
public string SubMaterialCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 子件名称
|
||||
|
/// </summary>
|
||||
|
public string SubMaterialName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 子件类型(半成品, 原材料)
|
||||
|
/// </summary>
|
||||
|
public string SubMaterialType { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 子件单位
|
||||
|
/// </summary>
|
||||
|
public string SubMaterialUnit { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 子件用量
|
||||
|
/// </summary>
|
||||
|
public decimal SubMaterialQuota { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// BOM变更时间,格式(yyyy-MM-dd HH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string DataUpdateTime { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,110 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using TaskManager.Contracts.Dtos; |
||||
|
|
||||
|
namespace TaskManager.Contracts.Dtos |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 人员资质信息
|
||||
|
/// </summary>
|
||||
|
public class SUPPLIER_EMPLOYEE_DTO : BaseEntityDto |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 供应商代码
|
||||
|
/// </summary>
|
||||
|
public string SupplierCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商名称
|
||||
|
/// </summary>
|
||||
|
public string SupplierName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工厂代码
|
||||
|
/// </summary>
|
||||
|
public string PlantId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工厂名称
|
||||
|
/// </summary>
|
||||
|
public string PlantName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 车间代码
|
||||
|
/// </summary>
|
||||
|
public string WorkshopId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 车间名称
|
||||
|
/// </summary>
|
||||
|
public string WorkshopName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 产线代码
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 产线名称
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工位代码
|
||||
|
/// </summary>
|
||||
|
public string StationId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工位名称
|
||||
|
/// </summary>
|
||||
|
public string StationName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工位人员账号
|
||||
|
/// </summary>
|
||||
|
public string OperatorId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工位人员姓名
|
||||
|
/// </summary>
|
||||
|
public string OperatorName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 是否有资质(Y,N)
|
||||
|
/// </summary>
|
||||
|
public bool HaveQuantity { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商修改时间,格式(yyyy-MM-dd HH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string DataUpdateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 岗位代码
|
||||
|
/// </summary>
|
||||
|
public string PositionId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 岗位名称
|
||||
|
/// </summary>
|
||||
|
public string PositionName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 资质等级(Level_4,Level_3,Level_2, Level_1)
|
||||
|
/// </summary>
|
||||
|
public string QualificationLevel { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 资质获取时间
|
||||
|
/// </summary>
|
||||
|
public string CheckInTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 资质失去时间
|
||||
|
/// </summary>
|
||||
|
public string CheckOutTime { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,105 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using TaskManager.Contracts.Dtos; |
||||
|
|
||||
|
namespace TaskManager.Contracts.Dtos |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 供应商基础信息
|
||||
|
/// </summary>
|
||||
|
public class SUPPLIER_INFO_DTO : BaseEntityDto |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 供应商代码
|
||||
|
/// </summary>
|
||||
|
public string SupplierCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商名称
|
||||
|
/// </summary>
|
||||
|
public string SupplierName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工厂代码
|
||||
|
/// </summary>
|
||||
|
public string PlantId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工厂名称
|
||||
|
/// </summary>
|
||||
|
public string PlantName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 车间代码
|
||||
|
/// </summary>
|
||||
|
public string WorkshopId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 车间名称
|
||||
|
/// </summary>
|
||||
|
public string WorkshopName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 产线代码
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 产线名称
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工位代码
|
||||
|
/// </summary>
|
||||
|
public string StationId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工位名称
|
||||
|
/// </summary>
|
||||
|
public string StationName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 是否关键工位(Y/N)
|
||||
|
/// </summary>
|
||||
|
public bool KeyStation { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商修改时间,格式(yyyy-MM-dd HH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string DataUpdateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 产线顺序
|
||||
|
/// </summary>
|
||||
|
public int ProductionLineOrder { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工位顺序
|
||||
|
/// </summary>
|
||||
|
public int StationOrder { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件号
|
||||
|
/// </summary>
|
||||
|
public string VendorProductNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件名称
|
||||
|
/// </summary>
|
||||
|
public string VendorProductName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件号
|
||||
|
/// </summary>
|
||||
|
public string CheryProductNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件名称
|
||||
|
/// </summary>
|
||||
|
public string CheryProductName { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,255 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using TaskManager.Contracts.Dtos; |
||||
|
|
||||
|
namespace TaskManager.Contracts.Dtos |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 过程控制项质量数据
|
||||
|
/// </summary>
|
||||
|
public class SUPPLIER_PRO_CPS_DTO : BaseEntityDto |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 供应商代码
|
||||
|
/// </summary>
|
||||
|
public string SupplierCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商名称
|
||||
|
/// </summary>
|
||||
|
public string SupplierName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件号
|
||||
|
/// </summary>
|
||||
|
public string VendorProductNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件名称
|
||||
|
/// </summary>
|
||||
|
public string VendorProductName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商总成SN码
|
||||
|
/// </summary>
|
||||
|
public string VendorProductSn { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商总成批次号
|
||||
|
/// </summary>
|
||||
|
public string VendorProductBatch { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件号
|
||||
|
/// </summary>
|
||||
|
public string CheryProductNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件名称
|
||||
|
/// </summary>
|
||||
|
public string CheryProductName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 奇瑞SN码
|
||||
|
/// </summary>
|
||||
|
public string CheryProductSn { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 生产批次号
|
||||
|
/// </summary>
|
||||
|
public string ProductBatchNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 生产工单号
|
||||
|
/// </summary>
|
||||
|
public string ManufactureNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工厂代码
|
||||
|
/// </summary>
|
||||
|
public string PlantId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工厂名称
|
||||
|
/// </summary>
|
||||
|
public string PlantName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 车间代码
|
||||
|
/// </summary>
|
||||
|
public string WorkshopId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 车间名称
|
||||
|
/// </summary>
|
||||
|
public string WorkshopName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 产线代码
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 产线名称
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工位代码
|
||||
|
/// </summary>
|
||||
|
public string StationId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工位名称
|
||||
|
/// </summary>
|
||||
|
public string StationName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工位人员编号
|
||||
|
/// </summary>
|
||||
|
public string EmpCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工位人员姓名
|
||||
|
/// </summary>
|
||||
|
public string EmpName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 控制项名称
|
||||
|
/// </summary>
|
||||
|
public string VendorFieldName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 控制项代码
|
||||
|
/// </summary>
|
||||
|
public string VendorFieldCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 控制项点位
|
||||
|
/// </summary>
|
||||
|
public string GatherSpot { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 控制项要求频率
|
||||
|
/// </summary>
|
||||
|
public decimal SamplingRate { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 上下限更新时间,格式(yyyy-MM-dd HH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string LimitUpdateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 控制项描述
|
||||
|
/// </summary>
|
||||
|
public string VendorFieldDesc { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 载体编码
|
||||
|
/// </summary>
|
||||
|
public string CarrierCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 投入数量
|
||||
|
/// </summary>
|
||||
|
public decimal IntputQty { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 一次合格数量
|
||||
|
/// </summary>
|
||||
|
public decimal FttQty { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 参数 , 是传Y,否传N
|
||||
|
/// </summary>
|
||||
|
public string Parameter { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 特性 , 是传Y,否传N
|
||||
|
/// </summary>
|
||||
|
public string Characteristic { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// CC项 , 是传Y,否传N
|
||||
|
/// </summary>
|
||||
|
public bool Cc { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// SC项 , 是传Y,否传N
|
||||
|
/// </summary>
|
||||
|
public bool Sc { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// SPC , 是传Y,否传N
|
||||
|
/// </summary>
|
||||
|
public bool Spc { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 控制项标准值
|
||||
|
/// </summary>
|
||||
|
public string StandardValue { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 控制项上限
|
||||
|
/// </summary>
|
||||
|
public decimal UpperLimit { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 控制项下限
|
||||
|
/// </summary>
|
||||
|
public decimal LowerLimit { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 控制项实测值
|
||||
|
/// </summary>
|
||||
|
public decimal DecimalValue { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 控制项值的单位名称-中文
|
||||
|
/// </summary>
|
||||
|
public string UnitCn { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 控制项单位英文
|
||||
|
/// </summary>
|
||||
|
public string UnitEn { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 检测结果
|
||||
|
/// </summary>
|
||||
|
public string CheckResult { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 在线检测(inline,offline,both)
|
||||
|
/// </summary>
|
||||
|
public string DetectionMode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 班次(白班,晚班,中班)
|
||||
|
/// </summary>
|
||||
|
public string WorkShift { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采集时间,格式(yyyy-MM-dd HH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string CollectTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 检测方式(人工,设备)
|
||||
|
/// </summary>
|
||||
|
public string CheckMode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 检测设备编号
|
||||
|
/// </summary>
|
||||
|
public string DeviceCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 检测设备名称
|
||||
|
/// </summary>
|
||||
|
public string DeviceName { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,235 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using TaskManager.Contracts.Dtos; |
||||
|
|
||||
|
namespace TaskManager.Contracts.Dtos |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 生产过程数据
|
||||
|
/// </summary>
|
||||
|
public class SUPPLIER_PRO_DATA_DTO : BaseEntityDto |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 供应商代码
|
||||
|
/// </summary>
|
||||
|
public string SupplierCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商名称
|
||||
|
/// </summary>
|
||||
|
public string SupplierName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工厂代码
|
||||
|
/// </summary>
|
||||
|
public string PlantId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工厂名称
|
||||
|
/// </summary>
|
||||
|
public string PlantName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 车间代码
|
||||
|
/// </summary>
|
||||
|
public string WorkshopId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 车间名称
|
||||
|
/// </summary>
|
||||
|
public string WorkshopName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 产线代码
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 产线名称
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工位代码
|
||||
|
/// </summary>
|
||||
|
public string StationId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工位名称
|
||||
|
/// </summary>
|
||||
|
public string StationName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工位人员编号
|
||||
|
/// </summary>
|
||||
|
public string EmpCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工位人员姓名
|
||||
|
/// </summary>
|
||||
|
public string EmpName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件名称
|
||||
|
/// </summary>
|
||||
|
public string VendorProductName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件号
|
||||
|
/// </summary>
|
||||
|
public string VendorProductNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商总成批次号
|
||||
|
/// </summary>
|
||||
|
public string VendorProductBatch { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商总成SN码
|
||||
|
/// </summary>
|
||||
|
public string VendorProductSn { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 子件编码
|
||||
|
/// </summary>
|
||||
|
public string SubProdNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 子件名称
|
||||
|
/// </summary>
|
||||
|
public string SubProdName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 子件批次号
|
||||
|
/// </summary>
|
||||
|
public string SubBatchNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 子件分包号
|
||||
|
/// </summary>
|
||||
|
public string ChildPackageInfo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 子件扣料数量
|
||||
|
/// </summary>
|
||||
|
public decimal SubProdNum { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 子件SN码
|
||||
|
/// </summary>
|
||||
|
public string SubProdSn { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 子件物料来源
|
||||
|
/// </summary>
|
||||
|
public string ChildSource { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 分供方代码
|
||||
|
/// </summary>
|
||||
|
public string SubSupplierCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 分供方名称(原注释“分分供方”可能为笔误,此处按“分供方”处理)
|
||||
|
/// </summary>
|
||||
|
public string SubSupplierName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件号
|
||||
|
/// </summary>
|
||||
|
public string CheryProductNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件名称
|
||||
|
/// </summary>
|
||||
|
public string CheryProductName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 奇瑞SN码
|
||||
|
/// </summary>
|
||||
|
public string CheryProductSn { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 生产工单号
|
||||
|
/// </summary>
|
||||
|
public string ManufactureNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 生产批次号
|
||||
|
/// </summary>
|
||||
|
public string ProductBatchNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 班次(白班,晚班,中班)
|
||||
|
/// </summary>
|
||||
|
public string WorkShift { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 进工位的时间,格式(yyyy-MM-dd HH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string MaterialInputTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 出工位的时间,格式(yyyy-MM-dd HH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string MaterialOutputTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 装配设备编号(原注释“vendorFieldNum”可能为“设备编号”,此处按业务逻辑命名)
|
||||
|
/// </summary>
|
||||
|
public string VendorFieldNum { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 装配设备名称
|
||||
|
/// </summary>
|
||||
|
public string VendorFieldName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 设备判定的质量状态(合格与否,NG不合适 OK合适)
|
||||
|
/// </summary>
|
||||
|
public string InstrumentQualityStatus { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 人工判定的质量状态(合格与否,NG不合适 OK合适)
|
||||
|
/// </summary>
|
||||
|
public string ManualQualityStatus { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 最终质量状态(合格与否,NG不合适 OK合适)
|
||||
|
/// </summary>
|
||||
|
public string FinalQualityStatus { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 采集时间,格式(yyyy-MM-dd HH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string CollectTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 子件绑定扫码时间,格式(yyyy-MM-dd HH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string DateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 父件硬件版本号
|
||||
|
/// </summary>
|
||||
|
public string ParentHardwareRevision { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 父件软件版本号
|
||||
|
/// </summary>
|
||||
|
public string ParentSoftwareRevision { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 子件硬件版本号
|
||||
|
/// </summary>
|
||||
|
public string ChildHardwareRevision { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 子件软件版本号
|
||||
|
/// </summary>
|
||||
|
public string ChildSoftwareRevision { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,125 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using TaskManager.Contracts.Dtos; |
||||
|
|
||||
|
namespace TaskManager.Contracts.Dtos |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 产品一次合格率
|
||||
|
/// </summary>
|
||||
|
public class SUPPLIER_PRO_FIRST_PASSYIELD_DTO : BaseEntityDto |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 供应商代码
|
||||
|
/// </summary>
|
||||
|
public string SupplierCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商名称
|
||||
|
/// </summary>
|
||||
|
public string SupplierName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件号
|
||||
|
/// </summary>
|
||||
|
public string VendorProductNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件名称
|
||||
|
/// </summary>
|
||||
|
public string VendorProductName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工厂代码
|
||||
|
/// </summary>
|
||||
|
public string PlantId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工厂名称
|
||||
|
/// </summary>
|
||||
|
public string PlantName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 车间代码
|
||||
|
/// </summary>
|
||||
|
public string WorkshopId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 车间名称
|
||||
|
/// </summary>
|
||||
|
public string WorkshopName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 产线代码
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 产线名称
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件号
|
||||
|
/// </summary>
|
||||
|
public string CheryProductNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件名称
|
||||
|
/// </summary>
|
||||
|
public string CheryProductName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 生产工单号
|
||||
|
/// </summary>
|
||||
|
public string ManufactureNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 生产批次号
|
||||
|
/// </summary>
|
||||
|
public string ProductBatchNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 批次计划数量:每个批次号对应的计划数量
|
||||
|
/// </summary>
|
||||
|
public decimal WorkOrderNumber { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 不合格数
|
||||
|
/// </summary>
|
||||
|
public decimal DefectiveNumber { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 合格数:当班次合格数汇总
|
||||
|
/// </summary>
|
||||
|
public decimal AcceptableNumber { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 一次合格率实际值
|
||||
|
/// </summary>
|
||||
|
public decimal OncePassRateRealValue { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 一次合格率目标值
|
||||
|
/// </summary>
|
||||
|
public decimal OncePassRateTagValue { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 班次(白班,晚班,中班)
|
||||
|
/// </summary>
|
||||
|
public string WorkShift { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 生产日期,格式(yyyy-MM-dd HH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string StatisticalTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 值统计时间,格式(yyyy-MM-dd HH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string DateTime { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,165 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using TaskManager.Contracts.Dtos; |
||||
|
|
||||
|
namespace TaskManager.Contracts.Dtos |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 来料检验数据
|
||||
|
/// </summary>
|
||||
|
public class SUPPLIER_PRO_MATERIAL_STOCK_DTO : BaseEntityDto |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 供应商代码
|
||||
|
/// </summary>
|
||||
|
public string SupplierCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商名称
|
||||
|
/// </summary>
|
||||
|
public string SupplierName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商子零件编号
|
||||
|
/// </summary>
|
||||
|
public string SupplierSubCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商子零件名称
|
||||
|
/// </summary>
|
||||
|
public string SupplierSubName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 分供方代码
|
||||
|
/// </summary>
|
||||
|
public string SubSupplierCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 分供方名称
|
||||
|
/// </summary>
|
||||
|
public string SubSupplierName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 分供方地址,分供方发货地址:省市区(县),不用于详细地址
|
||||
|
/// </summary>
|
||||
|
public string SubSupplierAddress { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 分供方子件编码
|
||||
|
/// </summary>
|
||||
|
public string ComponentCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 分供方子件名称
|
||||
|
/// </summary>
|
||||
|
public string ComponentName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 子件批次号
|
||||
|
/// </summary>
|
||||
|
public string SubBatchNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 子件批次数量
|
||||
|
/// </summary>
|
||||
|
public decimal SubBatchNum { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 子件SN码
|
||||
|
/// </summary>
|
||||
|
public string SubBatchSn { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 检验人员编号
|
||||
|
/// </summary>
|
||||
|
public string EmpCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 检验人员姓名
|
||||
|
/// </summary>
|
||||
|
public string EmpName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 检测设备编号
|
||||
|
/// </summary>
|
||||
|
public string DeviceCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 检测设备名称
|
||||
|
/// </summary>
|
||||
|
public string DeviceName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 参数名称/特性名称
|
||||
|
/// </summary>
|
||||
|
public string FeatureName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 参数单位/特性单位
|
||||
|
/// </summary>
|
||||
|
public string FeatureUnit { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 参数/特性标准值
|
||||
|
/// </summary>
|
||||
|
public string StandardValue { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 参数/特性上限值
|
||||
|
/// </summary>
|
||||
|
public string FeatureUpper { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 参数/特性下限值
|
||||
|
/// </summary>
|
||||
|
public string FeatureLower { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 参数/特性实测值
|
||||
|
/// </summary>
|
||||
|
public string FeatureValue { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 来料检验单号
|
||||
|
/// </summary>
|
||||
|
public string CheckNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 批次的最终判定结果,OK合格/NG不合格
|
||||
|
/// </summary>
|
||||
|
public string CheckResult { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 检验时间,格式(yyyy-MM-dd HH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string CheckTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 控制项要求频率
|
||||
|
/// </summary>
|
||||
|
public decimal SamplingRate { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 上下限更新时间,格式(yyyy-MM-dd HH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string LimitUpdateTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 控制项描述
|
||||
|
/// </summary>
|
||||
|
public string VendorFieldDesc { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 控制项代码
|
||||
|
/// </summary>
|
||||
|
public string VendorFieldCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 库存有效日期,格式(yyyy-MM-dd HH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string DeadLine { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,110 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using TaskManager.Contracts.Dtos; |
||||
|
|
||||
|
namespace TaskManager.Contracts.Dtos |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 排产数据
|
||||
|
/// </summary>
|
||||
|
public class SUPPLIER_PRO_SCHEDULING_DTO : BaseEntityDto |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 供应商代码
|
||||
|
/// </summary>
|
||||
|
public string SupplierCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商名称
|
||||
|
/// </summary>
|
||||
|
public string SupplierName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工厂代码
|
||||
|
/// </summary>
|
||||
|
public string PlantId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工厂名称
|
||||
|
/// </summary>
|
||||
|
public string PlantName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件号
|
||||
|
/// </summary>
|
||||
|
public string VendorProductNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件名称
|
||||
|
/// </summary>
|
||||
|
public string VendorProductName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件号
|
||||
|
/// </summary>
|
||||
|
public string CheryProductNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件名称
|
||||
|
/// </summary>
|
||||
|
public string CheryProductName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 计划单号
|
||||
|
/// </summary>
|
||||
|
public string PlanNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 生产工单号
|
||||
|
/// </summary>
|
||||
|
public string ManufactureNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 生产批次号
|
||||
|
/// </summary>
|
||||
|
public string ProductBatchNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 批次计划数量
|
||||
|
/// </summary>
|
||||
|
public decimal ManufactureNum { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 批次投入数量
|
||||
|
/// </summary>
|
||||
|
public decimal ManufactureInputNum { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 批次产出数量
|
||||
|
/// </summary>
|
||||
|
public decimal ManufactureOutputNum { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 排产状态(0:未生产,1:生产中,2:已完工,3:已取消,4:已终止)
|
||||
|
/// </summary>
|
||||
|
public int PlanStatus { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 计划开始时间(格式:yyyy-MM-dd HH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string PlanBeginTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 计划结束时间(格式:yyyy-MM-dd HH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string PlanEndTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 实际开始时间(格式:yyyy-MM-dd HH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string ActualBeginTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 实际结束时间(格式:yyyy-MM-dd HH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string ActualEndTime { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,135 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
using TaskManager.Contracts.Dtos; |
||||
|
|
||||
|
namespace TaskManager.Contracts.Dtos |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 工位一次合格率
|
||||
|
/// </summary>
|
||||
|
public class SUPPLIER_PRO_STATION_FIRST_PASSYIELD_DTO : BaseEntityDto |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 供应商代码
|
||||
|
/// </summary>
|
||||
|
public string SupplierCode { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商名称
|
||||
|
/// </summary>
|
||||
|
public string SupplierName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工厂代码
|
||||
|
/// </summary>
|
||||
|
public string PlantId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工厂名称
|
||||
|
/// </summary>
|
||||
|
public string PlantName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 车间代码
|
||||
|
/// </summary>
|
||||
|
public string WorkshopId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 车间名称
|
||||
|
/// </summary>
|
||||
|
public string WorkshopName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 产线代码
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 产线名称
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工位代码
|
||||
|
/// </summary>
|
||||
|
public string StationId { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 工位名称
|
||||
|
/// </summary>
|
||||
|
public string StationName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件号
|
||||
|
/// </summary>
|
||||
|
public string CheryProductNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件名称
|
||||
|
/// </summary>
|
||||
|
public string CheryProductName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件号
|
||||
|
/// </summary>
|
||||
|
public string VendorProductNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件名称
|
||||
|
/// </summary>
|
||||
|
public string VendorProductName { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 生产批次号
|
||||
|
/// </summary>
|
||||
|
public string ProductBatchNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 生产工单号(跟排产工单号关联)
|
||||
|
/// </summary>
|
||||
|
public string ManufactureNo { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 批次计划数量
|
||||
|
/// </summary>
|
||||
|
public decimal WorkOrderNumber { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 不合格数
|
||||
|
/// </summary>
|
||||
|
public decimal DefectiveNumber { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 合格数
|
||||
|
/// </summary>
|
||||
|
public decimal AcceptableNumber { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 一次合格率实际值(使用小数表示,如 0.9601 表示 96.01%,整数位最多10位,小数位最多3位)
|
||||
|
/// </summary>
|
||||
|
public decimal OncePassRateRealValue { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 一次合格率目标值(使用小数表示,如 0.96 表示 96.00%,整数位最多10位,小数位最多3位)
|
||||
|
/// </summary>
|
||||
|
public decimal OncePassRateTagValue { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 班次(白班,晚班,中班)
|
||||
|
/// </summary>
|
||||
|
public string WorkShift { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 生产日期,格式:yyyy-MM-dd HH:mm:ss
|
||||
|
/// </summary>
|
||||
|
public string StatisticalTime { get; set; } |
||||
|
|
||||
|
/// <summary>
|
||||
|
/// 值统计时间,格式:yyyy-MM-dd HH:mm:ss
|
||||
|
/// </summary>
|
||||
|
public string DateTime { get; set; } |
||||
|
} |
||||
|
} |
@ -0,0 +1,78 @@ |
|||||
|
namespace TaskManager.Entity.Entitys |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 附件类数据
|
||||
|
/// </summary>
|
||||
|
public class SUPPLIER_PRO_ATTACHMENT_DATA : BaseEntity |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 供应商代码
|
||||
|
/// </summary>
|
||||
|
public string SupplierCode { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商名称
|
||||
|
/// </summary>
|
||||
|
public string SupplierName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 数据类型(1产前管理;2人员资质;3监控视频)
|
||||
|
/// </summary>
|
||||
|
public string Type { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 文件名
|
||||
|
/// </summary>
|
||||
|
public string FileName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 图文地址
|
||||
|
/// </summary>
|
||||
|
public string FileUrl { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 生成时间,格式(yyyy-MM-ddHH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string DateTime { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 产线名称
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 产线代码
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工位名称
|
||||
|
/// </summary>
|
||||
|
public string StationName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工位代码
|
||||
|
/// </summary>
|
||||
|
public string StationId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 设备名称
|
||||
|
/// </summary>
|
||||
|
public string DeviceName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 设备编码
|
||||
|
/// </summary>
|
||||
|
public string? DeviceId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件号
|
||||
|
/// </summary>
|
||||
|
public string VendorProductNo { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件名称
|
||||
|
/// </summary>
|
||||
|
public string VendorProductName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件号
|
||||
|
/// </summary>
|
||||
|
public string CheryProductNo { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件名称
|
||||
|
/// </summary>
|
||||
|
public string CheryProductName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商总成SN码
|
||||
|
/// </summary>
|
||||
|
public string? VendorProductSn { get; set; } |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,79 @@ |
|||||
|
namespace TaskManager.Entity.Entitys |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 环境业务数据
|
||||
|
/// </summary>
|
||||
|
public class SUPPLIER_PRO_ENVIRONMENT : BaseEntity |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 供应商代码
|
||||
|
/// </summary>
|
||||
|
public string SupplierCode { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商名称
|
||||
|
/// </summary>
|
||||
|
public string SupplierName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工厂代码
|
||||
|
/// </summary>
|
||||
|
public string PlantId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工厂名称
|
||||
|
/// </summary>
|
||||
|
public string PlantName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 车间代码
|
||||
|
/// </summary>
|
||||
|
public string WorkshopId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 车间名称
|
||||
|
/// </summary>
|
||||
|
public string WorkshopName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 产线代码
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 产线名称
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 环境指标名称,例如:温度、湿度、洁净度等
|
||||
|
/// </summary>
|
||||
|
public string EnvIndicatorName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 指标实测值,(最大支持11位整数+5位小数)
|
||||
|
/// </summary>
|
||||
|
public decimal? NumValue { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 上限值,(最大支持11位整数+5位小数)
|
||||
|
/// </summary>
|
||||
|
public decimal UpperLimit { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 下限值,(最大支持11位整数+5位小数)
|
||||
|
/// </summary>
|
||||
|
public decimal LowerLimit { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 单位,相应的单位名称,如度数
|
||||
|
/// </summary>
|
||||
|
public string ChineseUnit { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 采集仪器代码,环境采集的仪器/工具代码
|
||||
|
/// </summary>
|
||||
|
public string EquipmentCode { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 采集仪器名称,环境采集的仪器/工具名称
|
||||
|
/// </summary>
|
||||
|
public string EquipmentName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 数据采集的点位
|
||||
|
/// </summary>
|
||||
|
public string? DataCollectionPoint { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 数据采集的时间,格式(yyyy-MM-ddHH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string CollectTime { get; set; } |
||||
|
} |
||||
|
|
||||
|
|
||||
|
} |
@ -0,0 +1,124 @@ |
|||||
|
using System; |
||||
|
using System.Collections.Generic; |
||||
|
using System.Linq; |
||||
|
using System.Text; |
||||
|
using System.Threading.Tasks; |
||||
|
|
||||
|
namespace TaskManager.Entity.Entitys |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 缺陷业务数据
|
||||
|
/// </summary>
|
||||
|
public class SUPPLIER_PRO_FLAW : BaseEntity |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 供应商代码
|
||||
|
/// </summary>
|
||||
|
public string SupplierCode { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商名称
|
||||
|
/// </summary>
|
||||
|
public string SupplierName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工厂代码
|
||||
|
/// </summary>
|
||||
|
public string PlantId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工厂名称
|
||||
|
/// </summary>
|
||||
|
public string PlantName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 车间代码
|
||||
|
/// </summary>
|
||||
|
public string WorkshopId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 车间名称
|
||||
|
/// </summary>
|
||||
|
public string WorkshopName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 产线代码
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 产线名称
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工位代码
|
||||
|
/// </summary>
|
||||
|
public string StationId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工位名称
|
||||
|
/// </summary>
|
||||
|
public string StationName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 缺陷代码
|
||||
|
/// </summary>
|
||||
|
public string DefectsCode { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 缺陷名称
|
||||
|
/// </summary>
|
||||
|
public string DefectsName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 缺陷分类(外观,尺寸,材料,功能,性能,其他)
|
||||
|
/// </summary>
|
||||
|
public string ClassOfName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件号
|
||||
|
/// </summary>
|
||||
|
public string VendorProductNo { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件名称
|
||||
|
/// </summary>
|
||||
|
public string VendorProductName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商总成批次号
|
||||
|
/// </summary>
|
||||
|
public string VendorProductBatch { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商总成SN码
|
||||
|
/// </summary>
|
||||
|
public string VendorProductSn { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件号
|
||||
|
/// </summary>
|
||||
|
public string CheryProductNo { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件名称
|
||||
|
/// </summary>
|
||||
|
public string CheryProductName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 奇瑞SN码
|
||||
|
/// </summary>
|
||||
|
public string CheryProductSn { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 生产批次号
|
||||
|
/// </summary>
|
||||
|
public string ProductBatchNo { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 生产工单号,或生产批次(工单业务数据)
|
||||
|
/// </summary>
|
||||
|
public string ManufactureNo { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 班次(白班,晚班,中班)
|
||||
|
/// </summary>
|
||||
|
public string WorkShift { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 缺陷件数
|
||||
|
/// </summary>
|
||||
|
public decimal Numberofdefect { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 缺陷描述
|
||||
|
/// </summary>
|
||||
|
public string DefectsDesc { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 缺陷等级,(1.严重、2.一般、3.轻微)
|
||||
|
/// </summary>
|
||||
|
public string DefectsLevel { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 缺陷录入时间,格式(yyyy-MM-ddHH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string StatisticalTime { get; set; } |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,90 @@ |
|||||
|
namespace TaskManager.Entity.Entitys |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 物料主数据
|
||||
|
/// </summary>
|
||||
|
public class SUPPLIER_PRO_MATERIAL_DATA : BaseEntity |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 供应商代码
|
||||
|
/// </summary>
|
||||
|
public string SupplierCode { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商名称
|
||||
|
/// </summary>
|
||||
|
public string SupplierName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商物料号
|
||||
|
/// </summary>
|
||||
|
public string VendorProductNo { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商物料名称
|
||||
|
/// </summary>
|
||||
|
public string VendorProductName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 类型(成品,半成品,原材料)
|
||||
|
/// </summary>
|
||||
|
public decimal Type { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商零件版本号
|
||||
|
/// </summary>
|
||||
|
public string? VendorHardwareRevision { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件号
|
||||
|
/// </summary>
|
||||
|
public string CheryProductNo { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件名称
|
||||
|
/// </summary>
|
||||
|
public string CheryProductName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 奇瑞硬件版本号
|
||||
|
/// </summary>
|
||||
|
public string OemHardwareRevision { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 奇瑞软件版本号
|
||||
|
/// </summary>
|
||||
|
public string? OemSoftwareRevision { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 车型
|
||||
|
/// </summary>
|
||||
|
public string? OemModel { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 项目名称
|
||||
|
/// </summary>
|
||||
|
public string? OemProjectName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 是否SOP(Y/N)
|
||||
|
/// </summary>
|
||||
|
public string? Launched { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 数据同步执行时间,格式(yyyy-MM-ddHH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string? DateTime { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商工厂代码
|
||||
|
/// </summary>
|
||||
|
public string? PlantId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商工厂名称
|
||||
|
/// </summary>
|
||||
|
public string? PlantName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 芯片采购类型(AVAP,CS,CMcontro)
|
||||
|
/// </summary>
|
||||
|
public string? ProcurementType { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 芯片MPN标识码
|
||||
|
/// </summary>
|
||||
|
public string? MpnCode { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 芯片MPN标识名称
|
||||
|
/// </summary>
|
||||
|
public string? MpnName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 物料有效期(天)
|
||||
|
/// </summary>
|
||||
|
public string ValidDays { get; set; } |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,102 @@ |
|||||
|
namespace TaskManager.Entity.Entitys |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 设备OEE达成率
|
||||
|
/// </summary>
|
||||
|
public class SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE : BaseEntity |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 供应商代码
|
||||
|
/// </summary>
|
||||
|
public string SupplierCode { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商名称
|
||||
|
/// </summary>
|
||||
|
public string SupplierName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工厂代码
|
||||
|
/// </summary>
|
||||
|
public string PlantId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工厂名称
|
||||
|
/// </summary>
|
||||
|
public string PlantName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 车间代码
|
||||
|
/// </summary>
|
||||
|
public string WorkshopId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 车间名称
|
||||
|
/// </summary>
|
||||
|
public string WorkshopName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 产线代码
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 产线名称
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工位代码
|
||||
|
/// </summary>
|
||||
|
public string StationId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工位名称
|
||||
|
/// </summary>
|
||||
|
public string StationName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 设备代码
|
||||
|
/// </summary>
|
||||
|
public string DeviceId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 设备名称
|
||||
|
/// </summary>
|
||||
|
public string? DeviceName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件号
|
||||
|
/// </summary>
|
||||
|
public string CheryProductNo { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件名称
|
||||
|
/// </summary>
|
||||
|
public string CheryProductName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件号
|
||||
|
/// </summary>
|
||||
|
public string VendorProductNo { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件名称
|
||||
|
/// </summary>
|
||||
|
public string VendorProductName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 生产批次号
|
||||
|
/// </summary>
|
||||
|
public string ProductBatchNo { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 生产工单号
|
||||
|
/// </summary>
|
||||
|
public string ManufactureNo { get; set; } |
||||
|
/// <summary>
|
||||
|
/// OEE实际值
|
||||
|
/// </summary>
|
||||
|
public decimal Rate { get; set; } |
||||
|
/// <summary>
|
||||
|
/// OEE目标值
|
||||
|
/// </summary>
|
||||
|
public decimal RateTagValue { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 班次(白班,晚班,中班)
|
||||
|
/// </summary>
|
||||
|
public string WorkShift { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 生产日期,格式(yyyy-MM-ddHH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string StatisticalTime { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 值统计时间,格式(yyyy-MM-ddHH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string DateTime { get; set; } |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,82 @@ |
|||||
|
namespace TaskManager.Entity.Entitys |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// OEE时间明细
|
||||
|
/// </summary>
|
||||
|
public class SUPPLIER_PRO_OEE_TIME_DETAILS : BaseEntity |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 供应商代码
|
||||
|
/// </summary>
|
||||
|
public string SupplierCode { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商名称
|
||||
|
/// </summary>
|
||||
|
public string SupplierName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工厂代码
|
||||
|
/// </summary>
|
||||
|
public string PlantId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工厂名称
|
||||
|
/// </summary>
|
||||
|
public string PlantName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 车间代码
|
||||
|
/// </summary>
|
||||
|
public string WorkshopId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 车间名称
|
||||
|
/// </summary>
|
||||
|
public string? WorkshopName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 产线代码
|
||||
|
/// </summary>
|
||||
|
public string ProductionLineId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 产线名称
|
||||
|
/// </summary>
|
||||
|
public string? ProductionLineName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工位代码
|
||||
|
/// </summary>
|
||||
|
public string StationId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工位名称
|
||||
|
/// </summary>
|
||||
|
public string StationName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 设备代码
|
||||
|
/// </summary>
|
||||
|
public string DeviceId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 设备名称
|
||||
|
/// </summary>
|
||||
|
public string DeviceName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 记录ID
|
||||
|
/// </summary>
|
||||
|
public string RecId { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 大类(1计划工作,2计划停机,3非计划停机)
|
||||
|
/// </summary>
|
||||
|
public string Type { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 小类编码
|
||||
|
/// </summary>
|
||||
|
public string SubType { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 小类描述
|
||||
|
/// </summary>
|
||||
|
public string SubTypeName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 开始时间,格式(yyyy-MM-ddHH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string StartTime { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 结束时间,格式(yyyy-MM-ddHH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string EndTime { get; set; } |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,86 @@ |
|||||
|
namespace TaskManager.Entity.Entitys |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 工艺
|
||||
|
/// </summary>
|
||||
|
public class SUPPLIER_PRO_PROCESS : BaseEntity |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件号
|
||||
|
/// </summary>
|
||||
|
public string CheryProductNo { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件名称
|
||||
|
/// </summary>
|
||||
|
public string CheryProductName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件号
|
||||
|
/// </summary>
|
||||
|
public string VendorProductNo { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件名称
|
||||
|
/// </summary>
|
||||
|
public string VendorProductName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商代码
|
||||
|
/// </summary>
|
||||
|
public string SupplierCode { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商名称
|
||||
|
/// </summary>
|
||||
|
public string SupplierName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工艺编码
|
||||
|
/// </summary>
|
||||
|
public string TechCode { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工艺名称
|
||||
|
/// </summary>
|
||||
|
public string TechName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 有效期,格式(yyyy-MM-ddHH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string ValidPeriod { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工艺版本
|
||||
|
/// </summary>
|
||||
|
public string TechVersion { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 模具编码
|
||||
|
/// </summary>
|
||||
|
public string MoldCode { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 模具名称
|
||||
|
/// </summary>
|
||||
|
public string MoldName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 最大加工能力
|
||||
|
/// </summary>
|
||||
|
public string MaxProcessingCapacity { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工序编码
|
||||
|
/// </summary>
|
||||
|
public string ProcessCode { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工序名称
|
||||
|
/// </summary>
|
||||
|
public string ProcessName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工序顺序号
|
||||
|
/// </summary>
|
||||
|
public decimal ProcessOrder { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 设备编码
|
||||
|
/// </summary>
|
||||
|
public string DeviceCode { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工序节拍
|
||||
|
/// </summary>
|
||||
|
public decimal Rhythm { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 节拍单位
|
||||
|
/// </summary>
|
||||
|
public string RhythmUnit { get; set; } |
||||
|
} |
||||
|
|
||||
|
} |
@ -0,0 +1,130 @@ |
|||||
|
namespace TaskManager.Entity.Entitys |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 工艺装备
|
||||
|
/// </summary>
|
||||
|
public class SUPPLIER_PRO_PROCESS_EQUIPMENT : BaseEntity |
||||
|
{ |
||||
|
/// <summary>
|
||||
|
/// 供应商代码
|
||||
|
/// </summary>
|
||||
|
public string SupplierCode { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商名称
|
||||
|
/// </summary>
|
||||
|
public string SupplierName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件号
|
||||
|
/// </summary>
|
||||
|
public string CheryProductNo { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 奇瑞零件名称
|
||||
|
/// </summary>
|
||||
|
public string CheryProductName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件号
|
||||
|
/// </summary>
|
||||
|
public string VendorProductNo { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 供应商总成零件名称
|
||||
|
/// </summary>
|
||||
|
public string VendorProductName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工艺装备类型分类(1模具;2检具;3夹具)
|
||||
|
/// </summary>
|
||||
|
public decimal DeviceType { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工艺装备编码
|
||||
|
/// </summary>
|
||||
|
public string DeviceCode { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工艺装备名称
|
||||
|
/// </summary>
|
||||
|
public string DeviceName { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 生产厂家
|
||||
|
/// </summary>
|
||||
|
public string Manufacturer { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工艺装备型号
|
||||
|
/// </summary>
|
||||
|
public string ModelNumber { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工艺装备序列号
|
||||
|
/// </summary>
|
||||
|
public string SerialNumber { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工艺装备制造日期,格式(yyyy-MM-dd)
|
||||
|
/// </summary>
|
||||
|
public string ProductionDate { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 主要材质
|
||||
|
/// </summary>
|
||||
|
public string Material { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 当前存放地点
|
||||
|
/// </summary>
|
||||
|
public string CurrentLocation { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 工艺装备状态
|
||||
|
/// </summary>
|
||||
|
public string DeviceStatus { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 穴腔数量
|
||||
|
/// </summary>
|
||||
|
public decimal CavityCount { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 模具尺寸规格
|
||||
|
/// </summary>
|
||||
|
public string MoldSize { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 设计寿命单位
|
||||
|
/// </summary>
|
||||
|
public string DesignLifeUnits { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 设计寿命
|
||||
|
/// </summary>
|
||||
|
public string DesignLifeValue { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 当前剩余寿命,
|
||||
|
/// </summary>
|
||||
|
public string CurrentUsageCount { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 模具大修次数
|
||||
|
/// </summary>
|
||||
|
public decimal OverhaulCount { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 图纸编号描述
|
||||
|
/// </summary>
|
||||
|
public string CoolingChannelLayout { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 检测精度
|
||||
|
/// </summary>
|
||||
|
public string DetectionAccuracy { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 最近校准日期,格式(yyyy-MM-ddHH:mm:ss)
|
||||
|
/// </summary>
|
||||
|
public string CalibrationDate { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 校准到期天数
|
||||
|
/// </summary>
|
||||
|
public string CalibrationDueDays { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 允许误差范围
|
||||
|
/// </summary>
|
||||
|
public string ToleranceRange { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 磨损阈值
|
||||
|
/// </summary>
|
||||
|
public string WearThreshold { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 检测范围
|
||||
|
/// </summary>
|
||||
|
public string DetectionRange { get; set; } |
||||
|
/// <summary>
|
||||
|
/// 检测单位
|
||||
|
/// </summary>
|
||||
|
public string UnitType { get; set; } |
||||
|
} |
||||
|
|
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,502 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace TaskManager.EntityFramework.Migrations |
||||
|
{ |
||||
|
/// <inheritdoc />
|
||||
|
public partial class _2025052901 : Migration |
||||
|
{ |
||||
|
/// <inheritdoc />
|
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropTable( |
||||
|
name: "SUPPLIER_PRO_ATTACHMENT_DATA"); |
||||
|
|
||||
|
migrationBuilder.DropTable( |
||||
|
name: "SUPPLIER_PRO_ENVIRONMENT"); |
||||
|
|
||||
|
migrationBuilder.DropTable( |
||||
|
name: "SUPPLIER_PRO_MATERIAL_DATA"); |
||||
|
|
||||
|
migrationBuilder.DropTable( |
||||
|
name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE"); |
||||
|
|
||||
|
migrationBuilder.DropTable( |
||||
|
name: "SUPPLIER_PRO_OEE_TIME_DETAILS"); |
||||
|
|
||||
|
migrationBuilder.DropTable( |
||||
|
name: "SUPPLIER_PRO_PROCESS"); |
||||
|
|
||||
|
migrationBuilder.DropTable( |
||||
|
name: "SUPPLIER_PRO_PROCESS_EQUIPMENT"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "NVarchar(500)", |
||||
|
maxLength: 500, |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "CheryProductName", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(100)", |
||||
|
maxLength: 100, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "CheryProductNo", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(32)", |
||||
|
maxLength: 32, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "CheryProductSn", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ClassOfName", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(32)", |
||||
|
maxLength: 32, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "DefectsCode", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(32)", |
||||
|
maxLength: 32, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "DefectsDesc", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(255)", |
||||
|
maxLength: 255, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "DefectsLevel", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "CHAR(1)", |
||||
|
maxLength: 1, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "DefectsName", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(100)", |
||||
|
maxLength: 100, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ManufactureNo", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(32)", |
||||
|
maxLength: 32, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<decimal>( |
||||
|
name: "Numberofdefect", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "DECIMAL(16,5)", |
||||
|
precision: 16, |
||||
|
scale: 5, |
||||
|
nullable: false, |
||||
|
defaultValue: 0m); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "PlantId", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(32)", |
||||
|
maxLength: 32, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "PlantName", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ProductBatchNo", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(32)", |
||||
|
maxLength: 32, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ProductionLineId", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(32)", |
||||
|
maxLength: 32, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "ProductionLineName", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "StationId", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(32)", |
||||
|
maxLength: 32, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "StationName", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "StatisticalTime", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "CHAR(19)", |
||||
|
maxLength: 19, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SupplierCode", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(32)", |
||||
|
maxLength: 32, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "SupplierName", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "VendorProductBatch", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(32)", |
||||
|
maxLength: 32, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "VendorProductName", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(100)", |
||||
|
maxLength: 100, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "VendorProductNo", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(32)", |
||||
|
maxLength: 32, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "VendorProductSn", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkShift", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(10)", |
||||
|
maxLength: 10, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkshopId", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(32)", |
||||
|
maxLength: 32, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
|
||||
|
migrationBuilder.AddColumn<string>( |
||||
|
name: "WorkshopName", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "VARCHAR(64)", |
||||
|
maxLength: 64, |
||||
|
nullable: false, |
||||
|
defaultValue: ""); |
||||
|
} |
||||
|
|
||||
|
/// <inheritdoc />
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "CheryProductName", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "CheryProductNo", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "CheryProductSn", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ClassOfName", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "DefectsCode", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "DefectsDesc", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "DefectsLevel", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "DefectsName", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ManufactureNo", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "Numberofdefect", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "PlantId", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "PlantName", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ProductBatchNo", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ProductionLineId", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "ProductionLineName", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "StationId", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "StationName", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "StatisticalTime", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SupplierCode", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "SupplierName", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "VendorProductBatch", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "VendorProductName", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "VendorProductNo", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "VendorProductSn", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkShift", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkshopId", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.DropColumn( |
||||
|
name: "WorkshopName", |
||||
|
table: "SUPPLIER_PRO_FLAW"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "NVarchar(500)", |
||||
|
oldMaxLength: 500); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "SUPPLIER_PRO_ATTACHMENT_DATA", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
UId = table.Column<long>(type: "bigint", nullable: false) |
||||
|
.Annotation("SqlServer:Identity", "1, 1"), |
||||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
||||
|
ReadState = table.Column<bool>(type: "bit", nullable: false), |
||||
|
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false), |
||||
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
||||
|
WriteState = table.Column<bool>(type: "bit", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_SUPPLIER_PRO_ATTACHMENT_DATA", x => x.UId); |
||||
|
}); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "SUPPLIER_PRO_ENVIRONMENT", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
UId = table.Column<long>(type: "bigint", nullable: false) |
||||
|
.Annotation("SqlServer:Identity", "1, 1"), |
||||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
||||
|
ReadState = table.Column<bool>(type: "bit", nullable: false), |
||||
|
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false), |
||||
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
||||
|
WriteState = table.Column<bool>(type: "bit", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_SUPPLIER_PRO_ENVIRONMENT", x => x.UId); |
||||
|
}); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "SUPPLIER_PRO_MATERIAL_DATA", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
UId = table.Column<long>(type: "bigint", nullable: false) |
||||
|
.Annotation("SqlServer:Identity", "1, 1"), |
||||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
||||
|
ReadState = table.Column<bool>(type: "bit", nullable: false), |
||||
|
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false), |
||||
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
||||
|
WriteState = table.Column<bool>(type: "bit", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_DATA", x => x.UId); |
||||
|
}); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
UId = table.Column<long>(type: "bigint", nullable: false) |
||||
|
.Annotation("SqlServer:Identity", "1, 1"), |
||||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
||||
|
ReadState = table.Column<bool>(type: "bit", nullable: false), |
||||
|
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false), |
||||
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
||||
|
WriteState = table.Column<bool>(type: "bit", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", x => x.UId); |
||||
|
}); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "SUPPLIER_PRO_OEE_TIME_DETAILS", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
UId = table.Column<long>(type: "bigint", nullable: false) |
||||
|
.Annotation("SqlServer:Identity", "1, 1"), |
||||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
||||
|
ReadState = table.Column<bool>(type: "bit", nullable: false), |
||||
|
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false), |
||||
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
||||
|
WriteState = table.Column<bool>(type: "bit", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_SUPPLIER_PRO_OEE_TIME_DETAILS", x => x.UId); |
||||
|
}); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "SUPPLIER_PRO_PROCESS", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
UId = table.Column<long>(type: "bigint", nullable: false) |
||||
|
.Annotation("SqlServer:Identity", "1, 1"), |
||||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
||||
|
ReadState = table.Column<bool>(type: "bit", nullable: false), |
||||
|
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false), |
||||
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
||||
|
WriteState = table.Column<bool>(type: "bit", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS", x => x.UId); |
||||
|
}); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "SUPPLIER_PRO_PROCESS_EQUIPMENT", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
UId = table.Column<long>(type: "bigint", nullable: false) |
||||
|
.Annotation("SqlServer:Identity", "1, 1"), |
||||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
||||
|
ReadState = table.Column<bool>(type: "bit", nullable: false), |
||||
|
Remark = table.Column<string>(type: "nvarchar(max)", nullable: false), |
||||
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false), |
||||
|
WriteState = table.Column<bool>(type: "bit", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_EQUIPMENT", x => x.UId); |
||||
|
}); |
||||
|
} |
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,530 @@ |
|||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace TaskManager.EntityFramework.Migrations |
||||
|
{ |
||||
|
/// <inheritdoc />
|
||||
|
public partial class _2025052902 : Migration |
||||
|
{ |
||||
|
/// <inheritdoc />
|
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_SINV_DATA", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_SA_WEEK", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_RETURN", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_TSCHEDUL", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD", |
||||
|
type: "NVarchar(500)", |
||||
|
maxLength: 500, |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "NVarchar(500)", |
||||
|
oldMaxLength: 500); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_SCHEDULING", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_PLANING", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_MATERIAL_STOCK", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_HSCHEDUL", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<bool>( |
||||
|
name: "WriteState", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "bit", |
||||
|
nullable: false, |
||||
|
defaultValue: false, |
||||
|
oldClrType: typeof(bool), |
||||
|
oldType: "bit"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "NVarchar(500)", |
||||
|
maxLength: 500, |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "NVarchar(500)", |
||||
|
oldMaxLength: 500); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<bool>( |
||||
|
name: "ReadState", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "bit", |
||||
|
nullable: false, |
||||
|
defaultValue: false, |
||||
|
oldClrType: typeof(bool), |
||||
|
oldType: "bit"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_DATA", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_CSCHEDUL", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_CPS", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PO", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_MRP_STATE", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_MRP_MONTH", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_MRP_DATE", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_INV_DATA", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_INFO", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_EMPLOYEE", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_DEL_STATE", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_CON_PO", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_CON_MMRP", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_CON_DATE", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_BOM", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: true, |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)"); |
||||
|
} |
||||
|
|
||||
|
/// <inheritdoc />
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_SINV_DATA", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_SA_WEEK", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_RETURN", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_TSCHEDUL", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_STATION_FIRST_PASSYIELD", |
||||
|
type: "NVarchar(500)", |
||||
|
maxLength: 500, |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "NVarchar(500)", |
||||
|
oldMaxLength: 500, |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_SCHEDULING", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_PLANING", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_MATERIAL_STOCK", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_HSCHEDUL", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<bool>( |
||||
|
name: "WriteState", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "bit", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(bool), |
||||
|
oldType: "bit", |
||||
|
oldDefaultValue: false); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "NVarchar(500)", |
||||
|
maxLength: 500, |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "NVarchar(500)", |
||||
|
oldMaxLength: 500, |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<bool>( |
||||
|
name: "ReadState", |
||||
|
table: "SUPPLIER_PRO_FLAW", |
||||
|
type: "bit", |
||||
|
nullable: false, |
||||
|
oldClrType: typeof(bool), |
||||
|
oldType: "bit", |
||||
|
oldDefaultValue: false); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_FIRST_PASSYIELD", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_DATA", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_CSCHEDUL", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PRO_CPS", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_PO", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_MRP_STATE", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_MRP_MONTH", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_MRP_DATE", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_INV_DATA", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_INFO", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_EMPLOYEE", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_DEL_STATE", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_CON_PO", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_CON_MMRP", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_CON_DATE", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
|
||||
|
migrationBuilder.AlterColumn<string>( |
||||
|
name: "Remark", |
||||
|
table: "SUPPLIER_BOM", |
||||
|
type: "nvarchar(max)", |
||||
|
nullable: false, |
||||
|
defaultValue: "", |
||||
|
oldClrType: typeof(string), |
||||
|
oldType: "nvarchar(max)", |
||||
|
oldNullable: true); |
||||
|
} |
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
@ -0,0 +1,303 @@ |
|||||
|
using System; |
||||
|
using Microsoft.EntityFrameworkCore.Migrations; |
||||
|
|
||||
|
#nullable disable |
||||
|
|
||||
|
namespace TaskManager.EntityFramework.Migrations |
||||
|
{ |
||||
|
/// <inheritdoc />
|
||||
|
public partial class _2025052903 : Migration |
||||
|
{ |
||||
|
/// <inheritdoc />
|
||||
|
protected override void Up(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "SUPPLIER_PRO_ATTACHMENT_DATA", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
UId = table.Column<long>(type: "bigint", nullable: false) |
||||
|
.Annotation("SqlServer:Identity", "1, 1"), |
||||
|
SupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
SupplierName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
Type = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false), |
||||
|
FileName = table.Column<string>(type: "VARCHAR(300)", maxLength: 300, nullable: false), |
||||
|
FileUrl = table.Column<string>(type: "VARCHAR(1000)", maxLength: 1000, nullable: false), |
||||
|
DateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false), |
||||
|
ProductionLineName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
ProductionLineId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
StationName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
DeviceName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
DeviceId = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
||||
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
VendorProductSn = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: true), |
||||
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
||||
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
||||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
||||
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true), |
||||
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_SUPPLIER_PRO_ATTACHMENT_DATA", x => x.UId); |
||||
|
}); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "SUPPLIER_PRO_ENVIRONMENT", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
UId = table.Column<long>(type: "bigint", nullable: false) |
||||
|
.Annotation("SqlServer:Identity", "1, 1"), |
||||
|
SupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
SupplierName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
PlantId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
PlantName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
WorkshopId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
WorkshopName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
ProductionLineId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
ProductionLineName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false), |
||||
|
EnvIndicatorName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false), |
||||
|
NumValue = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: true), |
||||
|
UpperLimit = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), |
||||
|
LowerLimit = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), |
||||
|
ChineseUnit = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
EquipmentCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
EquipmentName = table.Column<string>(type: "VARCHAR(100)", maxLength: 100, nullable: false), |
||||
|
DataCollectionPoint = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true), |
||||
|
CollectTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false), |
||||
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
||||
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
||||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
||||
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true), |
||||
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_SUPPLIER_PRO_ENVIRONMENT", x => x.UId); |
||||
|
}); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "SUPPLIER_PRO_MATERIAL_DATA", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
UId = table.Column<long>(type: "bigint", nullable: false) |
||||
|
.Annotation("SqlServer:Identity", "1, 1"), |
||||
|
SupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
SupplierName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
Type = table.Column<decimal>(type: "DECIMAL(1,0)", precision: 1, scale: 0, nullable: false), |
||||
|
VendorHardwareRevision = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true), |
||||
|
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
OemHardwareRevision = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
OemSoftwareRevision = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true), |
||||
|
OemModel = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true), |
||||
|
OemProjectName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true), |
||||
|
Launched = table.Column<string>(type: "VARCHAR(6)", maxLength: 6, nullable: true), |
||||
|
DateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: true), |
||||
|
PlantId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: true), |
||||
|
PlantName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: true), |
||||
|
ProcurementType = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: true), |
||||
|
MpnCode = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: true), |
||||
|
MpnName = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: true), |
||||
|
ValidDays = table.Column<string>(type: "CHAR(12)", maxLength: 12, nullable: false), |
||||
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
||||
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
||||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
||||
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true), |
||||
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_SUPPLIER_PRO_MATERIAL_DATA", x => x.UId); |
||||
|
}); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
UId = table.Column<long>(type: "bigint", nullable: false) |
||||
|
.Annotation("SqlServer:Identity", "1, 1"), |
||||
|
SupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
SupplierName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
PlantId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
PlantName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
WorkshopId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
WorkshopName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
ProductionLineId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
ProductionLineName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
StationName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
DeviceId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
DeviceName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
||||
|
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
ProductBatchNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
ManufactureNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
Rate = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), |
||||
|
RateTagValue = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), |
||||
|
WorkShift = table.Column<string>(type: "VARCHAR(10)", maxLength: 10, nullable: false), |
||||
|
StatisticalTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false), |
||||
|
DateTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false), |
||||
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
||||
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
||||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
||||
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true), |
||||
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE", x => x.UId); |
||||
|
}); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "SUPPLIER_PRO_OEE_TIME_DETAILS", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
UId = table.Column<long>(type: "bigint", nullable: false) |
||||
|
.Annotation("SqlServer:Identity", "1, 1"), |
||||
|
SupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
SupplierName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
PlantId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
PlantName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
WorkshopId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
WorkshopName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
||||
|
ProductionLineId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
ProductionLineName = table.Column<string>(type: "nvarchar(50)", maxLength: 50, nullable: true), |
||||
|
StationId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
StationName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
DeviceId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
DeviceName = table.Column<string>(type: "VARCHAR(33)", maxLength: 33, nullable: false), |
||||
|
RecId = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
Type = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
SubType = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
SubTypeName = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
StartTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false), |
||||
|
EndTime = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false), |
||||
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
||||
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
||||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
||||
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true), |
||||
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_SUPPLIER_PRO_OEE_TIME_DETAILS", x => x.UId); |
||||
|
}); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "SUPPLIER_PRO_PROCESS", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
UId = table.Column<long>(type: "bigint", nullable: false) |
||||
|
.Annotation("SqlServer:Identity", "1, 1"), |
||||
|
CheryProductNo = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
VendorProductNo = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
SupplierCode = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
SupplierName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
TechCode = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
TechName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
ValidPeriod = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false), |
||||
|
TechVersion = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false), |
||||
|
MoldCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
MoldName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
MaxProcessingCapacity = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
ProcessCode = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
ProcessName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
ProcessOrder = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), |
||||
|
DeviceCode = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
Rhythm = table.Column<decimal>(type: "DECIMAL(16,5)", precision: 16, scale: 5, nullable: false), |
||||
|
RhythmUnit = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false), |
||||
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
||||
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
||||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
||||
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true), |
||||
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS", x => x.UId); |
||||
|
}); |
||||
|
|
||||
|
migrationBuilder.CreateTable( |
||||
|
name: "SUPPLIER_PRO_PROCESS_EQUIPMENT", |
||||
|
columns: table => new |
||||
|
{ |
||||
|
UId = table.Column<long>(type: "bigint", nullable: false) |
||||
|
.Annotation("SqlServer:Identity", "1, 1"), |
||||
|
SupplierCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
SupplierName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
CheryProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
CheryProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
VendorProductNo = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
VendorProductName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
DeviceType = table.Column<decimal>(type: "DECIMAL(1,0)", precision: 1, scale: 0, nullable: false), |
||||
|
DeviceCode = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
DeviceName = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
Manufacturer = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
ModelNumber = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
SerialNumber = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
ProductionDate = table.Column<string>(type: "CHAR(16)", maxLength: 16, nullable: false), |
||||
|
Material = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
CurrentLocation = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
DeviceStatus = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false), |
||||
|
CavityCount = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), |
||||
|
MoldSize = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
DesignLifeUnits = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false), |
||||
|
DesignLifeValue = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false), |
||||
|
CurrentUsageCount = table.Column<string>(type: "VARCHAR(16)", maxLength: 16, nullable: false), |
||||
|
OverhaulCount = table.Column<decimal>(type: "DECIMAL(16,0)", precision: 16, scale: 0, nullable: false), |
||||
|
CoolingChannelLayout = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
DetectionAccuracy = table.Column<string>(type: "VARCHAR(64)", maxLength: 64, nullable: false), |
||||
|
CalibrationDate = table.Column<string>(type: "CHAR(19)", maxLength: 19, nullable: false), |
||||
|
CalibrationDueDays = table.Column<string>(type: "CHAR(12)", maxLength: 12, nullable: false), |
||||
|
ToleranceRange = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
WearThreshold = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
DetectionRange = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
UnitType = table.Column<string>(type: "VARCHAR(32)", maxLength: 32, nullable: false), |
||||
|
WriteState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
||||
|
ReadState = table.Column<bool>(type: "bit", nullable: false, defaultValue: false), |
||||
|
CreationTime = table.Column<DateTime>(type: "datetime2", nullable: false), |
||||
|
Remark = table.Column<string>(type: "NVarchar(500)", maxLength: 500, nullable: true), |
||||
|
TaskId = table.Column<Guid>(type: "uniqueidentifier", nullable: false) |
||||
|
}, |
||||
|
constraints: table => |
||||
|
{ |
||||
|
table.PrimaryKey("PK_SUPPLIER_PRO_PROCESS_EQUIPMENT", x => x.UId); |
||||
|
}); |
||||
|
} |
||||
|
|
||||
|
/// <inheritdoc />
|
||||
|
protected override void Down(MigrationBuilder migrationBuilder) |
||||
|
{ |
||||
|
migrationBuilder.DropTable( |
||||
|
name: "SUPPLIER_PRO_ATTACHMENT_DATA"); |
||||
|
|
||||
|
migrationBuilder.DropTable( |
||||
|
name: "SUPPLIER_PRO_ENVIRONMENT"); |
||||
|
|
||||
|
migrationBuilder.DropTable( |
||||
|
name: "SUPPLIER_PRO_MATERIAL_DATA"); |
||||
|
|
||||
|
migrationBuilder.DropTable( |
||||
|
name: "SUPPLIER_PRO_OEE_ACHIEVEMENT_RATE"); |
||||
|
|
||||
|
migrationBuilder.DropTable( |
||||
|
name: "SUPPLIER_PRO_OEE_TIME_DETAILS"); |
||||
|
|
||||
|
migrationBuilder.DropTable( |
||||
|
name: "SUPPLIER_PRO_PROCESS"); |
||||
|
|
||||
|
migrationBuilder.DropTable( |
||||
|
name: "SUPPLIER_PRO_PROCESS_EQUIPMENT"); |
||||
|
} |
||||
|
} |
||||
|
} |
File diff suppressed because it is too large
Loading…
Reference in new issue