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.

130 lines
3.6 KiB

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号站";
/// <summary>
/// Desc:订单编号
/// Default:
/// Nullable:True
/// </summary>
[ExporterHeader(DisplayName = "充电流水号", IsBold = true)]
public string Sn { get; set; }
/// <summary>
/// Desc:充电机编号
/// Default:
/// Nullable:True
/// </summary>
[ExporterHeader(DisplayName = "充电桩编号", IsBold = true)]
public string ChargerNo { get; set; }
2 months ago
[ExporterHeader(DisplayName = "仓位号", IsBold = true)]
public string BinNO { get; set; }
/// <summary>
/// Desc:电池编号
/// Default:
/// Nullable:True
/// </summary>
[ExporterHeader(DisplayName = "电池编号", IsBold = true)]
public string BatteryNo { get; set; }
/// <summary>
/// 充电开始时间
/// </summary>
[ExporterHeader(DisplayName = "开始时间", IsBold = true,Width = 30, Format = "yyyy-MM-dd HH:mm:ss", AutoCenterColumn = true)]
public DateTime? StartTime { get; set; }
/// <summary>
/// Desc:充电结束时间
/// Default:
/// Nullable:True
/// </summary>
[ExporterHeader(DisplayName = "结束时间", IsBold = true,Width = 30, Format = "yyyy-MM-dd HH:mm:ss", AutoCenterColumn = true)]
public DateTime? EndTime { get; set; }
/// <summary>
/// Desc:充电时长
/// Default:
/// Nullable:True
/// </summary>
2 months ago
[ExporterHeader(DisplayName = "充电时长/min", IsBold = true)]
public int ChargeTimeCount { get; set; }
/// <summary>
/// Desc:充电开始soc
/// Default:
/// Nullable:True
/// </summary>
[ExporterHeader(DisplayName = "充电开始soc", IsBold = true)]
public int? StartSoc { get; set; }
/// <summary>
/// Desc:充电结束soc
/// Default:
/// Nullable:True
/// </summary>
[ExporterHeader(DisplayName = "充电结束soc", IsBold = true)]
public int? StopSoc { get; set; }
/// <summary>
/// Desc:充电开始交流表电量
/// Default:
/// Nullable:True
/// </summary>
[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; }
/// <summary>
/// Desc:停止原因;0满电自动停止1-人工停止
/// Default:0
/// Nullable:True
/// </summary>
[ExporterHeader(DisplayName = "停止原因", IsBold = true)]
public string StopReasonDisplay
{
get
{
return StopReason switch
{
0 => "满电自动停止",
1 => "人工停止",
_ => "未知"
};
}
}
/// <summary>
/// Desc:停止原因;0满电自动停止1-人工停止
/// Default:0
/// Nullable:True
/// </summary>
[ExporterHeader(IsIgnore = true)]
public int? StopReason { get; set; }
}