2026-05-09 15:55:11 +08:00
|
|
|
|
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; }
|
2026-05-11 14:32:44 +08:00
|
|
|
|
|
|
|
|
|
|
// 总份数 / 每份总重 / 每份包数:与后端同步升级为字符串,
|
|
|
|
|
|
// 用于持久化「拆码明细」多行拼接(如 20/1/、100/200/)。
|
|
|
|
|
|
public string? TotalPortions { get; set; }
|
|
|
|
|
|
public string? PortionWeight { get; set; }
|
|
|
|
|
|
public string? PortionPackages { get; set; }
|
2026-05-09 15:55:11 +08:00
|
|
|
|
|
|
|
|
|
|
/// <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 ?? ""
|
|
|
|
|
|
};
|
|
|
|
|
|
}
|