FIC_Solar/SolarPower/Models/ElectricitySoldRecord.cs
2021-08-03 12:01:00 +08:00

40 lines
1.2 KiB
C#

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 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; }
}
}