FIC_Solar/SolarPower/Models/ElectricitySoldRecord.cs
Kai 90fc895f63 1. bug fix
2. 電站管理 基本資料畫面修改
2021-08-25 10:21:52 +08:00

81 lines
2.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 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; }
}
}