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

namespace SolarPower.Models
{
    public class ElectricitySoldRecord:UserInfo
    {
        public int PowerstationId { get; set; }//電站編號
        private string startAt;
        public string StartAt { get { return Convert.ToDateTime(startAt).ToString("yyyy-MM-dd"); } set { startAt = value; } } //開始時間
        private string endAt;
        public string EndAt { get { return Convert.ToDateTime(endAt).ToString("yyyy-MM-dd"); } set { endAt = value; } } //結束時間
        public int Kwh { get; set; }//購電度數
        public float Money { get; set; }//售出金額
        public int Deleted { get; set; }
        public string Month { get; set; }// 歸屬月份
    }

    public class ElectricitySoldRecordTable : ElectricitySoldRecord
    {
        public string PowerStationName { get; set; }
        public string Function { get; set; }
        public string CreatedDay { get; set; }
    }

    public class Powerstationid
    {
        public string Name { get; set; }
        public string Value { get; set; }
    }
    public class ElectricitySoldRecordTablePost
    {
        public List<Powerstationid> StationId { get; set; }
        public string Time { get; set; }
        public int SearchType { get; set; }
    }
    public class BillInfo
    {
        public double Money { get; set; }
        public string GUINumber { get; set; }
        public string TPCInvoiceBuyer { get; set; }
        public string TPCInvoiceAddress { get; set; }
        public string TPCMeterNumber { get; set; }
        public string Name { get; set; }
        public string Logo { get; set; }
        private string startAt;
        public string StartAt { get { return Convert.ToDateTime(startAt).ToString("yyyy/MM/dd"); } set { startAt = value; } }
        private string endAt;
        public string EndAt { get { return Convert.ToDateTime(endAt).ToString("yyyy/MM/dd"); } set { endAt = value; } }
        public int Kwh { get; set; }
        public double PowerRate { get; set; }
        public string PowerName { get; set; }
    }

    public class Generation
    {
        private string startAt;
        public string StartAt { get { return Convert.ToDateTime(startAt).ToString("yyyy/MM/dd"); } set { startAt = value; } }
        private string endAt;
        public string EndAt { get { return Convert.ToDateTime(endAt).ToString("yyyy/MM/dd"); } set { endAt = value; } }
        public double actualkwh { get; set; }
        public double actualMoney { get; set; }
        public double realKWH { get; set; }
        public double realMoney { get; set; }
        public double CBAkwh { get; set; }
        public double CBAeff { get; set; }
        public double capacity { get; set; }
        public double rate { get; set; }
    }

    public class SearchGeneration
    {
        public int DateType { get; set; }
        public string Date { get; set; }
        public int PowerstationId { get; set; }
    }

    public class SearchGeneration2
    {
        public int DateType { get; set; }
        public string Date { get; set; }
        public List<Excelpowerstation> PowerStation { get; set; }
    }
}


