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

58 lines
1.9 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 MesXslRawMaterialCard
{
public string? Id { get; set; }
public string? Barcode { get; set; }
public string? BatchNo { get; set; }
public DateTime? EntryDate { get; set; }
public string? MaterialId { get; set; }
public string? MaterialName { get; set; }
public string? MaterialDesc { get; set; }
public string? SupplierId { get; set; }
public string? SupplierName { get; set; }
public string? ManufacturerMaterialName { get; set; }
public string? ShelfLife { get; set; }
public decimal? TotalWeight { get; set; }
public decimal? RemainingWeight { get; set; }
public int? RemainingQuantity { get; set; }
/// <summary>状态1正常 0异常字典 xslmes_card_status</summary>
public string? Status { get; set; }
/// <summary>检测结果0未检 1合格 2不合格字典 xslmes_test_result</summary>
public string? TestResult { get; set; }
public string? WarehouseArea { get; set; }
public string? UnloadOperator { get; set; }
/// <summary>优先出库1是 0否</summary>
public string? PriorityPickup { 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 StatusText => Status switch
{
"1" => "正常",
"0" => "异常",
_ => Status ?? ""
};
public string TestResultText => TestResult switch
{
"0" => "未检",
"1" => "合格",
"2" => "不合格",
_ => TestResult ?? ""
};
public bool PriorityPickupBool => PriorityPickup == "1";
public string PriorityPickupText => PriorityPickup == "1" ? "是" : "否";
public string EntryDateText => EntryDate.HasValue ? EntryDate.Value.ToString("yyyy-MM-dd") : "";
}