using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
namespace Entity.Dto;
///
/// ChargingOrder
///
[ExcelExporter(Name = "Charge Orders", TableStyle = OfficeOpenXml.Table.TableStyles.None, AutoFitAllColumn = true)]
public class ChargeOrderDto2
{
[ExporterHeader(DisplayName = "NAME OF CHANGING STATION", IsBold = true)]
public string stationName { get; set; } = "STATION 2";
[ExporterHeader(DisplayName = "Location Number", IsBold = true)]
public string BinNO { get; set; }
[ExporterHeader(DisplayName = "Order Number", IsBold = true)]
public string Sn { get; set; }
[ExporterHeader(DisplayName = "Battery Number", IsBold = true)]
public string BatteryNo { get; set; }
[ExporterHeader(DisplayName = "Charger Number", IsBold = true)]
public string ChargerNo { get; set; }
[ExporterHeader(DisplayName = "Start Time", IsBold = true, Width = 30, Format = "yyyy-MM-dd HH:mm:ss",
AutoCenterColumn = true)]
public DateTime? StartTime { get; set; }
[ExporterHeader(DisplayName = "End Time", IsBold = true, Width = 30, Format = "yyyy-MM-dd HH:mm:ss",
AutoCenterColumn = true)]
public DateTime? EndTime { get; set; }
[ExporterHeader(DisplayName = "Charge Duration", IsBold = true)]
public int ChargeTimeCount { get; set; }
[ExporterHeader(DisplayName = "Start SOC", IsBold = true)]
public int? StartSoc { get; set; }
[ExporterHeader(DisplayName = "End SOC", IsBold = true)]
public int? StopSoc { get; set; }
///
/// 开始电池电量/kwh
///
[ExporterHeader(DisplayName = "START BATTERY LEVEL/kwh", IsBold = true)]
public int? StartBattery { get; set; }
///
/// 结束电池电量/kwh
///
[ExporterHeader(DisplayName = "END BATTERY LEVEL/kwh", IsBold = true)]
public int? StopBattery { get; set; }
[ExporterHeader(DisplayName = "START ALTERNATING METER POWER/kWh", IsBold = true)]
public decimal? StartAcElec1 { get; set; }
[ExporterHeader(DisplayName = "END THE AC METER BATTERY/kWh", IsBold = true)]
public decimal? StopAcElec1 { get; set; }
[ExporterHeader(DisplayName = "START DC METER POWER/kWh", IsBold = true)]
public decimal? StartDcElec1 { get; set; }
[ExporterHeader(DisplayName = "END DC METER POWER/kWh", IsBold = true)]
public decimal? StopDcElec1 { get; set; }
[ExporterHeader(DisplayName = "Stop Reason", IsBold = true)]
public string StopReasonDisplay
{
get
{
return StopReason switch
{
0 => "Automatic Stop When Fully Charged",
1 => "Manual Stop",
_ => "Unknown"
};
}
}
[ExporterHeader(IsIgnore = true)] public int? StopReason { get; set; }
}