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.

100 lines
3.2 KiB

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

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