using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
namespace Entity.Dto;
///
/// ExportPowerReplacementOrder
///
[ExcelExporter(Name = "Swap Orders", TableStyle = OfficeOpenXml.Table.TableStyles.None, AutoFitAllColumn = true)]
public class SwapOrderDto2
{
///
/// 站号
///
[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; }
///
/// 电量
///
[ExporterHeader(DisplayName = "Electric Quantity", IsBold = true)]
public string ElectricQuantity { get; set; }
///
/// 亏电包电量
///
[ExporterHeader(DisplayName = "LOSS OF POWER PACKAGE", IsBold = true)]
public string? DownBatteryElectricQuantity { get; set; }
///
/// 满电包电量
///
[ExporterHeader(DisplayName = "FULL CHARGE PACK POWER", IsBold = true)]
public string? UpBatteryElectricQuantity { get; set; }
///
/// Desc:公司
/// Default:
/// Nullable:True
///
[ExporterHeader(DisplayName = "CORPORATION", IsBold = true)]
public string? Company {get;set;}
///
/// Desc:部门
/// Default:
/// Nullable:True
///
[ExporterHeader(DisplayName = "SECTION", IsBold = true)]
public string? Departments {get;set;}
///
/// 电费
///
[ExporterHeader(DisplayName = "ELECTRIC CHARGE", IsBold = true)]
public decimal? ElectricityTotalFee { get; set; }
///
/// 附加费
///
[ExporterHeader(DisplayName = "ADDITIONAL CHARGE", IsBold = true)]
public decimal? AppendTotalFee { get; set; }
///
/// 总费用(所有的总费用)
///
[ExporterHeader(DisplayName = "TOTAL COST", IsBold = true)]
public decimal? TotalFee { get; set; }
}