using System; using System.Collections.Generic; using System.Text; namespace solarApp.Model { public enum SolarTypeEnum : byte { SelfSold = 0, //自建躉售 HireSold = 1, //租建躉售 SelfUse = 2 //自建自用 } public enum SensorTypeEnum { PYR = 1, //日照計 MTR = 2, //模組溫度計 ETR = 3, //環境溫度計 EMM = 4, //環境濕度計 VAN = 5, //風速計 FOM = 6, //落塵計 PWR = 7, //電錶 WIN = 8, //風向計 TPY = 9 //累計日照量 } public class LandBuilding { private string leaseNotarizationAt; public int Id { get; set; } public int PowerStationId { get; set; } public string Address { get; set; } public string LeaseNotarizationAt //租約公證日期 { get { if (!string.IsNullOrEmpty(leaseNotarizationAt)) { return Convert.ToDateTime(leaseNotarizationAt).ToString("yyyy-MM-dd"); } else { return null; } } set { leaseNotarizationAt = value; } } public string Landowner { get; set; } //地主姓名 public string Purpose { get; set; } //房屋用途 public double LeaseRate { get; set; } //租金比例 public string Coordinate { get; set; } //經緯度 public string Phone { get; set; } //電話 public string CreatorName { get; set; } //創建者名稱 } public class raw_statino { // public string siteid { get; set; } public string reportdate { get; set; } public double KWH { get; set; } public double TODAYKWH { get; set; } public double TOTALKWH { get; set; } public double PR { get; set; } public double SOLARHOUR { get; set; } public double kwhkwp { get; set; } /// /// 寫入 DB 時間 /// public string insertTime { get; set; } } public class raw_station_day { // public string siteid { get; set; } public string reportdate { get; set; } public double KWH { get; set; } public double TODAYKWH { get; set; } public double TOTALKWH { get; set; } public double PR { get; set; } public double SOLARHOUR { get; set; } public double kwhkwp { get; set; } public int count { get; set; } } public class web_station_hour { public string siteid { get; set; } public string reportdate { get; set; } public double KWH { get; set; } public double TODAYKWH { get; set; } public double TOTALKWH { get; set; } public double PR { get; set; } public double SOLARHOUR { get; set; } public double kwhkwp { get; set; } public double MONEY { get; set; } public double todayMoney { get; set; } public double totalMoney { get; set; } public double CARBON { get; set; } public double todayCarbon { get; set; } public double totalCarbon { get; set; } } public class web_station_day { public string siteid { get; set; } public string reportdate { get; set; } public double TODAYKWH { get; set; } public double TOTALKWH { get; set; } public double PR { get; set; } public double SOLARHOUR { get; set; } public double kwhkwp { get; set; } public int count { get; set; } } public class station_list { public string id { get; set; } public string CompanyID { get; set; } public string SiteID { get; set; } public string SiteDB { get; set; } public string SiteName { get; set; } } }