123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144 |
- using System;
- using System.Collections.Generic;
- using System.Text;
- namespace Core.Dtos
- {
- public class EQPDataDto
- {
- public string Topic { get; set; }
- public DateTime Date { get; set; }
- public List<OutPutPerHourDto> OutPuts { get; set; } = new List<OutPutPerHourDto>();
- public List<PSRateInfoDto> PSRates { get; set; } = new List<PSRateInfoDto>();
- public List<ECRateDto> ECRates { get; set; } = new List<ECRateDto>();
- public List<BTRateInfoDto> BTRates { get; set; } = new List<BTRateInfoDto>();
- public List<FOGRateDto> FOGRates { get; set; } = new List<FOGRateDto>();
- public List<FPLRateDto> FPLRates { get; set; } = new List<FPLRateDto>();
- public List<RTVRateDto> RTVRates { get; set; } = new List<RTVRateDto>();
- public List<AGRateDto> AGRates { get; set; } = new List<AGRateDto>();
- public List<TPRateDto> TPRates { get; set; } = new List<TPRateDto>();
- public List<FPCRateDto> FPCRates { get; set; } = new List<FPCRateDto>();
- public List<FLRateDto> FLRates { get; set; } = new List<FLRateDto>();
- public List<OTPRateDto> OTPRates { get; set; } = new List<OTPRateDto>();
- }
- public class OTPRateDto
- {
- public string Date { get; set; }
- public string Shift { get; set; }
- public PowerConsumptns PowerConsumptn { get; set; }
- }
- public class TPRateDto : TPRate
- {
- public string Date { get; set; }
- }
- public class FPCRateDto: FPCRate
- {
- public string Date { get; set; }
- }
- public class FLRateDto : FLRate
- {
- public string Date { get; set; }
- }
- public class AGRateDto : AGRate
- {
- public string Date { get; set; }
- }
- public class RTVRateDto : RTVRate
- {
- public string Date { get; set; }
- }
- public class OutPutPerHourDto : OutPutPerHour
- {
- public string Date { get; set; }
- public DateTime? DateTime
- {
- get
- {
- if (string.IsNullOrEmpty(Date) || string.IsNullOrEmpty(Period))
- {
- return null;
- }
- string time = Period[..Period.IndexOf('~')];
- return Convert.ToDateTime($"{Date} {time}:00");
- }
- }
- public string ModuleTypeString
- {
- get
- {
- if (string.IsNullOrEmpty(ModuleType))
- {
- return "";
- }
- if (ModuleType.Length < 8)
- {
- return ModuleType;
- }
- return ModuleType[..8];
- }
- }
- }
- #region PS
- public class PSRateInfoDto
- {
- public string Date { get; set; }
- public string Shift { get; set; }
- public List<PSRateInfoOfEPD> PSRatesOfEPD { get; set; } = new List<PSRateInfoOfEPD>();
- public List<PSRateInfoOfPS> PSRatesOfPS { get; set; } = new List<PSRateInfoOfPS>();
- public PowerConsumptns PowerConsumptn { get; set; }
- }
- #endregion
- #region EC
- public class ECRateDto
- {
- public string Date { get; set; }
- public string Shift { get; set; }
- public PowerConsumptns PowerConsumptn { get; set; }
- }
- #endregion
- #region BT
- public class BTRateInfoDto
- {
- public string Date { get; set; }
- public string Shift { get; set; }
- public List<BtRatesOfAOI> BTRatesOfAOI { get; set; } = new List<BtRatesOfAOI>();
- public PowerConsumptns PowerConsumptn { get; set; }
- }
- #endregion
- #region FOG
- public class FOGRateDto : FOGRate
- {
- public string Date { get; set; }
- }
- #endregion
- public class FPLRateDto : FPLRate
- {
- public string Date { get; set; }
- }
- }
|