using Magicodes.ExporterAndImporter.Core; using Magicodes.ExporterAndImporter.Excel; namespace Entity.Dto; [ExcelExporter(Name = "充电订单", TableStyle = OfficeOpenXml.Table.TableStyles.None, AutoFitAllColumn = true)] public class ChargeOrderDto { [ExporterHeader(DisplayName = "换电站名称", IsBold = true)] public string stationName { get; set; } = "2号站"; /// /// Desc:订单编号 /// Default: /// Nullable:True /// [ExporterHeader(DisplayName = "充电流水号", IsBold = true)] public string Sn { get; set; } /// /// Desc:充电机编号 /// Default: /// Nullable:True /// [ExporterHeader(DisplayName = "充电桩编号", IsBold = true)] public string ChargerNo { get; set; } [ExporterHeader(DisplayName = "仓位号", IsBold = true)] public string BinNO { get; set; } /// /// Desc:电池编号 /// Default: /// Nullable:True /// [ExporterHeader(DisplayName = "电池编号", IsBold = true)] public string BatteryNo { get; set; } /// /// 充电开始时间 /// [ExporterHeader(DisplayName = "开始时间", IsBold = true,Width = 30, Format = "yyyy-MM-dd HH:mm:ss", AutoCenterColumn = true)] public DateTime? StartTime { get; set; } /// /// Desc:充电结束时间 /// Default: /// Nullable:True /// [ExporterHeader(DisplayName = "结束时间", IsBold = true,Width = 30, Format = "yyyy-MM-dd HH:mm:ss", AutoCenterColumn = true)] public DateTime? EndTime { get; set; } /// /// Desc:充电时长 /// Default: /// Nullable:True /// [ExporterHeader(DisplayName = "充电时长/min", IsBold = true)] public int ChargeTimeCount { get; set; } /// /// Desc:充电开始soc /// Default: /// Nullable:True /// [ExporterHeader(DisplayName = "充电开始soc", IsBold = true)] public int? StartSoc { get; set; } /// /// Desc:充电结束soc /// Default: /// Nullable:True /// [ExporterHeader(DisplayName = "充电结束soc", IsBold = true)] public int? StopSoc { get; set; } /// /// Desc:充电开始交流表电量 /// Default: /// Nullable:True /// [ExporterHeader(DisplayName = "开始交流表电量/kWh", IsBold = true)] public decimal? StartAcElec1 { get; set; } [ExporterHeader(DisplayName = "结束交流表电量/kWh", IsBold = true)] public decimal? StopAcElec1 { get; set; } [ExporterHeader(DisplayName = "开始直流表电量/kWh", IsBold = true)] public decimal? StartDcElec1 { get; set; } [ExporterHeader(DisplayName = "结束直流表电量/kWh", IsBold = true)] public decimal? StopDcElec1 { get; set; } /// /// Desc:停止原因;0:满电自动停止;1-人工停止 /// Default:0 /// Nullable:True /// [ExporterHeader(DisplayName = "停止原因", IsBold = true)] public string StopReasonDisplay { get { return StopReason switch { 0 => "满电自动停止", 1 => "人工停止", _ => "未知" }; } } /// /// Desc:停止原因;0:满电自动停止;1-人工停止 /// Default:0 /// Nullable:True /// [ExporterHeader(IsIgnore = true)] public int? StopReason { get; set; } }