2025-03-16 03:17:36 +08:00
|
|
|
using Seyounth.Hyosung.Data.Entities;
|
|
|
|
|
|
|
|
namespace Seyounth.Hyosung.Data.Models;
|
|
|
|
|
|
|
|
public class Tray
|
|
|
|
{
|
|
|
|
public int Id { get; set; }
|
|
|
|
|
2025-03-20 19:32:49 +08:00
|
|
|
public string TrayCode { get; set; }
|
2025-03-16 03:17:36 +08:00
|
|
|
|
|
|
|
public int VarietyId { get; set; }
|
|
|
|
|
|
|
|
public int? ControlNo { get; set; } = null;
|
|
|
|
|
|
|
|
public DateTime CreateTime { get; set; }
|
|
|
|
|
|
|
|
public DateTime? FinishTime { get; set; }
|
|
|
|
|
|
|
|
public bool IsEven { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string? Grade { get; set; }
|
|
|
|
|
|
|
|
public string? Type { get; set; }
|
|
|
|
|
|
|
|
public string? DenFila { get; set; }
|
|
|
|
|
|
|
|
public string? DtexFila { get; set; }
|
|
|
|
|
|
|
|
public int? Unit { get; set; }
|
|
|
|
|
|
|
|
public double NetWeight { get; set; }
|
|
|
|
|
|
|
|
public double GrossWeight { get; set; }
|
|
|
|
public int? StackHeight { get; set; }
|
|
|
|
|
|
|
|
public int? AgvBinId { get; set; }
|
|
|
|
|
2025-03-20 20:45:38 +08:00
|
|
|
public string? Barcode { get; set; }
|
|
|
|
|
2025-03-23 13:09:36 +08:00
|
|
|
public bool? IsPacking { get; set; }
|
|
|
|
|
2025-03-16 03:17:36 +08:00
|
|
|
public TrayEntity ToEntity()
|
|
|
|
{
|
|
|
|
return new TrayEntity()
|
|
|
|
{
|
|
|
|
Id = Id,
|
|
|
|
TrayCode = TrayCode,
|
|
|
|
VarietyId = VarietyId,
|
|
|
|
ControlNo = ControlNo,
|
|
|
|
FinishTime = FinishTime,
|
|
|
|
StackHeight = StackHeight,
|
|
|
|
IsEven = IsEven,
|
|
|
|
GrossWeight = GrossWeight,
|
|
|
|
NetWeight = NetWeight,
|
|
|
|
CreateTime = CreateTime,
|
|
|
|
DenFila = DenFila,
|
|
|
|
DtexFila = DtexFila,
|
|
|
|
Grade = Grade,
|
|
|
|
Type = Type,
|
|
|
|
Unit = Unit,
|
2025-03-20 20:45:38 +08:00
|
|
|
AgvBinId = AgvBinId,
|
2025-03-23 13:09:36 +08:00
|
|
|
Barcode = Barcode,
|
|
|
|
IsPacking= IsPacking
|
2025-03-16 03:17:36 +08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
public static Tray FromEntity(TrayEntity entity)
|
|
|
|
{
|
|
|
|
return new Tray()
|
|
|
|
{
|
|
|
|
Id = entity.Id,
|
|
|
|
TrayCode = entity.TrayCode,
|
|
|
|
VarietyId = entity.VarietyId,
|
|
|
|
ControlNo = entity.ControlNo,
|
|
|
|
StackHeight = entity.StackHeight,
|
|
|
|
FinishTime = entity.FinishTime,
|
|
|
|
IsEven = entity.IsEven,
|
|
|
|
GrossWeight = entity.GrossWeight,
|
|
|
|
NetWeight = entity.NetWeight,
|
|
|
|
CreateTime = entity.CreateTime,
|
|
|
|
DenFila = entity.DenFila,
|
|
|
|
DtexFila = entity.DtexFila,
|
|
|
|
Grade = entity.Grade,
|
|
|
|
Type = entity.Type,
|
|
|
|
Unit = entity.Unit,
|
2025-03-20 20:45:38 +08:00
|
|
|
AgvBinId = entity.AgvBinId,
|
2025-03-23 13:09:36 +08:00
|
|
|
Barcode = entity.Barcode,
|
|
|
|
IsPacking=entity.IsPacking
|
2025-03-16 03:17:36 +08:00
|
|
|
};
|
|
|
|
}
|
|
|
|
}
|