using System;
using System.Collections.Generic;
using System.IO;
using System.Linq;
using System.Threading.Tasks;

namespace SolarPower.Models
{
    public class StationReport
    {
        public string asd { get; set; }
    }

    public class PowerStationIdAndCity
    {
        public int PowerStationId { get; set; }
        public string CityName { get; set; }
        public string PowerStationName { get; set; }
    }

    public class InvAndMoney
    {
        public List<string> Inv { get; set; }
        public int ShowMoney { get; set; }
}

    public class Select_table
    {
        public int SearchType { get; set; }
        public string Time { get; set; }
        public int PowerStation { get; set; }
        public int FormType { get; set; }
        public int Userid { get; set; }
    }
    public class Select_table2
    {
        public int SearchType { get; set; }
        public string Time { get; set; }
        public List<Excelpowerstation> PowerStation { get; set; }
        public int FormType { get; set; }
        public int Userid { get; set; }
    }
    public class Excel
    {
        public int SearchType { get; set; }
        public string Time { get; set; }
        public int FormType { get; set; }
        public List<Excelpowerstation> PowerStation { get; set; }
        public int Userid { get; set; }
    }
    public class Excelpowerstation
    {
        public string Name { get; set; }
        public string Value { get; set; }
    }
    public class NpoiMemoryStream : MemoryStream
    {
        public NpoiMemoryStream()
        {
            AllowClose = true;
        }

        public bool AllowClose { get; set; }

        public override void Close()
        {
            if (AllowClose)
                base.Close();
        }
    }
    public class PsIdAndSiteDB
    {
        public int PowerstationId { get; set; }
        public string SiteDB { get; set; }
    }
    public class Landinfo
    {
        public string LeaseRate { get; set; }
        public string Landowner { get; set; }
    }

    public class MaxFormbody
    {
        public string CityName { get; set; }
        public string AreaName { get; set; }
        public string PowerstationName { get; set; }
        public int PowerstationId { get; set; }
        public int PowerstationType { get; set; }
        public int Days { get; set; }
        public double Kwh { get; set; }
        public string PowerstationDB { get; set; }
        public double SolarHour { get; set; }
        public double Irradiance { get; set; }
        public double AvgPR { get; set; }
        public double AvgKWHKWP { get; set; }
        public double TodayMoney { get; set; }
        public double PowerRate { get; set; }
        public double GeneratingCapacity { get; set; }
        public double TotalKWH { get; set; }
        public double IrrDay { get; set; }
        public double IrrDayHour { get; set; }


        private string mintime;
        private string maxtime;
        private string electricityMeterAt;
        public string Maxtime { get { return Convert.ToDateTime(maxtime).ToString("yyyy/MM/dd"); } set { maxtime = value; } }
        public string Mintime { get { return Convert.ToDateTime(mintime).ToString("yyyy/MM/dd"); } set { mintime = value; } }
        public string ElectricityMeterAt { get { return Convert.ToDateTime(electricityMeterAt).ToString("yyyy/MM/dd"); } set { electricityMeterAt = value; } }
    }

    public class CityArray
    {
        public string City { get; set; }
        public double Kwh { get; set; }
        public double SolarHour { get; set; }
        public int Count { get; set; }
        public double Kwhkwp { get; set; }
        public double GeneratingCapacity { get; set; }
    }


}
