You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

134 lines
4.4 KiB

using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
namespace Entity.Dto;
/// <summary>
/// ExportPowerReplacementOrder
/// </summary>
[ExcelExporter(Name = "Swap Orders", TableStyle = OfficeOpenXml.Table.TableStyles.None, AutoFitAllColumn = true)]
public class SwapOrderDto2
{
/// <summary>
/// 站号
/// </summary>
[ExporterHeader(DisplayName = "STATION NUMBER", IsBold = true)]
public string StationNumber { get; set; }= "STATION 2";
[ExporterHeader(DisplayName = "CREATION TIME", IsBold = true, Width = 30, Format = "yyyy-MM-dd HH:mm:ss",
AutoCenterColumn = true)]
public DateTime? CreatedTime { get; set; }
[ExporterHeader(DisplayName = "Order Number", IsBold = true)]
public string Sn { get; set; }
[ExporterHeader(DisplayName = "Vehicle Number", IsBold = true)]
public string VehicleNo { get; set; }
[ExporterHeader(DisplayName = "Vehicle MAC", IsBold = true)]
public string VehicleMac { get; set; }
[ExporterHeader(DisplayName = "Vehicle VIN", IsBold = true)]
public string VehicleVin { get; set; }
[ExporterHeader(DisplayName = "Vehicle Enter Time", IsBold = true, Width = 30, Format = "yyyy-MM-dd HH:mm:ss",
AutoCenterColumn = true)]
public DateTime? VehicleEnterTime { get; set; }
[ExporterHeader(DisplayName = "Vehicle Leave Time", IsBold = true, Width = 30, Format = "yyyy-MM-dd HH:mm:ss",
AutoCenterColumn = true)]
public DateTime? VehicleLeaveTime { get; set; }
[ExporterHeader(DisplayName = "Swap Begin Time", IsBold = true, Width = 30, Format = "yyyy-MM-dd HH:mm:ss",
AutoCenterColumn = true)]
public DateTime? SwapBeginTime { get; set; }
[ExporterHeader(DisplayName = "Swap End Time", Width = 30, Format = "yyyy-MM-dd HH:mm:ss", AutoCenterColumn = true)]
public DateTime? SwapEndTime { get; set; }
[ExporterHeader(DisplayName = "Swap Type", IsBold = true)]
public string SwapWayDisplay
{
get
{
return SwapWay switch
{
1 => "Automatic Swap",
2 => "Manual Swap",
_ => "Unknown"
};
}
}
[ExporterHeader(IsIgnore = true)] public int? SwapWay { get; set; }
[ExporterHeader(DisplayName = "Down Battery SOC", IsBold = true)]
public decimal? DownBatterySoc { get; set; }
[ExporterHeader(DisplayName = "Down Battery Number", IsBold = true)]
public string? DownBatteryNo { get; set; }
[ExporterHeader(DisplayName = "Up Battery Number", IsBold = true)]
public string? UpBatteryNo { get; set; }
[ExporterHeader(DisplayName = "Up Battery SOC", IsBold = true)]
public decimal? UpBatterySoc { get; set; }
[ExporterHeader(DisplayName = "Down Battery Bin Number", IsBold = true)]
public int? DownBatteryBinNo { get; set; }
[ExporterHeader(DisplayName = "Up Battery Bin Number", IsBold = true)]
public int? UpBatteryBinNo { get; set; }
/// <summary>
/// 电量
/// </summary>
[ExporterHeader(DisplayName = "Electric Quantity", IsBold = true)]
public string ElectricQuantity { get; set; }
/// <summary>
/// 亏电包电量
/// </summary>
[ExporterHeader(DisplayName = "LOSS OF POWER PACKAGE", IsBold = true)]
public string? DownBatteryElectricQuantity { get; set; }
/// <summary>
/// 满电包电量
/// </summary>
[ExporterHeader(DisplayName = "FULL CHARGE PACK POWER", IsBold = true)]
public string? UpBatteryElectricQuantity { get; set; }
/// <summary>
/// Desc:公司
/// Default:
/// Nullable:True
/// </summary>
[ExporterHeader(DisplayName = "CORPORATION", IsBold = true)]
public string? Company {get;set;}
/// <summary>
/// Desc:部门
/// Default:
/// Nullable:True
/// </summary>
[ExporterHeader(DisplayName = "SECTION", IsBold = true)]
public string? Departments {get;set;}
/// <summary>
/// 电费
/// </summary>
[ExporterHeader(DisplayName = "ELECTRIC CHARGE", IsBold = true)]
public int? ElectricityTotalFee { get; set; }
/// <summary>
/// 附加费
/// </summary>
[ExporterHeader(DisplayName = "ADDITIONAL CHARGE", IsBold = true)]
public int? AppendTotalFee { get; set; }
/// <summary>
/// 总费用(所有的总费用)
/// </summary>
[ExporterHeader(DisplayName = "TOTAL COST", IsBold = true)]
public int? TotalFee { get; set; }
}