namespace YY.Admin.Core.Entity;
public class MesXslVehicle
{
public string? Id { get; set; }
public string? PlateNumber { get; set; }
/// 车辆归属:1客户 2供应商 3本公司
public string? VehicleBelong { get; set; }
public decimal? TareWeightKg { get; set; }
public decimal? LoadCapacity { get; set; }
public string? UnitId { get; set; }
public string? LoadUnit { get; set; }
public string? CustomerIds { get; set; }
public string? CustomerShortName { get; set; }
public string? SupplierId { get; set; }
public string? SupplierName { get; set; }
public string? SupplierShortName { get; set; }
public decimal? VehicleLength { get; set; }
public decimal? VehicleWidth { get; set; }
public decimal? VehicleHeight { get; set; }
public string? DriverName { get; set; }
public string? DriverPhone { get; set; }
/// 状态:0启用 1停用
public string? Status { get; set; }
public int? TenantId { get; set; }
public string? CreateBy { get; set; }
public DateTime? CreateTime { get; set; }
public string? UpdateBy { get; set; }
public DateTime? UpdateTime { get; set; }
public string? SysOrgCode { get; set; }
public int? Version { get; set; }
public string VehicleBelongText => VehicleBelong switch
{
"1" => "客户",
"2" => "供应商",
"3" => "本公司",
_ => VehicleBelong ?? ""
};
public string StatusText => Status == "1" ? "停用" : "启用";
}