namespace YY.Admin.Core.Entity; public class MesXslRawMaterialCard { public string? Id { get; set; } public string? Barcode { get; set; } // 关联的拆码明细行 ID(GUID);「生成原材料卡片」时由桌面端填入, // 「重新拆码」按入场记录的 PortionDetailIds 批量 IN 删除关联卡片。 public string? SplitDetailId { get; set; } 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; } /// 包装物皮重(KG) public decimal? PackagingTare { get; set; } /// 托盘重量(KG) public decimal? PalletWeight { get; set; } public decimal? RemainingWeight { get; set; } public int? RemainingQuantity { get; set; } /// 状态:1正常 0异常(字典 xslmes_card_status) public string? Status { get; set; } /// 检测结果:0未检 1合格 2不合格(字典 xslmes_test_result) public string? TestResult { get; set; } public string? WarehouseArea { get; set; } public string? UnloadOperator { get; set; } /// 优先出库:1是 0否 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") : ""; }