using Magicodes.ExporterAndImporter.Core;
using Magicodes.ExporterAndImporter.Excel;
namespace Entity.Dto;
[ExcelExporter(Name = "换电站日运行统计结果", TableStyle = OfficeOpenXml.Table.TableStyles.None, AutoFitAllColumn = true)]
public class ExchangeStationDayRunDto
{
///
/// 平均充电时长
///
[ExporterHeader(DisplayName = "平均充电时长", IsBold = true)]
public string AvgChgTime { get; set; }
///
/// 平均换电时长
///
[ExporterHeader(DisplayName = "平均换电时长", IsBold = true)]
public string AvgRepTime { get; set; }
///
/// 换电日期
///
[ExporterHeader(DisplayName = "换电日期", IsBold = true,Width = 30, Format = "yyyy-MM-dd HH:mm:ss", AutoCenterColumn = true)]
public string SwapDate { get; set; }
///
/// 首次换电时间
///
[ExporterHeader(DisplayName = "首次换电时间", IsBold = true,Width = 30, Format = "yyyy-MM-dd HH:mm:ss", AutoCenterColumn = true)]
public string FristSwapTime { get; set; }
///
/// 结束换电时间
///
[ExporterHeader(DisplayName = "结束换电时间", IsBold = true,Width = 30, Format = "yyyy-MM-dd HH:mm:ss", AutoCenterColumn = true)]
public string StopTime { get; set; }
///
/// 运行开始时间
///
[ExporterHeader(DisplayName = "运行开始时间", IsBold = true,Width = 30, Format = "yyyy-MM-dd HH:mm:ss", AutoCenterColumn = true)]
public string RunStartTime { get; set; }
///
/// 运行结束时间
///
[ExporterHeader(DisplayName = "运行结束时间", IsBold = true,Width = 30, Format = "yyyy-MM-dd HH:mm:ss", AutoCenterColumn = true)]
public string RunEndTime { get; set; }
///
/// 充电总次数
///
[ExporterHeader(DisplayName = "充电总次数", IsBold = true)]
public int ChgCount { get; set; }
///
/// 运营状态1:营业状态 2:暂停营业状态 3:设备维护状态 4:歇业状态
///
[ExporterHeader(DisplayName = "运营状态", IsBold = true)]
public string OperationalStatus
{
get
{
return State switch
{
1 => "营业状态",
2 => "暂停营业状态",
3 => "设备维护状态",
4 => "歇业状态",
_ => "未知"
};
}
}
///
/// 运营状态
///
[ExporterHeader(IsIgnore = true)]
public int State { get; set; }
///
/// 换电总次数
///
[ExporterHeader(DisplayName = "换电总次数", IsBold = true)]
public int ToltalSwapCount { get; set; }
///
/// 换电总时长
///
[ExporterHeader(DisplayName = "换电总时长", IsBold = true)]
public float ToltalSwapAllTime { get; set; }
///
/// 站运行总时长
///
[ExporterHeader(DisplayName = "站运行总时长", IsBold = true)]
public float ToltalTimeCount { get; set; }
}