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.

78 lines
2.5 KiB

4 months ago
using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
namespace Entity.Dto;
/// <summary>
/// ChargingOrder
/// </summary>
[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";
4 months ago
[ExporterHeader(DisplayName = "Order Number", IsBold = true)]
public string Sn { get; set; }
2 months ago
4 months ago
[ExporterHeader(DisplayName = "Battery Number", IsBold = true)]
public string BatteryNo { get; set; }
[ExporterHeader(DisplayName = "Charger Number", IsBold = true)]
public string ChargerNo { get; set; }
2 months ago
[ExporterHeader(DisplayName = "Location Number", IsBold = true)]
public string BinNO { get; set; }
4 months ago
[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; }
4 months ago
[ExporterHeader(DisplayName = "Start SOC", IsBold = true)]
public int? StartSoc { get; set; }
[ExporterHeader(DisplayName = "End SOC", IsBold = true)]
public int? StopSoc { 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; }
4 months ago
[ExporterHeader(DisplayName = "Stop Reason", IsBold = true)]
public string StopReasonDisplay
{
get
{
return StopReason switch
{
0 => "Automatic Stop When Fully Charged",
1 => "Manual Stop",
_ => "Unknown"
};
}
}
4 months ago
[ExporterHeader(IsIgnore = true)] public int? StopReason { get; set; }
}