namespace YY.Admin.Core.Entity; public class MesXslRawMaterialEntry { public string? Id { get; set; } public string? Barcode { get; set; } public string? BatchNo { get; set; } public DateTime? EntryTime { get; set; } public string? WeightRecordId { get; set; } public string? BillNo { get; set; } public string? MaterialId { get; set; } public string? MaterialCode { get; set; } public string? MaterialName { get; set; } public string? SupplyCustomer { get; set; } public string? SupplierId { get; set; } public string? SupplierName { get; set; } public string? ManufacturerMaterialName { get; set; } public string? ShelfLife { get; set; } public double? TotalWeight { get; set; } // 总份数 / 每份总重 / 每份包数:与后端同步升级为字符串, // 用于持久化「拆码明细」多行拼接(如 20/1/、100/200/)。 public string? TotalPortions { get; set; } public string? PortionWeight { get; set; } public string? PortionPackages { get; set; } /// 检测结果:0未检 1合格 2不合格 public string? TestResult { get; set; } /// 检测状态:0送样 1已批准 public string? TestStatus { get; set; } /// 打印标记:1已打印 0未打印 public string? PrintFlag { get; set; } /// 入库结存:1是 0否 public string? StockBalance { get; set; } public string? WarehouseLocation { get; set; } public string? UnloadOperator { get; set; } /// 是否特采:1是 0否 public string? IsSpecialAdoption { get; set; } public string? SpecialAdoptionOperator { get; set; } public DateTime? SpecialAdoptionTime { get; set; } public string? SpecialAdoptionReason { get; set; } public string? Status { get; set; } public string? Remark { 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 TestResultText => TestResult switch { "0" => "未检", "1" => "合格", "2" => "不合格", _ => TestResult ?? "" }; public string TestStatusText => TestStatus switch { "0" => "送样", "1" => "已批准", _ => TestStatus ?? "" }; public string PrintFlagText => PrintFlag switch { "1" => "已打印", "0" => "未打印", _ => PrintFlag ?? "" }; public string StockBalanceText => StockBalance switch { "1" => "是", "0" => "否", _ => StockBalance ?? "" }; public string IsSpecialAdoptionText => IsSpecialAdoption switch { "1" => "是", "0" => "否", _ => IsSpecialAdoption ?? "" }; }