Files
qhmes/yy-admin-master/YY.Admin.Core/Entity/MesXslRawMaterialEntry.cs

110 lines
4.1 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
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 ?? ""
};
}