diff --git a/.vsold/ProjectSettings.json b/.vsold/ProjectSettings.json
new file mode 100644
index 0000000..f8b4888
--- /dev/null
+++ b/.vsold/ProjectSettings.json
@@ -0,0 +1,3 @@
+{
+ "CurrentProjectSetting": null
+}
\ No newline at end of file
diff --git a/.vsold/VSWorkspaceState.json b/.vsold/VSWorkspaceState.json
new file mode 100644
index 0000000..919f6a6
--- /dev/null
+++ b/.vsold/VSWorkspaceState.json
@@ -0,0 +1,7 @@
+{
+ "ExpandedNodes": [
+ ""
+ ],
+ "SelectedNode": "\\solarApp.sln",
+ "PreviewInSolutionExplorer": false
+}
\ No newline at end of file
diff --git a/.vsold/slnSolarPower/DesignTimeBuild/.dtbcache.v2 b/.vsold/slnSolarPower/DesignTimeBuild/.dtbcache.v2
new file mode 100644
index 0000000..329cb5a
Binary files /dev/null and b/.vsold/slnSolarPower/DesignTimeBuild/.dtbcache.v2 differ
diff --git a/.vsold/slnSolarPower/config/applicationhost.config b/.vsold/slnSolarPower/config/applicationhost.config
new file mode 100644
index 0000000..3269632
--- /dev/null
+++ b/.vsold/slnSolarPower/config/applicationhost.config
@@ -0,0 +1,995 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
\ No newline at end of file
diff --git a/.vsold/slnx.sqlite b/.vsold/slnx.sqlite
new file mode 100644
index 0000000..4bc9b7b
Binary files /dev/null and b/.vsold/slnx.sqlite differ
diff --git a/solarApp/Model/powerStation.cs b/solarApp/Model/powerStation.cs
new file mode 100644
index 0000000..1ff85b1
--- /dev/null
+++ b/solarApp/Model/powerStation.cs
@@ -0,0 +1,183 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace solarApp.Model
+{
+ public class PowerStation
+ {
+ private string electricityMeterAt = "", tpcContractAt = "", tpcPurchaseElectricityAt = "", tpcSellElectricityAt = "", boeRegisterPostAt = "";
+
+ public int Id { get; set; }
+ public byte HealthStatus { get; set; } //狀態
+ public int Status { get; set; }//停用啟用
+ public int CompanyId { get; set; }
+ public int CityId { get; set; } //縣市
+ public string CityName { get; set; } //縣市名稱
+ public int AreaId { get; set; } //地區
+ public string AreaName { get; set; } //地區
+ public string Address { get; set; } //地址
+ public string Name { get; set; } //名稱
+ public string MainDisplay { get; set; } //主要顯示圖片
+ public string Code { get; set; } //電站代碼
+ public string SerialNumber { get; set; } //四碼流水號
+ public byte IsEscrow { get; set; } //是否被代管
+ public string EscrowName { get; set; } //被代管公司
+ public string ElectricityMeterAt //台電掛錶日
+ {
+ get
+ {
+ if (!string.IsNullOrEmpty(electricityMeterAt))
+ {
+ return Convert.ToDateTime(electricityMeterAt).ToString("yyyy-MM-dd");
+ }
+ else
+ {
+ return null;
+ }
+ }
+ set { electricityMeterAt = value; }
+ }
+ public int EstimatedRecoveryTime { get; set; } //預計回收年限
+ public double GeneratingCapacity { get; set; } //發電容量
+ public double PowerRate { get; set; } //授電費率
+ public List OperationPersonnelIds { get; set; } //運維人員編號
+ public string Coordinate { get; set; } //座標
+ public string InverterBrand { get; set; } //逆變器廠牌
+ public string InverterProductModel { get; set; } //逆變器型號
+ public int InverterAmount { get; set; } //逆變器數量
+ public string PhotovoltaicPanelBrand { get; set; } //光電板廠牌
+ public string PhotovoltaicPanelProductModel { get; set; } //光電板型號
+ public string PhotovoltaicPanelSpecification { get; set; } //光電板規格
+ public int PhotovoltaicPanelAmount { get; set; } //光電板規格
+ public string BoEFileName { get; set; } //能源局原檔案名
+ public string BoEFile { get; set; } //能源局檔案
+ public int BoEDiscountRate { get; set; } //能源局折扣率
+ public string BoEDeviceRegisterNumber { get; set; } //能源局設備登記編號
+ public int BoERentRatio { get; set; } //能源局租金比例
+ public string BoERegisterPostAt //台電簽約日期
+ {
+ get
+ {
+ if (!string.IsNullOrEmpty(boeRegisterPostAt))
+ {
+ return Convert.ToDateTime(boeRegisterPostAt).ToString("yyyy-MM-dd");
+ }
+ else
+ {
+ return null;
+ }
+ }
+ set { boeRegisterPostAt = value; }
+ }
+ public string TPCContractNumber { get; set; } //台電契約編號
+ public string TPCContractAt //台電簽約日期
+ {
+ get
+ {
+ if (!string.IsNullOrEmpty(tpcContractAt))
+ {
+ return Convert.ToDateTime(tpcContractAt).ToString("yyyy-MM-dd");
+ }
+ else
+ {
+ return null;
+ }
+ }
+ set { tpcContractAt = value; }
+ }
+ public int TPCSellDeadline { get; set; } //台電售電期限(年)
+ public int TPCMeterReading { get; set; } //台電每期抄錶日
+ public string TPCPurchaseElectricityAt //台電正式購電日
+ {
+ get
+ {
+ if (!string.IsNullOrEmpty(tpcPurchaseElectricityAt))
+ {
+ return Convert.ToDateTime(tpcPurchaseElectricityAt).ToString("yyyy-MM-dd");
+ }
+ else
+ {
+ return null;
+ }
+ }
+ set { tpcPurchaseElectricityAt = value; }
+ }
+ public string TPCSellElectricityAt //台電正式售電日
+ {
+ get
+ {
+ if (!string.IsNullOrEmpty(tpcPurchaseElectricityAt))
+ {
+ return Convert.ToDateTime(tpcPurchaseElectricityAt).ToString("yyyy-MM-dd");
+ }
+ else
+ {
+ return null;
+ }
+ }
+ set { tpcPurchaseElectricityAt = value; }
+ }
+ public string TPCMeterNumber { get; set; } //台電電號
+ public string GUINumber { get; set; }
+ public string TPCInvoiceBuyer { get; set; }
+ public string TPCInvoiceAddress { get; set; }
+ //public List LandBuildings { get; set; } //土地房屋資料
+ public byte SolarType { get; set; } //電站類型
+ public double kwh { get; set; } //
+ public double Today_kWh { get; set; } //今日發電量
+ public double Total_kWh { get; set; } //總發電量
+ public double Today_Money { get; set; } //今日發電金額
+ public double Total_Money { get; set; } //總發電金額
+ public double Today_kwhkwp { get; set; }
+ public double Avg_kwhkwp { get; set; }
+ public double Today_PR { get; set; }
+ public double Avg_PR { get; set; }
+ public double Today_Carbon { get; set; } //今日減碳量
+ public double Total_Carbon { get; set; } //總減碳量
+ public double Today_irradiance { get; set; } //即時平均日照度
+ public double Avg_irradiance { get; set; } //平均日照度(30天)
+ public double SolarHour { get; set; } //總運轉小時
+ public string SiteDB { get; set; } //電站 DB name: solar_com
+ public string TodayWeather { get; set; } //今日天氣
+ public double TodayWeatherTemp { get; set; } //今日溫度
+ public string WeathersStationId { get; set; }//氣象站編號
+ public string RateOfRain { get; set; }//降雨機率
+ public string line_token { get; set; }//line_token
+ public double Estimate_kwh { get; set; }//預估發電度數
+ public double EstimateEfficacy { get; set; }//預估發電效能
+ public string Wx { get; set; } //天氣預估
+ public string CreatorName { get; set; } //創建者名稱
+ }
+
+ public class PowerStationHistory
+ {
+ public int PowerStationId { get; set; }
+ public string Timestamp { get; set; }
+ public string SITEID { get; set; }
+ public string SiteType { get; set; }
+ public double KWH { get; set; }
+ public double TodayKWh { get; set; }
+ public double TotalKWH { get; set; }
+ public double KWHKWP { get; set; }
+ public double PR { get; set; }
+ public double MP { get; set; }
+ public double SolarHour { get; set; }
+ public double MONEY { get; set; }
+ public double CARBON { get; set; }
+ public double TODAYMONEY { get; set; }
+ public double TOTALMONEY { get; set; }
+ public double TODAYCARBON { get; set; }
+ public double TOTALCARBON { get; set; }
+ public double Irradiance { get; set; }
+ public double Temperature { get; set; }
+ }
+
+ public class AvgPowerStationHistory
+ {
+ public int PowerStationId { get; set; }
+ public double AvgKWHKWP { get; set; }
+ public double AvgPR { get; set; }
+ }
+
+}
diff --git a/solarApp/Model/sensor_model.cs b/solarApp/Model/sensor_model.cs
index 21f2372..5ecf42d 100644
--- a/solarApp/Model/sensor_model.cs
+++ b/solarApp/Model/sensor_model.cs
@@ -73,4 +73,106 @@ namespace solarApp.Model
public double irrAvg { get; set; }
public int count { get; set; }
}
+
+ public class SensorAvgHistory
+ {
+ public string TIMESTAMP { get; set; }
+ public int PowerStationId { get; set; }
+ public double SENSORAVG01 { get; set; }
+ public double SENSORAVG02 { get; set; }
+ public double SENSORAVG03 { get; set; }
+ public double SENSORAVG04 { get; set; }
+ public double SENSORAVG05 { get; set; }
+ public double SENSORAVG06 { get; set; }
+ public double SENSORAVG07 { get; set; }
+ public double SENSORAVG08 { get; set; }
+ public double SENSORAVG09 { get; set; }
+ public double SENSORAVG10 { get; set; }
+ public double SENSORAVG11 { get; set; }
+ public double SENSORAVG12 { get; set; }
+ public double SENSORAVG13 { get; set; }
+ public double SENSORAVG14 { get; set; }
+ public double SENSORAVG15 { get; set; }
+ public double SENSORAVG16 { get; set; }
+ public double SENSORAVG17 { get; set; }
+ public double SENSORAVG18 { get; set; }
+ public double SENSORAVG19 { get; set; }
+ public double SENSORAVG20 { get; set; }
+ public double SENSORAVG21 { get; set; }
+ public double SENSORAVG22 { get; set; }
+ public double SENSORAVG23 { get; set; }
+ public double SENSORAVG24 { get; set; }
+ public double SENSORAVG25 { get; set; }
+ public double SENSORAVG26 { get; set; }
+ public double SENSORAVG27 { get; set; }
+ public double SENSORAVG28 { get; set; }
+ public double SENSORAVG29 { get; set; }
+ public double SENSORAVG30 { get; set; }
+ public double SENSORAVG31 { get; set; }
+ public double SENSORAVG32 { get; set; }
+ public double SENSORAVG33 { get; set; }
+ public double SENSORAVG34 { get; set; }
+ public double SENSORAVG35 { get; set; }
+ public double SENSORAVG36 { get; set; }
+ public double SENSORAVG37 { get; set; }
+ public double SENSORAVG38 { get; set; }
+ public double SENSORAVG39 { get; set; }
+ public double SENSORAVG40 { get; set; }
+ public double SENSORAVG41 { get; set; }
+ public double SENSORAVG42 { get; set; }
+ public double SENSORAVG43 { get; set; }
+ public double SENSORAVG44 { get; set; }
+ public double SENSORAVG45 { get; set; }
+ public double SENSORAVG46 { get; set; }
+ public double SENSORAVG47 { get; set; }
+ public double SENSORAVG48 { get; set; }
+ public double SENSORAVG49 { get; set; }
+ public double SENSORAVG50 { get; set; }
+ }
+
+ ///
+ /// 設備
+ ///
+ public class DeviceInfo
+ {
+ private string installDate;
+ private string warrantyDate;
+ public int PowerStationId { get; set; }//所屬電站編號
+ public string Name { get; set; }//名稱
+ public string Type { get; set; }//類型
+ public string Brand { get; set; }//廠牌
+ public string ProductModel { get; set; }//型號
+ public string DBName { get; set; }
+ public string TableName { get; set; }
+ public string ColName { get; set; }
+ public int ControllerId { get; set; }
+ public string TypeName { get; set; }//類型名稱
+ public int Enabled { get; set; }//啟用
+ public int Status { get; set; }//狀態
+ public string InstallDate { get { return Convert.ToDateTime(installDate).ToString("yyyy-MM-dd"); } set { installDate = value; } } //安裝日期
+ public string BrandNum { get; set; }//廠商序號
+ public string WarrantyDate { get { return Convert.ToDateTime(warrantyDate).ToString("yyyy-MM-dd"); } set { warrantyDate = value; } } //保固日期
+ }
+
+ public class Device : DeviceInfo
+ {
+ public string UID { get; set; }//設備編號
+ public string SerialNumber { get; set; }
+ public string PowerStationName { get; set; }
+ }
+
+ public class PyrheliometerHistory
+ {
+ public int PowerStationId { get; set; }
+ public string Timestamp { get; set; }
+ public double Irradiance { get; set; } //日照計
+ public double Temperature { get; set; } //模組溫度計
+ public double EnvTemperature { get; set; } //環境溫度計
+ public double Humidity { get; set; } //濕度
+ public double Vane { get; set; } //風速
+ public double Dust { get; set; } //落塵計
+ public double WingDirection { get; set; } //風向計
+ public double IrrDay { get; set; } //累計日照量
+ }
+
}
diff --git a/solarApp/Model/station_model.cs b/solarApp/Model/station_model.cs
index b58e0c0..e04cc9b 100644
--- a/solarApp/Model/station_model.cs
+++ b/solarApp/Model/station_model.cs
@@ -4,72 +4,123 @@ using System.Text;
namespace solarApp.Model
{
- 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 enum SolarTypeEnum : byte
+ {
+ SelfSold = 0, //自建躉售
+ HireSold = 1, //租建躉售
+ SelfUse = 2 //自建自用
+ }
- 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 enum SensorTypeEnum
+ {
+ PYR = 1, //日照計
+ MTR = 2, //模組溫度計
+ ETR = 3, //環境溫度計
+ EMM = 4, //環境濕度計
+ VAN = 5, //風速計
+ FOM = 6, //落塵計
+ PWR = 7, //電錶
+ WIN = 8, //風向計
+ TPY = 9 //累計日照量
+ }
- 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 LandBuilding
+ {
+ private string leaseNotarizationAt;
- 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; }
- }
+ 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; }
+ }
}
diff --git a/solarApp/Model/weather_model.cs b/solarApp/Model/weather_model.cs
index db4ae38..55064e0 100644
--- a/solarApp/Model/weather_model.cs
+++ b/solarApp/Model/weather_model.cs
@@ -75,5 +75,31 @@ namespace solarApp.Model
}
#endregion
+ public class WeatherObservation //氣象觀測(資料庫)
+ {
+ public int PowerStationId { get; set; }
+ private string obsTime;
+ public string ObsTime { get { return Convert.ToDateTime(obsTime).ToString("yyyy-MM-dd HH:mm:ss"); } set { obsTime = value; } }
+ public double Temp { get; set; }
+ }
+
+ public class WeatherForecast //氣象預報(資料庫)
+ {
+ public string LocationName { get; set; }
+ public string Wx { get; set; }
+ public string WxValue { get; set; }
+ public string PoP { get; set; }
+ private string startTime;
+ public string StartTime { get { return Convert.ToDateTime(startTime).ToString("yyyy-MM-dd HH:mm:ss"); } set { startTime = value; } }
+ private string endTime;
+ public string EndTime { get { return Convert.ToDateTime(endTime).ToString("yyyy-MM-dd HH:mm:ss"); } set { endTime = value; } }
+ }
+
+
+ public class NowWeather
+ {
+ public string WeatherKey { get; set; } //現在天氣
+ public string PoP { get; set; } //降雨機率
+ }
}
}
diff --git a/solarApp/Program.cs b/solarApp/Program.cs
index 000fd3c..2373c34 100644
--- a/solarApp/Program.cs
+++ b/solarApp/Program.cs
@@ -4,6 +4,11 @@ using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using System.Windows.Forms;
+using Serilog.Sinks.RollingFile;
+using Microsoft.Extensions.Hosting;
+using Microsoft.Extensions.DependencyInjection;
+using solarApp.Service;
+using Microsoft.Extensions.Logging;
namespace solarApp
{
@@ -11,10 +16,54 @@ namespace solarApp
{
///
/// The main entry point for the application.
+ /// log ref: https://www.thecodebuzz.com/file-logging-in-windows-form-application-using-serilog/
///
[STAThread]
static void Main()
{
+ // Application.SetHighDpiMode(HighDpiMode.SystemAware);
+ // Application.EnableVisualStyles();
+ // Application.SetCompatibleTextRenderingDefault(false);
+
+ // ///Generate Host Builder and Register the Services for DI
+ // var builder = new HostBuilder()
+ // .ConfigureServices((hostContext, services) =>
+ // {
+ // services.AddScoped();
+ // services.AddScoped();
+ // //services.AddScoped();
+ // //services.AddSingleton();
+
+
+ ////Add Serilog
+ //var serilogLogger = new LoggerConfiguration()
+ // .WriteTo.File("app_log.txt")
+ // .CreateLogger();
+ // services.AddLogging(x =>
+ // {
+ // x.SetMinimumLevel(LogLevel.Information);
+ // x.AddSerilog(logger: serilogLogger, dispose: true);
+ // });
+
+ // });
+
+ // var host = builder.Build();
+
+ // using (var serviceScope = host.Services.CreateScope())
+ // {
+ // var services = serviceScope.ServiceProvider;
+ // try
+ // {
+ // var form1 = services.GetRequiredService();
+ // Application.Run(form1);
+
+ // Console.WriteLine("Success");
+ // }
+ // catch (Exception ex)
+ // {
+ // Console.WriteLine("Error Occured");
+ // }
+ // }
Log.Logger = new LoggerConfiguration()
.MinimumLevel.Verbose() // ]w̧Cܼh w]: Information
.WriteTo.File("Logs/solarApp/log-.log",
diff --git a/solarApp/Service/getStationSvc.cs b/solarApp/Service/getStationSvc.cs
index d95b6fe..a46f0f3 100644
--- a/solarApp/Service/getStationSvc.cs
+++ b/solarApp/Service/getStationSvc.cs
@@ -14,6 +14,7 @@ namespace solarApp.Service
public class getStationSvc
{
string Connection1 = ConfigurationManager.ConnectionStrings["mySql"].ConnectionString;
+ protected string tableName = "power_station";
///
/// 電站 Raw Data
///
@@ -185,7 +186,19 @@ namespace solarApp.Service
return ds;
}
}
-
+ public List get_powerStation()
+ {
+ using (MySqlConnection conn = new MySqlConnection(Connection1))
+ {
+ conn.Open();
+ string sql = @" select *
+ from power_station
+ where deleted = 0 and `status`= 1";
+ List ds = conn.Query(sql).AsList();
+ conn.Close();
+ return ds;
+ }
+ }
public List get_lack_stationData(string reportDate)
{
using (MySqlConnection conn = new MySqlConnection(Connection1))
@@ -206,5 +219,271 @@ namespace solarApp.Service
return ds;
}
}
+
+ public string ExistTable(string db_name, string table_name)
+ {
+ string result;
+ using (MySqlConnection conn = new MySqlConnection(Connection1))
+ {
+ try
+ {
+ var sql = "SELECT TABLE_NAME FROM INFORMATION_SCHEMA.TABLES where TABLE_SCHEMA = @DBName AND TABLE_NAME = @TableName;";
+
+ result = conn.QueryFirstOrDefault(sql, new { DBName = db_name, TableName = table_name }, commandTimeout: 600);
+ }
+ catch (Exception exception)
+ {
+ throw exception;
+ }
+ finally
+ {
+ conn.Close();
+ }
+ return result;
+ }
+ }
+
+ public PowerStationHistory GetPowerStationHistoryPerHour(string dateTime, string table_name)
+ {
+ PowerStationHistory result;
+ using (MySqlConnection conn = new MySqlConnection(Connection1))
+ {
+ try
+ {
+ var sql = $@"
+ SELECT
+ DATE_FORMAT(FROM_UNIXTIME(timestamp / 1000), '%Y-%m-%d %H') AS TIMESTAMP,
+ SITEID,
+ SiteType,
+ KWH,
+ TodayKWh,
+ TotalKWH,
+ KWHKWP,
+ PR,
+ MP,
+ SolarHour
+ FROM {table_name} WHERE DATE_FORMAT(FROM_UNIXTIME(timestamp / 1000), '%Y-%m-%d %H') = @DateTime
+ ";
+
+ result = conn.QueryFirstOrDefault(sql, new { DateTime = dateTime }, commandTimeout: 600);//加上時間
+ }
+ catch (Exception exception)
+ {
+ throw exception;
+ }
+ return result;
+ }
+ }
+
+ ///
+ /// 透過電站編號,取得所有土地房屋資訊
+ ///
+ ///
+ ///
+ ///
+ public List GetAllLandBuildingInfoByPowerStationId(int id, string db_name)
+ {
+ List result;
+ using (MySqlConnection conn = new MySqlConnection(Connection1))
+ {
+ try
+ {
+ var sql = @$"SELECT lb.*, u.Name AS CreatorName FROM {db_name}.land_building lb
+ LEFT JOIN user u ON lb.CreatedBy = u.Id
+ WHERE lb.Deleted = 0 AND PowerStationId = @PowerStationId";
+
+ result = (conn.Query(sql, new { PowerStationId = id }, commandTimeout: 600)).AsList();
+ }
+ catch (Exception exception)
+ {
+ throw exception;
+ }
+ return result;
+ }
+ }
+
+ ///
+ /// 透過name,取得單一設定變數
+ ///
+ ///
+ ///
+ public string GetOneVariableByName(string name)
+ {
+ string result;
+ using (MySqlConnection conn = new MySqlConnection(Connection1))
+ {
+ try
+ {
+ var sql = $"SELECT Value FROM variable WHERE Name = @Name";
+
+ result = conn.QueryFirstOrDefault(sql, new { Name = name }, commandTimeout: 600);
+ }
+ catch (Exception exception)
+ {
+ throw exception;
+ }
+ return result;
+ }
+ }
+
+ public int UpdateList(List entity, List properties)
+ {
+ int count;
+ using (MySqlConnection conn = new MySqlConnection(Connection1))
+ {
+ conn.Open();
+ using (var trans = conn.BeginTransaction())
+ {
+ try
+ {
+ string sql = GenerateUpdateQuery(properties);
+
+ count = conn.Execute(sql, entity, trans, commandTimeout: 600);
+
+ trans.Commit();
+ }
+ catch (Exception exception)
+ {
+ trans.Rollback();
+ throw exception;
+ }
+ finally
+ {
+ conn.Close();
+ }
+ }
+
+ return count;
+ }
+ }
+
+ ///
+ /// 產生Update語句
+ ///
+ ///
+ ///
+ protected string GenerateUpdateQuery(List properties)
+ {
+ var updateQuery = new StringBuilder($"UPDATE {tableName} SET ");
+
+ properties.ForEach(property =>
+ {
+ if (!property.Equals("Id"))
+ {
+ updateQuery.Append($"{property}=@{property},");
+ }
+ });
+
+ updateQuery.Remove(updateQuery.Length - 1, 1); //remove last comma
+ updateQuery.Append(" WHERE id = @Id");
+
+ return updateQuery.ToString();
+ }
+
+ public List GetListPyrheliometerByPowerStationId(int powerStationId, string db_name)
+ {
+ List result;
+ using (MySqlConnection conn = new MySqlConnection(Connection1))
+ {
+ try
+ {
+ var sql = $@"SELECT temp.*
+ FROM(
+ SELECT d.*
+ FROM {db_name}.device d
+ WHERE d.PowerStationId = @PowerStationId AND d.`Type` = 'TPY' AND d.Deleted = 0 AND d.Enabled = 1 AND d.Status != 0
+ UNION
+ SELECT d.*
+ FROM {db_name}.sharedevice sd
+ LEFT JOIN {db_name}.device d ON sd.DeviceId = d.Id
+ WHERE sd.PowerStationId = @PowerStationId AND d.`Type` = 'TPY' AND d.Deleted = 0 AND d.Enabled = 1 AND d.Status != 0
+ ) temp
+ ORDER BY temp.ColName
+ ";
+
+ result = (conn.Query(sql, new { PowerStationId = powerStationId }, commandTimeout: 600)).AsList();
+ }
+ catch (Exception exception)
+ {
+ throw exception;
+ }
+ return result;
+ }
+ }
+
+ public PyrheliometerHistory CalcSensorHistoryPerHour(string dateTime, List deviceInfos, int type)
+ {
+ SensorTypeEnum SensorTypeEnum = (SensorTypeEnum)type;
+ var typename = "";
+ var calc = "";
+ switch (SensorTypeEnum)
+ {
+ case SensorTypeEnum.PYR: //日照計
+ calc = "AVG";
+ typename = "Irradiance";
+ break;
+ case SensorTypeEnum.MTR: //模組溫度計
+ calc = "AVG";
+ typename = "Temperature";
+ break;
+ case SensorTypeEnum.ETR: //環境溫度計
+ calc = "AVG";
+ typename = "EnvTemperature";
+ break;
+ case SensorTypeEnum.EMM: //環境濕度計
+ calc = "AVG";
+ typename = "Humidity";
+ break;
+ case SensorTypeEnum.VAN: //風速計
+ calc = "AVG";
+ typename = "Vane";
+ break;
+ case SensorTypeEnum.FOM: //落塵計
+ calc = "AVG";
+ typename = "Dust";
+ break;
+ case SensorTypeEnum.WIN: //風向計
+ calc = "AVG";
+ typename = "WingDirection";
+ break;
+ case SensorTypeEnum.TPY: //累計日照量
+ calc = "MAX";
+ typename = "IrrDay";
+ break;
+ }
+
+ PyrheliometerHistory result;
+ using (MySqlConnection conn = new MySqlConnection(Connection1))
+ {
+ try
+ {
+ List sql_per_device = new List();
+
+ foreach (var device in deviceInfos)
+ {
+ var str = @$"SELECT DATE_FORMAT(FROM_UNIXTIME(s.TIMESTAMP/ 1000), '%Y-%m-%d %H') AS TIMESTAMP, s.SITEID, CASE WHEN AVG(CASE WHEN s.{device.ColName} != 0 THEN s.{device.ColName} END) IS NOT NULL THEN AVG(CASE WHEN s.{device.ColName} != 0 THEN s.{device.ColName} END)
+ ELSE 0 END AS SENSOR
+ FROM {device.DBName}.{device.TableName} s
+ WHERE DATE_FORMAT(FROM_UNIXTIME(s.TIMESTAMP/ 1000), '%Y-%m-%d %H') = @DateTime
+ GROUP BY DATE_FORMAT(FROM_UNIXTIME(s.TIMESTAMP/ 1000), '%Y-%m-%d %H')";
+
+ sql_per_device.Add(str);
+ }
+
+ var sql = @$"SELECT a.TIMESTAMP, {calc}(a.SENSOR) AS {typename} FROM(" + string.Join(" UNION ", sql_per_device) + @") a GROUP BY `TIMESTAMP`";
+
+ result = conn.QueryFirstOrDefault(sql, new { DateTime = dateTime }, commandTimeout: 600);
+ }
+ catch (Exception exception)
+ {
+ throw exception;
+ }
+ finally
+ {
+ conn.Close();
+ }
+ return result;
+ }
+ }
}
}
diff --git a/solarApp/Service/procArchiveHourly.cs b/solarApp/Service/procArchiveHourly.cs
new file mode 100644
index 0000000..3afe895
--- /dev/null
+++ b/solarApp/Service/procArchiveHourly.cs
@@ -0,0 +1,336 @@
+using System;
+using System.Collections.Generic;
+using System.Net.Http;
+using System.Text;
+using Microsoft.Extensions.Logging;
+using Newtonsoft.Json;
+using solarApp.Model;
+using static solarApp.Model.weather_model;
+
+namespace solarApp.Service
+{
+ public class procArchiveHourly
+ {
+ // private readonly ILogger logger;
+ private readonly ILogger logger;
+ private double carbonRate;
+ //public procArchiveHourly(ILogger logger)
+ //{
+ // this.logger = logger;
+ //}
+ public List proc_s1_site() {
+ List calcPowerStations = new List();
+ try
+ {
+ var DateTimeNow = DateTime.Now;
+ var dateTime = DateTimeNow.AddHours(-1).ToString("yyyy-MM-dd HH");
+
+ Root2 observation = null;
+
+ //if (this.environment.IsDevelopment())
+ //{
+ // dateTime = "2022-06-01 16";
+ //}
+
+ // logger.LogInformation("【CalcPowerStationJob】【任務開始】");
+
+ #region step1. 找出所有電站
+ // logger.LogInformation("【CalcPowerStationJob】【開始取得電站資料】");
+ //var powerStations = powerStationRepository.GetAllAsync();
+ getStationSvc stationSvc = new getStationSvc();
+ var powerStations = stationSvc.get_powerStation();
+ // logger.LogInformation("【CalcPowerStationJob】【取得成功電站資料】");
+ // logger.LogInformation("【CalcPowerStationJob】【電站資料】 - {0}", System.Text.Json.JsonSerializer.Serialize(powerStations));
+ #endregion
+
+ List powerStationHistoriesHour = new List();
+ //List sensorHistoriesHour = new List();
+
+ //List pyrheliometerHistoriesHour = new List();
+ //List TempHistoriesHour = new List();
+ //List inverterHistoriesHour = new List();
+
+ List sensorAvgHistoryHour = new List();
+ //List meterHistoriesHour = new List();
+ List weatherObservations = new List();
+
+ #region 氣象觀測(取資料)
+ try
+ {
+ // logger.LogInformation("【CalcPowerStationJob】【開始取得氣象觀測】");
+ var client = new HttpClient();
+ var UVUri = "https://opendata.cwb.gov.tw/api/v1/rest/datastore/O-A0003-001?Authorization=CWB-EA24220B-DDCC-4188-84E5-AD37A0E03F80&elementName=TIME,TEMP";
+ HttpResponseMessage response = client.GetAsync(UVUri).Result;
+ String jsonUVs = response.Content.ReadAsStringAsync().Result.ToString();
+ observation = JsonConvert.DeserializeObject(jsonUVs);
+ // logger.LogInformation("【CalcPowerStationJob】【取得成功氣象觀測】");
+ }
+ catch (Exception ex)
+ {
+ // logger.LogError("【CalcPowerStationJob】【取得失敗氣象觀測】");
+ // logger.LogError("【{0}】{1}", "CalcPowerStationJob", ex.Message);
+ observation = null;
+ }
+ #endregion
+
+ #region step2. 從電站的DB及電站編號找出該電站的控制器
+ foreach (var powerStation in powerStations)
+ {
+ try
+ {
+ var calcPowerStation = new PowerStation();
+ calcPowerStation.Id = powerStation.Id;
+
+ #region step2-1. 取得該電站的當前這小時的歷史資料
+ var table_name = String.Format("s{1}01_station", powerStation.SiteDB, powerStation.Code);
+ var full_table_name = String.Format("`{0}`.`{1}`", powerStation.SiteDB, table_name);
+ var exist = stationSvc.ExistTable(powerStation.SiteDB, table_name);
+
+ if (string.IsNullOrEmpty(exist))
+ {
+ // logger.LogError($"【CalcPowerStationJob】【查無電站[{powerStation.Code}]的s{powerStation.Code}01_station資料表】");
+ }
+ else
+ {
+ // logger.LogInformation("【CalcPowerStationJob】【開始取得電站[{0}]在{1}的每小時歷史資料】", powerStation.Code, dateTime);
+ var history = stationSvc.GetPowerStationHistoryPerHour(dateTime, full_table_name);
+ // 當前用不到
+ // var lastmoneyhistorybyhour = await powerStationRepository.GetLastMoneyAndCarbonInHour(powerStation.Id, 0, dateTime);
+
+ if (history == null)
+ {
+ // logger.LogWarning("【CalcPowerStationJob】【查無電站[{0}]在{1}的每小時歷史資料】", powerStation.Code, dateTime);
+ }
+ else
+ {
+ // logger.LogInformation("【CalcPowerStationJob】【取得成功電站[{0}]在{1}的每小時歷史資料】", powerStation.Code, dateTime);
+ // logger.LogInformation("【CalcPowerStationJob】【電站[{0}]在{1}的每小時歷史資料】 - {2}", powerStation.Code, dateTime, System.Text.Json.JsonSerializer.Serialize(history));
+
+ // logger.LogInformation("【CalcPowerStationJob】【開始計算電站[{0}]在{1}的每小時歷史資料】", powerStation.Code, dateTime);
+ history.PowerStationId = powerStation.Id;
+ history.Timestamp = Convert.ToDateTime(history.Timestamp + ":00:00").ToString("yyyy-MM-dd HH:mm:ss");
+
+ #region 計算單一電站每小時發電量、發電金額等資料
+
+ #region 發電量
+ //每小時發電量(直接填寫
+ calcPowerStation.kwh = history.KWH;
+ //今日發電量(直接填寫
+ calcPowerStation.Today_kWh = history.TodayKWh;
+ //總發電量(直接填寫
+ calcPowerStation.Total_kWh = history.TotalKWH;
+ #endregion
+
+ #region 發電金額
+
+ history.MONEY = history.KWH * powerStation.PowerRate;
+ history.TODAYMONEY = history.TodayKWh * powerStation.PowerRate;
+ history.TOTALMONEY = history.TotalKWH * powerStation.PowerRate;
+
+ //即時發電金額
+ switch (powerStation.SolarType)
+ {
+ case (int)SolarTypeEnum.SelfSold: //自建躉售
+
+ //今日發電金額 計算方式:todaykWh * 授電費率
+ calcPowerStation.Today_Money = history.TodayKWh * powerStation.PowerRate;
+ //calcPowerStation.Today_Money = history.TODAYMONEY;
+
+ ////總發電金額 計算方式:totalkWh * 授電費率
+ calcPowerStation.Total_Money = history.TotalKWH * powerStation.PowerRate;
+ //calcPowerStation.Total_Money = history.TOTALMONEY;
+ break;
+ case (int)SolarTypeEnum.HireSold: //租建躉售
+ //找出該電站的所有土地房屋資訊
+ var landBuildings = stationSvc.GetAllLandBuildingInfoByPowerStationId(powerStation.Id, powerStation.SiteDB);
+ var sumLeaseRate = 0.00;
+ var avgLeaseRate = 0.00;
+
+ foreach (var landBuilding in landBuildings)
+ {
+ sumLeaseRate += landBuilding.LeaseRate;
+ }
+
+ calcPowerStation.Today_Money = history.TodayKWh * powerStation.PowerRate * sumLeaseRate / 100;
+ calcPowerStation.Total_Money = history.TotalKWH * powerStation.PowerRate * sumLeaseRate / 100;
+
+ break;
+ case (int)SolarTypeEnum.SelfUse: //自建自用
+
+
+ //今日發電金額 計算方式:todaykWh * 授電費率
+ //calcPowerStation.Today_Money = history.TODAYMONEY;
+ calcPowerStation.Today_Money = history.TodayKWh * powerStation.PowerRate;
+
+ //總發電金額 計算方式:totalkWh * 授電費率
+ //calcPowerStation.Total_Money = history.TOTALMONEY;
+ calcPowerStation.Total_Money = history.TotalKWH * powerStation.PowerRate;
+ break;
+ }
+ #endregion
+
+ #region kWh/kWp
+ //直接填寫
+ calcPowerStation.Today_kwhkwp = history.KWHKWP;
+ #endregion
+
+ #region PR
+ //直接填寫
+ calcPowerStation.Today_PR = history.PR;
+ #endregion
+
+ #region 減碳量
+ carbonRate = Convert.ToDouble(stationSvc.GetOneVariableByName("CarbonRate"));
+
+ history.CARBON = history.KWH * carbonRate;
+ history.TODAYCARBON = history.TodayKWh * carbonRate;
+ history.TOTALCARBON = history.TotalKWH * carbonRate;
+
+
+ //今日減碳量( 今日發電量 * (0.554/1000)[抓資料庫值]
+ //calcPowerStation.Today_Carbon = history.TODAYCARBON;
+ calcPowerStation.Today_Carbon = history.TodayKWh * carbonRate;
+
+ //總減碳量(總發電量 * (0.554/1000)[抓資料庫值]
+ //calcPowerStation.Total_Carbon = history.TotalKWH * carbonRate;
+ calcPowerStation.Total_Carbon = history.TotalKWH * carbonRate;
+
+ #endregion
+
+ #region 發電時間
+ calcPowerStation.SolarHour = history.SolarHour;
+ #endregion
+ #endregion
+
+ powerStationHistoriesHour.Add(history);
+
+ // logger.LogInformation("【CalcPowerStationJob】【計算完成電站[{0}]在{1}的每小時歷史資料】", powerStation.Code, dateTime);
+ }
+ }
+ #endregion
+
+ #region step2-2. 取得該電站的當前這小時的設備歷史資料
+ var sensoravg_table_name = String.Format("s{1}01_sensoravg", powerStation.SiteDB, powerStation.Code);
+ var full_sensoravg_table_name = String.Format("`{0}`.`{1}`", powerStation.SiteDB, sensoravg_table_name);
+ var sensoravg_table_exist = stationSvc.ExistTable(powerStation.SiteDB, sensoravg_table_name);
+ if (string.IsNullOrEmpty(sensoravg_table_exist))
+ {
+ // logger.LogError($"【CalcPowerStationJob】【查無電站[{powerStation.Code}]的s{powerStation.Code}01_sensoravg資料表】");
+ }
+ else
+ {
+ // logger.LogInformation("【CalcPowerStationJob】【開始計算電站[{0}]在{1}的設備資訊】", powerStation.Code, dateTime);
+ PyrheliometerHistory sensorHistory = new PyrheliometerHistory();
+ sensorHistory.PowerStationId = powerStation.Id;
+ sensorHistory.Timestamp = Convert.ToDateTime(dateTime + ":00:00").ToString("yyyy-MM-dd HH:mm:ss");
+
+ //1. 計算該電站sensor平均值 - 日照計(PYR)
+ try
+ {
+ // logger.LogInformation("【CalcPowerStationJob】【開始取得電站[{0}]在{1}的日照計設備資訊】", powerStation.Code, dateTime);
+ var deviceInfos = stationSvc.GetListPyrheliometerByPowerStationId(powerStation.Id, powerStation.SiteDB);
+ // logger.LogInformation("【CalcPowerStationJob】【取得成功電站[{0}]在{1}的日照計設備資訊】", powerStation.Code, dateTime);
+ // logger.LogInformation("【CalcPowerStationJob】【電站[{0}]在{1}的日照計設備資訊】 - {2}", powerStation.Code, dateTime, System.Text.Json.JsonSerializer.Serialize(deviceInfos));
+
+ if (deviceInfos != null && deviceInfos.Count > 0)
+ {
+ // logger.LogInformation("【CalcPowerStationJob】【開始計算電站[{0}]在{1}的日照計的平均值】", powerStation.Code, dateTime);
+ var pyrheliometerHistory = stationSvc.CalcSensorHistoryPerHour(dateTime, deviceInfos, Convert.ToInt32(SensorTypeEnum.PYR));
+
+ if (pyrheliometerHistory != null)
+ {
+ calcPowerStation.Today_irradiance = pyrheliometerHistory.Irradiance;
+
+ sensorHistory.Irradiance = pyrheliometerHistory.Irradiance;
+
+ //pyrheliometerHistory.Timestamp = Convert.ToDateTime(pyrheliometerHistory.Timestamp + ":00:00").ToString("yyyy-MM-dd HH:mm:ss");
+ //pyrheliometerHistory.PowerStationId = powerStation.Id;
+ //pyrheliometerHistoriesHour.Add(pyrheliometerHistory);
+ // logger.LogInformation("【CalcPowerStationJob】【計算完成電站[{0}]在{1}的日照計的平均值】", powerStation.Code, dateTime);
+ }
+ else
+ {
+ // logger.LogWarning("【CalcPowerStationJob】【查無結果電站[{0}]在{1}的日照計的平均值】", powerStation.Code, dateTime);
+ }
+ }
+ }
+ catch (Exception ex)
+ {
+ throw ex;
+ // logger.LogError("【CalcPowerStationJob】【計算失敗電站[{0}]在{1}的日照計的平均值】", powerStation.Code, dateTime);
+ // logger.LogError("【CalcPowerStationJob】【失敗原因】- {0}", ex.Message);
+ }
+ }
+
+ #endregion
+
+ //結果存入集合
+ calcPowerStations.Add(calcPowerStation);
+ }
+ catch (Exception exception)
+ {
+ throw exception;
+ // logger.LogError("【{0}】{1}", "CalcPowerStationJob", exception.Message);
+ }
+ }
+ #endregion
+
+ //if (!this.environment.IsDevelopment())
+ //{
+
+ #region step5. calcPowerStations UPDATE 到 power_station 資料表
+ //List power_station_properties = new List()
+ //{
+ // "Id",
+ // "kwh",
+ // "Today_kwh",
+ // "Total_kwh",
+ // "today_kwhkwp",
+ // "today_money",
+ // "total_money",
+ // "today_PR",
+ // "today_carbon",
+ // "total_carbon",
+ // "today_irradiance",
+ // "SolarHour",
+ // "WeathersStationId",
+ // "TodayWeatherTemp",
+ // "TodayWeather",
+ // "RateOfRain"
+ //};
+ List power_station_properties = new List()
+ {
+ "Id",
+ "kwh",
+ "Today_kwh",
+ "Total_kwh",
+ "today_kwhkwp",
+ "today_money",
+ "total_money",
+ "today_PR",
+ "today_carbon",
+ "total_carbon",
+ "today_irradiance",
+ "SolarHour"
+ };
+ // logger.LogInformation("【update Power_Station 】【update Power_Station】", dateTime);
+ //stationSvc.UpdateList(calcPowerStations, power_station_properties);
+ #endregion
+ //}
+
+ // logger.LogInformation("【CalcPowerStationJob】【任務完成】");
+ }
+ catch (Exception exception)
+ {
+ // logger.LogError("【CalcPowerStationJob】[Exception] - {0}", exception.Message);
+ if (exception.InnerException != null)
+ {
+ // logger.LogError("【CalcPowerStationJob】[InnerException] - {0}", exception.InnerException.Message);
+ }
+ }
+ return calcPowerStations;
+ }
+
+
+ }
+}
diff --git a/solarApp/Service/procArchiveSite.cs b/solarApp/Service/procArchiveSite.cs
new file mode 100644
index 0000000..d8ee5a9
--- /dev/null
+++ b/solarApp/Service/procArchiveSite.cs
@@ -0,0 +1,10 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace solarApp.Service
+{
+ class procArchiveSite
+ {
+ }
+}
diff --git a/solarApp/fmArchive.Designer.cs b/solarApp/fmArchive.Designer.cs
index c7674b1..852dc4b 100644
--- a/solarApp/fmArchive.Designer.cs
+++ b/solarApp/fmArchive.Designer.cs
@@ -80,9 +80,10 @@ namespace solarApp
this.lbUserName = new System.Windows.Forms.Label();
this.tbUserName = new System.Windows.Forms.TextBox();
this.btSendMail = new System.Windows.Forms.Button();
- this.timer1 = new System.Windows.Forms.Timer(this.components);
this.tabPage3 = new System.Windows.Forms.TabPage();
this.button1 = new System.Windows.Forms.Button();
+ this.timer1 = new System.Windows.Forms.Timer(this.components);
+ this.button2 = new System.Windows.Forms.Button();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
@@ -134,6 +135,7 @@ namespace solarApp
// splitContainer1.Panel1
//
this.splitContainer1.Panel1.BackColor = System.Drawing.SystemColors.ActiveCaption;
+ this.splitContainer1.Panel1.Controls.Add(this.button2);
this.splitContainer1.Panel1.Controls.Add(this.bt_archive_One);
this.splitContainer1.Panel1.Controls.Add(this.bt_lackStation);
this.splitContainer1.Panel1.Controls.Add(this.bt_sensor_lackData);
@@ -680,6 +682,17 @@ namespace solarApp
this.button1.UseVisualStyleBackColor = true;
this.button1.Click += new System.EventHandler(this.button1_Click_1);
//
+ // button2
+ //
+ this.button2.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.button2.Location = new System.Drawing.Point(170, 576);
+ this.button2.Name = "button2";
+ this.button2.Size = new System.Drawing.Size(135, 44);
+ this.button2.TabIndex = 17;
+ this.button2.Text = "Sensor 歸檔";
+ this.button2.UseVisualStyleBackColor = true;
+ this.button2.Click += new System.EventHandler(this.button2_Click);
+ //
// fmArchive
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 19F);
@@ -767,5 +780,6 @@ namespace solarApp
private System.Windows.Forms.Button bt_archive_One;
private System.Windows.Forms.TabPage tabPage3;
private System.Windows.Forms.Button button1;
+ private System.Windows.Forms.Button button2;
}
}
\ No newline at end of file
diff --git a/solarApp/fmArchive.cs b/solarApp/fmArchive.cs
index fb6faec..90a74d1 100644
--- a/solarApp/fmArchive.cs
+++ b/solarApp/fmArchive.cs
@@ -486,22 +486,9 @@ namespace solarApp
private void bt_updateInstantValue_Click(object sender, EventArgs e)
{
- var site_list = stationSvc.get_station_list();
- //foreach (var item in site_list)
- //{
- // RadioButton rb = new RadioButton();
- // rb.Name = item.SiteID;
- // rb.Text = item.SiteName;
- // rb.Tag = item.SiteDB;
- // rb.Font = new Font(Font.FontFamily, 12);
- // rb.AutoSize = true;
- // rb.CheckedChanged += new EventHandler(rb_site_CheckedChanged);
- // fp_site.Controls.Add(rb);
- // if (i == 0) rb.Checked = true;
- // i++;
- //}
-
-
+ procArchiveHourly svc = new procArchiveHourly();
+ var result = svc.proc_s1_site();
+ gv_inv_detail.DataSource = result;
}
private void button1_Click(object sender, EventArgs e)
@@ -734,5 +721,10 @@ namespace solarApp
// #endregion
//}
}
+
+ private void button2_Click(object sender, EventArgs e)
+ {
+
+ }
}
}
diff --git a/solarApp/fmMain.Designer.cs b/solarApp/fmMain.Designer.cs
index 5768b1c..7d6bf22 100644
--- a/solarApp/fmMain.Designer.cs
+++ b/solarApp/fmMain.Designer.cs
@@ -74,6 +74,21 @@ namespace solarApp
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle43 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle44 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle45 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle46 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle47 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle48 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle49 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle50 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle51 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle52 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle53 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle54 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle55 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle56 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle57 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle58 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle59 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle60 = new System.Windows.Forms.DataGridViewCellStyle();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tb_inv = new System.Windows.Forms.TabPage();
this.sp_main_inv = new System.Windows.Forms.SplitContainer();
@@ -428,6 +443,14 @@ namespace solarApp
this.gv_web_inv_month.Margin = new System.Windows.Forms.Padding(4);
this.gv_web_inv_month.Name = "gv_web_inv_month";
this.gv_web_inv_month.ReadOnly = true;
+ dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle4.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_web_inv_month.RowHeadersDefaultCellStyle = dataGridViewCellStyle4;
this.gv_web_inv_month.RowHeadersWidth = 51;
this.gv_web_inv_month.RowTemplate.Height = 25;
this.gv_web_inv_month.Size = new System.Drawing.Size(666, 126);
@@ -470,30 +493,38 @@ namespace solarApp
//
this.gv_web_inv_day.AllowUserToAddRows = false;
this.gv_web_inv_day.AllowUserToDeleteRows = false;
- dataGridViewCellStyle4.BackColor = System.Drawing.Color.Azure;
- this.gv_web_inv_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4;
- dataGridViewCellStyle5.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle5.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle5.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle5.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle5.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle5.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle5.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.gv_web_inv_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
- this.gv_web_inv_day.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ dataGridViewCellStyle5.BackColor = System.Drawing.Color.Azure;
+ this.gv_web_inv_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5;
dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control;
dataGridViewCellStyle6.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle6.ForeColor = System.Drawing.SystemColors.WindowText;
dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight;
dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.gv_web_inv_day.DefaultCellStyle = dataGridViewCellStyle6;
+ dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_web_inv_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6;
+ this.gv_web_inv_day.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle7.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle7.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.gv_web_inv_day.DefaultCellStyle = dataGridViewCellStyle7;
this.gv_web_inv_day.Dock = System.Windows.Forms.DockStyle.Top;
this.gv_web_inv_day.Location = new System.Drawing.Point(0, 583);
this.gv_web_inv_day.Margin = new System.Windows.Forms.Padding(4);
this.gv_web_inv_day.Name = "gv_web_inv_day";
this.gv_web_inv_day.ReadOnly = true;
+ dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle8.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_web_inv_day.RowHeadersDefaultCellStyle = dataGridViewCellStyle8;
this.gv_web_inv_day.RowHeadersWidth = 51;
this.gv_web_inv_day.RowTemplate.Height = 25;
this.gv_web_inv_day.Size = new System.Drawing.Size(666, 270);
@@ -537,30 +568,38 @@ namespace solarApp
//
this.gv_web_inv_hour.AllowUserToAddRows = false;
this.gv_web_inv_hour.AllowUserToDeleteRows = false;
- dataGridViewCellStyle7.BackColor = System.Drawing.Color.Azure;
- this.gv_web_inv_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7;
- dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle8.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle8.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.gv_web_inv_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
+ dataGridViewCellStyle9.BackColor = System.Drawing.Color.Azure;
+ this.gv_web_inv_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9;
+ dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle10.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle10.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_web_inv_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10;
this.gv_web_inv_hour.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- dataGridViewCellStyle9.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle9.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle9.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle9.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle9.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle9.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle9.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.gv_web_inv_hour.DefaultCellStyle = dataGridViewCellStyle9;
+ dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle11.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.gv_web_inv_hour.DefaultCellStyle = dataGridViewCellStyle11;
this.gv_web_inv_hour.Dock = System.Windows.Forms.DockStyle.Top;
this.gv_web_inv_hour.Location = new System.Drawing.Point(0, 38);
this.gv_web_inv_hour.Margin = new System.Windows.Forms.Padding(4);
this.gv_web_inv_hour.Name = "gv_web_inv_hour";
this.gv_web_inv_hour.ReadOnly = true;
+ dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle12.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_web_inv_hour.RowHeadersDefaultCellStyle = dataGridViewCellStyle12;
this.gv_web_inv_hour.RowHeadersWidth = 51;
this.gv_web_inv_hour.RowTemplate.Height = 25;
this.gv_web_inv_hour.Size = new System.Drawing.Size(666, 507);
@@ -614,30 +653,38 @@ namespace solarApp
//
this.gv_fic_inv_hour.AllowUserToAddRows = false;
this.gv_fic_inv_hour.AllowUserToDeleteRows = false;
- dataGridViewCellStyle10.BackColor = System.Drawing.Color.LightCyan;
- this.gv_fic_inv_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle10;
- dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle11.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle11.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.gv_fic_inv_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11;
+ dataGridViewCellStyle13.BackColor = System.Drawing.Color.LightCyan;
+ this.gv_fic_inv_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle13;
+ dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle14.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle14.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle14.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle14.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle14.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_fic_inv_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14;
this.gv_fic_inv_hour.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle12.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle12.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.gv_fic_inv_hour.DefaultCellStyle = dataGridViewCellStyle12;
+ dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle15.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.gv_fic_inv_hour.DefaultCellStyle = dataGridViewCellStyle15;
this.gv_fic_inv_hour.Dock = System.Windows.Forms.DockStyle.Fill;
this.gv_fic_inv_hour.Location = new System.Drawing.Point(0, 583);
this.gv_fic_inv_hour.Margin = new System.Windows.Forms.Padding(4);
this.gv_fic_inv_hour.Name = "gv_fic_inv_hour";
this.gv_fic_inv_hour.ReadOnly = true;
+ dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle16.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle16.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle16.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle16.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle16.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_fic_inv_hour.RowHeadersDefaultCellStyle = dataGridViewCellStyle16;
this.gv_fic_inv_hour.RowHeadersWidth = 51;
this.gv_fic_inv_hour.RowTemplate.Height = 25;
this.gv_fic_inv_hour.Size = new System.Drawing.Size(695, 434);
@@ -669,30 +716,38 @@ namespace solarApp
//
this.gv_fic_inv_raw.AllowUserToAddRows = false;
this.gv_fic_inv_raw.AllowUserToDeleteRows = false;
- dataGridViewCellStyle13.BackColor = System.Drawing.Color.LightCyan;
- this.gv_fic_inv_raw.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle13;
- dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle14.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle14.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle14.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle14.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle14.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle14.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.gv_fic_inv_raw.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14;
+ dataGridViewCellStyle17.BackColor = System.Drawing.Color.LightCyan;
+ this.gv_fic_inv_raw.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle17;
+ dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle18.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle18.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle18.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle18.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle18.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_fic_inv_raw.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle18;
this.gv_fic_inv_raw.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle15.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle15.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle15.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle15.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle15.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.gv_fic_inv_raw.DefaultCellStyle = dataGridViewCellStyle15;
+ dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle19.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle19.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle19.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle19.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle19.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle19.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.gv_fic_inv_raw.DefaultCellStyle = dataGridViewCellStyle19;
this.gv_fic_inv_raw.Dock = System.Windows.Forms.DockStyle.Top;
this.gv_fic_inv_raw.Location = new System.Drawing.Point(0, 38);
this.gv_fic_inv_raw.Margin = new System.Windows.Forms.Padding(4);
this.gv_fic_inv_raw.Name = "gv_fic_inv_raw";
this.gv_fic_inv_raw.ReadOnly = true;
+ dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle20.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle20.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle20.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle20.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle20.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_fic_inv_raw.RowHeadersDefaultCellStyle = dataGridViewCellStyle20;
this.gv_fic_inv_raw.RowHeadersWidth = 51;
this.gv_fic_inv_raw.RowTemplate.Height = 25;
this.gv_fic_inv_raw.Size = new System.Drawing.Size(695, 507);
@@ -835,30 +890,38 @@ namespace solarApp
//
this.gv_web_station_month.AllowUserToAddRows = false;
this.gv_web_station_month.AllowUserToDeleteRows = false;
- dataGridViewCellStyle16.BackColor = System.Drawing.Color.Azure;
- this.gv_web_station_month.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle16;
- dataGridViewCellStyle17.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle17.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle17.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle17.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle17.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle17.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle17.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.gv_web_station_month.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle17;
+ dataGridViewCellStyle21.BackColor = System.Drawing.Color.Azure;
+ this.gv_web_station_month.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle21;
+ dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle22.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle22.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle22.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle22.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle22.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle22.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_web_station_month.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle22;
this.gv_web_station_month.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle18.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle18.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle18.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle18.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle18.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.gv_web_station_month.DefaultCellStyle = dataGridViewCellStyle18;
+ dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle23.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle23.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle23.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle23.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle23.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.gv_web_station_month.DefaultCellStyle = dataGridViewCellStyle23;
this.gv_web_station_month.Dock = System.Windows.Forms.DockStyle.Fill;
this.gv_web_station_month.Location = new System.Drawing.Point(0, 913);
this.gv_web_station_month.Margin = new System.Windows.Forms.Padding(4);
this.gv_web_station_month.Name = "gv_web_station_month";
this.gv_web_station_month.ReadOnly = true;
+ dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle24.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle24.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle24.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle24.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle24.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle24.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_web_station_month.RowHeadersDefaultCellStyle = dataGridViewCellStyle24;
this.gv_web_station_month.RowHeadersWidth = 51;
this.gv_web_station_month.RowTemplate.Height = 25;
this.gv_web_station_month.Size = new System.Drawing.Size(711, 104);
@@ -901,30 +964,38 @@ namespace solarApp
//
this.gv_web_station_day.AllowUserToAddRows = false;
this.gv_web_station_day.AllowUserToDeleteRows = false;
- dataGridViewCellStyle19.BackColor = System.Drawing.Color.Azure;
- this.gv_web_station_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle19;
- dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle20.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle20.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle20.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle20.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle20.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.gv_web_station_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle20;
+ dataGridViewCellStyle25.BackColor = System.Drawing.Color.Azure;
+ this.gv_web_station_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle25;
+ dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle26.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle26.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle26.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle26.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle26.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle26.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_web_station_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle26;
this.gv_web_station_day.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- dataGridViewCellStyle21.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle21.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle21.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle21.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle21.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle21.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle21.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.gv_web_station_day.DefaultCellStyle = dataGridViewCellStyle21;
+ dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle27.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle27.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle27.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle27.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle27.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle27.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.gv_web_station_day.DefaultCellStyle = dataGridViewCellStyle27;
this.gv_web_station_day.Dock = System.Windows.Forms.DockStyle.Top;
this.gv_web_station_day.Location = new System.Drawing.Point(0, 583);
this.gv_web_station_day.Margin = new System.Windows.Forms.Padding(4);
this.gv_web_station_day.Name = "gv_web_station_day";
this.gv_web_station_day.ReadOnly = true;
+ dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle28.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle28.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle28.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle28.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle28.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle28.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_web_station_day.RowHeadersDefaultCellStyle = dataGridViewCellStyle28;
this.gv_web_station_day.RowHeadersWidth = 51;
this.gv_web_station_day.RowTemplate.Height = 25;
this.gv_web_station_day.Size = new System.Drawing.Size(711, 292);
@@ -968,30 +1039,38 @@ namespace solarApp
//
this.gv_web_station_hour.AllowUserToAddRows = false;
this.gv_web_station_hour.AllowUserToDeleteRows = false;
- dataGridViewCellStyle22.BackColor = System.Drawing.Color.Azure;
- this.gv_web_station_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle22;
- dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle23.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle23.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle23.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle23.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle23.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.gv_web_station_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle23;
+ dataGridViewCellStyle29.BackColor = System.Drawing.Color.Azure;
+ this.gv_web_station_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle29;
+ dataGridViewCellStyle30.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle30.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle30.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle30.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle30.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle30.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle30.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_web_station_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle30;
this.gv_web_station_hour.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle24.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle24.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle24.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle24.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle24.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle24.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.gv_web_station_hour.DefaultCellStyle = dataGridViewCellStyle24;
+ dataGridViewCellStyle31.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle31.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle31.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle31.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle31.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle31.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle31.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.gv_web_station_hour.DefaultCellStyle = dataGridViewCellStyle31;
this.gv_web_station_hour.Dock = System.Windows.Forms.DockStyle.Top;
this.gv_web_station_hour.Location = new System.Drawing.Point(0, 38);
this.gv_web_station_hour.Margin = new System.Windows.Forms.Padding(4);
this.gv_web_station_hour.Name = "gv_web_station_hour";
this.gv_web_station_hour.ReadOnly = true;
+ dataGridViewCellStyle32.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle32.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle32.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle32.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle32.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle32.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle32.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_web_station_hour.RowHeadersDefaultCellStyle = dataGridViewCellStyle32;
this.gv_web_station_hour.RowHeadersWidth = 51;
this.gv_web_station_hour.RowTemplate.Height = 25;
this.gv_web_station_hour.Size = new System.Drawing.Size(711, 507);
@@ -1034,30 +1113,38 @@ namespace solarApp
//
this.gv_fic_station_day.AllowUserToAddRows = false;
this.gv_fic_station_day.AllowUserToDeleteRows = false;
- dataGridViewCellStyle25.BackColor = System.Drawing.Color.LightCyan;
- this.gv_fic_station_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle25;
- dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle26.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle26.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle26.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle26.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle26.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle26.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.gv_fic_station_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle26;
+ dataGridViewCellStyle33.BackColor = System.Drawing.Color.LightCyan;
+ this.gv_fic_station_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle33;
+ dataGridViewCellStyle34.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle34.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle34.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle34.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle34.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle34.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle34.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_fic_station_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle34;
this.gv_fic_station_day.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle27.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle27.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle27.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle27.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle27.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle27.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.gv_fic_station_day.DefaultCellStyle = dataGridViewCellStyle27;
+ dataGridViewCellStyle35.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle35.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle35.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle35.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle35.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle35.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle35.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.gv_fic_station_day.DefaultCellStyle = dataGridViewCellStyle35;
this.gv_fic_station_day.Dock = System.Windows.Forms.DockStyle.Fill;
this.gv_fic_station_day.Location = new System.Drawing.Point(0, 583);
this.gv_fic_station_day.Margin = new System.Windows.Forms.Padding(4);
this.gv_fic_station_day.Name = "gv_fic_station_day";
this.gv_fic_station_day.ReadOnly = true;
+ dataGridViewCellStyle36.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle36.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle36.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle36.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle36.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle36.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle36.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_fic_station_day.RowHeadersDefaultCellStyle = dataGridViewCellStyle36;
this.gv_fic_station_day.RowHeadersWidth = 51;
this.gv_fic_station_day.RowTemplate.Height = 25;
this.gv_fic_station_day.Size = new System.Drawing.Size(744, 434);
@@ -1089,30 +1176,38 @@ namespace solarApp
//
this.gv_fic_station_raw.AllowUserToAddRows = false;
this.gv_fic_station_raw.AllowUserToDeleteRows = false;
- dataGridViewCellStyle28.BackColor = System.Drawing.Color.LightCyan;
- this.gv_fic_station_raw.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle28;
- dataGridViewCellStyle29.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle29.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle29.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle29.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle29.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle29.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle29.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.gv_fic_station_raw.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle29;
+ dataGridViewCellStyle37.BackColor = System.Drawing.Color.LightCyan;
+ this.gv_fic_station_raw.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle37;
+ dataGridViewCellStyle38.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle38.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle38.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle38.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle38.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle38.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle38.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_fic_station_raw.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle38;
this.gv_fic_station_raw.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- dataGridViewCellStyle30.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle30.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle30.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle30.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle30.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle30.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle30.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.gv_fic_station_raw.DefaultCellStyle = dataGridViewCellStyle30;
+ dataGridViewCellStyle39.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle39.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle39.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle39.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle39.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle39.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle39.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.gv_fic_station_raw.DefaultCellStyle = dataGridViewCellStyle39;
this.gv_fic_station_raw.Dock = System.Windows.Forms.DockStyle.Top;
this.gv_fic_station_raw.Location = new System.Drawing.Point(0, 38);
this.gv_fic_station_raw.Margin = new System.Windows.Forms.Padding(4);
this.gv_fic_station_raw.Name = "gv_fic_station_raw";
this.gv_fic_station_raw.ReadOnly = true;
+ dataGridViewCellStyle40.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle40.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle40.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle40.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle40.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle40.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle40.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_fic_station_raw.RowHeadersDefaultCellStyle = dataGridViewCellStyle40;
this.gv_fic_station_raw.RowHeadersWidth = 51;
this.gv_fic_station_raw.RowTemplate.Height = 25;
this.gv_fic_station_raw.Size = new System.Drawing.Size(744, 507);
@@ -1315,30 +1410,38 @@ namespace solarApp
//
this.gv_web_sensor_month.AllowUserToAddRows = false;
this.gv_web_sensor_month.AllowUserToDeleteRows = false;
- dataGridViewCellStyle31.BackColor = System.Drawing.Color.Azure;
- this.gv_web_sensor_month.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle31;
- dataGridViewCellStyle32.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle32.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle32.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle32.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle32.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle32.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle32.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.gv_web_sensor_month.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle32;
+ dataGridViewCellStyle41.BackColor = System.Drawing.Color.Azure;
+ this.gv_web_sensor_month.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle41;
+ dataGridViewCellStyle42.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle42.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle42.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle42.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle42.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle42.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle42.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_web_sensor_month.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle42;
this.gv_web_sensor_month.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- dataGridViewCellStyle33.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle33.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle33.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle33.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle33.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle33.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle33.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.gv_web_sensor_month.DefaultCellStyle = dataGridViewCellStyle33;
+ dataGridViewCellStyle43.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle43.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle43.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle43.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle43.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle43.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle43.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.gv_web_sensor_month.DefaultCellStyle = dataGridViewCellStyle43;
this.gv_web_sensor_month.Dock = System.Windows.Forms.DockStyle.Fill;
this.gv_web_sensor_month.Location = new System.Drawing.Point(0, 874);
this.gv_web_sensor_month.Margin = new System.Windows.Forms.Padding(4);
this.gv_web_sensor_month.Name = "gv_web_sensor_month";
this.gv_web_sensor_month.ReadOnly = true;
+ dataGridViewCellStyle44.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle44.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle44.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle44.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle44.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle44.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle44.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_web_sensor_month.RowHeadersDefaultCellStyle = dataGridViewCellStyle44;
this.gv_web_sensor_month.RowHeadersWidth = 51;
this.gv_web_sensor_month.RowTemplate.Height = 25;
this.gv_web_sensor_month.Size = new System.Drawing.Size(666, 143);
@@ -1381,30 +1484,38 @@ namespace solarApp
//
this.gv_web_sensor_day.AllowUserToAddRows = false;
this.gv_web_sensor_day.AllowUserToDeleteRows = false;
- dataGridViewCellStyle34.BackColor = System.Drawing.Color.Azure;
- this.gv_web_sensor_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle34;
- dataGridViewCellStyle35.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle35.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle35.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle35.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle35.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle35.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle35.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.gv_web_sensor_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle35;
+ dataGridViewCellStyle45.BackColor = System.Drawing.Color.Azure;
+ this.gv_web_sensor_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle45;
+ dataGridViewCellStyle46.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle46.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle46.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle46.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle46.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle46.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle46.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_web_sensor_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle46;
this.gv_web_sensor_day.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- dataGridViewCellStyle36.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle36.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle36.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle36.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle36.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle36.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle36.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.gv_web_sensor_day.DefaultCellStyle = dataGridViewCellStyle36;
+ dataGridViewCellStyle47.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle47.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle47.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle47.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle47.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle47.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle47.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.gv_web_sensor_day.DefaultCellStyle = dataGridViewCellStyle47;
this.gv_web_sensor_day.Dock = System.Windows.Forms.DockStyle.Top;
this.gv_web_sensor_day.Location = new System.Drawing.Point(0, 583);
this.gv_web_sensor_day.Margin = new System.Windows.Forms.Padding(4);
this.gv_web_sensor_day.Name = "gv_web_sensor_day";
this.gv_web_sensor_day.ReadOnly = true;
+ dataGridViewCellStyle48.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle48.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle48.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle48.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle48.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle48.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle48.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_web_sensor_day.RowHeadersDefaultCellStyle = dataGridViewCellStyle48;
this.gv_web_sensor_day.RowHeadersWidth = 51;
this.gv_web_sensor_day.RowTemplate.Height = 25;
this.gv_web_sensor_day.Size = new System.Drawing.Size(666, 253);
@@ -1448,30 +1559,38 @@ namespace solarApp
//
this.gv_web_sensor_hour.AllowUserToAddRows = false;
this.gv_web_sensor_hour.AllowUserToDeleteRows = false;
- dataGridViewCellStyle37.BackColor = System.Drawing.Color.Azure;
- this.gv_web_sensor_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle37;
- dataGridViewCellStyle38.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle38.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle38.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle38.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle38.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle38.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle38.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.gv_web_sensor_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle38;
+ dataGridViewCellStyle49.BackColor = System.Drawing.Color.Azure;
+ this.gv_web_sensor_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle49;
+ dataGridViewCellStyle50.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle50.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle50.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle50.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle50.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle50.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle50.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_web_sensor_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle50;
this.gv_web_sensor_hour.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- dataGridViewCellStyle39.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle39.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle39.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle39.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle39.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle39.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle39.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.gv_web_sensor_hour.DefaultCellStyle = dataGridViewCellStyle39;
+ dataGridViewCellStyle51.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle51.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle51.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle51.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle51.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle51.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle51.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.gv_web_sensor_hour.DefaultCellStyle = dataGridViewCellStyle51;
this.gv_web_sensor_hour.Dock = System.Windows.Forms.DockStyle.Top;
this.gv_web_sensor_hour.Location = new System.Drawing.Point(0, 38);
this.gv_web_sensor_hour.Margin = new System.Windows.Forms.Padding(4);
this.gv_web_sensor_hour.Name = "gv_web_sensor_hour";
this.gv_web_sensor_hour.ReadOnly = true;
+ dataGridViewCellStyle52.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle52.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle52.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle52.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle52.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle52.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle52.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_web_sensor_hour.RowHeadersDefaultCellStyle = dataGridViewCellStyle52;
this.gv_web_sensor_hour.RowHeadersWidth = 51;
this.gv_web_sensor_hour.RowTemplate.Height = 25;
this.gv_web_sensor_hour.Size = new System.Drawing.Size(666, 507);
@@ -1525,30 +1644,38 @@ namespace solarApp
//
this.gv_fic_sensor_hour.AllowUserToAddRows = false;
this.gv_fic_sensor_hour.AllowUserToDeleteRows = false;
- dataGridViewCellStyle40.BackColor = System.Drawing.Color.LightCyan;
- this.gv_fic_sensor_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle40;
- dataGridViewCellStyle41.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle41.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle41.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle41.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle41.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle41.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle41.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.gv_fic_sensor_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle41;
+ dataGridViewCellStyle53.BackColor = System.Drawing.Color.LightCyan;
+ this.gv_fic_sensor_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle53;
+ dataGridViewCellStyle54.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle54.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle54.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle54.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle54.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle54.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle54.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_fic_sensor_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle54;
this.gv_fic_sensor_hour.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- dataGridViewCellStyle42.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle42.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle42.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle42.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle42.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle42.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle42.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.gv_fic_sensor_hour.DefaultCellStyle = dataGridViewCellStyle42;
+ dataGridViewCellStyle55.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle55.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle55.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle55.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle55.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle55.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle55.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.gv_fic_sensor_hour.DefaultCellStyle = dataGridViewCellStyle55;
this.gv_fic_sensor_hour.Dock = System.Windows.Forms.DockStyle.Fill;
this.gv_fic_sensor_hour.Location = new System.Drawing.Point(0, 583);
this.gv_fic_sensor_hour.Margin = new System.Windows.Forms.Padding(4);
this.gv_fic_sensor_hour.Name = "gv_fic_sensor_hour";
this.gv_fic_sensor_hour.ReadOnly = true;
+ dataGridViewCellStyle56.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle56.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle56.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle56.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle56.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle56.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle56.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_fic_sensor_hour.RowHeadersDefaultCellStyle = dataGridViewCellStyle56;
this.gv_fic_sensor_hour.RowHeadersWidth = 51;
this.gv_fic_sensor_hour.RowTemplate.Height = 25;
this.gv_fic_sensor_hour.Size = new System.Drawing.Size(695, 434);
@@ -1580,30 +1707,38 @@ namespace solarApp
//
this.gv_fic_sensor_raw.AllowUserToAddRows = false;
this.gv_fic_sensor_raw.AllowUserToDeleteRows = false;
- dataGridViewCellStyle43.BackColor = System.Drawing.Color.LightCyan;
- this.gv_fic_sensor_raw.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle43;
- dataGridViewCellStyle44.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle44.BackColor = System.Drawing.SystemColors.Control;
- dataGridViewCellStyle44.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle44.ForeColor = System.Drawing.SystemColors.WindowText;
- dataGridViewCellStyle44.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle44.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle44.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
- this.gv_fic_sensor_raw.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle44;
+ dataGridViewCellStyle57.BackColor = System.Drawing.Color.LightCyan;
+ this.gv_fic_sensor_raw.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle57;
+ dataGridViewCellStyle58.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle58.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle58.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle58.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle58.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle58.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle58.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_fic_sensor_raw.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle58;
this.gv_fic_sensor_raw.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
- dataGridViewCellStyle45.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
- dataGridViewCellStyle45.BackColor = System.Drawing.SystemColors.Window;
- dataGridViewCellStyle45.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- dataGridViewCellStyle45.ForeColor = System.Drawing.SystemColors.ControlText;
- dataGridViewCellStyle45.SelectionBackColor = System.Drawing.SystemColors.Highlight;
- dataGridViewCellStyle45.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
- dataGridViewCellStyle45.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
- this.gv_fic_sensor_raw.DefaultCellStyle = dataGridViewCellStyle45;
+ dataGridViewCellStyle59.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle59.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle59.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle59.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle59.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle59.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle59.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.gv_fic_sensor_raw.DefaultCellStyle = dataGridViewCellStyle59;
this.gv_fic_sensor_raw.Dock = System.Windows.Forms.DockStyle.Top;
this.gv_fic_sensor_raw.Location = new System.Drawing.Point(0, 38);
this.gv_fic_sensor_raw.Margin = new System.Windows.Forms.Padding(4);
this.gv_fic_sensor_raw.Name = "gv_fic_sensor_raw";
this.gv_fic_sensor_raw.ReadOnly = true;
+ dataGridViewCellStyle60.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle60.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle60.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle60.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle60.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle60.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle60.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_fic_sensor_raw.RowHeadersDefaultCellStyle = dataGridViewCellStyle60;
this.gv_fic_sensor_raw.RowHeadersWidth = 51;
this.gv_fic_sensor_raw.RowTemplate.Height = 25;
this.gv_fic_sensor_raw.Size = new System.Drawing.Size(695, 507);
diff --git a/solarApp/solarApp.csproj b/solarApp/solarApp.csproj
index 0b67fc0..c6ef40a 100644
--- a/solarApp/solarApp.csproj
+++ b/solarApp/solarApp.csproj
@@ -25,7 +25,9 @@
+
+