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

90 lines
2.7 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 int? TotalPortions { get; set; }
public double? PortionWeight { get; set; }
public int? PortionPackages { 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 ?? ""
};
}