diff --git a/solarApp/Model/sensor_model.cs b/solarApp/Model/sensor_model.cs
new file mode 100644
index 0000000..ab77f0d
--- /dev/null
+++ b/solarApp/Model/sensor_model.cs
@@ -0,0 +1,53 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+
+namespace solarApp.Model
+{
+ public class sensor_model
+ {
+ public string id { get; set; }
+ public string SiteID { get; set; }
+ public string sensorName { get; set; }
+ public string type { get; set; }
+ public string DBName { get; set; }
+ public string TableName { get; set; }
+ public string colname { get; set; }
+ }
+ public class sensor_raw
+ {
+ public string SiteID { get; set; }
+ public string reportdate { 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 class sensor_raw_V2
+ {
+ public string SiteID { get; set; }
+ public string reportdate { get; set; }
+ public double modelTempAvg { get; set; }
+ public double irrAvg { get; set; }
+ public double envTempAvg { get; set; }
+ public double humidityAvg { get; set; }
+ public double windAvg { get; set; }
+ public double dustAvg { get; set; }
+ }
+
+ public class sensor_hour
+ {
+ public string SiteID { get; set; }
+ public string reportdate { get; set; }
+ public double modelTempAvg { get; set; }
+ public double irrAvg { get; set; }
+ public double envTempAvg { get; set; }
+ public double humidityAvg { get; set; }
+ public double windAvg { get; set; }
+ public double dustAvg { get; set; }
+ public int count { get; set; }
+ }
+}
diff --git a/solarApp/Service/getSensorSvc.cs b/solarApp/Service/getSensorSvc.cs
new file mode 100644
index 0000000..a9c8061
--- /dev/null
+++ b/solarApp/Service/getSensorSvc.cs
@@ -0,0 +1,172 @@
+using System;
+using System.Collections.Generic;
+using System.Text;
+using MySql.Data.MySqlClient;
+using Dapper;
+using solarApp.Model;
+using System.Configuration;
+
+namespace solarApp.Service
+{
+ public class getSensorSvc
+ {
+ string Connection1 = ConfigurationManager.ConnectionStrings["mySql"].ConnectionString;
+ ///
+ /// 電站 Raw Data
+ ///
+ ///
+ ///
+ ///
+ ///
+ public List get_sensor_raw(string reportDate, string siteDB, string siteID)
+ {
+ using (MySqlConnection conn = new MySqlConnection(Connection1))
+ {
+ conn.Open();
+ string sql = @"select siteid , FROM_UNIXTIME(`TIMESTAMP`/1000,'%Y-%m-%d %H:%i') reportdate, round(sensorAvg01, 3) sensorAvg01, round(sensorAvg02, 3) sensorAvg02,
+ round(sensorAvg03, 3) sensorAvg03, round(sensorAvg04, 3) sensorAvg04, round(sensorAvg05, 3) sensorAvg05, round(sensorAvg06, 3) sensorAvg06
+ from " + siteDB + ".s" + siteID + @"_sensorAvg
+ where left(FROM_UNIXTIME(`TIMESTAMP`/1000,'%Y-%m-%d %H:%i'), 10) = @reportDate";
+ List ds = conn.Query(sql, new { reportDate = reportDate }).AsList();
+ conn.Close();
+ return ds;
+ }
+ }
+
+ ///
+ /// Sensor 欄位需要平均時 欄位串接 (s1 + s2) / 2
+ ///
+ ///
+ ///
+ string ConcatColumn(List lstData)
+ {
+ string ss = string.Empty; string result = string.Empty;
+ if (lstData.Count > 0)
+ {
+ foreach (var item in lstData)
+ {
+ ss += (ss == string.Empty) ? item.colname : "+" + item.colname; // 2 個以上欄位需要相加
+ }
+ if (lstData.Count >= 2) result = "(" + ss + ") / " + lstData.Count.ToString(); // 2個以上 需要除以個數 (平均值)
+ else
+ result = ss;
+ }
+ else result = "0";
+ return result;
+ }
+
+ public List get_sensor_raw_hour(string reportDate, string siteDB, string siteID)
+ {
+ using (MySqlConnection conn = new MySqlConnection(Connection1))
+ {
+ conn.Open();
+
+ #region 獲取 Sensor 類別
+ string sql = @"select a.id, CONCAT( left(UID, 9) ,'01') SiteID, a.`name` sensorName, type, DBName, TableName, colname
+ from " + siteDB + @".device a
+ where left(UID, 11) = @siteID";
+ List ds_sensor = conn.Query(sql, new { siteID = siteID}).AsList();
+
+ //欄位處理
+ // { "Type":[
+ // { "Name":"日照計","EName":"PYR"},
+ // { "Name":"模組溫度計","EName":"MTR"},
+ // { "Name":"環境溫度計","EName":"ETR"},
+ // { "Name":"環境濕度計","EName":"EMM"},
+ // { "Name":"風速計","EName":"VAN"},
+ // { "Name":" 電表","EName":"PWR"}]}
+ var irrlst = ds_sensor.FindAll(x => x.type.Contains("PYR"));
+ var modelTemplst = ds_sensor.FindAll(x => x.type.Contains("MTR"));
+ var envTemplst = ds_sensor.FindAll(x => x.type.Contains("ETR"));
+ var humlst = ds_sensor.FindAll(x => x.type.Contains("EMM"));
+ var windlst = ds_sensor.FindAll(x => x.type.Contains("VAN"));
+ var dustlst = ds_sensor.FindAll(x => x.type.Contains("DST")); //需要新增於DB
+ //var meterlst = ds_sensor.FindAll(x => x.type.Contains("PWR")); 電錶暫不處理
+ string irrCol = string.Empty; string modelTempCol = string.Empty; string evnTempCol = string.Empty; string humCol = string.Empty; string windCol = string.Empty; string meterCol = string.Empty; string dustCol = string.Empty;
+ irrCol = ConcatColumn(irrlst);//日照計
+ modelTempCol = ConcatColumn(modelTemplst);
+ evnTempCol = ConcatColumn(envTemplst);
+ humCol = ConcatColumn(humlst);
+ windCol = ConcatColumn(windlst);
+ dustCol = ConcatColumn(dustlst);
+
+ string irrNot0 = string.Empty; // and 日照1 <> 0 and 日照2 <> 0
+ # region 日照計需要過濾 0
+ if (irrlst.Count > 0)
+ {
+ foreach (var item in irrlst)
+ irrNot0 += " and " + item.colname + " <> 0 "; // and S1 <> 0 and S2 <> 0
+ }
+ #endregion
+
+ //電表
+ #endregion 獲取 Sensor 類別
+ sql = @"select a.siteID, a.reportdate, a.modelTempAvg, ifnull(b.irrAvg, 0) irrAvg, a.envTempAvg, humidityAvg, windAvg, dustAvg from
+ (
+ select @siteID siteID, FROM_UNIXTIME(`TIMESTAMP`/1000,'%Y-%m-%d %H:%i') reportdate, round(avg("+ modelTempCol+ @"), 2) modelTempAvg,
+ round(avg(" + evnTempCol + @"), 2) envTempAvg, round(avg(" + humCol + @"), 2) humidityAvg, round(avg(" + windCol + @"), 2) windAvg,
+ round(avg(" + dustCol + @"), 2) dustAvg
+ from " + siteDB + ".s" + siteID + @"_sensorAvg
+ where FROM_UNIXTIME(`TIMESTAMP`/1000,'%Y-%m-%d') = @reportDate
+ group by FROM_UNIXTIME(`TIMESTAMP`/1000,'%Y-%m-%d %H')
+ ) a left join
+ (
+ select FROM_UNIXTIME(`TIMESTAMP`/1000,'%Y-%m-%d %H:%i') reportdate, round(avg("+ irrCol + @"), 2) irrAvg
+ from " + siteDB + ".s" + siteID + @"_sensorAvg
+ where FROM_UNIXTIME(`TIMESTAMP`/1000,'%Y-%m-%d') = @reportDate "+ irrNot0 + @" #需要過濾 0 的數值
+ group by FROM_UNIXTIME(`TIMESTAMP`/1000,'%Y-%m-%d %H')
+ )b on a.reportdate = b.reportdate";
+ List ds = conn.Query(sql, new { siteID = siteID, reportDate = reportDate }).AsList();
+ conn.Close();
+ return ds;
+ }
+ }
+
+ ///
+ /// web 呈現值 station - hour
+ ///
+ ///
+ ///
+ public List get_web_sensor_hour(string reportDate, string siteID)
+ {
+ using (MySqlConnection conn = new MySqlConnection(Connection1))
+ {
+ conn.Open();
+ string sql = @" select DATE_FORMAT(`TIMESTAMP`,'%Y-%m-%d %H') reportdate, b.`code` siteid, round(Irradiance, 2) irrAvg, round(Temperature, 2) modelTempAvg
+ from sensor_history_hour a join power_station b on a.PowerStationId = b.id
+ where left(`TIMESTAMP`, 10) = '" + reportDate + "' and b.`code` = @siteID";
+ List ds = conn.Query(sql, new {siteID = siteID }).AsList();
+ conn.Close();
+ return ds;
+ }
+ }
+
+ public List get_web_sensor_day(string date1, string date2, string siteID)
+ {
+ using (MySqlConnection conn = new MySqlConnection(Connection1))
+ {
+ conn.Open();
+ string sql = @" select DATE_FORMAT(`TIMESTAMP`,'%Y-%m-%d %H') reportdate, b.`code` siteid, round(Irradiance, 2) irrAvg, round(Temperature, 2) modelTempAvg
+ from sensor_history_day a join power_station b on a.PowerStationId = b.id
+ where left(`TIMESTAMP`, 10) between '" + date1 + "' and '"+date2+"' and b.`code` = @siteID";
+ List ds = conn.Query(sql, new { siteID = siteID }).AsList();
+ conn.Close();
+ return ds;
+ }
+ }
+
+ public List get_web_sensor_month(string date1, string date2, string siteID)
+ {
+ using (MySqlConnection conn = new MySqlConnection(Connection1))
+ {
+ conn.Open();
+ string sql = @" select DATE_FORMAT(`TIMESTAMP`,'%Y-%m-%d %H') reportdate, b.`code` siteid, round(Irradiance, 2) irrAvg, round(Temperature, 2) modelTempAvg
+ from sensor_history_month a join power_station b on a.PowerStationId = b.id
+ where left(`TIMESTAMP`, 7) between '" + date1 + "' and '" + date2 + "' and b.`code` = @siteID";
+ List ds = conn.Query(sql, new { siteID = siteID }).AsList();
+ conn.Close();
+ return ds;
+ }
+ }
+ }
+}
diff --git a/solarApp/Service/getStationSvc.cs b/solarApp/Service/getStationSvc.cs
index e16d2f9..3a62f50 100644
--- a/solarApp/Service/getStationSvc.cs
+++ b/solarApp/Service/getStationSvc.cs
@@ -107,28 +107,28 @@ namespace solarApp.Service
///
///
///
- public List get_web_station_day(string date1, string date2)
+ public List get_web_station_day(string date1, string date2, string siteID)
{
using (MySqlConnection conn = new MySqlConnection(Connection1))
{
conn.Open();
string sql = @" select DATE_FORMAT(`TIMESTAMP`,'%Y-%m-%d') reportdate, siteid, round(TODAYKWH, 2) TODAYKWH, round(TOTALKWH, 2) TOTALKWH,
round(PR, 3) PR, round(KWHKWP, 3) KWHKWP, money
- from power_station_history_day where left(`TIMESTAMP`, 10) between @date1 and @date2 ";
- List ds = conn.Query(sql, new { date1 = date1, date2 = date2 }).AsList();
+ from power_station_history_day where left(`TIMESTAMP`, 10) between @date1 and @date2 and siteid = @siteID";
+ List ds = conn.Query(sql, new { date1 = date1, date2 = date2 , siteID = siteID}).AsList();
conn.Close();
return ds;
}
}
- public List get_web_station_month(string date1, string date2)
+ public List get_web_station_month(string date1, string date2, string siteID)
{
using (MySqlConnection conn = new MySqlConnection(Connection1))
{
conn.Open();
string sql = @" select DATE_FORMAT(`TIMESTAMP`,'%Y-%m-%d') reportdate, siteid, round(TOTALKWH, 2) TOTALKWH, round(PR, 3) PR, round(KWHKWP, 3) KWHKWP, money
- from power_station_history_month where left(`TIMESTAMP`, 7) between @date1 and @date2 ";
- List ds = conn.Query(sql, new { date1 = date1, date2 = date2 }).AsList();
+ from power_station_history_month where left(`TIMESTAMP`, 7) between @date1 and @date2 and siteid = @siteID";
+ List ds = conn.Query(sql, new { date1 = date1, date2 = date2, siteID = siteID }).AsList();
conn.Close();
return ds;
}
diff --git a/solarApp/fmArchive.Designer.cs b/solarApp/fmArchive.Designer.cs
index 2f5b495..d9e0945 100644
--- a/solarApp/fmArchive.Designer.cs
+++ b/solarApp/fmArchive.Designer.cs
@@ -36,6 +36,20 @@ namespace solarApp
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle5 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle6 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle7 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
this.tb2 = new System.Windows.Forms.TabPage();
this.sp_main_station = new System.Windows.Forms.SplitContainer();
this.label12 = new System.Windows.Forms.Label();
@@ -253,7 +267,23 @@ namespace solarApp
this.gv_web_station_day.AllowUserToDeleteRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.Azure;
this.gv_web_station_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_web_station_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.gv_web_station_day.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.gv_web_station_day.DefaultCellStyle = dataGridViewCellStyle3;
this.gv_web_station_day.Dock = System.Windows.Forms.DockStyle.Fill;
this.gv_web_station_day.Location = new System.Drawing.Point(0, 583);
this.gv_web_station_day.Margin = new System.Windows.Forms.Padding(4);
@@ -301,9 +331,25 @@ namespace solarApp
//
this.gv_web_station_hour.AllowUserToAddRows = false;
this.gv_web_station_hour.AllowUserToDeleteRows = false;
- dataGridViewCellStyle2.BackColor = System.Drawing.Color.Azure;
- this.gv_web_station_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle2;
+ dataGridViewCellStyle4.BackColor = System.Drawing.Color.Azure;
+ this.gv_web_station_hour.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_station_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle5;
this.gv_web_station_hour.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Window;
+ 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.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.gv_web_station_hour.DefaultCellStyle = dataGridViewCellStyle6;
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);
@@ -351,9 +397,25 @@ namespace solarApp
//
this.gv_fic_station_day.AllowUserToAddRows = false;
this.gv_fic_station_day.AllowUserToDeleteRows = false;
- dataGridViewCellStyle3.BackColor = System.Drawing.Color.LightCyan;
- this.gv_fic_station_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
+ dataGridViewCellStyle7.BackColor = System.Drawing.Color.LightCyan;
+ this.gv_fic_station_day.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_fic_station_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle8;
this.gv_fic_station_day.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_fic_station_day.DefaultCellStyle = dataGridViewCellStyle9;
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);
@@ -389,9 +451,25 @@ namespace solarApp
//
this.gv_fic_station_raw.AllowUserToAddRows = false;
this.gv_fic_station_raw.AllowUserToDeleteRows = false;
- dataGridViewCellStyle4.BackColor = System.Drawing.Color.LightCyan;
- this.gv_fic_station_raw.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4;
+ dataGridViewCellStyle10.BackColor = System.Drawing.Color.LightCyan;
+ this.gv_fic_station_raw.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_station_raw.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle11;
this.gv_fic_station_raw.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_station_raw.DefaultCellStyle = dataGridViewCellStyle12;
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);
@@ -549,9 +627,25 @@ namespace solarApp
//
this.gv_web_inv_hour.AllowUserToAddRows = false;
this.gv_web_inv_hour.AllowUserToDeleteRows = false;
- dataGridViewCellStyle5.BackColor = System.Drawing.Color.Azure;
- this.gv_web_inv_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5;
+ dataGridViewCellStyle13.BackColor = System.Drawing.Color.Azure;
+ this.gv_web_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_web_inv_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14;
this.gv_web_inv_hour.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_web_inv_hour.DefaultCellStyle = dataGridViewCellStyle15;
this.gv_web_inv_hour.Dock = System.Windows.Forms.DockStyle.Fill;
this.gv_web_inv_hour.Location = new System.Drawing.Point(0, 38);
this.gv_web_inv_hour.Margin = new System.Windows.Forms.Padding(4);
@@ -598,9 +692,25 @@ namespace solarApp
//
this.gv_fic_inv_hour.AllowUserToAddRows = false;
this.gv_fic_inv_hour.AllowUserToDeleteRows = false;
- dataGridViewCellStyle6.BackColor = System.Drawing.Color.LightCyan;
- this.gv_fic_inv_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6;
+ dataGridViewCellStyle16.BackColor = System.Drawing.Color.LightCyan;
+ this.gv_fic_inv_hour.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_fic_inv_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle17;
this.gv_fic_inv_hour.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_fic_inv_hour.DefaultCellStyle = dataGridViewCellStyle18;
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);
@@ -636,9 +746,25 @@ namespace solarApp
//
this.gv_fic_inv_raw.AllowUserToAddRows = false;
this.gv_fic_inv_raw.AllowUserToDeleteRows = false;
- dataGridViewCellStyle7.BackColor = System.Drawing.Color.LightCyan;
- this.gv_fic_inv_raw.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7;
+ dataGridViewCellStyle19.BackColor = System.Drawing.Color.LightCyan;
+ this.gv_fic_inv_raw.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_fic_inv_raw.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle20;
this.gv_fic_inv_raw.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_fic_inv_raw.DefaultCellStyle = dataGridViewCellStyle21;
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);
diff --git a/solarApp/fmMain.Designer.cs b/solarApp/fmMain.Designer.cs
index 136b60e..3da4cbe 100644
--- a/solarApp/fmMain.Designer.cs
+++ b/solarApp/fmMain.Designer.cs
@@ -39,6 +39,41 @@ namespace solarApp
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle8 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle9 = new System.Windows.Forms.DataGridViewCellStyle();
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle10 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle11 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle12 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle13 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle14 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle15 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle16 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle17 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle18 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle19 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle20 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle21 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle22 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle23 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle24 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle25 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle26 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle27 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle28 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle29 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle30 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle31 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle32 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle33 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle34 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle35 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle36 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle37 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle38 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle39 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle40 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle41 = new System.Windows.Forms.DataGridViewCellStyle();
+ System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle42 = new System.Windows.Forms.DataGridViewCellStyle();
+ 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();
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tb_inv = new System.Windows.Forms.TabPage();
this.sp_main_inv = new System.Windows.Forms.SplitContainer();
@@ -100,6 +135,38 @@ namespace solarApp
this.panel6 = new System.Windows.Forms.Panel();
this.lbSiteRaw = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
+ this.tbSensor = new System.Windows.Forms.TabPage();
+ this.splitContainer1 = new System.Windows.Forms.SplitContainer();
+ this.dtSelect_sensor2 = new System.Windows.Forms.DateTimePicker();
+ this.lbSiteDB_sensor = new System.Windows.Forms.Label();
+ this.lbSiteID_sensor = new System.Windows.Forms.Label();
+ this.lbSiteName_sensor = new System.Windows.Forms.Label();
+ this.lbMsg_sensor = new System.Windows.Forms.Label();
+ this.label24 = new System.Windows.Forms.Label();
+ this.flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel();
+ this.label25 = new System.Windows.Forms.Label();
+ this.btSearch_sensor = new System.Windows.Forms.Button();
+ this.dtSelect_sensor1 = new System.Windows.Forms.DateTimePicker();
+ this.splitContainer2 = new System.Windows.Forms.SplitContainer();
+ this.gv_web_sensor_month = new System.Windows.Forms.DataGridView();
+ this.panel11 = new System.Windows.Forms.Panel();
+ this.label26 = new System.Windows.Forms.Label();
+ this.label27 = new System.Windows.Forms.Label();
+ this.gv_web_sensor_day = new System.Windows.Forms.DataGridView();
+ this.panel12 = new System.Windows.Forms.Panel();
+ this.label28 = new System.Windows.Forms.Label();
+ this.label29 = new System.Windows.Forms.Label();
+ this.gv_web_sensor_hour = new System.Windows.Forms.DataGridView();
+ this.panel13 = new System.Windows.Forms.Panel();
+ this.label30 = new System.Windows.Forms.Label();
+ this.label31 = new System.Windows.Forms.Label();
+ this.gv_fic_sensor_hour = new System.Windows.Forms.DataGridView();
+ this.panel14 = new System.Windows.Forms.Panel();
+ this.label32 = new System.Windows.Forms.Label();
+ this.gv_fic_sensor_raw = new System.Windows.Forms.DataGridView();
+ this.panel15 = new System.Windows.Forms.Panel();
+ this.lbSensorRaw = new System.Windows.Forms.Label();
+ this.label34 = new System.Windows.Forms.Label();
this.tabControl1.SuspendLayout();
this.tb_inv.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.sp_main_inv)).BeginInit();
@@ -140,12 +207,33 @@ namespace solarApp
this.panel5.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.gv_fic_station_raw)).BeginInit();
this.panel6.SuspendLayout();
+ this.tbSensor.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit();
+ this.splitContainer1.Panel1.SuspendLayout();
+ this.splitContainer1.Panel2.SuspendLayout();
+ this.splitContainer1.SuspendLayout();
+ this.flowLayoutPanel1.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit();
+ this.splitContainer2.Panel1.SuspendLayout();
+ this.splitContainer2.Panel2.SuspendLayout();
+ this.splitContainer2.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.gv_web_sensor_month)).BeginInit();
+ this.panel11.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.gv_web_sensor_day)).BeginInit();
+ this.panel12.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.gv_web_sensor_hour)).BeginInit();
+ this.panel13.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.gv_fic_sensor_hour)).BeginInit();
+ this.panel14.SuspendLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.gv_fic_sensor_raw)).BeginInit();
+ this.panel15.SuspendLayout();
this.SuspendLayout();
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tb_inv);
this.tabControl1.Controls.Add(this.tb2);
+ this.tabControl1.Controls.Add(this.tbSensor);
this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
this.tabControl1.Location = new System.Drawing.Point(0, 0);
this.tabControl1.Name = "tabControl1";
@@ -320,7 +408,23 @@ namespace solarApp
this.gv_web_inv_month.AllowUserToDeleteRows = false;
dataGridViewCellStyle1.BackColor = System.Drawing.Color.Azure;
this.gv_web_inv_month.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1;
+ dataGridViewCellStyle2.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle2.BackColor = System.Drawing.SystemColors.Control;
+ dataGridViewCellStyle2.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle2.ForeColor = System.Drawing.SystemColors.WindowText;
+ dataGridViewCellStyle2.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle2.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle2.WrapMode = System.Windows.Forms.DataGridViewTriState.True;
+ this.gv_web_inv_month.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2;
this.gv_web_inv_month.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
+ dataGridViewCellStyle3.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle3.BackColor = System.Drawing.SystemColors.Window;
+ dataGridViewCellStyle3.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ dataGridViewCellStyle3.ForeColor = System.Drawing.SystemColors.ControlText;
+ dataGridViewCellStyle3.SelectionBackColor = System.Drawing.SystemColors.Highlight;
+ dataGridViewCellStyle3.SelectionForeColor = System.Drawing.SystemColors.HighlightText;
+ dataGridViewCellStyle3.WrapMode = System.Windows.Forms.DataGridViewTriState.False;
+ this.gv_web_inv_month.DefaultCellStyle = dataGridViewCellStyle3;
this.gv_web_inv_month.Dock = System.Windows.Forms.DockStyle.Fill;
this.gv_web_inv_month.Location = new System.Drawing.Point(0, 853);
this.gv_web_inv_month.Margin = new System.Windows.Forms.Padding(4);
@@ -368,9 +472,25 @@ namespace solarApp
//
this.gv_web_inv_day.AllowUserToAddRows = false;
this.gv_web_inv_day.AllowUserToDeleteRows = false;
- dataGridViewCellStyle2.BackColor = System.Drawing.Color.Azure;
- this.gv_web_inv_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle2;
+ 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;
+ dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft;
+ dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Window;
+ 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.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;
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);
@@ -418,9 +538,25 @@ namespace solarApp
//
this.gv_web_inv_hour.AllowUserToAddRows = false;
this.gv_web_inv_hour.AllowUserToDeleteRows = false;
- dataGridViewCellStyle3.BackColor = System.Drawing.Color.Azure;
- this.gv_web_inv_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle3;
+ 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;
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;
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);
@@ -468,9 +604,25 @@ namespace solarApp
//
this.gv_fic_inv_hour.AllowUserToAddRows = false;
this.gv_fic_inv_hour.AllowUserToDeleteRows = false;
- dataGridViewCellStyle4.BackColor = System.Drawing.Color.LightCyan;
- this.gv_fic_inv_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle4;
+ 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;
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;
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);
@@ -507,9 +659,25 @@ namespace solarApp
//
this.gv_fic_inv_raw.AllowUserToAddRows = false;
this.gv_fic_inv_raw.AllowUserToDeleteRows = false;
- dataGridViewCellStyle5.BackColor = System.Drawing.Color.LightCyan;
- this.gv_fic_inv_raw.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5;
+ 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;
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;
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);
@@ -592,8 +760,9 @@ namespace solarApp
// label13
//
this.label13.AutoSize = true;
+ this.label13.Dock = System.Windows.Forms.DockStyle.Bottom;
this.label13.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
- this.label13.Location = new System.Drawing.Point(6, 363);
+ this.label13.Location = new System.Drawing.Point(0, 367);
this.label13.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
this.label13.Name = "label13";
this.label13.Size = new System.Drawing.Size(110, 24);
@@ -690,9 +859,25 @@ namespace solarApp
//
this.gv_web_station_month.AllowUserToAddRows = false;
this.gv_web_station_month.AllowUserToDeleteRows = false;
- dataGridViewCellStyle6.BackColor = System.Drawing.Color.Azure;
- this.gv_web_station_month.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle6;
+ 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;
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;
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);
@@ -740,9 +925,25 @@ namespace solarApp
//
this.gv_web_station_day.AllowUserToAddRows = false;
this.gv_web_station_day.AllowUserToDeleteRows = false;
- dataGridViewCellStyle7.BackColor = System.Drawing.Color.Azure;
- this.gv_web_station_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle7;
+ 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;
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;
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);
@@ -790,9 +991,25 @@ namespace solarApp
//
this.gv_web_station_hour.AllowUserToAddRows = false;
this.gv_web_station_hour.AllowUserToDeleteRows = false;
- dataGridViewCellStyle8.BackColor = System.Drawing.Color.Azure;
- this.gv_web_station_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle8;
+ 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;
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;
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);
@@ -840,9 +1057,25 @@ namespace solarApp
//
this.gv_fic_station_day.AllowUserToAddRows = false;
this.gv_fic_station_day.AllowUserToDeleteRows = false;
- dataGridViewCellStyle9.BackColor = System.Drawing.Color.LightCyan;
- this.gv_fic_station_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9;
+ 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;
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;
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);
@@ -878,9 +1111,25 @@ namespace solarApp
//
this.gv_fic_station_raw.AllowUserToAddRows = false;
this.gv_fic_station_raw.AllowUserToDeleteRows = false;
- dataGridViewCellStyle10.BackColor = System.Drawing.Color.LightCyan;
- this.gv_fic_station_raw.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle10;
+ 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;
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;
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);
@@ -924,6 +1173,493 @@ namespace solarApp
this.label9.TabIndex = 2;
this.label9.Text = "FIC: station 原始資料(hour)";
//
+ // tbSensor
+ //
+ this.tbSensor.Controls.Add(this.splitContainer1);
+ this.tbSensor.Location = new System.Drawing.Point(4, 28);
+ this.tbSensor.Name = "tbSensor";
+ this.tbSensor.Padding = new System.Windows.Forms.Padding(3);
+ this.tbSensor.Size = new System.Drawing.Size(1735, 1042);
+ this.tbSensor.TabIndex = 2;
+ this.tbSensor.Text = "Sensor";
+ this.tbSensor.UseVisualStyleBackColor = true;
+ //
+ // splitContainer1
+ //
+ this.splitContainer1.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.splitContainer1.Location = new System.Drawing.Point(3, 3);
+ this.splitContainer1.Name = "splitContainer1";
+ //
+ // splitContainer1.Panel1
+ //
+ this.splitContainer1.Panel1.BackColor = System.Drawing.Color.Khaki;
+ this.splitContainer1.Panel1.Controls.Add(this.dtSelect_sensor2);
+ this.splitContainer1.Panel1.Controls.Add(this.lbSiteDB_sensor);
+ this.splitContainer1.Panel1.Controls.Add(this.lbSiteID_sensor);
+ this.splitContainer1.Panel1.Controls.Add(this.lbSiteName_sensor);
+ this.splitContainer1.Panel1.Controls.Add(this.lbMsg_sensor);
+ this.splitContainer1.Panel1.Controls.Add(this.label24);
+ this.splitContainer1.Panel1.Controls.Add(this.flowLayoutPanel1);
+ this.splitContainer1.Panel1.Controls.Add(this.btSearch_sensor);
+ this.splitContainer1.Panel1.Controls.Add(this.dtSelect_sensor1);
+ //
+ // splitContainer1.Panel2
+ //
+ this.splitContainer1.Panel2.Controls.Add(this.splitContainer2);
+ this.splitContainer1.Size = new System.Drawing.Size(1729, 1036);
+ this.splitContainer1.SplitterDistance = 351;
+ this.splitContainer1.TabIndex = 1;
+ //
+ // dtSelect_sensor2
+ //
+ this.dtSelect_sensor2.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.dtSelect_sensor2.Location = new System.Drawing.Point(36, 189);
+ this.dtSelect_sensor2.Name = "dtSelect_sensor2";
+ this.dtSelect_sensor2.Size = new System.Drawing.Size(250, 31);
+ this.dtSelect_sensor2.TabIndex = 9;
+ //
+ // lbSiteDB_sensor
+ //
+ this.lbSiteDB_sensor.AutoSize = true;
+ this.lbSiteDB_sensor.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.lbSiteDB_sensor.Location = new System.Drawing.Point(36, 100);
+ this.lbSiteDB_sensor.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.lbSiteDB_sensor.Name = "lbSiteDB_sensor";
+ this.lbSiteDB_sensor.Size = new System.Drawing.Size(79, 24);
+ this.lbSiteDB_sensor.TabIndex = 8;
+ this.lbSiteDB_sensor.Text = "Site_DB";
+ //
+ // lbSiteID_sensor
+ //
+ this.lbSiteID_sensor.AutoSize = true;
+ this.lbSiteID_sensor.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.lbSiteID_sensor.Location = new System.Drawing.Point(36, 58);
+ this.lbSiteID_sensor.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.lbSiteID_sensor.Name = "lbSiteID_sensor";
+ this.lbSiteID_sensor.Size = new System.Drawing.Size(72, 24);
+ this.lbSiteID_sensor.TabIndex = 7;
+ this.lbSiteID_sensor.Text = "Site_ID";
+ //
+ // lbSiteName_sensor
+ //
+ this.lbSiteName_sensor.AutoSize = true;
+ this.lbSiteName_sensor.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.lbSiteName_sensor.Location = new System.Drawing.Point(36, 14);
+ this.lbSiteName_sensor.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.lbSiteName_sensor.Name = "lbSiteName_sensor";
+ this.lbSiteName_sensor.Size = new System.Drawing.Size(107, 24);
+ this.lbSiteName_sensor.TabIndex = 6;
+ this.lbSiteName_sensor.Text = "Site_Name";
+ //
+ // lbMsg_sensor
+ //
+ this.lbMsg_sensor.AutoSize = true;
+ this.lbMsg_sensor.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.lbMsg_sensor.Location = new System.Drawing.Point(155, 255);
+ this.lbMsg_sensor.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.lbMsg_sensor.Name = "lbMsg_sensor";
+ this.lbMsg_sensor.Size = new System.Drawing.Size(22, 24);
+ this.lbMsg_sensor.TabIndex = 5;
+ this.lbMsg_sensor.Text = "...";
+ //
+ // label24
+ //
+ this.label24.AutoSize = true;
+ this.label24.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.label24.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.label24.Location = new System.Drawing.Point(0, 367);
+ this.label24.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label24.Name = "label24";
+ this.label24.Size = new System.Drawing.Size(132, 24);
+ this.label24.TabIndex = 3;
+ this.label24.Text = "請選擇 sensor";
+ //
+ // flowLayoutPanel1
+ //
+ this.flowLayoutPanel1.BackColor = System.Drawing.Color.LemonChiffon;
+ this.flowLayoutPanel1.Controls.Add(this.label25);
+ this.flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom;
+ this.flowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.TopDown;
+ this.flowLayoutPanel1.Location = new System.Drawing.Point(0, 391);
+ this.flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(4);
+ this.flowLayoutPanel1.Name = "flowLayoutPanel1";
+ this.flowLayoutPanel1.Size = new System.Drawing.Size(351, 645);
+ this.flowLayoutPanel1.TabIndex = 2;
+ //
+ // label25
+ //
+ this.label25.AutoSize = true;
+ this.label25.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.label25.Location = new System.Drawing.Point(4, 0);
+ this.label25.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label25.Name = "label25";
+ this.label25.Size = new System.Drawing.Size(134, 24);
+ this.label25.TabIndex = 4;
+ this.label25.Text = "請選擇 Sensor";
+ //
+ // btSearch_sensor
+ //
+ this.btSearch_sensor.Location = new System.Drawing.Point(36, 252);
+ this.btSearch_sensor.Name = "btSearch_sensor";
+ this.btSearch_sensor.Size = new System.Drawing.Size(94, 29);
+ this.btSearch_sensor.TabIndex = 1;
+ this.btSearch_sensor.Text = "查詢";
+ this.btSearch_sensor.UseVisualStyleBackColor = true;
+ this.btSearch_sensor.Click += new System.EventHandler(this.btSearch_sensor_Click);
+ //
+ // dtSelect_sensor1
+ //
+ this.dtSelect_sensor1.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.dtSelect_sensor1.Location = new System.Drawing.Point(36, 137);
+ this.dtSelect_sensor1.Name = "dtSelect_sensor1";
+ this.dtSelect_sensor1.Size = new System.Drawing.Size(250, 31);
+ this.dtSelect_sensor1.TabIndex = 0;
+ //
+ // splitContainer2
+ //
+ this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.splitContainer2.Location = new System.Drawing.Point(0, 0);
+ this.splitContainer2.Margin = new System.Windows.Forms.Padding(4);
+ this.splitContainer2.Name = "splitContainer2";
+ //
+ // splitContainer2.Panel1
+ //
+ this.splitContainer2.Panel1.Controls.Add(this.gv_web_sensor_month);
+ this.splitContainer2.Panel1.Controls.Add(this.panel11);
+ this.splitContainer2.Panel1.Controls.Add(this.gv_web_sensor_day);
+ this.splitContainer2.Panel1.Controls.Add(this.panel12);
+ this.splitContainer2.Panel1.Controls.Add(this.gv_web_sensor_hour);
+ this.splitContainer2.Panel1.Controls.Add(this.panel13);
+ //
+ // splitContainer2.Panel2
+ //
+ this.splitContainer2.Panel2.Controls.Add(this.gv_fic_sensor_hour);
+ this.splitContainer2.Panel2.Controls.Add(this.panel14);
+ this.splitContainer2.Panel2.Controls.Add(this.gv_fic_sensor_raw);
+ this.splitContainer2.Panel2.Controls.Add(this.panel15);
+ this.splitContainer2.Size = new System.Drawing.Size(1374, 1036);
+ this.splitContainer2.SplitterDistance = 666;
+ this.splitContainer2.SplitterWidth = 13;
+ this.splitContainer2.TabIndex = 0;
+ //
+ // gv_web_sensor_month
+ //
+ 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;
+ 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;
+ this.gv_web_sensor_month.Dock = System.Windows.Forms.DockStyle.Fill;
+ this.gv_web_sensor_month.Location = new System.Drawing.Point(0, 853);
+ 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;
+ 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, 183);
+ this.gv_web_sensor_month.TabIndex = 7;
+ //
+ // panel11
+ //
+ this.panel11.Controls.Add(this.label26);
+ this.panel11.Controls.Add(this.label27);
+ this.panel11.Dock = System.Windows.Forms.DockStyle.Top;
+ this.panel11.Location = new System.Drawing.Point(0, 815);
+ this.panel11.Margin = new System.Windows.Forms.Padding(4);
+ this.panel11.Name = "panel11";
+ this.panel11.Size = new System.Drawing.Size(666, 38);
+ this.panel11.TabIndex = 6;
+ //
+ // label26
+ //
+ this.label26.AutoSize = true;
+ this.label26.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.label26.Location = new System.Drawing.Point(230, 8);
+ this.label26.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label26.Name = "label26";
+ this.label26.Size = new System.Drawing.Size(331, 24);
+ this.label26.TabIndex = 1;
+ this.label26.Text = "solar_master.Sensor_history_month";
+ //
+ // label27
+ //
+ this.label27.AutoSize = true;
+ this.label27.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.label27.Location = new System.Drawing.Point(35, 8);
+ this.label27.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label27.Name = "label27";
+ this.label27.Size = new System.Drawing.Size(160, 24);
+ this.label27.TabIndex = 0;
+ this.label27.Text = "web: sensor 每月";
+ //
+ // gv_web_sensor_day
+ //
+ 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;
+ 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;
+ 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;
+ 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, 232);
+ this.gv_web_sensor_day.TabIndex = 4;
+ //
+ // panel12
+ //
+ this.panel12.Controls.Add(this.label28);
+ this.panel12.Controls.Add(this.label29);
+ this.panel12.Dock = System.Windows.Forms.DockStyle.Top;
+ this.panel12.Location = new System.Drawing.Point(0, 545);
+ this.panel12.Margin = new System.Windows.Forms.Padding(4);
+ this.panel12.Name = "panel12";
+ this.panel12.Size = new System.Drawing.Size(666, 38);
+ this.panel12.TabIndex = 3;
+ //
+ // label28
+ //
+ this.label28.AutoSize = true;
+ this.label28.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.label28.Location = new System.Drawing.Point(230, 8);
+ this.label28.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label28.Name = "label28";
+ this.label28.Size = new System.Drawing.Size(302, 24);
+ this.label28.TabIndex = 1;
+ this.label28.Text = "solar_master.Sensor_history_day";
+ //
+ // label29
+ //
+ this.label29.AutoSize = true;
+ this.label29.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.label29.Location = new System.Drawing.Point(35, 8);
+ this.label29.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label29.Name = "label29";
+ this.label29.Size = new System.Drawing.Size(160, 24);
+ this.label29.TabIndex = 0;
+ this.label29.Text = "web: sensor 每天";
+ //
+ // gv_web_sensor_hour
+ //
+ 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;
+ 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;
+ 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;
+ 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);
+ this.gv_web_sensor_hour.TabIndex = 1;
+ //
+ // panel13
+ //
+ this.panel13.Controls.Add(this.label30);
+ this.panel13.Controls.Add(this.label31);
+ this.panel13.Dock = System.Windows.Forms.DockStyle.Top;
+ this.panel13.Location = new System.Drawing.Point(0, 0);
+ this.panel13.Margin = new System.Windows.Forms.Padding(4);
+ this.panel13.Name = "panel13";
+ this.panel13.Size = new System.Drawing.Size(666, 38);
+ this.panel13.TabIndex = 0;
+ //
+ // label30
+ //
+ this.label30.AutoSize = true;
+ this.label30.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.label30.Location = new System.Drawing.Point(230, 8);
+ this.label30.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label30.Name = "label30";
+ this.label30.Size = new System.Drawing.Size(313, 24);
+ this.label30.TabIndex = 1;
+ this.label30.Text = "solar_master.Sensor_history_hour";
+ //
+ // label31
+ //
+ this.label31.AutoSize = true;
+ this.label31.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.label31.Location = new System.Drawing.Point(35, 8);
+ this.label31.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label31.Name = "label31";
+ this.label31.Size = new System.Drawing.Size(186, 24);
+ this.label31.TabIndex = 0;
+ this.label31.Text = "web: Sensor 每小時 ";
+ //
+ // gv_fic_sensor_hour
+ //
+ 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;
+ 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;
+ 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;
+ 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, 453);
+ this.gv_fic_sensor_hour.TabIndex = 4;
+ //
+ // panel14
+ //
+ this.panel14.Controls.Add(this.label32);
+ this.panel14.Dock = System.Windows.Forms.DockStyle.Top;
+ this.panel14.Location = new System.Drawing.Point(0, 545);
+ this.panel14.Margin = new System.Windows.Forms.Padding(4);
+ this.panel14.Name = "panel14";
+ this.panel14.Size = new System.Drawing.Size(695, 38);
+ this.panel14.TabIndex = 3;
+ //
+ // label32
+ //
+ this.label32.AutoSize = true;
+ this.label32.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.label32.Location = new System.Drawing.Point(15, 8);
+ this.label32.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label32.Name = "label32";
+ this.label32.Size = new System.Drawing.Size(176, 24);
+ this.label32.TabIndex = 2;
+ this.label32.Text = "FIC: Sensor 每小時 ";
+ //
+ // gv_fic_sensor_raw
+ //
+ 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;
+ 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;
+ 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;
+ 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);
+ this.gv_fic_sensor_raw.TabIndex = 2;
+ //
+ // panel15
+ //
+ this.panel15.Controls.Add(this.lbSensorRaw);
+ this.panel15.Controls.Add(this.label34);
+ this.panel15.Dock = System.Windows.Forms.DockStyle.Top;
+ this.panel15.Location = new System.Drawing.Point(0, 0);
+ this.panel15.Margin = new System.Windows.Forms.Padding(4);
+ this.panel15.Name = "panel15";
+ this.panel15.Size = new System.Drawing.Size(695, 38);
+ this.panel15.TabIndex = 1;
+ //
+ // lbSensorRaw
+ //
+ this.lbSensorRaw.AutoSize = true;
+ this.lbSensorRaw.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.lbSensorRaw.Location = new System.Drawing.Point(255, 8);
+ this.lbSensorRaw.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.lbSensorRaw.Name = "lbSensorRaw";
+ this.lbSensorRaw.Size = new System.Drawing.Size(350, 24);
+ this.lbSensorRaw.TabIndex = 3;
+ this.lbSensorRaw.Text = "solar_com0002.s02202000101_Sensor";
+ //
+ // label34
+ //
+ this.label34.AutoSize = true;
+ this.label34.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point);
+ this.label34.Location = new System.Drawing.Point(15, 8);
+ this.label34.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0);
+ this.label34.Name = "label34";
+ this.label34.Size = new System.Drawing.Size(190, 24);
+ this.label34.TabIndex = 2;
+ this.label34.Text = "FIC: Sensor 原始資料";
+ //
// fmMain
//
this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 19F);
@@ -987,6 +1723,33 @@ namespace solarApp
((System.ComponentModel.ISupportInitialize)(this.gv_fic_station_raw)).EndInit();
this.panel6.ResumeLayout(false);
this.panel6.PerformLayout();
+ this.tbSensor.ResumeLayout(false);
+ this.splitContainer1.Panel1.ResumeLayout(false);
+ this.splitContainer1.Panel1.PerformLayout();
+ this.splitContainer1.Panel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).EndInit();
+ this.splitContainer1.ResumeLayout(false);
+ this.flowLayoutPanel1.ResumeLayout(false);
+ this.flowLayoutPanel1.PerformLayout();
+ this.splitContainer2.Panel1.ResumeLayout(false);
+ this.splitContainer2.Panel2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit();
+ this.splitContainer2.ResumeLayout(false);
+ ((System.ComponentModel.ISupportInitialize)(this.gv_web_sensor_month)).EndInit();
+ this.panel11.ResumeLayout(false);
+ this.panel11.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.gv_web_sensor_day)).EndInit();
+ this.panel12.ResumeLayout(false);
+ this.panel12.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.gv_web_sensor_hour)).EndInit();
+ this.panel13.ResumeLayout(false);
+ this.panel13.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.gv_fic_sensor_hour)).EndInit();
+ this.panel14.ResumeLayout(false);
+ this.panel14.PerformLayout();
+ ((System.ComponentModel.ISupportInitialize)(this.gv_fic_sensor_raw)).EndInit();
+ this.panel15.ResumeLayout(false);
+ this.panel15.PerformLayout();
this.ResumeLayout(false);
}
@@ -1059,5 +1822,40 @@ namespace solarApp
private System.Windows.Forms.Label lbSiteDB_inv;
private System.Windows.Forms.Label lbSiteRaw;
private System.Windows.Forms.Label lbInvRaw;
+ private System.Windows.Forms.TabPage tbSensor;
+ private System.Windows.Forms.SplitContainer splitContainer1;
+ private System.Windows.Forms.Label label20;
+ private System.Windows.Forms.Label lbSiteID_sensor;
+ private System.Windows.Forms.Label lbSiteName_sensor;
+ private System.Windows.Forms.Label lbMsg_sensor;
+ private System.Windows.Forms.Label label24;
+ private System.Windows.Forms.FlowLayoutPanel flowLayoutPanel1;
+ private System.Windows.Forms.Label label25;
+ private System.Windows.Forms.Button bt;
+ private System.Windows.Forms.DateTimePicker dtSelect_sensor1;
+ private System.Windows.Forms.SplitContainer splitContainer2;
+ private System.Windows.Forms.DataGridView gv_web_sensor_month;
+ private System.Windows.Forms.Panel panel11;
+ private System.Windows.Forms.Label label26;
+ private System.Windows.Forms.Label label27;
+ private System.Windows.Forms.DataGridView gv_web_sensor_day;
+ private System.Windows.Forms.Panel panel12;
+ private System.Windows.Forms.Label label28;
+ private System.Windows.Forms.Label label29;
+ private System.Windows.Forms.DataGridView dataGridView3;
+ private System.Windows.Forms.Panel panel13;
+ private System.Windows.Forms.Label label30;
+ private System.Windows.Forms.Label label31;
+ private System.Windows.Forms.DataGridView gv_fic_sensor_hour;
+ private System.Windows.Forms.Panel panel14;
+ private System.Windows.Forms.Label label32;
+ private System.Windows.Forms.DataGridView gv_fic_sensor_raw;
+ private System.Windows.Forms.Panel panel15;
+ private System.Windows.Forms.Label lbSensorRaw;
+ private System.Windows.Forms.Label label34;
+ private System.Windows.Forms.DataGridView gv_web_sensor_hour;
+ private System.Windows.Forms.Label lbSiteDB_sensor;
+ private System.Windows.Forms.Button btSearch_sensor;
+ private System.Windows.Forms.DateTimePicker dtSelect_sensor2;
}
}
\ No newline at end of file
diff --git a/solarApp/fmMain.cs b/solarApp/fmMain.cs
index 5336da0..cb696b5 100644
--- a/solarApp/fmMain.cs
+++ b/solarApp/fmMain.cs
@@ -14,6 +14,7 @@ namespace solarApp
{
get_inv_svc inv_svc = new get_inv_svc();
getStationSvc stationSvc = new getStationSvc();
+ getSensorSvc sensorSvc = new getSensorSvc();
public fmMain()
{
InitializeComponent();
@@ -44,8 +45,10 @@ namespace solarApp
dtselect_station2.Value = DateTime.Today.AddDays(-1);
dtselect_inv.Value = DateTime.Today.AddDays(-1);
- // Cursor.Current = Cursors.Default;
-
+ dtSelect_sensor1.Value = DateTime.Today.AddDays(-7);
+ dtSelect_sensor2.Value = DateTime.Today.AddDays(-1);
+ // Cursor.Current = Cursors.Default;
+
tabControl1.SelectedTab = tabControl1.TabPages[1];
@@ -81,9 +84,16 @@ namespace solarApp
lbSiteDB_inv.Text = rb.Tag.ToString();
lbSiteName_inv.Text = rb.Text;
lbSiteID_inv.Text = rb.Name;
+
+ lbSiteName_sensor.Text = lbSiteName_inv.Text;
+ lbSiteDB_sensor.Text = lbSiteDB_inv.Text;
+ lbSiteID_sensor.Text = lbSiteID_inv.Text;
+
//顯示 table name on label
lbSiteRaw.Text = lbSiteName_inv.Text + " "+ lbSiteDB_inv.Text + ".s" + lbSiteID_inv.Text + "_Station";
lbInvRaw.Text = lbSiteName_inv.Text + " " + lbSiteDB_inv.Text + ".s" + lbSiteID_inv.Text + "_Inv";
+ lbSensorRaw.Text = lbSiteName_inv.Text + " " + lbSiteDB_inv.Text + ".s" + lbSiteID_inv.Text + "_SensorAVG";
+
add_inv_list(lbSiteDB_inv.Text, lbSiteID_inv.Text.Substring(0, 9));
}
}
@@ -162,12 +172,27 @@ namespace solarApp
gv_web_station_hour.DataSource = stationSvc.get_web_station_hour( date1 );
- gv_web_station_day.DataSource = stationSvc.get_web_station_day(date1, date2);
+ gv_web_station_day.DataSource = stationSvc.get_web_station_day(date1, date2, lbSiteID_inv.Text.Substring(0, 9));
- gv_web_station_month.DataSource = stationSvc.get_web_station_month(date1.Substring(0, 7), date2.Substring(0, 7));
-
+ gv_web_station_month.DataSource = stationSvc.get_web_station_month(date1.Substring(0, 7), date2.Substring(0, 7), lbSiteID_inv.Text.Substring(0, 9));
lbMsg_station.Text = " done " + System.DateTime.Now.ToShortTimeString();
- }
+ }
+
+ private void btSearch_sensor_Click(object sender, EventArgs e)
+ {
+ string date1 = dtSelect_sensor1.Value.ToString("yyyy-MM-dd");
+ string date2 = dtSelect_sensor2.Value.ToString("yyyy-MM-dd");
+
+ gv_fic_sensor_raw.DataSource = sensorSvc.get_sensor_raw(date1, lbSiteDB_inv.Text, lbSiteID_inv.Text);
+
+ gv_fic_sensor_hour.DataSource = sensorSvc.get_sensor_raw_hour(date1, lbSiteDB_inv.Text, lbSiteID_inv.Text.Substring(0, 11));
+
+ gv_web_sensor_hour.DataSource = sensorSvc.get_web_sensor_hour(date1, lbSiteID_inv.Text.Substring(0, 09));
+
+ gv_web_sensor_day.DataSource = sensorSvc.get_web_sensor_day(date1, date2, lbSiteID_inv.Text.Substring(0, 09));
+
+ gv_web_sensor_month.DataSource = sensorSvc.get_web_sensor_month(date1.Substring(0, 7), date2.Substring(0, 7), lbSiteID_inv.Text.Substring(0, 09));
+ }
}
}