2026-05-11 14:32:44 +08:00
|
|
|
|
namespace YY.Admin.Core.Entity;
|
|
|
|
|
|
|
|
|
|
|
|
public class MesXslRawMaterialCard
|
|
|
|
|
|
{
|
|
|
|
|
|
public string? Id { get; set; }
|
|
|
|
|
|
public string? Barcode { get; set; }
|
2026-05-12 14:06:07 +08:00
|
|
|
|
// 关联的拆码明细行 ID(GUID);「生成原材料卡片」时由桌面端填入,
|
|
|
|
|
|
// 「重新拆码」按入场记录的 PortionDetailIds 批量 IN 删除关联卡片。
|
|
|
|
|
|
public string? SplitDetailId { get; set; }
|
2026-05-11 14:32:44 +08:00
|
|
|
|
public string? BatchNo { get; set; }
|
|
|
|
|
|
public DateTime? EntryDate { get; set; }
|
|
|
|
|
|
public string? MaterialId { get; set; }
|
|
|
|
|
|
public string? MaterialName { get; set; }
|
|
|
|
|
|
public string? MaterialDesc { get; set; }
|
|
|
|
|
|
public string? SupplierId { get; set; }
|
|
|
|
|
|
public string? SupplierName { get; set; }
|
|
|
|
|
|
public string? ManufacturerMaterialName { get; set; }
|
|
|
|
|
|
public string? ShelfLife { get; set; }
|
|
|
|
|
|
public decimal? TotalWeight { get; set; }
|
|
|
|
|
|
public decimal? RemainingWeight { get; set; }
|
|
|
|
|
|
public int? RemainingQuantity { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>状态:1正常 0异常(字典 xslmes_card_status)</summary>
|
|
|
|
|
|
public string? Status { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>检测结果:0未检 1合格 2不合格(字典 xslmes_test_result)</summary>
|
|
|
|
|
|
public string? TestResult { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string? WarehouseArea { get; set; }
|
|
|
|
|
|
public string? UnloadOperator { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>优先出库:1是 0否</summary>
|
|
|
|
|
|
public string? PriorityPickup { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string? CreateBy { get; set; }
|
|
|
|
|
|
public DateTime? CreateTime { get; set; }
|
|
|
|
|
|
public string? UpdateBy { get; set; }
|
|
|
|
|
|
public DateTime? UpdateTime { get; set; }
|
|
|
|
|
|
public int? TenantId { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public string StatusText => Status switch
|
|
|
|
|
|
{
|
|
|
|
|
|
"1" => "正常",
|
|
|
|
|
|
"0" => "异常",
|
|
|
|
|
|
_ => Status ?? ""
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
public string TestResultText => TestResult switch
|
|
|
|
|
|
{
|
|
|
|
|
|
"0" => "未检",
|
|
|
|
|
|
"1" => "合格",
|
|
|
|
|
|
"2" => "不合格",
|
|
|
|
|
|
_ => TestResult ?? ""
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
public bool PriorityPickupBool => PriorityPickup == "1";
|
|
|
|
|
|
public string PriorityPickupText => PriorityPickup == "1" ? "是" : "否";
|
|
|
|
|
|
|
|
|
|
|
|
public string EntryDateText => EntryDate.HasValue ? EntryDate.Value.ToString("yyyy-MM-dd") : "";
|
|
|
|
|
|
}
|