110 lines
4.1 KiB
C#
110 lines
4.1 KiB
C#
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; }
|
||
public double? PalletTareTotal { get; set; }
|
||
|
||
// 总份数 / 每份总重 / 每份包数:与后端同步升级为字符串,
|
||
// 用于持久化「拆码明细」多行拼接(如 20/1/、100/200/)。
|
||
public string? TotalPortions { get; set; }
|
||
public string? PortionWeight { get; set; }
|
||
public string? PortionPackagingTare { get; set; }
|
||
public string? PortionPalletWeight { get; set; }
|
||
public string? PortionTareStrategyIds { get; set; }
|
||
public string? PortionPackages { get; set; }
|
||
// 拆码明细各行库位的拼接(以 / 分隔,末尾带 /,如 1F-A01/1F-A02/)。
|
||
// 与 WarehouseLocation(基础资料整票级单值)独立,专供明细行回填。
|
||
public string? PortionWarehouseLocations { get; set; }
|
||
// 拆码明细每行的 GUID 拼接(以 / 分隔,末尾带 /),与其它 portion 字段行序对齐,
|
||
// 用于「重新拆码」按拆码明细 ID 反查并清除关联原材料卡片。
|
||
public string? PortionDetailIds { get; set; }
|
||
/// <summary>
|
||
/// 拆码明细行级「已生成卡片」标志拼接(以 / 分隔,末尾带 /,1=已生成 0=未生成)。
|
||
/// 与 PortionDetailIds 行序对齐,作为「生成原材料卡片」过滤待生成行的唯一依据:
|
||
/// HasCard==true 的行不再参与生成(避免重复加卡 + 条码冲突);HasCard==false 的行才参与续生成。
|
||
/// 历史记录留空时桌面端降级用 PrintFlag 推断(持久化 ID 非空 && PrintFlag=1 ⇒ 视为已生成)。
|
||
/// </summary>
|
||
public string? PortionCardFlags { get; set; }
|
||
|
||
/// <summary>检测结果:0未检 1合格 2不合格</summary>
|
||
public string? TestResult { get; set; }
|
||
|
||
/// <summary>检测状态:0送样 1已批准</summary>
|
||
public string? TestStatus { get; set; }
|
||
|
||
/// <summary>打印标记:1已打印 0未打印</summary>
|
||
public string? PrintFlag { get; set; }
|
||
|
||
/// <summary>入库结存:1是 0否</summary>
|
||
public string? StockBalance { get; set; }
|
||
|
||
public string? WarehouseLocation { get; set; }
|
||
public string? UnloadOperator { get; set; }
|
||
|
||
/// <summary>是否特采:1是 0否</summary>
|
||
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 ?? ""
|
||
};
|
||
}
|