FIC_Solar/SolarPower/Models/ElectricitySoldRecord.cs
2021-08-12 10:34:39 +08:00

54 lines
1.9 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 int Deleted { 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 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; }
}
}