diff --git a/SolarPower/Controllers/StationReportController.cs b/SolarPower/Controllers/StationReportController.cs index 3d870a5..638a361 100644 --- a/SolarPower/Controllers/StationReportController.cs +++ b/SolarPower/Controllers/StationReportController.cs @@ -484,9 +484,30 @@ namespace SolarPower.Controllers if (vForDataCount < (Formbody.Result.Data.Count - 1))//最後一筆(總計),不須取值 { vForDataCount++; - avghour = (Convert.ToDouble(dbody["tothour"].ToString()) + Convert.ToDouble(avghour)).ToString(); - avgKWHKWP = (Convert.ToDouble(dbody["KWHKWP"].ToString()) + Convert.ToDouble(avgKWHKWP)).ToString(); - avgdayKWH = (Convert.ToDouble(dbody["dayKWH"].ToString()) + Convert.ToDouble(avgdayKWH)).ToString(); + object vv = ""; + + avghour = Convert.ToString( dbody["tothour"]) ?? "NaN"; + avgKWHKWP = Convert.ToString(dbody["KWHKWP"]) ?? "NaN"; + avgKWHKWP = Convert.ToString(dbody["dayKWH"]) ?? "NaN"; + + //if (dbody.TryGetValue("tothour", out vv)) + // avghour = (Convert.ToDouble(dbody["tothour"].ToString()) + Convert.ToDouble(avghour)).ToString(); + //else + // avghour = "NaN"; + + //if (dbody.TryGetValue("KWHKWP", out vv)) + // avgKWHKWP = (Convert.ToDouble(dbody["KWHKWP"].ToString()) + Convert.ToDouble(avgKWHKWP)).ToString(); + //else + // avgKWHKWP = "NaN"; + + //if (dbody.TryGetValue("dayKWH", out vv)) + // avgKWHKWP = (Convert.ToDouble(dbody["dayKWH"].ToString()) + Convert.ToDouble(avgdayKWH)).ToString(); + //else + // avgKWHKWP = "NaN"; + + //avghour = (Convert.ToDouble(dbody["tothour"].ToString()) + Convert.ToDouble(avghour)).ToString(); + //avgKWHKWP = (Convert.ToDouble(dbody["KWHKWP"].ToString()) + Convert.ToDouble(avgKWHKWP)).ToString(); + //avgdayKWH = (Convert.ToDouble(dbody["dayKWH"].ToString()) + Convert.ToDouble(avgdayKWH)).ToString(); monthKWH = dbody["monthKWH"] == null ? "0" : dbody["monthKWH"].ToString(); monthmoney = dbody["monthmoney"] == null ? "0" : dbody["monthmoney"].ToString(); monthmoneyone = dbody["monthmoneyone"] == null ? "0" : dbody["monthmoneyone"].ToString(); diff --git a/solarApp/Service/archiveLowData.cs b/solarApp/Service/archiveLowData.cs index 80be955..8063e42 100644 --- a/solarApp/Service/archiveLowData.cs +++ b/solarApp/Service/archiveLowData.cs @@ -331,7 +331,7 @@ namespace solarApp.Service { //System.Diagnostics.Debug.WriteLine("【ArchiveRowData】[搬移資料失敗】"); TimeSpan duration = DateTime.Now - dt_start1; - arclog.insert_log(_powerStationID, "move raw s1", duration.TotalSeconds, $"{_siteDB}.s{_siteID}_station", $"{_siteDB}_history.s{_siteID}_station", "1", ex.Message, "0", conn, null); + arclog.insert_log(_powerStationID, @$"move raw s1-{move_month}", duration.TotalSeconds, $"{_siteDB}.s{_siteID}_station", $"{_siteDB}_history.s{_siteID}_station", "1", ex.Message, "0", conn, null); throw ex; } @@ -366,7 +366,7 @@ namespace solarApp.Service //System.Diagnostics.Debug.WriteLine($"【ArchiveRowData】{_siteDB}.s{_siteID}_inv的七月前資料寫入至{_siteDB}_history.s{_siteID}_inv【寫入成功】於{dateTime}"); // log TimeSpan duration = DateTime.Now - dt_start1; - arclog.insert_log(_powerStationID, "move raw s1", duration.TotalSeconds, $"{_siteDB}.s{_siteID01}_inv", $"{_siteDB}_history.s{_siteID01}_inv", "0", "", rowCT.ToString(), conn, null); + arclog.insert_log(_powerStationID, @$"move raw s1 - {move_month}", duration.TotalSeconds, $"{_siteDB}.s{_siteID01}_inv", $"{_siteDB}_history.s{_siteID01}_inv", "0", "", rowCT.ToString(), conn, null); //arclog.insert_log(_powerStationID, "sensor step1", duration.TotalSeconds, "sensor_history_hour", "insert sensor hour", "0", "", rowCT.ToString(), conn, cmd); dt_start1 = DateTime.Now; @@ -375,12 +375,12 @@ namespace solarApp.Service rowCT = conn.Execute(for_delete_inv, commandTimeout: 6000); //System.Diagnostics.Debug.WriteLine($"【ArchiveRowData】{_siteDB}.s{_siteID}_sensoravg搬移至{_siteDB}_history.s{_siteID}_sensoravg【搬移資料成功】於{dateTime} 共 {delete_inv.ToString()} 筆"); duration = DateTime.Now - dt_start1; - arclog.insert_log(_powerStationID, "delete raw s2", duration.TotalSeconds, $"{_siteDB}.s{_siteID01}_inv", "", "0", "", rowCT.ToString(), conn, null); + arclog.insert_log(_powerStationID, @$"delete raw s2 - {move_month}", duration.TotalSeconds, $"{_siteDB}.s{_siteID01}_inv", "", "0", "", rowCT.ToString(), conn, null); } catch (Exception ex) { TimeSpan duration = DateTime.Now - dt_start1; - arclog.insert_log(_powerStationID, "move raw s1", duration.TotalSeconds, $"{_siteDB}.s{_siteID01}_station", $"{_siteDB}_history.s{_siteID01}_station", "1", ex.Message, "0", conn, null); + arclog.insert_log(_powerStationID, @$"move raw s1 - {move_month}", duration.TotalSeconds, $"{_siteDB}.s{_siteID01}_station", $"{_siteDB}_history.s{_siteID01}_station", "1", ex.Message, "err", conn, null); //arclog.insert_log(_powerStationID, "sensor step1", duration.TotalSeconds, "sensor_history_hour", "insert sensor hour", "0", "", rowCT.ToString(), conn, cmd); throw ex; } @@ -411,20 +411,20 @@ namespace solarApp.Service int rowCT = conn.Execute(for_insert_sensoravg, commandTimeout: 600); // log TimeSpan duration = DateTime.Now - dt_start1; - arclog.insert_log(_powerStationID, "move raw s1", duration.TotalSeconds, $"{_siteDB}.s{_siteID01}_sensoravg", $"{_siteDB}_history.s{_siteID01}_sensoravg", "0", "", rowCT.ToString(), conn, null); + arclog.insert_log(_powerStationID, @$"move raw s1 - {move_month}", duration.TotalSeconds, $"{_siteDB}.s{_siteID01}_sensoravg", $"{_siteDB}_history.s{_siteID01}_sensoravg", "0", "", rowCT.ToString(), conn, null); dt_start1 = DateTime.Now; string for_delete_sensoravg = $@"DELETE FROM {_siteDB}.s{_siteID01}_sensoravg WHERE LEFT(crdTime, 7) < '{move_month}'"; rowCT = conn.Execute(for_delete_sensoravg, commandTimeout: 600); duration = DateTime.Now - dt_start1; - arclog.insert_log(_powerStationID, "delete raw s2", duration.TotalSeconds, $"{_siteDB}.s{_siteID01}_sensoravg", "", "0", "", rowCT.ToString(), conn, null); + arclog.insert_log(_powerStationID, @$"delete raw s2 - {move_month}", duration.TotalSeconds, $"{_siteDB}.s{_siteID01}_sensoravg", "", "0", "", rowCT.ToString(), conn, null); } catch (Exception ex) { TimeSpan duration = DateTime.Now - dt_start1; - arclog.insert_log(_powerStationID, "move raw s1", duration.TotalSeconds, $"{_siteDB}.s{_siteID01}_sensoravg", $"{_siteDB}_history.s{_siteID01}_sensoravg", "1", ex.Message, "0", conn, null); + arclog.insert_log(_powerStationID, @$"move raw s1 - {move_month}", duration.TotalSeconds, $"{_siteDB}.s{_siteID01}_sensoravg", $"{_siteDB}_history.s{_siteID01}_sensoravg", "1", ex.Message, "0", conn, null); throw; } diff --git a/solarApp/Service/getStationSvc.cs b/solarApp/Service/getStationSvc.cs index ac24dee..6622020 100644 --- a/solarApp/Service/getStationSvc.cs +++ b/solarApp/Service/getStationSvc.cs @@ -194,13 +194,36 @@ namespace solarApp.Service string sql = @" select id, CompanyId, `code` , SerialNumber, CONCAT(`code` ,'01') SiteID, SiteDB, `name` SiteName from power_station where deleted = 0 and `status`= 1 - ORDER BY GeneratingCapacity "; + ORDER BY id "; // id <> 14";and id > 24 List ds = conn.Query(sql).AsList(); conn.Close(); return ds; } } + + public List get_station_list32(bool include32) + { + using (MySqlConnection conn = new MySqlConnection(Connection1)) + { + conn.Open(); // 01 控制器編號 + string sql = @" select id, CompanyId, `code` , SerialNumber, CONCAT(`code` ,'01') SiteID, SiteDB, `name` SiteName + from power_station + where deleted = 0 and `status`= 1 and id <> 32 "; + if (include32) + { + sql = @" select id, CompanyId, `code` , SerialNumber, CONCAT(`code` ,'01') SiteID, SiteDB, `name` SiteName + from power_station + where deleted = 0 and `status`= 1 and id = 32"; + } + + // id <> 14";and id > 24 + List ds = conn.Query(sql).AsList(); + conn.Close(); + return ds; + } + } + public List get_powerStation() { using (MySqlConnection conn = new MySqlConnection(Connection1)) diff --git a/solarApp/Service/procSensorSvc.cs b/solarApp/Service/procSensorSvc.cs index ae5d7a2..67d87c7 100644 --- a/solarApp/Service/procSensorSvc.cs +++ b/solarApp/Service/procSensorSvc.cs @@ -562,7 +562,7 @@ namespace solarApp.Service } catch (Exception ex) { - arclog.insert_log(_powerStationID, "sensor step1 ", 0, "sensor_history_", "insert sensor error", "0", "", "", conn, cmd); + arclog.insert_log(_powerStationID, "sensor step1 ", 0, "sensor_history_", "insert sensor error", "err", "", "", conn, cmd); //throw ex; } @@ -628,7 +628,7 @@ namespace solarApp.Service } catch (Exception ex) { - arclog.insert_log(_powerStationID, "sensor step1 irrDayHour", 0, "sensor_history_", "sensor_history_hour error", "0", "", "", conn, cmd); + arclog.insert_log(_powerStationID, "sensor step1 irrDayHour", 0, "sensor_history_", "sensor_history_hour error", "err", "", "", conn, cmd); //throw ex; } conn.Close(); @@ -716,7 +716,7 @@ namespace solarApp.Service catch (Exception ex) { //throw ex; - arclog.insert_log(_powerStationID, "sensor step1 meter_hour", 0, "meter_history_hour", "meter_history_hour error", "0", "", "", conn, null); + arclog.insert_log(_powerStationID, "sensor step1 meter_hour", 0, "meter_history_hour", "meter_history_hour error", "err", "", "", conn, null); } conn.Close(); } diff --git a/solarApp/fmArchive.Designer.cs b/solarApp/fmArchive.Designer.cs index 8263427..48da10e 100644 --- a/solarApp/fmArchive.Designer.cs +++ b/solarApp/fmArchive.Designer.cs @@ -29,761 +29,760 @@ namespace solarApp /// private void InitializeComponent() { - this.components = new System.ComponentModel.Container(); + components = new System.ComponentModel.Container(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle2 = new System.Windows.Forms.DataGridViewCellStyle(); - this.tabControl1 = new System.Windows.Forms.TabControl(); - this.tabPage1 = new System.Windows.Forms.TabPage(); - this.splitContainer1 = new System.Windows.Forms.SplitContainer(); - this.button3 = new System.Windows.Forms.Button(); - this.label2 = new System.Windows.Forms.Label(); - this.textBox1 = new System.Windows.Forms.TextBox(); - this.button2 = new System.Windows.Forms.Button(); - this.bt_archive_One = new System.Windows.Forms.Button(); - this.bt_lackStation = new System.Windows.Forms.Button(); - this.bt_sensor_lackData = new System.Windows.Forms.Button(); - this.bt_updateInstantValue = new System.Windows.Forms.Button(); - this.bt_rpt_invDay = new System.Windows.Forms.Button(); - this.bt_meter = new System.Windows.Forms.Button(); - this.lbmsg = new System.Windows.Forms.Label(); - this.dtSelect2 = new System.Windows.Forms.DateTimePicker(); - this.bt_archive = new System.Windows.Forms.Button(); - this.bt_clear_sensor = new System.Windows.Forms.Button(); - this.bt_clear_station = new System.Windows.Forms.Button(); - this.bt_clear_inv = new System.Windows.Forms.Button(); - this.fp_site = new System.Windows.Forms.FlowLayoutPanel(); - this.dtSelect1 = new System.Windows.Forms.DateTimePicker(); - this.bt_site = new System.Windows.Forms.Button(); - this.bt_Inv = new System.Windows.Forms.Button(); - this.bt_Sensor = new System.Windows.Forms.Button(); - this.gv_inv_detail = new System.Windows.Forms.DataGridView(); - this.gv_rpt_invDay = new System.Windows.Forms.DataGridView(); - this.panel1 = new System.Windows.Forms.Panel(); - this.btSyncErr = new System.Windows.Forms.Button(); - this.lbMsgStatus = new System.Windows.Forms.Label(); - this.lbMsgTitle = new System.Windows.Forms.Label(); - this.bt_invDay = new System.Windows.Forms.Button(); - this.btVerifyData = new System.Windows.Forms.Button(); - 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.tabPage5 = new System.Windows.Forms.TabPage(); - this.tabPage2 = new System.Windows.Forms.TabPage(); - this.splitContainer2 = new System.Windows.Forms.SplitContainer(); - this.bt_MoveRawData = new System.Windows.Forms.Button(); - this.richTextBox1 = new System.Windows.Forms.RichTextBox(); - this.panel2 = new System.Windows.Forms.Panel(); - this.lbReceiver = new System.Windows.Forms.Label(); - this.tbReceiver = new System.Windows.Forms.TextBox(); - this.gbox = new System.Windows.Forms.GroupBox(); - this.lbContent = new System.Windows.Forms.Label(); - this.tbContent = new System.Windows.Forms.TextBox(); - this.lbTitle = new System.Windows.Forms.Label(); - this.tbTitle = new System.Windows.Forms.TextBox(); - this.rbNoSSL = new System.Windows.Forms.RadioButton(); - this.rbSSL = new System.Windows.Forms.RadioButton(); - this.lbPort = new System.Windows.Forms.Label(); - this.label1 = new System.Windows.Forms.Label(); - this.tbPassword = new System.Windows.Forms.TextBox(); - this.lbUserName = new System.Windows.Forms.Label(); - this.tbUserName = new System.Windows.Forms.TextBox(); - this.btSendMail = new System.Windows.Forms.Button(); - this.timer1 = new System.Windows.Forms.Timer(this.components); - this.tabControl1.SuspendLayout(); - this.tabPage1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer1)).BeginInit(); - this.splitContainer1.Panel1.SuspendLayout(); - this.splitContainer1.Panel2.SuspendLayout(); - this.splitContainer1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gv_inv_detail)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.gv_rpt_invDay)).BeginInit(); - this.panel1.SuspendLayout(); - this.tabPage2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).BeginInit(); - this.splitContainer2.Panel1.SuspendLayout(); - this.splitContainer2.Panel2.SuspendLayout(); - this.splitContainer2.SuspendLayout(); - this.panel2.SuspendLayout(); - this.gbox.SuspendLayout(); - this.SuspendLayout(); + tabControl1 = new System.Windows.Forms.TabControl(); + tabPage1 = new System.Windows.Forms.TabPage(); + splitContainer1 = new System.Windows.Forms.SplitContainer(); + button3 = new System.Windows.Forms.Button(); + label2 = new System.Windows.Forms.Label(); + textBox1 = new System.Windows.Forms.TextBox(); + button2 = new System.Windows.Forms.Button(); + bt_archive_One = new System.Windows.Forms.Button(); + bt_lackStation = new System.Windows.Forms.Button(); + bt_sensor_lackData = new System.Windows.Forms.Button(); + bt_updateInstantValue = new System.Windows.Forms.Button(); + bt_rpt_invDay = new System.Windows.Forms.Button(); + bt_meter = new System.Windows.Forms.Button(); + lbmsg = new System.Windows.Forms.Label(); + dtSelect2 = new System.Windows.Forms.DateTimePicker(); + bt_archive = new System.Windows.Forms.Button(); + bt_clear_sensor = new System.Windows.Forms.Button(); + bt_clear_station = new System.Windows.Forms.Button(); + bt_clear_inv = new System.Windows.Forms.Button(); + fp_site = new System.Windows.Forms.FlowLayoutPanel(); + dtSelect1 = new System.Windows.Forms.DateTimePicker(); + bt_site = new System.Windows.Forms.Button(); + bt_Inv = new System.Windows.Forms.Button(); + bt_Sensor = new System.Windows.Forms.Button(); + gv_inv_detail = new System.Windows.Forms.DataGridView(); + gv_rpt_invDay = new System.Windows.Forms.DataGridView(); + panel1 = new System.Windows.Forms.Panel(); + btSyncErr = new System.Windows.Forms.Button(); + lbMsgStatus = new System.Windows.Forms.Label(); + lbMsgTitle = new System.Windows.Forms.Label(); + bt_invDay = new System.Windows.Forms.Button(); + btVerifyData = new System.Windows.Forms.Button(); + lbSiteDB_sensor = new System.Windows.Forms.Label(); + lbSiteID_sensor = new System.Windows.Forms.Label(); + lbSiteName_sensor = new System.Windows.Forms.Label(); + tabPage5 = new System.Windows.Forms.TabPage(); + tabPage2 = new System.Windows.Forms.TabPage(); + splitContainer2 = new System.Windows.Forms.SplitContainer(); + bt_MoveRawData = new System.Windows.Forms.Button(); + richTextBox1 = new System.Windows.Forms.RichTextBox(); + panel2 = new System.Windows.Forms.Panel(); + lbReceiver = new System.Windows.Forms.Label(); + tbReceiver = new System.Windows.Forms.TextBox(); + gbox = new System.Windows.Forms.GroupBox(); + lbContent = new System.Windows.Forms.Label(); + tbContent = new System.Windows.Forms.TextBox(); + lbTitle = new System.Windows.Forms.Label(); + tbTitle = new System.Windows.Forms.TextBox(); + rbNoSSL = new System.Windows.Forms.RadioButton(); + rbSSL = new System.Windows.Forms.RadioButton(); + lbPort = new System.Windows.Forms.Label(); + label1 = new System.Windows.Forms.Label(); + tbPassword = new System.Windows.Forms.TextBox(); + lbUserName = new System.Windows.Forms.Label(); + tbUserName = new System.Windows.Forms.TextBox(); + btSendMail = new System.Windows.Forms.Button(); + timer1 = new System.Windows.Forms.Timer(components); + tabControl1.SuspendLayout(); + tabPage1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)splitContainer1).BeginInit(); + splitContainer1.Panel1.SuspendLayout(); + splitContainer1.Panel2.SuspendLayout(); + splitContainer1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)gv_inv_detail).BeginInit(); + ((System.ComponentModel.ISupportInitialize)gv_rpt_invDay).BeginInit(); + panel1.SuspendLayout(); + tabPage2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)splitContainer2).BeginInit(); + splitContainer2.Panel1.SuspendLayout(); + splitContainer2.Panel2.SuspendLayout(); + splitContainer2.SuspendLayout(); + panel2.SuspendLayout(); + gbox.SuspendLayout(); + SuspendLayout(); // // tabControl1 // - this.tabControl1.Appearance = System.Windows.Forms.TabAppearance.Buttons; - this.tabControl1.Controls.Add(this.tabPage1); - this.tabControl1.Controls.Add(this.tabPage5); - this.tabControl1.Controls.Add(this.tabPage2); - this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.tabControl1.ItemSize = new System.Drawing.Size(80, 45); - this.tabControl1.Location = new System.Drawing.Point(0, 0); - this.tabControl1.Name = "tabControl1"; - this.tabControl1.SelectedIndex = 0; - this.tabControl1.Size = new System.Drawing.Size(1782, 953); - this.tabControl1.TabIndex = 0; + tabControl1.Appearance = System.Windows.Forms.TabAppearance.Buttons; + tabControl1.Controls.Add(tabPage1); + tabControl1.Controls.Add(tabPage5); + tabControl1.Controls.Add(tabPage2); + tabControl1.Dock = System.Windows.Forms.DockStyle.Fill; + tabControl1.ItemSize = new System.Drawing.Size(80, 45); + tabControl1.Location = new System.Drawing.Point(0, 0); + tabControl1.Name = "tabControl1"; + tabControl1.SelectedIndex = 0; + tabControl1.Size = new System.Drawing.Size(1782, 953); + tabControl1.TabIndex = 0; // // tabPage1 // - this.tabPage1.Controls.Add(this.splitContainer1); - this.tabPage1.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.tabPage1.Location = new System.Drawing.Point(4, 49); - this.tabPage1.Name = "tabPage1"; - this.tabPage1.Padding = new System.Windows.Forms.Padding(3); - this.tabPage1.Size = new System.Drawing.Size(1774, 900); - this.tabPage1.TabIndex = 0; - this.tabPage1.Text = " 歸檔 "; - this.tabPage1.UseVisualStyleBackColor = true; + tabPage1.Controls.Add(splitContainer1); + tabPage1.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + tabPage1.Location = new System.Drawing.Point(4, 49); + tabPage1.Name = "tabPage1"; + tabPage1.Padding = new System.Windows.Forms.Padding(3); + tabPage1.Size = new System.Drawing.Size(1774, 900); + tabPage1.TabIndex = 0; + tabPage1.Text = " 歸檔 "; + tabPage1.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.Dock = System.Windows.Forms.DockStyle.Fill; + splitContainer1.Location = new System.Drawing.Point(3, 3); + splitContainer1.Name = "splitContainer1"; // // splitContainer1.Panel1 // - this.splitContainer1.Panel1.BackColor = System.Drawing.SystemColors.ActiveCaption; - this.splitContainer1.Panel1.Controls.Add(this.button3); - this.splitContainer1.Panel1.Controls.Add(this.label2); - this.splitContainer1.Panel1.Controls.Add(this.textBox1); - this.splitContainer1.Panel1.Controls.Add(this.button2); - this.splitContainer1.Panel1.Controls.Add(this.bt_archive_One); - this.splitContainer1.Panel1.Controls.Add(this.bt_lackStation); - this.splitContainer1.Panel1.Controls.Add(this.bt_sensor_lackData); - this.splitContainer1.Panel1.Controls.Add(this.bt_updateInstantValue); - this.splitContainer1.Panel1.Controls.Add(this.bt_rpt_invDay); - this.splitContainer1.Panel1.Controls.Add(this.bt_meter); - this.splitContainer1.Panel1.Controls.Add(this.lbmsg); - this.splitContainer1.Panel1.Controls.Add(this.dtSelect2); - this.splitContainer1.Panel1.Controls.Add(this.bt_archive); - this.splitContainer1.Panel1.Controls.Add(this.bt_clear_sensor); - this.splitContainer1.Panel1.Controls.Add(this.bt_clear_station); - this.splitContainer1.Panel1.Controls.Add(this.bt_clear_inv); - this.splitContainer1.Panel1.Controls.Add(this.fp_site); - this.splitContainer1.Panel1.Controls.Add(this.dtSelect1); - this.splitContainer1.Panel1.Controls.Add(this.bt_site); - this.splitContainer1.Panel1.Controls.Add(this.bt_Inv); - this.splitContainer1.Panel1.Controls.Add(this.bt_Sensor); + splitContainer1.Panel1.BackColor = System.Drawing.SystemColors.ActiveCaption; + splitContainer1.Panel1.Controls.Add(button3); + splitContainer1.Panel1.Controls.Add(label2); + splitContainer1.Panel1.Controls.Add(textBox1); + splitContainer1.Panel1.Controls.Add(button2); + splitContainer1.Panel1.Controls.Add(bt_archive_One); + splitContainer1.Panel1.Controls.Add(bt_lackStation); + splitContainer1.Panel1.Controls.Add(bt_sensor_lackData); + splitContainer1.Panel1.Controls.Add(bt_updateInstantValue); + splitContainer1.Panel1.Controls.Add(bt_rpt_invDay); + splitContainer1.Panel1.Controls.Add(bt_meter); + splitContainer1.Panel1.Controls.Add(lbmsg); + splitContainer1.Panel1.Controls.Add(dtSelect2); + splitContainer1.Panel1.Controls.Add(bt_archive); + splitContainer1.Panel1.Controls.Add(bt_clear_sensor); + splitContainer1.Panel1.Controls.Add(bt_clear_station); + splitContainer1.Panel1.Controls.Add(bt_clear_inv); + splitContainer1.Panel1.Controls.Add(fp_site); + splitContainer1.Panel1.Controls.Add(dtSelect1); + splitContainer1.Panel1.Controls.Add(bt_site); + splitContainer1.Panel1.Controls.Add(bt_Inv); + splitContainer1.Panel1.Controls.Add(bt_Sensor); // // splitContainer1.Panel2 // - this.splitContainer1.Panel2.Controls.Add(this.gv_inv_detail); - this.splitContainer1.Panel2.Controls.Add(this.gv_rpt_invDay); - this.splitContainer1.Panel2.Controls.Add(this.panel1); - this.splitContainer1.Size = new System.Drawing.Size(1768, 894); - this.splitContainer1.SplitterDistance = 400; - this.splitContainer1.SplitterWidth = 10; - this.splitContainer1.TabIndex = 0; + splitContainer1.Panel2.Controls.Add(gv_inv_detail); + splitContainer1.Panel2.Controls.Add(gv_rpt_invDay); + splitContainer1.Panel2.Controls.Add(panel1); + splitContainer1.Size = new System.Drawing.Size(1768, 894); + splitContainer1.SplitterDistance = 400; + splitContainer1.SplitterWidth = 10; + splitContainer1.TabIndex = 0; // // button3 // - this.button3.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.button3.Location = new System.Drawing.Point(297, 686); - this.button3.Name = "button3"; - this.button3.Size = new System.Drawing.Size(94, 43); - this.button3.TabIndex = 20; - this.button3.Text = "每小時設備"; - this.button3.UseVisualStyleBackColor = true; - this.button3.Click += new System.EventHandler(this.button3_Click); + button3.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + button3.Location = new System.Drawing.Point(297, 686); + button3.Name = "button3"; + button3.Size = new System.Drawing.Size(94, 43); + button3.TabIndex = 20; + button3.Text = "每小時設備"; + button3.UseVisualStyleBackColor = true; + button3.Click += button3_Click; // // label2 // - this.label2.AutoSize = true; - this.label2.Location = new System.Drawing.Point(196, 539); - this.label2.Name = "label2"; - this.label2.Size = new System.Drawing.Size(42, 19); - this.label2.TabIndex = 19; - this.label2.Text = "小時:"; + label2.AutoSize = true; + label2.Location = new System.Drawing.Point(196, 539); + label2.Name = "label2"; + label2.Size = new System.Drawing.Size(42, 19); + label2.TabIndex = 19; + label2.Text = "小時:"; // // textBox1 // - this.textBox1.Location = new System.Drawing.Point(244, 536); - this.textBox1.Name = "textBox1"; - this.textBox1.Size = new System.Drawing.Size(125, 27); - this.textBox1.TabIndex = 18; + textBox1.Location = new System.Drawing.Point(244, 536); + textBox1.Name = "textBox1"; + textBox1.Size = new System.Drawing.Size(125, 27); + textBox1.TabIndex = 18; // // button2 // - this.button2.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.button2.Location = new System.Drawing.Point(170, 576); - this.button2.Name = "button2"; - this.button2.Size = new System.Drawing.Size(227, 44); - this.button2.TabIndex = 17; - this.button2.Text = "測試當下 irrdayHour"; - this.button2.UseVisualStyleBackColor = true; - this.button2.Click += new System.EventHandler(this.button2_Click); + button2.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + button2.Location = new System.Drawing.Point(170, 576); + button2.Name = "button2"; + button2.Size = new System.Drawing.Size(227, 44); + button2.TabIndex = 17; + button2.Text = "測試當下 irrdayHour"; + button2.UseVisualStyleBackColor = true; + button2.Click += button2_Click; // // bt_archive_One // - this.bt_archive_One.Location = new System.Drawing.Point(10, 850); - this.bt_archive_One.Name = "bt_archive_One"; - this.bt_archive_One.Size = new System.Drawing.Size(166, 57); - this.bt_archive_One.TabIndex = 16; - this.bt_archive_One.Text = "時間區間/單電站"; - this.bt_archive_One.UseVisualStyleBackColor = true; - this.bt_archive_One.Click += new System.EventHandler(this.bt_archive_One_Click); + bt_archive_One.Location = new System.Drawing.Point(10, 850); + bt_archive_One.Name = "bt_archive_One"; + bt_archive_One.Size = new System.Drawing.Size(166, 57); + bt_archive_One.TabIndex = 16; + bt_archive_One.Text = "時間區間/單電站"; + bt_archive_One.UseVisualStyleBackColor = true; + bt_archive_One.Click += bt_archive_One_Click; // // bt_lackStation // - this.bt_lackStation.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.bt_lackStation.Location = new System.Drawing.Point(300, 735); - this.bt_lackStation.Name = "bt_lackStation"; - this.bt_lackStation.Size = new System.Drawing.Size(107, 44); - this.bt_lackStation.TabIndex = 15; - this.bt_lackStation.Text = "LackData"; - this.bt_lackStation.UseVisualStyleBackColor = true; - this.bt_lackStation.Visible = false; - this.bt_lackStation.Click += new System.EventHandler(this.bt_lackStation_Click); + bt_lackStation.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + bt_lackStation.Location = new System.Drawing.Point(300, 735); + bt_lackStation.Name = "bt_lackStation"; + bt_lackStation.Size = new System.Drawing.Size(107, 44); + bt_lackStation.TabIndex = 15; + bt_lackStation.Text = "LackData"; + bt_lackStation.UseVisualStyleBackColor = true; + bt_lackStation.Visible = false; + bt_lackStation.Click += bt_lackStation_Click; // // bt_sensor_lackData // - this.bt_sensor_lackData.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.bt_sensor_lackData.Location = new System.Drawing.Point(297, 635); - this.bt_sensor_lackData.Name = "bt_sensor_lackData"; - this.bt_sensor_lackData.Size = new System.Drawing.Size(107, 44); - this.bt_sensor_lackData.TabIndex = 14; - this.bt_sensor_lackData.Text = "全電站"; - this.bt_sensor_lackData.UseVisualStyleBackColor = true; - this.bt_sensor_lackData.Click += new System.EventHandler(this.bt_sensor_lackData_Click); + bt_sensor_lackData.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + bt_sensor_lackData.Location = new System.Drawing.Point(297, 635); + bt_sensor_lackData.Name = "bt_sensor_lackData"; + bt_sensor_lackData.Size = new System.Drawing.Size(107, 44); + bt_sensor_lackData.TabIndex = 14; + bt_sensor_lackData.Text = "全電站"; + bt_sensor_lackData.UseVisualStyleBackColor = true; + bt_sensor_lackData.Click += bt_sensor_lackData_Click; // // bt_updateInstantValue // - this.bt_updateInstantValue.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.bt_updateInstantValue.Location = new System.Drawing.Point(156, 790); - this.bt_updateInstantValue.Name = "bt_updateInstantValue"; - this.bt_updateInstantValue.Size = new System.Drawing.Size(100, 44); - this.bt_updateInstantValue.TabIndex = 13; - this.bt_updateInstantValue.Text = "即時資料"; - this.bt_updateInstantValue.UseVisualStyleBackColor = true; - this.bt_updateInstantValue.Click += new System.EventHandler(this.bt_updateInstantValue_Click); + bt_updateInstantValue.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + bt_updateInstantValue.Location = new System.Drawing.Point(156, 790); + bt_updateInstantValue.Name = "bt_updateInstantValue"; + bt_updateInstantValue.Size = new System.Drawing.Size(100, 44); + bt_updateInstantValue.TabIndex = 13; + bt_updateInstantValue.Text = "即時資料"; + bt_updateInstantValue.UseVisualStyleBackColor = true; + bt_updateInstantValue.Click += bt_updateInstantValue_Click; // // bt_rpt_invDay // - this.bt_rpt_invDay.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.bt_rpt_invDay.Location = new System.Drawing.Point(262, 790); - this.bt_rpt_invDay.Name = "bt_rpt_invDay"; - this.bt_rpt_invDay.Size = new System.Drawing.Size(135, 44); - this.bt_rpt_invDay.TabIndex = 12; - this.bt_rpt_invDay.Text = "日報表"; - this.bt_rpt_invDay.UseVisualStyleBackColor = true; - this.bt_rpt_invDay.Click += new System.EventHandler(this.bt_rpt_invDay_Click); + bt_rpt_invDay.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + bt_rpt_invDay.Location = new System.Drawing.Point(262, 790); + bt_rpt_invDay.Name = "bt_rpt_invDay"; + bt_rpt_invDay.Size = new System.Drawing.Size(135, 44); + bt_rpt_invDay.TabIndex = 12; + bt_rpt_invDay.Text = "日報表"; + bt_rpt_invDay.UseVisualStyleBackColor = true; + bt_rpt_invDay.Click += bt_rpt_invDay_Click; // // bt_meter // - this.bt_meter.Location = new System.Drawing.Point(10, 786); - this.bt_meter.Margin = new System.Windows.Forms.Padding(4); - this.bt_meter.Name = "bt_meter"; - this.bt_meter.Size = new System.Drawing.Size(119, 56); - this.bt_meter.TabIndex = 11; - this.bt_meter.Text = "Meter歸檔"; - this.bt_meter.UseVisualStyleBackColor = true; - this.bt_meter.Click += new System.EventHandler(this.bt_meter_Click); + bt_meter.Location = new System.Drawing.Point(10, 786); + bt_meter.Margin = new System.Windows.Forms.Padding(4); + bt_meter.Name = "bt_meter"; + bt_meter.Size = new System.Drawing.Size(119, 56); + bt_meter.TabIndex = 11; + bt_meter.Text = "Meter歸檔"; + bt_meter.UseVisualStyleBackColor = true; + bt_meter.Click += bt_meter_Click; // // lbmsg // - this.lbmsg.AutoSize = true; - this.lbmsg.Location = new System.Drawing.Point(10, 569); - this.lbmsg.Name = "lbmsg"; - this.lbmsg.Size = new System.Drawing.Size(20, 19); - this.lbmsg.TabIndex = 10; - this.lbmsg.Text = "~"; + lbmsg.AutoSize = true; + lbmsg.Location = new System.Drawing.Point(10, 569); + lbmsg.Name = "lbmsg"; + lbmsg.Size = new System.Drawing.Size(20, 19); + lbmsg.TabIndex = 10; + lbmsg.Text = "~"; // // dtSelect2 // - this.dtSelect2.Location = new System.Drawing.Point(10, 593); - this.dtSelect2.Name = "dtSelect2"; - this.dtSelect2.Size = new System.Drawing.Size(145, 27); - this.dtSelect2.TabIndex = 9; + dtSelect2.Location = new System.Drawing.Point(10, 593); + dtSelect2.Name = "dtSelect2"; + dtSelect2.Size = new System.Drawing.Size(145, 27); + dtSelect2.TabIndex = 9; // // bt_archive // - this.bt_archive.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.bt_archive.Location = new System.Drawing.Point(208, 846); - this.bt_archive.Name = "bt_archive"; - this.bt_archive.Size = new System.Drawing.Size(189, 61); - this.bt_archive.TabIndex = 8; - this.bt_archive.Text = "時間區間/全電站"; - this.bt_archive.UseVisualStyleBackColor = true; - this.bt_archive.Click += new System.EventHandler(this.bt_archive_Click); + bt_archive.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + bt_archive.Location = new System.Drawing.Point(208, 846); + bt_archive.Name = "bt_archive"; + bt_archive.Size = new System.Drawing.Size(189, 61); + bt_archive.TabIndex = 8; + bt_archive.Text = "時間區間/全電站"; + bt_archive.UseVisualStyleBackColor = true; + bt_archive.Click += bt_archive_Click; // // bt_clear_sensor // - this.bt_clear_sensor.Enabled = false; - this.bt_clear_sensor.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.bt_clear_sensor.Location = new System.Drawing.Point(10, 635); - this.bt_clear_sensor.Name = "bt_clear_sensor"; - this.bt_clear_sensor.Size = new System.Drawing.Size(119, 44); - this.bt_clear_sensor.TabIndex = 7; - this.bt_clear_sensor.Text = "clear data"; - this.bt_clear_sensor.UseVisualStyleBackColor = true; - this.bt_clear_sensor.Click += new System.EventHandler(this.bt_clear_sensor_Click); + bt_clear_sensor.Enabled = false; + bt_clear_sensor.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + bt_clear_sensor.Location = new System.Drawing.Point(10, 635); + bt_clear_sensor.Name = "bt_clear_sensor"; + bt_clear_sensor.Size = new System.Drawing.Size(119, 44); + bt_clear_sensor.TabIndex = 7; + bt_clear_sensor.Text = "clear data"; + bt_clear_sensor.UseVisualStyleBackColor = true; + bt_clear_sensor.Click += bt_clear_sensor_Click; // // bt_clear_station // - this.bt_clear_station.Enabled = false; - this.bt_clear_station.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.bt_clear_station.Location = new System.Drawing.Point(10, 735); - this.bt_clear_station.Name = "bt_clear_station"; - this.bt_clear_station.Size = new System.Drawing.Size(119, 44); - this.bt_clear_station.TabIndex = 6; - this.bt_clear_station.Text = "clear data"; - this.bt_clear_station.UseVisualStyleBackColor = true; - this.bt_clear_station.Click += new System.EventHandler(this.bt_clear_station_Click); + bt_clear_station.Enabled = false; + bt_clear_station.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + bt_clear_station.Location = new System.Drawing.Point(10, 735); + bt_clear_station.Name = "bt_clear_station"; + bt_clear_station.Size = new System.Drawing.Size(119, 44); + bt_clear_station.TabIndex = 6; + bt_clear_station.Text = "clear data"; + bt_clear_station.UseVisualStyleBackColor = true; + bt_clear_station.Click += bt_clear_station_Click; // // bt_clear_inv // - this.bt_clear_inv.Enabled = false; - this.bt_clear_inv.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.bt_clear_inv.Location = new System.Drawing.Point(10, 686); - this.bt_clear_inv.Name = "bt_clear_inv"; - this.bt_clear_inv.Size = new System.Drawing.Size(119, 44); - this.bt_clear_inv.TabIndex = 5; - this.bt_clear_inv.Text = "clear data"; - this.bt_clear_inv.UseVisualStyleBackColor = true; - this.bt_clear_inv.Click += new System.EventHandler(this.bt_clear_inv_Click); + bt_clear_inv.Enabled = false; + bt_clear_inv.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + bt_clear_inv.Location = new System.Drawing.Point(10, 686); + bt_clear_inv.Name = "bt_clear_inv"; + bt_clear_inv.Size = new System.Drawing.Size(119, 44); + bt_clear_inv.TabIndex = 5; + bt_clear_inv.Text = "clear data"; + bt_clear_inv.UseVisualStyleBackColor = true; + bt_clear_inv.Click += bt_clear_inv_Click; // // fp_site // - this.fp_site.Dock = System.Windows.Forms.DockStyle.Top; - this.fp_site.Location = new System.Drawing.Point(0, 0); - this.fp_site.Name = "fp_site"; - this.fp_site.Size = new System.Drawing.Size(400, 530); - this.fp_site.TabIndex = 4; + fp_site.Dock = System.Windows.Forms.DockStyle.Top; + fp_site.Location = new System.Drawing.Point(0, 0); + fp_site.Name = "fp_site"; + fp_site.Size = new System.Drawing.Size(400, 530); + fp_site.TabIndex = 4; // // dtSelect1 // - this.dtSelect1.Location = new System.Drawing.Point(10, 536); - this.dtSelect1.Name = "dtSelect1"; - this.dtSelect1.Size = new System.Drawing.Size(145, 27); - this.dtSelect1.TabIndex = 3; - this.dtSelect1.ValueChanged += new System.EventHandler(this.dtSelect_ValueChanged); + dtSelect1.Location = new System.Drawing.Point(10, 536); + dtSelect1.Name = "dtSelect1"; + dtSelect1.Size = new System.Drawing.Size(145, 27); + dtSelect1.TabIndex = 3; + dtSelect1.ValueChanged += dtSelect_ValueChanged; // // bt_site // - this.bt_site.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.bt_site.Location = new System.Drawing.Point(159, 735); - this.bt_site.Name = "bt_site"; - this.bt_site.Size = new System.Drawing.Size(135, 44); - this.bt_site.TabIndex = 2; - this.bt_site.Text = "Site 歸檔"; - this.bt_site.UseVisualStyleBackColor = true; - this.bt_site.Click += new System.EventHandler(this.bt_site_Click); + bt_site.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + bt_site.Location = new System.Drawing.Point(159, 735); + bt_site.Name = "bt_site"; + bt_site.Size = new System.Drawing.Size(135, 44); + bt_site.TabIndex = 2; + bt_site.Text = "Site 歸檔"; + bt_site.UseVisualStyleBackColor = true; + bt_site.Click += bt_site_Click; // // bt_Inv // - this.bt_Inv.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.bt_Inv.Location = new System.Drawing.Point(156, 686); - this.bt_Inv.Name = "bt_Inv"; - this.bt_Inv.Size = new System.Drawing.Size(135, 44); - this.bt_Inv.TabIndex = 1; - this.bt_Inv.Text = "Inv 歸檔"; - this.bt_Inv.UseVisualStyleBackColor = true; - this.bt_Inv.Click += new System.EventHandler(this.bt_Inv_Click); + bt_Inv.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + bt_Inv.Location = new System.Drawing.Point(156, 686); + bt_Inv.Name = "bt_Inv"; + bt_Inv.Size = new System.Drawing.Size(135, 44); + bt_Inv.TabIndex = 1; + bt_Inv.Text = "Inv 歸檔"; + bt_Inv.UseVisualStyleBackColor = true; + bt_Inv.Click += bt_Inv_Click; // // bt_Sensor // - this.bt_Sensor.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.bt_Sensor.Location = new System.Drawing.Point(156, 635); - this.bt_Sensor.Name = "bt_Sensor"; - this.bt_Sensor.Size = new System.Drawing.Size(135, 44); - this.bt_Sensor.TabIndex = 0; - this.bt_Sensor.Text = "Sensor 歸檔"; - this.bt_Sensor.UseVisualStyleBackColor = true; - this.bt_Sensor.Click += new System.EventHandler(this.bt_Sensor_Click); + bt_Sensor.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + bt_Sensor.Location = new System.Drawing.Point(156, 635); + bt_Sensor.Name = "bt_Sensor"; + bt_Sensor.Size = new System.Drawing.Size(135, 44); + bt_Sensor.TabIndex = 0; + bt_Sensor.Text = "Sensor 歸檔"; + bt_Sensor.UseVisualStyleBackColor = true; + bt_Sensor.Click += bt_Sensor_Click; // // gv_inv_detail // - this.gv_inv_detail.AllowUserToAddRows = false; - this.gv_inv_detail.AllowUserToDeleteRows = false; - dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.gv_inv_detail.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; - this.gv_inv_detail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.gv_inv_detail.Dock = System.Windows.Forms.DockStyle.Fill; - this.gv_inv_detail.Location = new System.Drawing.Point(768, 75); - this.gv_inv_detail.Name = "gv_inv_detail"; - this.gv_inv_detail.ReadOnly = true; - this.gv_inv_detail.RowHeadersWidth = 51; - this.gv_inv_detail.RowTemplate.Height = 29; - this.gv_inv_detail.Size = new System.Drawing.Size(590, 819); - this.gv_inv_detail.TabIndex = 2; - this.gv_inv_detail.CellDoubleClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.gv_inv_detail_CellDoubleClick); + gv_inv_detail.AllowUserToAddRows = false; + gv_inv_detail.AllowUserToDeleteRows = false; + dataGridViewCellStyle1.BackColor = System.Drawing.Color.FromArgb(192, 255, 255); + gv_inv_detail.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + gv_inv_detail.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + gv_inv_detail.Dock = System.Windows.Forms.DockStyle.Fill; + gv_inv_detail.Location = new System.Drawing.Point(768, 75); + gv_inv_detail.Name = "gv_inv_detail"; + gv_inv_detail.ReadOnly = true; + gv_inv_detail.RowHeadersWidth = 51; + gv_inv_detail.RowTemplate.Height = 29; + gv_inv_detail.Size = new System.Drawing.Size(590, 819); + gv_inv_detail.TabIndex = 2; + gv_inv_detail.CellDoubleClick += gv_inv_detail_CellDoubleClick; // // gv_rpt_invDay // - this.gv_rpt_invDay.AllowUserToAddRows = false; - this.gv_rpt_invDay.AllowUserToDeleteRows = false; - dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.gv_rpt_invDay.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle2; - this.gv_rpt_invDay.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - this.gv_rpt_invDay.Dock = System.Windows.Forms.DockStyle.Left; - this.gv_rpt_invDay.Location = new System.Drawing.Point(0, 75); - this.gv_rpt_invDay.Name = "gv_rpt_invDay"; - this.gv_rpt_invDay.ReadOnly = true; - this.gv_rpt_invDay.RowHeadersWidth = 51; - this.gv_rpt_invDay.RowTemplate.Height = 29; - this.gv_rpt_invDay.Size = new System.Drawing.Size(768, 819); - this.gv_rpt_invDay.TabIndex = 1; - this.gv_rpt_invDay.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.gv_rpt_invDay_CellFormatting); - this.gv_rpt_invDay.CellMouseDoubleClick += new System.Windows.Forms.DataGridViewCellMouseEventHandler(this.gv_rpt_invDay_CellMouseDoubleClick); + gv_rpt_invDay.AllowUserToAddRows = false; + gv_rpt_invDay.AllowUserToDeleteRows = false; + dataGridViewCellStyle2.BackColor = System.Drawing.Color.FromArgb(192, 255, 255); + gv_rpt_invDay.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle2; + gv_rpt_invDay.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + gv_rpt_invDay.Dock = System.Windows.Forms.DockStyle.Left; + gv_rpt_invDay.Location = new System.Drawing.Point(0, 75); + gv_rpt_invDay.Name = "gv_rpt_invDay"; + gv_rpt_invDay.ReadOnly = true; + gv_rpt_invDay.RowHeadersWidth = 51; + gv_rpt_invDay.RowTemplate.Height = 29; + gv_rpt_invDay.Size = new System.Drawing.Size(768, 819); + gv_rpt_invDay.TabIndex = 1; + gv_rpt_invDay.CellFormatting += gv_rpt_invDay_CellFormatting; + gv_rpt_invDay.CellMouseDoubleClick += gv_rpt_invDay_CellMouseDoubleClick; // // panel1 // - this.panel1.BackColor = System.Drawing.SystemColors.GradientActiveCaption; - this.panel1.Controls.Add(this.btSyncErr); - this.panel1.Controls.Add(this.lbMsgStatus); - this.panel1.Controls.Add(this.lbMsgTitle); - this.panel1.Controls.Add(this.bt_invDay); - this.panel1.Controls.Add(this.btVerifyData); - this.panel1.Controls.Add(this.lbSiteDB_sensor); - this.panel1.Controls.Add(this.lbSiteID_sensor); - this.panel1.Controls.Add(this.lbSiteName_sensor); - this.panel1.Dock = System.Windows.Forms.DockStyle.Top; - this.panel1.Location = new System.Drawing.Point(0, 0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(1358, 75); - this.panel1.TabIndex = 0; + panel1.BackColor = System.Drawing.SystemColors.GradientActiveCaption; + panel1.Controls.Add(btSyncErr); + panel1.Controls.Add(lbMsgStatus); + panel1.Controls.Add(lbMsgTitle); + panel1.Controls.Add(bt_invDay); + panel1.Controls.Add(btVerifyData); + panel1.Controls.Add(lbSiteDB_sensor); + panel1.Controls.Add(lbSiteID_sensor); + panel1.Controls.Add(lbSiteName_sensor); + panel1.Dock = System.Windows.Forms.DockStyle.Top; + panel1.Location = new System.Drawing.Point(0, 0); + panel1.Name = "panel1"; + panel1.Size = new System.Drawing.Size(1358, 75); + panel1.TabIndex = 0; // // btSyncErr // - this.btSyncErr.Location = new System.Drawing.Point(1229, 8); - this.btSyncErr.Name = "btSyncErr"; - this.btSyncErr.Size = new System.Drawing.Size(124, 60); - this.btSyncErr.TabIndex = 17; - this.btSyncErr.Text = "同步異常資料"; - this.btSyncErr.UseVisualStyleBackColor = true; - this.btSyncErr.Click += new System.EventHandler(this.btSyncErr_Click); + btSyncErr.Location = new System.Drawing.Point(1229, 8); + btSyncErr.Name = "btSyncErr"; + btSyncErr.Size = new System.Drawing.Size(124, 60); + btSyncErr.TabIndex = 17; + btSyncErr.Text = "同步異常資料"; + btSyncErr.UseVisualStyleBackColor = true; + btSyncErr.Click += btSyncErr_Click; // // lbMsgStatus // - this.lbMsgStatus.AutoSize = true; - this.lbMsgStatus.Location = new System.Drawing.Point(520, 49); - this.lbMsgStatus.Name = "lbMsgStatus"; - this.lbMsgStatus.Size = new System.Drawing.Size(18, 19); - this.lbMsgStatus.TabIndex = 16; - this.lbMsgStatus.Text = "..."; + lbMsgStatus.AutoSize = true; + lbMsgStatus.Location = new System.Drawing.Point(520, 49); + lbMsgStatus.Name = "lbMsgStatus"; + lbMsgStatus.Size = new System.Drawing.Size(18, 19); + lbMsgStatus.TabIndex = 16; + lbMsgStatus.Text = "..."; // // lbMsgTitle // - this.lbMsgTitle.AutoSize = true; - this.lbMsgTitle.Location = new System.Drawing.Point(931, 20); - this.lbMsgTitle.Name = "lbMsgTitle"; - this.lbMsgTitle.Size = new System.Drawing.Size(51, 19); - this.lbMsgTitle.TabIndex = 15; - this.lbMsgTitle.Text = "label2"; + lbMsgTitle.AutoSize = true; + lbMsgTitle.Location = new System.Drawing.Point(931, 20); + lbMsgTitle.Name = "lbMsgTitle"; + lbMsgTitle.Size = new System.Drawing.Size(51, 19); + lbMsgTitle.TabIndex = 15; + lbMsgTitle.Text = "label2"; // // bt_invDay // - this.bt_invDay.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.bt_invDay.Location = new System.Drawing.Point(21, 8); - this.bt_invDay.Name = "bt_invDay"; - this.bt_invDay.Size = new System.Drawing.Size(159, 44); - this.bt_invDay.TabIndex = 14; - this.bt_invDay.Text = "Inv 檢核"; - this.bt_invDay.UseVisualStyleBackColor = true; - this.bt_invDay.Click += new System.EventHandler(this.bt_invDay_Click); + bt_invDay.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + bt_invDay.Location = new System.Drawing.Point(21, 8); + bt_invDay.Name = "bt_invDay"; + bt_invDay.Size = new System.Drawing.Size(159, 44); + bt_invDay.TabIndex = 14; + bt_invDay.Text = "Inv 檢核"; + bt_invDay.UseVisualStyleBackColor = true; + bt_invDay.Click += bt_invDay_Click; // // btVerifyData // - this.btVerifyData.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.btVerifyData.Location = new System.Drawing.Point(746, 8); - this.btVerifyData.Name = "btVerifyData"; - this.btVerifyData.Size = new System.Drawing.Size(158, 44); - this.btVerifyData.TabIndex = 12; - this.btVerifyData.Text = "各資料表明細"; - this.btVerifyData.UseVisualStyleBackColor = true; - this.btVerifyData.Visible = false; - this.btVerifyData.Click += new System.EventHandler(this.btVerifyData_Click); + btVerifyData.Font = new System.Drawing.Font("Microsoft JhengHei UI", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + btVerifyData.Location = new System.Drawing.Point(746, 8); + btVerifyData.Name = "btVerifyData"; + btVerifyData.Size = new System.Drawing.Size(158, 44); + btVerifyData.TabIndex = 12; + btVerifyData.Text = "各資料表明細"; + btVerifyData.UseVisualStyleBackColor = true; + btVerifyData.Visible = false; + btVerifyData.Click += btVerifyData_Click; // // 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(209, 20); - 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 = 11; - this.lbSiteDB_sensor.Text = "Site_DB"; - this.lbSiteDB_sensor.Click += new System.EventHandler(this.lbSiteDB_sensor_Click); + lbSiteDB_sensor.AutoSize = true; + lbSiteDB_sensor.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + lbSiteDB_sensor.Location = new System.Drawing.Point(209, 20); + lbSiteDB_sensor.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + lbSiteDB_sensor.Name = "lbSiteDB_sensor"; + lbSiteDB_sensor.Size = new System.Drawing.Size(79, 24); + lbSiteDB_sensor.TabIndex = 11; + lbSiteDB_sensor.Text = "Site_DB"; + lbSiteDB_sensor.Click += lbSiteDB_sensor_Click; // // 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(361, 20); - 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 = 10; - this.lbSiteID_sensor.Text = "Site_ID"; + lbSiteID_sensor.AutoSize = true; + lbSiteID_sensor.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + lbSiteID_sensor.Location = new System.Drawing.Point(361, 20); + lbSiteID_sensor.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + lbSiteID_sensor.Name = "lbSiteID_sensor"; + lbSiteID_sensor.Size = new System.Drawing.Size(72, 24); + lbSiteID_sensor.TabIndex = 10; + 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(520, 17); - 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 = 9; - this.lbSiteName_sensor.Text = "Site_Name"; + lbSiteName_sensor.AutoSize = true; + lbSiteName_sensor.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + lbSiteName_sensor.Location = new System.Drawing.Point(520, 17); + lbSiteName_sensor.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + lbSiteName_sensor.Name = "lbSiteName_sensor"; + lbSiteName_sensor.Size = new System.Drawing.Size(107, 24); + lbSiteName_sensor.TabIndex = 9; + lbSiteName_sensor.Text = "Site_Name"; // // tabPage5 // - this.tabPage5.Location = new System.Drawing.Point(4, 49); - this.tabPage5.Name = "tabPage5"; - this.tabPage5.Padding = new System.Windows.Forms.Padding(3); - this.tabPage5.Size = new System.Drawing.Size(1774, 900); - this.tabPage5.TabIndex = 4; - this.tabPage5.Text = "資料查詢"; - this.tabPage5.UseVisualStyleBackColor = true; + tabPage5.Location = new System.Drawing.Point(4, 49); + tabPage5.Name = "tabPage5"; + tabPage5.Padding = new System.Windows.Forms.Padding(3); + tabPage5.Size = new System.Drawing.Size(1774, 900); + tabPage5.TabIndex = 4; + tabPage5.Text = "資料查詢"; + tabPage5.UseVisualStyleBackColor = true; // // tabPage2 // - this.tabPage2.Controls.Add(this.splitContainer2); - this.tabPage2.Location = new System.Drawing.Point(4, 49); - this.tabPage2.Name = "tabPage2"; - this.tabPage2.Padding = new System.Windows.Forms.Padding(3); - this.tabPage2.Size = new System.Drawing.Size(1774, 900); - this.tabPage2.TabIndex = 1; - this.tabPage2.Text = "email 測試"; - this.tabPage2.UseVisualStyleBackColor = true; + tabPage2.Controls.Add(splitContainer2); + tabPage2.Location = new System.Drawing.Point(4, 49); + tabPage2.Name = "tabPage2"; + tabPage2.Padding = new System.Windows.Forms.Padding(3); + tabPage2.Size = new System.Drawing.Size(1774, 900); + tabPage2.TabIndex = 1; + tabPage2.Text = "email 測試"; + tabPage2.UseVisualStyleBackColor = true; // // splitContainer2 // - this.splitContainer2.Cursor = System.Windows.Forms.Cursors.VSplit; - this.splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer2.Location = new System.Drawing.Point(3, 3); - this.splitContainer2.Name = "splitContainer2"; + splitContainer2.Cursor = System.Windows.Forms.Cursors.VSplit; + splitContainer2.Dock = System.Windows.Forms.DockStyle.Fill; + splitContainer2.Location = new System.Drawing.Point(3, 3); + splitContainer2.Name = "splitContainer2"; // // splitContainer2.Panel1 // - this.splitContainer2.Panel1.BackColor = System.Drawing.Color.OldLace; - this.splitContainer2.Panel1.Controls.Add(this.bt_MoveRawData); - this.splitContainer2.Panel1.Cursor = System.Windows.Forms.Cursors.Default; + splitContainer2.Panel1.BackColor = System.Drawing.Color.OldLace; + splitContainer2.Panel1.Controls.Add(bt_MoveRawData); + splitContainer2.Panel1.Cursor = System.Windows.Forms.Cursors.Default; // // splitContainer2.Panel2 // - this.splitContainer2.Panel2.Controls.Add(this.richTextBox1); - this.splitContainer2.Panel2.Controls.Add(this.panel2); - this.splitContainer2.Size = new System.Drawing.Size(1768, 894); - this.splitContainer2.SplitterDistance = 299; - this.splitContainer2.SplitterWidth = 10; - this.splitContainer2.TabIndex = 1; + splitContainer2.Panel2.Controls.Add(richTextBox1); + splitContainer2.Panel2.Controls.Add(panel2); + splitContainer2.Size = new System.Drawing.Size(1768, 894); + splitContainer2.SplitterDistance = 299; + splitContainer2.SplitterWidth = 10; + splitContainer2.TabIndex = 1; // // bt_MoveRawData // - this.bt_MoveRawData.Location = new System.Drawing.Point(59, 425); - this.bt_MoveRawData.Name = "bt_MoveRawData"; - this.bt_MoveRawData.Size = new System.Drawing.Size(148, 65); - this.bt_MoveRawData.TabIndex = 18; - this.bt_MoveRawData.Text = "MoveRawData"; - this.bt_MoveRawData.UseVisualStyleBackColor = true; - this.bt_MoveRawData.Click += new System.EventHandler(this.bt_MoveRawData_Click); + bt_MoveRawData.Location = new System.Drawing.Point(59, 425); + bt_MoveRawData.Name = "bt_MoveRawData"; + bt_MoveRawData.Size = new System.Drawing.Size(148, 65); + bt_MoveRawData.TabIndex = 18; + bt_MoveRawData.Text = "MoveRawData"; + bt_MoveRawData.UseVisualStyleBackColor = true; + bt_MoveRawData.Click += bt_MoveRawData_Click; // // richTextBox1 // - this.richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill; - this.richTextBox1.Location = new System.Drawing.Point(0, 321); - this.richTextBox1.Name = "richTextBox1"; - this.richTextBox1.Size = new System.Drawing.Size(1459, 573); - this.richTextBox1.TabIndex = 1; - this.richTextBox1.Text = ""; + richTextBox1.Dock = System.Windows.Forms.DockStyle.Fill; + richTextBox1.Location = new System.Drawing.Point(0, 321); + richTextBox1.Name = "richTextBox1"; + richTextBox1.Size = new System.Drawing.Size(1459, 573); + richTextBox1.TabIndex = 1; + richTextBox1.Text = ""; // // panel2 // - this.panel2.BackColor = System.Drawing.Color.Moccasin; - this.panel2.Controls.Add(this.lbReceiver); - this.panel2.Controls.Add(this.tbReceiver); - this.panel2.Controls.Add(this.gbox); - this.panel2.Controls.Add(this.btSendMail); - this.panel2.Dock = System.Windows.Forms.DockStyle.Top; - this.panel2.Location = new System.Drawing.Point(0, 0); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(1459, 321); - this.panel2.TabIndex = 0; + panel2.BackColor = System.Drawing.Color.Moccasin; + panel2.Controls.Add(lbReceiver); + panel2.Controls.Add(tbReceiver); + panel2.Controls.Add(gbox); + panel2.Controls.Add(btSendMail); + panel2.Dock = System.Windows.Forms.DockStyle.Top; + panel2.Location = new System.Drawing.Point(0, 0); + panel2.Name = "panel2"; + panel2.Size = new System.Drawing.Size(1459, 321); + panel2.TabIndex = 0; // // lbReceiver // - this.lbReceiver.AutoSize = true; - this.lbReceiver.Location = new System.Drawing.Point(789, 51); - this.lbReceiver.Name = "lbReceiver"; - this.lbReceiver.Size = new System.Drawing.Size(54, 19); - this.lbReceiver.TabIndex = 16; - this.lbReceiver.Text = "收件人"; + lbReceiver.AutoSize = true; + lbReceiver.Location = new System.Drawing.Point(789, 51); + lbReceiver.Name = "lbReceiver"; + lbReceiver.Size = new System.Drawing.Size(54, 19); + lbReceiver.TabIndex = 16; + lbReceiver.Text = "收件人"; // // tbReceiver // - this.tbReceiver.Location = new System.Drawing.Point(789, 73); - this.tbReceiver.Name = "tbReceiver"; - this.tbReceiver.Size = new System.Drawing.Size(217, 27); - this.tbReceiver.TabIndex = 15; - this.tbReceiver.Text = "cesarliuc@gmail.com"; + tbReceiver.Location = new System.Drawing.Point(789, 73); + tbReceiver.Name = "tbReceiver"; + tbReceiver.Size = new System.Drawing.Size(217, 27); + tbReceiver.TabIndex = 15; + tbReceiver.Text = "cesarliuc@gmail.com"; // // gbox // - this.gbox.Controls.Add(this.lbContent); - this.gbox.Controls.Add(this.tbContent); - this.gbox.Controls.Add(this.lbTitle); - this.gbox.Controls.Add(this.tbTitle); - this.gbox.Controls.Add(this.rbNoSSL); - this.gbox.Controls.Add(this.rbSSL); - this.gbox.Controls.Add(this.lbPort); - this.gbox.Controls.Add(this.label1); - this.gbox.Controls.Add(this.tbPassword); - this.gbox.Controls.Add(this.lbUserName); - this.gbox.Controls.Add(this.tbUserName); - this.gbox.Location = new System.Drawing.Point(80, 30); - this.gbox.Name = "gbox"; - this.gbox.Size = new System.Drawing.Size(551, 246); - this.gbox.TabIndex = 7; - this.gbox.TabStop = false; - this.gbox.Text = "smtp.gmail.com"; + gbox.Controls.Add(lbContent); + gbox.Controls.Add(tbContent); + gbox.Controls.Add(lbTitle); + gbox.Controls.Add(tbTitle); + gbox.Controls.Add(rbNoSSL); + gbox.Controls.Add(rbSSL); + gbox.Controls.Add(lbPort); + gbox.Controls.Add(label1); + gbox.Controls.Add(tbPassword); + gbox.Controls.Add(lbUserName); + gbox.Controls.Add(tbUserName); + gbox.Location = new System.Drawing.Point(80, 30); + gbox.Name = "gbox"; + gbox.Size = new System.Drawing.Size(551, 246); + gbox.TabIndex = 7; + gbox.TabStop = false; + gbox.Text = "smtp.gmail.com"; // // lbContent // - this.lbContent.AutoSize = true; - this.lbContent.Location = new System.Drawing.Point(312, 112); - this.lbContent.Name = "lbContent"; - this.lbContent.Size = new System.Drawing.Size(64, 19); - this.lbContent.TabIndex = 16; - this.lbContent.Text = "Content"; + lbContent.AutoSize = true; + lbContent.Location = new System.Drawing.Point(312, 112); + lbContent.Name = "lbContent"; + lbContent.Size = new System.Drawing.Size(64, 19); + lbContent.TabIndex = 16; + lbContent.Text = "Content"; // // tbContent // - this.tbContent.Location = new System.Drawing.Point(312, 134); - this.tbContent.Name = "tbContent"; - this.tbContent.Size = new System.Drawing.Size(217, 27); - this.tbContent.TabIndex = 15; - this.tbContent.Text = "Context Text"; + tbContent.Location = new System.Drawing.Point(312, 134); + tbContent.Name = "tbContent"; + tbContent.Size = new System.Drawing.Size(217, 27); + tbContent.TabIndex = 15; + tbContent.Text = "Context Text"; // // lbTitle // - this.lbTitle.AutoSize = true; - this.lbTitle.Location = new System.Drawing.Point(312, 43); - this.lbTitle.Name = "lbTitle"; - this.lbTitle.Size = new System.Drawing.Size(38, 19); - this.lbTitle.TabIndex = 14; - this.lbTitle.Text = "Title"; + lbTitle.AutoSize = true; + lbTitle.Location = new System.Drawing.Point(312, 43); + lbTitle.Name = "lbTitle"; + lbTitle.Size = new System.Drawing.Size(38, 19); + lbTitle.TabIndex = 14; + lbTitle.Text = "Title"; // // tbTitle // - this.tbTitle.Location = new System.Drawing.Point(312, 65); - this.tbTitle.Name = "tbTitle"; - this.tbTitle.Size = new System.Drawing.Size(217, 27); - this.tbTitle.TabIndex = 13; - this.tbTitle.Text = "Title Test"; - this.tbTitle.TextChanged += new System.EventHandler(this.textBox1_TextChanged); + tbTitle.Location = new System.Drawing.Point(312, 65); + tbTitle.Name = "tbTitle"; + tbTitle.Size = new System.Drawing.Size(217, 27); + tbTitle.TabIndex = 13; + tbTitle.Text = "Title Test"; + tbTitle.TextChanged += textBox1_TextChanged; // // rbNoSSL // - this.rbNoSSL.AutoSize = true; - this.rbNoSSL.Location = new System.Drawing.Point(170, 209); - this.rbNoSSL.Name = "rbNoSSL"; - this.rbNoSSL.Size = new System.Drawing.Size(101, 23); - this.rbNoSSL.TabIndex = 12; - this.rbNoSSL.Text = "NoSSL-25"; - this.rbNoSSL.UseVisualStyleBackColor = true; + rbNoSSL.AutoSize = true; + rbNoSSL.Location = new System.Drawing.Point(170, 209); + rbNoSSL.Name = "rbNoSSL"; + rbNoSSL.Size = new System.Drawing.Size(101, 23); + rbNoSSL.TabIndex = 12; + rbNoSSL.Text = "NoSSL-25"; + rbNoSSL.UseVisualStyleBackColor = true; // // rbSSL // - this.rbSSL.AutoSize = true; - this.rbSSL.Checked = true; - this.rbSSL.Location = new System.Drawing.Point(22, 209); - this.rbSSL.Name = "rbSSL"; - this.rbSSL.Size = new System.Drawing.Size(89, 23); - this.rbSSL.TabIndex = 8; - this.rbSSL.TabStop = true; - this.rbSSL.Text = "SSL-587"; - this.rbSSL.UseVisualStyleBackColor = true; + rbSSL.AutoSize = true; + rbSSL.Checked = true; + rbSSL.Location = new System.Drawing.Point(22, 209); + rbSSL.Name = "rbSSL"; + rbSSL.Size = new System.Drawing.Size(89, 23); + rbSSL.TabIndex = 8; + rbSSL.TabStop = true; + rbSSL.Text = "SSL-587"; + rbSSL.UseVisualStyleBackColor = true; // // lbPort // - this.lbPort.AutoSize = true; - this.lbPort.Location = new System.Drawing.Point(18, 178); - this.lbPort.Name = "lbPort"; - this.lbPort.Size = new System.Drawing.Size(38, 19); - this.lbPort.TabIndex = 11; - this.lbPort.Text = "Port"; + lbPort.AutoSize = true; + lbPort.Location = new System.Drawing.Point(18, 178); + lbPort.Name = "lbPort"; + lbPort.Size = new System.Drawing.Size(38, 19); + lbPort.TabIndex = 11; + lbPort.Text = "Port"; // // label1 // - this.label1.AutoSize = true; - this.label1.Location = new System.Drawing.Point(18, 112); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(77, 19); - this.label1.TabIndex = 9; - this.label1.Text = "Password"; + label1.AutoSize = true; + label1.Location = new System.Drawing.Point(18, 112); + label1.Name = "label1"; + label1.Size = new System.Drawing.Size(77, 19); + label1.TabIndex = 9; + label1.Text = "Password"; // // tbPassword // - this.tbPassword.Location = new System.Drawing.Point(18, 134); - this.tbPassword.Name = "tbPassword"; - this.tbPassword.Size = new System.Drawing.Size(217, 27); - this.tbPassword.TabIndex = 8; - this.tbPassword.Text = "qwe2015qwe"; + tbPassword.Location = new System.Drawing.Point(18, 134); + tbPassword.Name = "tbPassword"; + tbPassword.Size = new System.Drawing.Size(217, 27); + tbPassword.TabIndex = 8; + tbPassword.Text = "qwe2015qwe"; // // lbUserName // - this.lbUserName.AutoSize = true; - this.lbUserName.Location = new System.Drawing.Point(18, 43); - this.lbUserName.Name = "lbUserName"; - this.lbUserName.Size = new System.Drawing.Size(83, 19); - this.lbUserName.TabIndex = 7; - this.lbUserName.Text = "UserName"; + lbUserName.AutoSize = true; + lbUserName.Location = new System.Drawing.Point(18, 43); + lbUserName.Name = "lbUserName"; + lbUserName.Size = new System.Drawing.Size(83, 19); + lbUserName.TabIndex = 7; + lbUserName.Text = "UserName"; // // tbUserName // - this.tbUserName.Location = new System.Drawing.Point(18, 65); - this.tbUserName.Name = "tbUserName"; - this.tbUserName.Size = new System.Drawing.Size(217, 27); - this.tbUserName.TabIndex = 6; - this.tbUserName.Text = "ficgreen01@gmail.com"; + tbUserName.Location = new System.Drawing.Point(18, 65); + tbUserName.Name = "tbUserName"; + tbUserName.Size = new System.Drawing.Size(217, 27); + tbUserName.TabIndex = 6; + tbUserName.Text = "ficgreen01@gmail.com"; // // btSendMail // - this.btSendMail.Location = new System.Drawing.Point(652, 52); - this.btSendMail.Name = "btSendMail"; - this.btSendMail.Size = new System.Drawing.Size(94, 29); - this.btSendMail.TabIndex = 6; - this.btSendMail.Text = "Send"; - this.btSendMail.UseVisualStyleBackColor = true; - this.btSendMail.Click += new System.EventHandler(this.btSendMail_Click); + btSendMail.Location = new System.Drawing.Point(652, 52); + btSendMail.Name = "btSendMail"; + btSendMail.Size = new System.Drawing.Size(94, 29); + btSendMail.TabIndex = 6; + btSendMail.Text = "Send"; + btSendMail.UseVisualStyleBackColor = true; + btSendMail.Click += btSendMail_Click; // // timer1 // - this.timer1.Interval = 10000; + timer1.Interval = 10000; // // fmArchive // - this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 19F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1782, 953); - this.Controls.Add(this.tabControl1); - this.Name = "fmArchive"; - this.Text = "fmArchive 08-05 拯救 Kevin"; - this.Load += new System.EventHandler(this.fmArchive_Load); - this.tabControl1.ResumeLayout(false); - this.tabPage1.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); - ((System.ComponentModel.ISupportInitialize)(this.gv_inv_detail)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.gv_rpt_invDay)).EndInit(); - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - this.tabPage2.ResumeLayout(false); - this.splitContainer2.Panel1.ResumeLayout(false); - this.splitContainer2.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer2)).EndInit(); - this.splitContainer2.ResumeLayout(false); - this.panel2.ResumeLayout(false); - this.panel2.PerformLayout(); - this.gbox.ResumeLayout(false); - this.gbox.PerformLayout(); - this.ResumeLayout(false); - + AutoScaleDimensions = new System.Drawing.SizeF(9F, 19F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + ClientSize = new System.Drawing.Size(1782, 953); + Controls.Add(tabControl1); + Name = "fmArchive"; + Text = "fmArchive 08-29"; + Load += fmArchive_Load; + tabControl1.ResumeLayout(false); + tabPage1.ResumeLayout(false); + splitContainer1.Panel1.ResumeLayout(false); + splitContainer1.Panel1.PerformLayout(); + splitContainer1.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)splitContainer1).EndInit(); + splitContainer1.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)gv_inv_detail).EndInit(); + ((System.ComponentModel.ISupportInitialize)gv_rpt_invDay).EndInit(); + panel1.ResumeLayout(false); + panel1.PerformLayout(); + tabPage2.ResumeLayout(false); + splitContainer2.Panel1.ResumeLayout(false); + splitContainer2.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)splitContainer2).EndInit(); + splitContainer2.ResumeLayout(false); + panel2.ResumeLayout(false); + panel2.PerformLayout(); + gbox.ResumeLayout(false); + gbox.PerformLayout(); + ResumeLayout(false); } #endregion diff --git a/solarApp/fmArchive.cs b/solarApp/fmArchive.cs index 427ec64..5c84ffc 100644 --- a/solarApp/fmArchive.cs +++ b/solarApp/fmArchive.cs @@ -64,7 +64,7 @@ namespace solarApp private void fmArchive_Load(object sender, EventArgs e) { - // MessageBox.Show(" loading "); + // MessageBox.Show(" loading "); #region 電站清單 int i = 0; var site_list = stationSvc.get_station_list(); @@ -194,7 +194,7 @@ namespace solarApp if (System.DateTime.Now.Day == 20 && System.DateTime.Now.Hour == 20 && DateTime.Now.Minute == 00 && (DateTime.Now.Second >= 0 && DateTime.Now.Second <= 20) && autoTask == false) - { + { autoTask = true; bt_MoveRawData.PerformClick(); autoTask = false; @@ -202,16 +202,16 @@ namespace solarApp //var site_list = stationSvc.get_station_list(); //archiveLowData archiveData = new archiveLowData(); - + //bt_MoveRawData_Click - + //foreach (var item in site_list) //{ // archiveData.archiveData(item.SiteID.Substring(0, 9)); // i++; //} - + lbMsgTitle.Text = System.DateTime.Now.ToString() + " 水位管理 - 資料搬移完成!"; } } @@ -220,7 +220,7 @@ namespace solarApp { RadioButton rb = sender as RadioButton; if (rb.Checked) - { + { lbSiteName_sensor.Text = rb.Text; lbSiteDB_sensor.Text = rb.Tag.ToString(); lbSiteID_sensor.Text = rb.Name; @@ -338,27 +338,37 @@ namespace solarApp private void bt_archive_Click(object sender, EventArgs e) { - var site_list = stationSvc.get_station_list(); - - string date1 = dtSelect1.Value.ToString("yyyy-MM-dd"); - string date2 = dtSelect2.Value.ToString("yyyy-MM-dd"); + var site_list = stationSvc.get_station_list32(false); // 不含 32 + //var site_list = stationSvc.get_station_list32(true); // 不含 32 + + string date1 = dtSelect1.Value.ToString("yyyy-MM-dd"); + string date2 = dtSelect2.Value.ToString("yyyy-MM-dd"); procSensorSvc sensorSvc = new procSensorSvc(); procInvSvc invSvc = new procInvSvc(); procStationSvc siteSvc = new procStationSvc(); + archiveRawData(site_list, date1, date2, sensorSvc, invSvc, siteSvc); + //單獨製作 32 + site_list = stationSvc.get_station_list32(true); // 不含 32 + archiveRawData(site_list, date1, date2, sensorSvc, invSvc, siteSvc); + lbMsgTitle.Text = System.DateTime.Now.ToString() + " 完成!"; + } + + private void archiveRawData(List site_list, string date1, string date2, procSensorSvc sensorSvc, procInvSvc invSvc, procStationSvc siteSvc) + { foreach (var item in site_list) { - //RadioButton rb = new RadioButton(); - //rb.Name = item.SiteID; - //rb.Text = item.SiteName; - //rb.Tag = item.SiteDB; - //foreach (DateTime day in EachDay(DateTime.Parse(date1), DateTime.Parse(date2))) - //{ - // sensorSvc.archiveData(item.SiteID.Substring(0, 9), day.ToString("yyyy-MM-dd")); - // invSvc.archiveData(item.SiteID.Substring(0, 9), day.ToString("yyyy-MM-dd")); - // siteSvc.archiveData(item.SiteID.Substring(0, 9), day.ToString("yyyy-MM-dd")); - //} + RadioButton rb = new RadioButton(); + rb.Name = item.SiteID; + rb.Text = item.SiteName; + rb.Tag = item.SiteDB; + foreach (DateTime day in EachDay(DateTime.Parse(date1), DateTime.Parse(date2))) + { + sensorSvc.archiveData(item.SiteID.Substring(0, 9), day.ToString("yyyy-MM-dd")); + invSvc.archiveData(item.SiteID.Substring(0, 9), day.ToString("yyyy-MM-dd")); + siteSvc.archiveData(item.SiteID.Substring(0, 9), day.ToString("yyyy-MM-dd")); + } } sensorSvc.isFirst = true; foreach (var item in site_list) @@ -371,8 +381,6 @@ namespace solarApp invSvc.report_invDay(item.SiteID.Substring(0, 9), day.ToString("yyyy-MM-dd")); } } - - lbMsgTitle.Text = System.DateTime.Now.ToString() + " 完成!"; } private void bt_clear_sensor_Click(object sender, EventArgs e) @@ -416,11 +424,11 @@ namespace solarApp private void bt_rpt_invDay_Click(object sender, EventArgs e) { string date1 = dtSelect1.Value.ToString("yyyy-MM-dd"); - string date2 = dtSelect2.Value.ToString("yyyy-MM-dd"); + string date2 = dtSelect2.Value.ToString("yyyy-MM-dd"); procInvSvc invSvc = new procInvSvc(); - + foreach (DateTime day in EachDay(DateTime.Parse(date1), DateTime.Parse(date2))) - { + { invSvc.report_invDay(lbSiteID_sensor.Text.Substring(0, 9), day.ToString("yyyy-MM-dd")); } @@ -433,9 +441,9 @@ namespace solarApp string date1 = dtSelect1.Value.ToString("yyyy-MM-dd"); string date2 = dtSelect2.Value.ToString("yyyy-MM-dd"); get_inv_svc invSvc = new get_inv_svc(); - var ds = invSvc.get_ck_invDay_list(date1, date2); + var ds = invSvc.get_ck_invDay_list(date1, date2); gv_rpt_invDay.DataSource = ds; - gv_rpt_invDay.Columns[0].Width = 60; + gv_rpt_invDay.Columns[0].Width = 60; gv_rpt_invDay.Columns[1].Width = 80; gv_rpt_invDay.Columns[2].Width = 100; gv_rpt_invDay.Columns[3].Width = 90; @@ -474,16 +482,17 @@ namespace solarApp string date2 = dtSelect2.Value.ToString("yyyy-MM-dd"); get_inv_svc invSvc = new get_inv_svc(); if (e.ColumnIndex != 8) - { + { var ds = invSvc.get_ck_invDay_detail1(powerStationID, date1, date2); gv_inv_detail.DataSource = ds; gv_inv_detail.Columns[0].Width = 60; gv_inv_detail.Columns[1].Width = 160; //invID gv_inv_detail.Columns[2].Width = 80; gv_inv_detail.Columns[3].Width = 90; - } else + } + else { // 日報 - var ds = invSvc.get_reportDay(powerStationID, date1, date2); + var ds = invSvc.get_reportDay(powerStationID, date1, date2); gv_inv_detail.DataSource = ds; gv_inv_detail.Columns[0].Width = 60; gv_inv_detail.Columns[1].Width = 80; //report_date @@ -492,7 +501,7 @@ namespace solarApp gv_inv_detail.Columns[4].Width = 70; gv_inv_detail.Columns[5].Width = 70; gv_inv_detail.Columns[6].Width = 70; - } + } } //switch (e.ColumnIndex) //{ @@ -506,7 +515,7 @@ namespace solarApp private void gv_inv_detail_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { - if (gv_inv_detail.Columns.Count == 5 || e.RowIndex == -1) return; + if (gv_inv_detail.Columns.Count == 5 || e.RowIndex == -1) return; string inverterID = gv_inv_detail.Rows[e.RowIndex].Cells[1].Value.ToString(); //MessageBox.Show(inverterID); @@ -522,7 +531,7 @@ namespace solarApp gv_inv_detail.Columns[3].Width = 100; gv_inv_detail.Columns[4].Width = 80; gv_inv_detail.Columns[5].Width = 80; - } + } private void bt_sensor_lackData_Click(object sender, EventArgs e) { @@ -577,7 +586,7 @@ namespace solarApp getStationSvc GetStation = new getStationSvc(); var ds = GetStation.get_lack_stationData(dtSelect1.Value.ToString("yyyy-MM-dd")); - procInvSvc invSvc = new procInvSvc(); + procInvSvc invSvc = new procInvSvc(); //foreach (DateTime day in EachDay(DateTime.Parse(date1), DateTime.Parse(date2))) foreach (var item in ds) { @@ -640,7 +649,7 @@ namespace solarApp if (result.CompareTo("成功") == 0) { MessageBox.Show("【SendEmailJob】 寄送成功! "); - } + } } private string Send(List recipientEmails, string subject, string content, List attachments) { @@ -678,7 +687,7 @@ namespace solarApp break; } } - + //讀取 SMTP Config if (CanDoSend) { @@ -721,7 +730,7 @@ namespace solarApp catch (Exception ex) { string json = System.Text.Json.JsonSerializer.Serialize(recipientEmails); - + //MessageBox.Show("【SendEmailJob】 " + "寄送信件失敗" + json + " Exception:" + ex.Message); return "失敗 - " + ex.Message; @@ -730,7 +739,7 @@ namespace solarApp else { return reason; - } + } } public class SMTPConfig { @@ -761,15 +770,16 @@ namespace solarApp if (result.CompareTo("成功") == 0) { // MessageBox.Show("【SendEmailJob】 寄送成功! "); - richTextBox1.AppendText(Environment.NewLine + System.DateTime.Now.ToString() + " " + result.ToString()); + richTextBox1.AppendText(Environment.NewLine + System.DateTime.Now.ToString() + " " + result.ToString()); } - else { + else + { richTextBox1.AppendText(Environment.NewLine + System.DateTime.Now.ToShortTimeString() + " " + result.ToString()); } } - + private void button2_Click(object sender, EventArgs e) { // string date1 = dtSelect1.Value.ToString("yyyy-MM-dd") + " "+System.DateTime.Now.AddHours(-2) + ":00:00"; @@ -778,9 +788,9 @@ namespace solarApp { date1 = dtSelect1.Value.ToString("yyyy-MM-dd ") + textBox1.Text + ":00:00"; } - + var site_list = stationSvc.get_station_list(); - + procSensorSvc procSensor = new procSensorSvc(); foreach (var item in site_list) { @@ -839,7 +849,7 @@ namespace solarApp } lbMsgTitle.Text = System.DateTime.Now.ToString() + " 水位管理 - 資料搬移完成!"; } - + //test for email format //private void button3_Click(object sender, EventArgs e) //{ diff --git a/solarApp/fmArchive.resx b/solarApp/fmArchive.resx index 85e6494..5e34ace 100644 --- a/solarApp/fmArchive.resx +++ b/solarApp/fmArchive.resx @@ -1,4 +1,64 @@ - + + + diff --git a/solarApp/fmMain.Designer.cs b/solarApp/fmMain.Designer.cs index 9200a31..a006212 100644 --- a/solarApp/fmMain.Designer.cs +++ b/solarApp/fmMain.Designer.cs @@ -87,358 +87,358 @@ namespace solarApp System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle56 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle57 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle58 = new System.Windows.Forms.DataGridViewCellStyle(); - this.tabControl1 = new System.Windows.Forms.TabControl(); - this.tb_inv = new System.Windows.Forms.TabPage(); - this.sp_main_inv = new System.Windows.Forms.SplitContainer(); - this.lbSiteDB_inv = new System.Windows.Forms.Label(); - this.lbSiteID_inv = new System.Windows.Forms.Label(); - this.lbSiteName_inv = new System.Windows.Forms.Label(); - this.lbMsg_inv = new System.Windows.Forms.Label(); - this.lbInverterID = new System.Windows.Forms.Label(); - this.fp_inv = new System.Windows.Forms.FlowLayoutPanel(); - this.label4 = new System.Windows.Forms.Label(); - this.bt_InvSearch = new System.Windows.Forms.Button(); - this.dtselect_inv = new System.Windows.Forms.DateTimePicker(); - this.sp_child_inv = new System.Windows.Forms.SplitContainer(); - this.gv_web_inv_month = new System.Windows.Forms.DataGridView(); - this.panel9 = new System.Windows.Forms.Panel(); - this.label16 = new System.Windows.Forms.Label(); - this.label17 = new System.Windows.Forms.Label(); - this.gv_web_inv_day = new System.Windows.Forms.DataGridView(); - this.panel8 = new System.Windows.Forms.Panel(); - this.label14 = new System.Windows.Forms.Label(); - this.label15 = new System.Windows.Forms.Label(); - this.gv_web_inv_hour = new System.Windows.Forms.DataGridView(); - this.panel1 = new System.Windows.Forms.Panel(); - this.btInv_15min = new System.Windows.Forms.Button(); - this.label3 = new System.Windows.Forms.Label(); - this.lb_inv_hour = new System.Windows.Forms.Label(); - this.gv_fic_inv_raw = new System.Windows.Forms.DataGridView(); - this.panel2 = new System.Windows.Forms.Panel(); - this.lbInvRaw = new System.Windows.Forms.Label(); - this.lb_raw_inv_hour = new System.Windows.Forms.Label(); - this.tb2 = new System.Windows.Forms.TabPage(); - this.sp_main_station = new System.Windows.Forms.SplitContainer(); - this.fp_site = new System.Windows.Forms.FlowLayoutPanel(); - this.lbMsg_station = new System.Windows.Forms.Label(); - this.bt_find_station = new System.Windows.Forms.Button(); - this.dtselect_station1 = new System.Windows.Forms.DateTimePicker(); - this.sp_child_station = new System.Windows.Forms.SplitContainer(); - this.gv_web_station_month = new System.Windows.Forms.DataGridView(); - this.panel10 = new System.Windows.Forms.Panel(); - this.label18 = new System.Windows.Forms.Label(); - this.label19 = new System.Windows.Forms.Label(); - this.gv_web_station_day = new System.Windows.Forms.DataGridView(); - this.panel7 = new System.Windows.Forms.Panel(); - this.label10 = new System.Windows.Forms.Label(); - this.label11 = new System.Windows.Forms.Label(); - this.gv_web_station_hour = new System.Windows.Forms.DataGridView(); - this.panel4 = new System.Windows.Forms.Panel(); - this.label5 = new System.Windows.Forms.Label(); - this.label6 = new System.Windows.Forms.Label(); - this.gv_fic_station_day = new System.Windows.Forms.DataGridView(); - this.panel5 = new System.Windows.Forms.Panel(); - this.label7 = new System.Windows.Forms.Label(); - this.gv_fic_station_raw = new System.Windows.Forms.DataGridView(); - 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.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.btSensor_switch = new System.Windows.Forms.Button(); - this.label30 = new System.Windows.Forms.Label(); - this.label31 = 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.tabPage1 = new System.Windows.Forms.TabPage(); - this.splitContainer3 = new System.Windows.Forms.SplitContainer(); - this.button1 = new System.Windows.Forms.Button(); - this.label13 = new System.Windows.Forms.Label(); - this.label12 = new System.Windows.Forms.Label(); - this.btLoadData = new System.Windows.Forms.Button(); - this.splitContainer4 = new System.Windows.Forms.SplitContainer(); - this.gv_all_data = new System.Windows.Forms.DataGridView(); - this.gv_notice_data = new System.Windows.Forms.DataGridView(); - this.tabControl1.SuspendLayout(); - this.tb_inv.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.sp_main_inv)).BeginInit(); - this.sp_main_inv.Panel1.SuspendLayout(); - this.sp_main_inv.Panel2.SuspendLayout(); - this.sp_main_inv.SuspendLayout(); - this.fp_inv.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.sp_child_inv)).BeginInit(); - this.sp_child_inv.Panel1.SuspendLayout(); - this.sp_child_inv.Panel2.SuspendLayout(); - this.sp_child_inv.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gv_web_inv_month)).BeginInit(); - this.panel9.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gv_web_inv_day)).BeginInit(); - this.panel8.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gv_web_inv_hour)).BeginInit(); - this.panel1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gv_fic_inv_raw)).BeginInit(); - this.panel2.SuspendLayout(); - this.tb2.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.sp_main_station)).BeginInit(); - this.sp_main_station.Panel1.SuspendLayout(); - this.sp_main_station.Panel2.SuspendLayout(); - this.sp_main_station.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.sp_child_station)).BeginInit(); - this.sp_child_station.Panel1.SuspendLayout(); - this.sp_child_station.Panel2.SuspendLayout(); - this.sp_child_station.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gv_web_station_month)).BeginInit(); - this.panel10.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gv_web_station_day)).BeginInit(); - this.panel7.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gv_web_station_hour)).BeginInit(); - this.panel4.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gv_fic_station_day)).BeginInit(); - 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_raw)).BeginInit(); - this.panel15.SuspendLayout(); - this.tabPage1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).BeginInit(); - this.splitContainer3.Panel1.SuspendLayout(); - this.splitContainer3.Panel2.SuspendLayout(); - this.splitContainer3.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).BeginInit(); - this.splitContainer4.Panel1.SuspendLayout(); - this.splitContainer4.Panel2.SuspendLayout(); - this.splitContainer4.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gv_all_data)).BeginInit(); - ((System.ComponentModel.ISupportInitialize)(this.gv_notice_data)).BeginInit(); - this.SuspendLayout(); + tabControl1 = new System.Windows.Forms.TabControl(); + tb_inv = new System.Windows.Forms.TabPage(); + sp_main_inv = new System.Windows.Forms.SplitContainer(); + lbSiteDB_inv = new System.Windows.Forms.Label(); + lbSiteID_inv = new System.Windows.Forms.Label(); + lbSiteName_inv = new System.Windows.Forms.Label(); + lbMsg_inv = new System.Windows.Forms.Label(); + lbInverterID = new System.Windows.Forms.Label(); + fp_inv = new System.Windows.Forms.FlowLayoutPanel(); + label4 = new System.Windows.Forms.Label(); + bt_InvSearch = new System.Windows.Forms.Button(); + dtselect_inv = new System.Windows.Forms.DateTimePicker(); + sp_child_inv = new System.Windows.Forms.SplitContainer(); + gv_web_inv_month = new System.Windows.Forms.DataGridView(); + panel9 = new System.Windows.Forms.Panel(); + label16 = new System.Windows.Forms.Label(); + label17 = new System.Windows.Forms.Label(); + gv_web_inv_day = new System.Windows.Forms.DataGridView(); + panel8 = new System.Windows.Forms.Panel(); + label14 = new System.Windows.Forms.Label(); + label15 = new System.Windows.Forms.Label(); + gv_web_inv_hour = new System.Windows.Forms.DataGridView(); + panel1 = new System.Windows.Forms.Panel(); + btInv_15min = new System.Windows.Forms.Button(); + label3 = new System.Windows.Forms.Label(); + lb_inv_hour = new System.Windows.Forms.Label(); + gv_fic_inv_raw = new System.Windows.Forms.DataGridView(); + panel2 = new System.Windows.Forms.Panel(); + lbInvRaw = new System.Windows.Forms.Label(); + lb_raw_inv_hour = new System.Windows.Forms.Label(); + tb2 = new System.Windows.Forms.TabPage(); + sp_main_station = new System.Windows.Forms.SplitContainer(); + fp_site = new System.Windows.Forms.FlowLayoutPanel(); + lbMsg_station = new System.Windows.Forms.Label(); + bt_find_station = new System.Windows.Forms.Button(); + dtselect_station1 = new System.Windows.Forms.DateTimePicker(); + sp_child_station = new System.Windows.Forms.SplitContainer(); + gv_web_station_month = new System.Windows.Forms.DataGridView(); + panel10 = new System.Windows.Forms.Panel(); + label18 = new System.Windows.Forms.Label(); + label19 = new System.Windows.Forms.Label(); + gv_web_station_day = new System.Windows.Forms.DataGridView(); + panel7 = new System.Windows.Forms.Panel(); + label10 = new System.Windows.Forms.Label(); + label11 = new System.Windows.Forms.Label(); + gv_web_station_hour = new System.Windows.Forms.DataGridView(); + panel4 = new System.Windows.Forms.Panel(); + label5 = new System.Windows.Forms.Label(); + label6 = new System.Windows.Forms.Label(); + gv_fic_station_day = new System.Windows.Forms.DataGridView(); + panel5 = new System.Windows.Forms.Panel(); + label7 = new System.Windows.Forms.Label(); + gv_fic_station_raw = new System.Windows.Forms.DataGridView(); + panel6 = new System.Windows.Forms.Panel(); + lbSiteRaw = new System.Windows.Forms.Label(); + label9 = new System.Windows.Forms.Label(); + tbSensor = new System.Windows.Forms.TabPage(); + splitContainer1 = new System.Windows.Forms.SplitContainer(); + lbSiteDB_sensor = new System.Windows.Forms.Label(); + lbSiteID_sensor = new System.Windows.Forms.Label(); + lbSiteName_sensor = new System.Windows.Forms.Label(); + lbMsg_sensor = new System.Windows.Forms.Label(); + label24 = new System.Windows.Forms.Label(); + flowLayoutPanel1 = new System.Windows.Forms.FlowLayoutPanel(); + label25 = new System.Windows.Forms.Label(); + btSearch_sensor = new System.Windows.Forms.Button(); + dtSelect_sensor1 = new System.Windows.Forms.DateTimePicker(); + splitContainer2 = new System.Windows.Forms.SplitContainer(); + gv_web_sensor_month = new System.Windows.Forms.DataGridView(); + panel11 = new System.Windows.Forms.Panel(); + label26 = new System.Windows.Forms.Label(); + label27 = new System.Windows.Forms.Label(); + gv_web_sensor_day = new System.Windows.Forms.DataGridView(); + panel12 = new System.Windows.Forms.Panel(); + label28 = new System.Windows.Forms.Label(); + label29 = new System.Windows.Forms.Label(); + gv_web_sensor_hour = new System.Windows.Forms.DataGridView(); + panel13 = new System.Windows.Forms.Panel(); + btSensor_switch = new System.Windows.Forms.Button(); + label30 = new System.Windows.Forms.Label(); + label31 = new System.Windows.Forms.Label(); + gv_fic_sensor_raw = new System.Windows.Forms.DataGridView(); + panel15 = new System.Windows.Forms.Panel(); + lbSensorRaw = new System.Windows.Forms.Label(); + label34 = new System.Windows.Forms.Label(); + tabPage1 = new System.Windows.Forms.TabPage(); + splitContainer3 = new System.Windows.Forms.SplitContainer(); + button1 = new System.Windows.Forms.Button(); + label13 = new System.Windows.Forms.Label(); + label12 = new System.Windows.Forms.Label(); + btLoadData = new System.Windows.Forms.Button(); + splitContainer4 = new System.Windows.Forms.SplitContainer(); + gv_all_data = new System.Windows.Forms.DataGridView(); + gv_notice_data = new System.Windows.Forms.DataGridView(); + tabControl1.SuspendLayout(); + tb_inv.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)sp_main_inv).BeginInit(); + sp_main_inv.Panel1.SuspendLayout(); + sp_main_inv.Panel2.SuspendLayout(); + sp_main_inv.SuspendLayout(); + fp_inv.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)sp_child_inv).BeginInit(); + sp_child_inv.Panel1.SuspendLayout(); + sp_child_inv.Panel2.SuspendLayout(); + sp_child_inv.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)gv_web_inv_month).BeginInit(); + panel9.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)gv_web_inv_day).BeginInit(); + panel8.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)gv_web_inv_hour).BeginInit(); + panel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)gv_fic_inv_raw).BeginInit(); + panel2.SuspendLayout(); + tb2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)sp_main_station).BeginInit(); + sp_main_station.Panel1.SuspendLayout(); + sp_main_station.Panel2.SuspendLayout(); + sp_main_station.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)sp_child_station).BeginInit(); + sp_child_station.Panel1.SuspendLayout(); + sp_child_station.Panel2.SuspendLayout(); + sp_child_station.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)gv_web_station_month).BeginInit(); + panel10.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)gv_web_station_day).BeginInit(); + panel7.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)gv_web_station_hour).BeginInit(); + panel4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)gv_fic_station_day).BeginInit(); + panel5.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)gv_fic_station_raw).BeginInit(); + panel6.SuspendLayout(); + tbSensor.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)splitContainer1).BeginInit(); + splitContainer1.Panel1.SuspendLayout(); + splitContainer1.Panel2.SuspendLayout(); + splitContainer1.SuspendLayout(); + flowLayoutPanel1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)splitContainer2).BeginInit(); + splitContainer2.Panel1.SuspendLayout(); + splitContainer2.Panel2.SuspendLayout(); + splitContainer2.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)gv_web_sensor_month).BeginInit(); + panel11.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)gv_web_sensor_day).BeginInit(); + panel12.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)gv_web_sensor_hour).BeginInit(); + panel13.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)gv_fic_sensor_raw).BeginInit(); + panel15.SuspendLayout(); + tabPage1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)splitContainer3).BeginInit(); + splitContainer3.Panel1.SuspendLayout(); + splitContainer3.Panel2.SuspendLayout(); + splitContainer3.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)splitContainer4).BeginInit(); + splitContainer4.Panel1.SuspendLayout(); + splitContainer4.Panel2.SuspendLayout(); + splitContainer4.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)gv_all_data).BeginInit(); + ((System.ComponentModel.ISupportInitialize)gv_notice_data).BeginInit(); + SuspendLayout(); // // tabControl1 // - this.tabControl1.Appearance = System.Windows.Forms.TabAppearance.Buttons; - this.tabControl1.Controls.Add(this.tb_inv); - this.tabControl1.Controls.Add(this.tb2); - this.tabControl1.Controls.Add(this.tbSensor); - this.tabControl1.Controls.Add(this.tabPage1); - this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill; - this.tabControl1.HotTrack = true; - this.tabControl1.ImeMode = System.Windows.Forms.ImeMode.NoControl; - this.tabControl1.ItemSize = new System.Drawing.Size(82, 40); - this.tabControl1.Location = new System.Drawing.Point(0, 0); - this.tabControl1.Multiline = true; - this.tabControl1.Name = "tabControl1"; - this.tabControl1.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.tabControl1.SelectedIndex = 0; - this.tabControl1.Size = new System.Drawing.Size(1743, 1055); - this.tabControl1.TabIndex = 0; + tabControl1.Appearance = System.Windows.Forms.TabAppearance.Buttons; + tabControl1.Controls.Add(tb_inv); + tabControl1.Controls.Add(tb2); + tabControl1.Controls.Add(tbSensor); + tabControl1.Controls.Add(tabPage1); + tabControl1.Dock = System.Windows.Forms.DockStyle.Fill; + tabControl1.HotTrack = true; + tabControl1.ImeMode = System.Windows.Forms.ImeMode.NoControl; + tabControl1.ItemSize = new System.Drawing.Size(82, 40); + tabControl1.Location = new System.Drawing.Point(0, 0); + tabControl1.Multiline = true; + tabControl1.Name = "tabControl1"; + tabControl1.RightToLeft = System.Windows.Forms.RightToLeft.No; + tabControl1.SelectedIndex = 0; + tabControl1.Size = new System.Drawing.Size(1743, 1055); + tabControl1.TabIndex = 0; // // tb_inv // - this.tb_inv.BackColor = System.Drawing.Color.Azure; - this.tb_inv.Controls.Add(this.sp_main_inv); - this.tb_inv.Location = new System.Drawing.Point(4, 44); - this.tb_inv.Margin = new System.Windows.Forms.Padding(10); - this.tb_inv.Name = "tb_inv"; - this.tb_inv.Padding = new System.Windows.Forms.Padding(10); - this.tb_inv.Size = new System.Drawing.Size(1735, 1007); - this.tb_inv.TabIndex = 0; - this.tb_inv.Text = " Inverter "; + tb_inv.BackColor = System.Drawing.Color.Azure; + tb_inv.Controls.Add(sp_main_inv); + tb_inv.Location = new System.Drawing.Point(4, 44); + tb_inv.Margin = new System.Windows.Forms.Padding(10); + tb_inv.Name = "tb_inv"; + tb_inv.Padding = new System.Windows.Forms.Padding(10); + tb_inv.Size = new System.Drawing.Size(1735, 1007); + tb_inv.TabIndex = 0; + tb_inv.Text = " Inverter "; // // sp_main_inv // - this.sp_main_inv.Dock = System.Windows.Forms.DockStyle.Fill; - this.sp_main_inv.Location = new System.Drawing.Point(10, 10); - this.sp_main_inv.Name = "sp_main_inv"; + sp_main_inv.Dock = System.Windows.Forms.DockStyle.Fill; + sp_main_inv.Location = new System.Drawing.Point(10, 10); + sp_main_inv.Name = "sp_main_inv"; // // sp_main_inv.Panel1 // - this.sp_main_inv.Panel1.BackColor = System.Drawing.Color.LightCyan; - this.sp_main_inv.Panel1.Controls.Add(this.lbSiteDB_inv); - this.sp_main_inv.Panel1.Controls.Add(this.lbSiteID_inv); - this.sp_main_inv.Panel1.Controls.Add(this.lbSiteName_inv); - this.sp_main_inv.Panel1.Controls.Add(this.lbMsg_inv); - this.sp_main_inv.Panel1.Controls.Add(this.lbInverterID); - this.sp_main_inv.Panel1.Controls.Add(this.fp_inv); - this.sp_main_inv.Panel1.Controls.Add(this.bt_InvSearch); - this.sp_main_inv.Panel1.Controls.Add(this.dtselect_inv); - this.sp_main_inv.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.No; + sp_main_inv.Panel1.BackColor = System.Drawing.Color.LightCyan; + sp_main_inv.Panel1.Controls.Add(lbSiteDB_inv); + sp_main_inv.Panel1.Controls.Add(lbSiteID_inv); + sp_main_inv.Panel1.Controls.Add(lbSiteName_inv); + sp_main_inv.Panel1.Controls.Add(lbMsg_inv); + sp_main_inv.Panel1.Controls.Add(lbInverterID); + sp_main_inv.Panel1.Controls.Add(fp_inv); + sp_main_inv.Panel1.Controls.Add(bt_InvSearch); + sp_main_inv.Panel1.Controls.Add(dtselect_inv); + sp_main_inv.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.No; // // sp_main_inv.Panel2 // - this.sp_main_inv.Panel2.Controls.Add(this.sp_child_inv); - this.sp_main_inv.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.sp_main_inv.Size = new System.Drawing.Size(1715, 987); - this.sp_main_inv.SplitterDistance = 348; - this.sp_main_inv.TabIndex = 0; + sp_main_inv.Panel2.Controls.Add(sp_child_inv); + sp_main_inv.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.No; + sp_main_inv.Size = new System.Drawing.Size(1715, 987); + sp_main_inv.SplitterDistance = 348; + sp_main_inv.TabIndex = 0; // // lbSiteDB_inv // - this.lbSiteDB_inv.AutoSize = true; - this.lbSiteDB_inv.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.lbSiteDB_inv.Location = new System.Drawing.Point(36, 100); - this.lbSiteDB_inv.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.lbSiteDB_inv.Name = "lbSiteDB_inv"; - this.lbSiteDB_inv.Size = new System.Drawing.Size(79, 24); - this.lbSiteDB_inv.TabIndex = 8; - this.lbSiteDB_inv.Text = "Site_DB"; + lbSiteDB_inv.AutoSize = true; + lbSiteDB_inv.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + lbSiteDB_inv.Location = new System.Drawing.Point(36, 100); + lbSiteDB_inv.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + lbSiteDB_inv.Name = "lbSiteDB_inv"; + lbSiteDB_inv.Size = new System.Drawing.Size(79, 24); + lbSiteDB_inv.TabIndex = 8; + lbSiteDB_inv.Text = "Site_DB"; // // lbSiteID_inv // - this.lbSiteID_inv.AutoSize = true; - this.lbSiteID_inv.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.lbSiteID_inv.Location = new System.Drawing.Point(36, 58); - this.lbSiteID_inv.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.lbSiteID_inv.Name = "lbSiteID_inv"; - this.lbSiteID_inv.Size = new System.Drawing.Size(72, 24); - this.lbSiteID_inv.TabIndex = 7; - this.lbSiteID_inv.Text = "Site_ID"; + lbSiteID_inv.AutoSize = true; + lbSiteID_inv.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + lbSiteID_inv.Location = new System.Drawing.Point(36, 58); + lbSiteID_inv.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + lbSiteID_inv.Name = "lbSiteID_inv"; + lbSiteID_inv.Size = new System.Drawing.Size(72, 24); + lbSiteID_inv.TabIndex = 7; + lbSiteID_inv.Text = "Site_ID"; // // lbSiteName_inv // - this.lbSiteName_inv.AutoSize = true; - this.lbSiteName_inv.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.lbSiteName_inv.Location = new System.Drawing.Point(36, 14); - this.lbSiteName_inv.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.lbSiteName_inv.Name = "lbSiteName_inv"; - this.lbSiteName_inv.Size = new System.Drawing.Size(107, 24); - this.lbSiteName_inv.TabIndex = 6; - this.lbSiteName_inv.Text = "Site_Name"; + lbSiteName_inv.AutoSize = true; + lbSiteName_inv.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + lbSiteName_inv.Location = new System.Drawing.Point(36, 14); + lbSiteName_inv.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + lbSiteName_inv.Name = "lbSiteName_inv"; + lbSiteName_inv.Size = new System.Drawing.Size(107, 24); + lbSiteName_inv.TabIndex = 6; + lbSiteName_inv.Text = "Site_Name"; // // lbMsg_inv // - this.lbMsg_inv.AutoSize = true; - this.lbMsg_inv.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.lbMsg_inv.Location = new System.Drawing.Point(155, 212); - this.lbMsg_inv.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.lbMsg_inv.Name = "lbMsg_inv"; - this.lbMsg_inv.Size = new System.Drawing.Size(22, 24); - this.lbMsg_inv.TabIndex = 5; - this.lbMsg_inv.Text = "..."; + lbMsg_inv.AutoSize = true; + lbMsg_inv.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + lbMsg_inv.Location = new System.Drawing.Point(155, 212); + lbMsg_inv.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + lbMsg_inv.Name = "lbMsg_inv"; + lbMsg_inv.Size = new System.Drawing.Size(22, 24); + lbMsg_inv.TabIndex = 5; + lbMsg_inv.Text = "..."; // // lbInverterID // - this.lbInverterID.AutoSize = true; - this.lbInverterID.Dock = System.Windows.Forms.DockStyle.Bottom; - this.lbInverterID.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.lbInverterID.Location = new System.Drawing.Point(0, 318); - this.lbInverterID.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.lbInverterID.Name = "lbInverterID"; - this.lbInverterID.Size = new System.Drawing.Size(142, 24); - this.lbInverterID.TabIndex = 3; - this.lbInverterID.Text = "請選擇 Inverter"; + lbInverterID.AutoSize = true; + lbInverterID.Dock = System.Windows.Forms.DockStyle.Bottom; + lbInverterID.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + lbInverterID.Location = new System.Drawing.Point(0, 318); + lbInverterID.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + lbInverterID.Name = "lbInverterID"; + lbInverterID.Size = new System.Drawing.Size(142, 24); + lbInverterID.TabIndex = 3; + lbInverterID.Text = "請選擇 Inverter"; // // fp_inv // - this.fp_inv.BackColor = System.Drawing.Color.Azure; - this.fp_inv.Controls.Add(this.label4); - this.fp_inv.Dock = System.Windows.Forms.DockStyle.Bottom; - this.fp_inv.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; - this.fp_inv.Location = new System.Drawing.Point(0, 342); - this.fp_inv.Margin = new System.Windows.Forms.Padding(4); - this.fp_inv.Name = "fp_inv"; - this.fp_inv.Size = new System.Drawing.Size(348, 645); - this.fp_inv.TabIndex = 2; + fp_inv.BackColor = System.Drawing.Color.Azure; + fp_inv.Controls.Add(label4); + fp_inv.Dock = System.Windows.Forms.DockStyle.Bottom; + fp_inv.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; + fp_inv.Location = new System.Drawing.Point(0, 342); + fp_inv.Margin = new System.Windows.Forms.Padding(4); + fp_inv.Name = "fp_inv"; + fp_inv.Size = new System.Drawing.Size(348, 645); + fp_inv.TabIndex = 2; // // label4 // - this.label4.AutoSize = true; - this.label4.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.label4.Location = new System.Drawing.Point(4, 0); - this.label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.label4.Name = "label4"; - this.label4.Size = new System.Drawing.Size(142, 24); - this.label4.TabIndex = 4; - this.label4.Text = "請選擇 Inverter"; + label4.AutoSize = true; + label4.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label4.Location = new System.Drawing.Point(4, 0); + label4.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label4.Name = "label4"; + label4.Size = new System.Drawing.Size(142, 24); + label4.TabIndex = 4; + label4.Text = "請選擇 Inverter"; // // bt_InvSearch // - this.bt_InvSearch.Location = new System.Drawing.Point(36, 209); - this.bt_InvSearch.Name = "bt_InvSearch"; - this.bt_InvSearch.Size = new System.Drawing.Size(94, 29); - this.bt_InvSearch.TabIndex = 1; - this.bt_InvSearch.Text = "查詢"; - this.bt_InvSearch.UseVisualStyleBackColor = true; - this.bt_InvSearch.Click += new System.EventHandler(this.button1_Click); + bt_InvSearch.Location = new System.Drawing.Point(36, 209); + bt_InvSearch.Name = "bt_InvSearch"; + bt_InvSearch.Size = new System.Drawing.Size(94, 29); + bt_InvSearch.TabIndex = 1; + bt_InvSearch.Text = "查詢"; + bt_InvSearch.UseVisualStyleBackColor = true; + bt_InvSearch.Click += button1_Click; // // dtselect_inv // - this.dtselect_inv.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.dtselect_inv.Location = new System.Drawing.Point(36, 160); - this.dtselect_inv.Name = "dtselect_inv"; - this.dtselect_inv.Size = new System.Drawing.Size(250, 31); - this.dtselect_inv.TabIndex = 0; - this.dtselect_inv.ValueChanged += new System.EventHandler(this.dtselect_ValueChanged); + dtselect_inv.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dtselect_inv.Location = new System.Drawing.Point(36, 160); + dtselect_inv.Name = "dtselect_inv"; + dtselect_inv.Size = new System.Drawing.Size(250, 31); + dtselect_inv.TabIndex = 0; + dtselect_inv.ValueChanged += dtselect_ValueChanged; // // sp_child_inv // - this.sp_child_inv.Dock = System.Windows.Forms.DockStyle.Fill; - this.sp_child_inv.Location = new System.Drawing.Point(0, 0); - this.sp_child_inv.Margin = new System.Windows.Forms.Padding(4); - this.sp_child_inv.Name = "sp_child_inv"; + sp_child_inv.Dock = System.Windows.Forms.DockStyle.Fill; + sp_child_inv.Location = new System.Drawing.Point(0, 0); + sp_child_inv.Margin = new System.Windows.Forms.Padding(4); + sp_child_inv.Name = "sp_child_inv"; // // sp_child_inv.Panel1 // - this.sp_child_inv.Panel1.Controls.Add(this.gv_web_inv_month); - this.sp_child_inv.Panel1.Controls.Add(this.panel9); - this.sp_child_inv.Panel1.Controls.Add(this.gv_web_inv_day); - this.sp_child_inv.Panel1.Controls.Add(this.panel8); - this.sp_child_inv.Panel1.Controls.Add(this.gv_web_inv_hour); - this.sp_child_inv.Panel1.Controls.Add(this.panel1); - this.sp_child_inv.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.No; + sp_child_inv.Panel1.Controls.Add(gv_web_inv_month); + sp_child_inv.Panel1.Controls.Add(panel9); + sp_child_inv.Panel1.Controls.Add(gv_web_inv_day); + sp_child_inv.Panel1.Controls.Add(panel8); + sp_child_inv.Panel1.Controls.Add(gv_web_inv_hour); + sp_child_inv.Panel1.Controls.Add(panel1); + sp_child_inv.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.No; // // sp_child_inv.Panel2 // - this.sp_child_inv.Panel2.Controls.Add(this.gv_fic_inv_raw); - this.sp_child_inv.Panel2.Controls.Add(this.panel2); - this.sp_child_inv.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.sp_child_inv.Size = new System.Drawing.Size(1363, 987); - this.sp_child_inv.SplitterDistance = 660; - this.sp_child_inv.SplitterWidth = 13; - this.sp_child_inv.TabIndex = 0; + sp_child_inv.Panel2.Controls.Add(gv_fic_inv_raw); + sp_child_inv.Panel2.Controls.Add(panel2); + sp_child_inv.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.No; + sp_child_inv.Size = new System.Drawing.Size(1363, 987); + sp_child_inv.SplitterDistance = 660; + sp_child_inv.SplitterWidth = 13; + sp_child_inv.TabIndex = 0; // // gv_web_inv_month // - this.gv_web_inv_month.AllowUserToAddRows = false; - this.gv_web_inv_month.AllowUserToDeleteRows = false; + gv_web_inv_month.AllowUserToAddRows = false; + gv_web_inv_month.AllowUserToDeleteRows = false; dataGridViewCellStyle1.BackColor = System.Drawing.Color.Azure; - this.gv_web_inv_month.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle1; + 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); @@ -446,8 +446,8 @@ namespace solarApp 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; + gv_web_inv_month.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle2; + 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); @@ -455,12 +455,12 @@ namespace solarApp 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, 891); - this.gv_web_inv_month.Margin = new System.Windows.Forms.Padding(4); - this.gv_web_inv_month.Name = "gv_web_inv_month"; - this.gv_web_inv_month.ReadOnly = true; + gv_web_inv_month.DefaultCellStyle = dataGridViewCellStyle3; + gv_web_inv_month.Dock = System.Windows.Forms.DockStyle.Fill; + gv_web_inv_month.Location = new System.Drawing.Point(0, 891); + gv_web_inv_month.Margin = new System.Windows.Forms.Padding(4); + gv_web_inv_month.Name = "gv_web_inv_month"; + gv_web_inv_month.ReadOnly = true; dataGridViewCellStyle4.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle4.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle4.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -468,51 +468,51 @@ namespace solarApp dataGridViewCellStyle4.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle4.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle4.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_inv_month.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; - this.gv_web_inv_month.RowHeadersWidth = 51; - this.gv_web_inv_month.RowTemplate.Height = 25; - this.gv_web_inv_month.Size = new System.Drawing.Size(660, 96); - this.gv_web_inv_month.TabIndex = 7; + gv_web_inv_month.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; + gv_web_inv_month.RowHeadersWidth = 51; + gv_web_inv_month.RowTemplate.Height = 25; + gv_web_inv_month.Size = new System.Drawing.Size(660, 96); + gv_web_inv_month.TabIndex = 7; // // panel9 // - this.panel9.Controls.Add(this.label16); - this.panel9.Controls.Add(this.label17); - this.panel9.Dock = System.Windows.Forms.DockStyle.Top; - this.panel9.Location = new System.Drawing.Point(0, 853); - this.panel9.Margin = new System.Windows.Forms.Padding(4); - this.panel9.Name = "panel9"; - this.panel9.Size = new System.Drawing.Size(660, 38); - this.panel9.TabIndex = 6; + panel9.Controls.Add(label16); + panel9.Controls.Add(label17); + panel9.Dock = System.Windows.Forms.DockStyle.Top; + panel9.Location = new System.Drawing.Point(0, 853); + panel9.Margin = new System.Windows.Forms.Padding(4); + panel9.Name = "panel9"; + panel9.Size = new System.Drawing.Size(660, 38); + panel9.TabIndex = 6; // // label16 // - this.label16.AutoSize = true; - this.label16.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.label16.Location = new System.Drawing.Point(230, 8); - this.label16.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.label16.Name = "label16"; - this.label16.Size = new System.Drawing.Size(339, 24); - this.label16.TabIndex = 1; - this.label16.Text = "solar_master.inverter_history_month"; + label16.AutoSize = true; + label16.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label16.Location = new System.Drawing.Point(230, 8); + label16.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label16.Name = "label16"; + label16.Size = new System.Drawing.Size(339, 24); + label16.TabIndex = 1; + label16.Text = "solar_master.inverter_history_month"; // // label17 // - this.label17.AutoSize = true; - this.label17.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.label17.Location = new System.Drawing.Point(35, 8); - this.label17.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.label17.Name = "label17"; - this.label17.Size = new System.Drawing.Size(127, 24); - this.label17.TabIndex = 0; - this.label17.Text = "web: inv 每月"; + label17.AutoSize = true; + label17.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label17.Location = new System.Drawing.Point(35, 8); + label17.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label17.Name = "label17"; + label17.Size = new System.Drawing.Size(127, 24); + label17.TabIndex = 0; + label17.Text = "web: inv 每月"; // // gv_web_inv_day // - this.gv_web_inv_day.AllowUserToAddRows = false; - this.gv_web_inv_day.AllowUserToDeleteRows = false; + gv_web_inv_day.AllowUserToAddRows = false; + gv_web_inv_day.AllowUserToDeleteRows = false; dataGridViewCellStyle5.BackColor = System.Drawing.Color.Azure; - this.gv_web_inv_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5; + gv_web_inv_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle5; dataGridViewCellStyle6.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle6.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle6.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -520,8 +520,8 @@ namespace solarApp dataGridViewCellStyle6.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle6.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle6.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_inv_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6; - this.gv_web_inv_day.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + gv_web_inv_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle6; + gv_web_inv_day.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridViewCellStyle7.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle7.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle7.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -529,12 +529,12 @@ namespace solarApp dataGridViewCellStyle7.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle7.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle7.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_web_inv_day.DefaultCellStyle = dataGridViewCellStyle7; - this.gv_web_inv_day.Dock = System.Windows.Forms.DockStyle.Top; - this.gv_web_inv_day.Location = new System.Drawing.Point(0, 583); - this.gv_web_inv_day.Margin = new System.Windows.Forms.Padding(4); - this.gv_web_inv_day.Name = "gv_web_inv_day"; - this.gv_web_inv_day.ReadOnly = true; + gv_web_inv_day.DefaultCellStyle = dataGridViewCellStyle7; + gv_web_inv_day.Dock = System.Windows.Forms.DockStyle.Top; + gv_web_inv_day.Location = new System.Drawing.Point(0, 583); + gv_web_inv_day.Margin = new System.Windows.Forms.Padding(4); + gv_web_inv_day.Name = "gv_web_inv_day"; + gv_web_inv_day.ReadOnly = true; dataGridViewCellStyle8.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle8.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle8.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -542,52 +542,52 @@ namespace solarApp dataGridViewCellStyle8.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle8.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle8.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_inv_day.RowHeadersDefaultCellStyle = dataGridViewCellStyle8; - this.gv_web_inv_day.RowHeadersWidth = 51; - this.gv_web_inv_day.RowTemplate.Height = 25; - this.gv_web_inv_day.Size = new System.Drawing.Size(660, 270); - this.gv_web_inv_day.TabIndex = 4; - this.gv_web_inv_day.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.gv_web_inv_day_CellFormatting); + gv_web_inv_day.RowHeadersDefaultCellStyle = dataGridViewCellStyle8; + gv_web_inv_day.RowHeadersWidth = 51; + gv_web_inv_day.RowTemplate.Height = 25; + gv_web_inv_day.Size = new System.Drawing.Size(660, 270); + gv_web_inv_day.TabIndex = 4; + gv_web_inv_day.CellFormatting += gv_web_inv_day_CellFormatting; // // panel8 // - this.panel8.Controls.Add(this.label14); - this.panel8.Controls.Add(this.label15); - this.panel8.Dock = System.Windows.Forms.DockStyle.Top; - this.panel8.Location = new System.Drawing.Point(0, 545); - this.panel8.Margin = new System.Windows.Forms.Padding(4); - this.panel8.Name = "panel8"; - this.panel8.Size = new System.Drawing.Size(660, 38); - this.panel8.TabIndex = 3; + panel8.Controls.Add(label14); + panel8.Controls.Add(label15); + panel8.Dock = System.Windows.Forms.DockStyle.Top; + panel8.Location = new System.Drawing.Point(0, 545); + panel8.Margin = new System.Windows.Forms.Padding(4); + panel8.Name = "panel8"; + panel8.Size = new System.Drawing.Size(660, 38); + panel8.TabIndex = 3; // // label14 // - this.label14.AutoSize = true; - this.label14.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.label14.Location = new System.Drawing.Point(230, 8); - this.label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.label14.Name = "label14"; - this.label14.Size = new System.Drawing.Size(310, 24); - this.label14.TabIndex = 1; - this.label14.Text = "solar_master.inverter_history_day"; + label14.AutoSize = true; + label14.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label14.Location = new System.Drawing.Point(230, 8); + label14.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label14.Name = "label14"; + label14.Size = new System.Drawing.Size(310, 24); + label14.TabIndex = 1; + label14.Text = "solar_master.inverter_history_day"; // // label15 // - this.label15.AutoSize = true; - this.label15.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.label15.Location = new System.Drawing.Point(35, 8); - this.label15.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.label15.Name = "label15"; - this.label15.Size = new System.Drawing.Size(127, 24); - this.label15.TabIndex = 0; - this.label15.Text = "web: inv 每天"; + label15.AutoSize = true; + label15.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label15.Location = new System.Drawing.Point(35, 8); + label15.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label15.Name = "label15"; + label15.Size = new System.Drawing.Size(127, 24); + label15.TabIndex = 0; + label15.Text = "web: inv 每天"; // // gv_web_inv_hour // - this.gv_web_inv_hour.AllowUserToAddRows = false; - this.gv_web_inv_hour.AllowUserToDeleteRows = false; + gv_web_inv_hour.AllowUserToAddRows = false; + gv_web_inv_hour.AllowUserToDeleteRows = false; dataGridViewCellStyle9.BackColor = System.Drawing.Color.Azure; - this.gv_web_inv_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9; + gv_web_inv_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle9; dataGridViewCellStyle10.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle10.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle10.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -595,8 +595,8 @@ namespace solarApp dataGridViewCellStyle10.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle10.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle10.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_inv_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10; - this.gv_web_inv_hour.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + gv_web_inv_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle10; + gv_web_inv_hour.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridViewCellStyle11.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle11.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle11.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -604,12 +604,12 @@ namespace solarApp dataGridViewCellStyle11.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle11.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle11.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_web_inv_hour.DefaultCellStyle = dataGridViewCellStyle11; - this.gv_web_inv_hour.Dock = System.Windows.Forms.DockStyle.Top; - this.gv_web_inv_hour.Location = new System.Drawing.Point(0, 38); - this.gv_web_inv_hour.Margin = new System.Windows.Forms.Padding(4); - this.gv_web_inv_hour.Name = "gv_web_inv_hour"; - this.gv_web_inv_hour.ReadOnly = true; + gv_web_inv_hour.DefaultCellStyle = dataGridViewCellStyle11; + gv_web_inv_hour.Dock = System.Windows.Forms.DockStyle.Top; + gv_web_inv_hour.Location = new System.Drawing.Point(0, 38); + gv_web_inv_hour.Margin = new System.Windows.Forms.Padding(4); + gv_web_inv_hour.Name = "gv_web_inv_hour"; + gv_web_inv_hour.ReadOnly = true; dataGridViewCellStyle12.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle12.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle12.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -617,61 +617,61 @@ namespace solarApp dataGridViewCellStyle12.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle12.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle12.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_inv_hour.RowHeadersDefaultCellStyle = dataGridViewCellStyle12; - this.gv_web_inv_hour.RowHeadersWidth = 51; - this.gv_web_inv_hour.RowTemplate.Height = 25; - this.gv_web_inv_hour.Size = new System.Drawing.Size(660, 507); - this.gv_web_inv_hour.TabIndex = 1; + gv_web_inv_hour.RowHeadersDefaultCellStyle = dataGridViewCellStyle12; + gv_web_inv_hour.RowHeadersWidth = 51; + gv_web_inv_hour.RowTemplate.Height = 25; + gv_web_inv_hour.Size = new System.Drawing.Size(660, 507); + gv_web_inv_hour.TabIndex = 1; // // panel1 // - this.panel1.Controls.Add(this.btInv_15min); - this.panel1.Controls.Add(this.label3); - this.panel1.Controls.Add(this.lb_inv_hour); - this.panel1.Dock = System.Windows.Forms.DockStyle.Top; - this.panel1.Location = new System.Drawing.Point(0, 0); - this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(660, 38); - this.panel1.TabIndex = 0; + panel1.Controls.Add(btInv_15min); + panel1.Controls.Add(label3); + panel1.Controls.Add(lb_inv_hour); + panel1.Dock = System.Windows.Forms.DockStyle.Top; + panel1.Location = new System.Drawing.Point(0, 0); + panel1.Name = "panel1"; + panel1.Size = new System.Drawing.Size(660, 38); + panel1.TabIndex = 0; // // btInv_15min // - this.btInv_15min.Location = new System.Drawing.Point(559, 4); - this.btInv_15min.Name = "btInv_15min"; - this.btInv_15min.Size = new System.Drawing.Size(94, 29); - this.btInv_15min.TabIndex = 2; - this.btInv_15min.Text = " 15 min"; - this.btInv_15min.UseVisualStyleBackColor = true; - this.btInv_15min.Click += new System.EventHandler(this.btInv_15min_Click); + btInv_15min.Location = new System.Drawing.Point(559, 4); + btInv_15min.Name = "btInv_15min"; + btInv_15min.Size = new System.Drawing.Size(94, 29); + btInv_15min.TabIndex = 2; + btInv_15min.Text = " 15 min"; + btInv_15min.UseVisualStyleBackColor = true; + btInv_15min.Click += btInv_15min_Click; // // label3 // - this.label3.AutoSize = true; - this.label3.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.label3.Location = new System.Drawing.Point(230, 8); - this.label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.label3.Name = "label3"; - this.label3.Size = new System.Drawing.Size(321, 24); - this.label3.TabIndex = 1; - this.label3.Text = "solar_master.inverter_history_hour"; + label3.AutoSize = true; + label3.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label3.Location = new System.Drawing.Point(230, 8); + label3.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label3.Name = "label3"; + label3.Size = new System.Drawing.Size(321, 24); + label3.TabIndex = 1; + label3.Text = "solar_master.inverter_history_hour"; // // lb_inv_hour // - this.lb_inv_hour.AutoSize = true; - this.lb_inv_hour.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.lb_inv_hour.Location = new System.Drawing.Point(35, 8); - this.lb_inv_hour.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.lb_inv_hour.Name = "lb_inv_hour"; - this.lb_inv_hour.Size = new System.Drawing.Size(151, 24); - this.lb_inv_hour.TabIndex = 0; - this.lb_inv_hour.Text = "web: inv 每小時 "; + lb_inv_hour.AutoSize = true; + lb_inv_hour.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + lb_inv_hour.Location = new System.Drawing.Point(35, 8); + lb_inv_hour.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + lb_inv_hour.Name = "lb_inv_hour"; + lb_inv_hour.Size = new System.Drawing.Size(151, 24); + lb_inv_hour.TabIndex = 0; + lb_inv_hour.Text = "web: inv 每小時 "; // // gv_fic_inv_raw // - this.gv_fic_inv_raw.AllowUserToAddRows = false; - this.gv_fic_inv_raw.AllowUserToDeleteRows = false; + gv_fic_inv_raw.AllowUserToAddRows = false; + gv_fic_inv_raw.AllowUserToDeleteRows = false; dataGridViewCellStyle13.BackColor = System.Drawing.Color.LightCyan; - this.gv_fic_inv_raw.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle13; + 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); @@ -679,8 +679,8 @@ namespace solarApp 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; + gv_fic_inv_raw.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14; + 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); @@ -688,12 +688,12 @@ namespace solarApp 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.Fill; - this.gv_fic_inv_raw.Location = new System.Drawing.Point(0, 38); - this.gv_fic_inv_raw.Margin = new System.Windows.Forms.Padding(4); - this.gv_fic_inv_raw.Name = "gv_fic_inv_raw"; - this.gv_fic_inv_raw.ReadOnly = true; + gv_fic_inv_raw.DefaultCellStyle = dataGridViewCellStyle15; + gv_fic_inv_raw.Dock = System.Windows.Forms.DockStyle.Fill; + gv_fic_inv_raw.Location = new System.Drawing.Point(0, 38); + gv_fic_inv_raw.Margin = new System.Windows.Forms.Padding(4); + gv_fic_inv_raw.Name = "gv_fic_inv_raw"; + gv_fic_inv_raw.ReadOnly = true; dataGridViewCellStyle16.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle16.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle16.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -701,154 +701,154 @@ namespace solarApp dataGridViewCellStyle16.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle16.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle16.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_fic_inv_raw.RowHeadersDefaultCellStyle = dataGridViewCellStyle16; - this.gv_fic_inv_raw.RowHeadersWidth = 51; - this.gv_fic_inv_raw.RowTemplate.Height = 25; - this.gv_fic_inv_raw.Size = new System.Drawing.Size(690, 949); - this.gv_fic_inv_raw.TabIndex = 2; + gv_fic_inv_raw.RowHeadersDefaultCellStyle = dataGridViewCellStyle16; + gv_fic_inv_raw.RowHeadersWidth = 51; + gv_fic_inv_raw.RowTemplate.Height = 25; + gv_fic_inv_raw.Size = new System.Drawing.Size(690, 949); + gv_fic_inv_raw.TabIndex = 2; // // panel2 // - this.panel2.Controls.Add(this.lbInvRaw); - this.panel2.Controls.Add(this.lb_raw_inv_hour); - this.panel2.Dock = System.Windows.Forms.DockStyle.Top; - this.panel2.Location = new System.Drawing.Point(0, 0); - this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(690, 38); - this.panel2.TabIndex = 1; + panel2.Controls.Add(lbInvRaw); + panel2.Controls.Add(lb_raw_inv_hour); + panel2.Dock = System.Windows.Forms.DockStyle.Top; + panel2.Location = new System.Drawing.Point(0, 0); + panel2.Name = "panel2"; + panel2.Size = new System.Drawing.Size(690, 38); + panel2.TabIndex = 1; // // lbInvRaw // - this.lbInvRaw.AutoSize = true; - this.lbInvRaw.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.lbInvRaw.Location = new System.Drawing.Point(255, 8); - this.lbInvRaw.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.lbInvRaw.Name = "lbInvRaw"; - this.lbInvRaw.Size = new System.Drawing.Size(315, 24); - this.lbInvRaw.TabIndex = 3; - this.lbInvRaw.Text = "solar_com0002.s02202000101_inv"; + lbInvRaw.AutoSize = true; + lbInvRaw.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + lbInvRaw.Location = new System.Drawing.Point(255, 8); + lbInvRaw.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + lbInvRaw.Name = "lbInvRaw"; + lbInvRaw.Size = new System.Drawing.Size(315, 24); + lbInvRaw.TabIndex = 3; + lbInvRaw.Text = "solar_com0002.s02202000101_inv"; // // lb_raw_inv_hour // - this.lb_raw_inv_hour.AutoSize = true; - this.lb_raw_inv_hour.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.lb_raw_inv_hour.Location = new System.Drawing.Point(15, 8); - this.lb_raw_inv_hour.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.lb_raw_inv_hour.Name = "lb_raw_inv_hour"; - this.lb_raw_inv_hour.Size = new System.Drawing.Size(155, 24); - this.lb_raw_inv_hour.TabIndex = 2; - this.lb_raw_inv_hour.Text = "FIC: inv 原始資料"; + lb_raw_inv_hour.AutoSize = true; + lb_raw_inv_hour.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + lb_raw_inv_hour.Location = new System.Drawing.Point(15, 8); + lb_raw_inv_hour.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + lb_raw_inv_hour.Name = "lb_raw_inv_hour"; + lb_raw_inv_hour.Size = new System.Drawing.Size(155, 24); + lb_raw_inv_hour.TabIndex = 2; + lb_raw_inv_hour.Text = "FIC: inv 原始資料"; // // tb2 // - this.tb2.Controls.Add(this.sp_main_station); - this.tb2.Location = new System.Drawing.Point(4, 44); - this.tb2.Name = "tb2"; - this.tb2.Padding = new System.Windows.Forms.Padding(3); - this.tb2.Size = new System.Drawing.Size(1735, 1007); - this.tb2.TabIndex = 1; - this.tb2.Text = " site "; - this.tb2.UseVisualStyleBackColor = true; + tb2.Controls.Add(sp_main_station); + tb2.Location = new System.Drawing.Point(4, 44); + tb2.Name = "tb2"; + tb2.Padding = new System.Windows.Forms.Padding(3); + tb2.Size = new System.Drawing.Size(1735, 1007); + tb2.TabIndex = 1; + tb2.Text = " site "; + tb2.UseVisualStyleBackColor = true; // // sp_main_station // - this.sp_main_station.BackColor = System.Drawing.SystemColors.ActiveCaption; - this.sp_main_station.Dock = System.Windows.Forms.DockStyle.Fill; - this.sp_main_station.Location = new System.Drawing.Point(3, 3); - this.sp_main_station.Name = "sp_main_station"; + sp_main_station.BackColor = System.Drawing.SystemColors.ActiveCaption; + sp_main_station.Dock = System.Windows.Forms.DockStyle.Fill; + sp_main_station.Location = new System.Drawing.Point(3, 3); + sp_main_station.Name = "sp_main_station"; // // sp_main_station.Panel1 // - this.sp_main_station.Panel1.Controls.Add(this.fp_site); - this.sp_main_station.Panel1.Controls.Add(this.lbMsg_station); - this.sp_main_station.Panel1.Controls.Add(this.bt_find_station); - this.sp_main_station.Panel1.Controls.Add(this.dtselect_station1); - this.sp_main_station.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.No; + sp_main_station.Panel1.Controls.Add(fp_site); + sp_main_station.Panel1.Controls.Add(lbMsg_station); + sp_main_station.Panel1.Controls.Add(bt_find_station); + sp_main_station.Panel1.Controls.Add(dtselect_station1); + sp_main_station.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.No; // // sp_main_station.Panel2 // - this.sp_main_station.Panel2.BackColor = System.Drawing.Color.OldLace; - this.sp_main_station.Panel2.Controls.Add(this.sp_child_station); - this.sp_main_station.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.sp_main_station.Size = new System.Drawing.Size(1729, 1001); - this.sp_main_station.SplitterDistance = 257; - this.sp_main_station.TabIndex = 0; + sp_main_station.Panel2.BackColor = System.Drawing.Color.OldLace; + sp_main_station.Panel2.Controls.Add(sp_child_station); + sp_main_station.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.No; + sp_main_station.Size = new System.Drawing.Size(1729, 1001); + sp_main_station.SplitterDistance = 257; + sp_main_station.TabIndex = 0; // // fp_site // - this.fp_site.BackColor = System.Drawing.Color.Azure; - this.fp_site.Dock = System.Windows.Forms.DockStyle.Top; - this.fp_site.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; - this.fp_site.Location = new System.Drawing.Point(0, 0); - this.fp_site.Margin = new System.Windows.Forms.Padding(4); - this.fp_site.Name = "fp_site"; - this.fp_site.Size = new System.Drawing.Size(257, 775); - this.fp_site.TabIndex = 14; + fp_site.BackColor = System.Drawing.Color.Azure; + fp_site.Dock = System.Windows.Forms.DockStyle.Top; + fp_site.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; + fp_site.Location = new System.Drawing.Point(0, 0); + fp_site.Margin = new System.Windows.Forms.Padding(4); + fp_site.Name = "fp_site"; + fp_site.Size = new System.Drawing.Size(257, 775); + fp_site.TabIndex = 14; // // lbMsg_station // - this.lbMsg_station.AutoSize = true; - this.lbMsg_station.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.lbMsg_station.Location = new System.Drawing.Point(23, 868); - this.lbMsg_station.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.lbMsg_station.Name = "lbMsg_station"; - this.lbMsg_station.Size = new System.Drawing.Size(22, 24); - this.lbMsg_station.TabIndex = 9; - this.lbMsg_station.Text = "..."; + lbMsg_station.AutoSize = true; + lbMsg_station.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + lbMsg_station.Location = new System.Drawing.Point(23, 868); + lbMsg_station.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + lbMsg_station.Name = "lbMsg_station"; + lbMsg_station.Size = new System.Drawing.Size(22, 24); + lbMsg_station.TabIndex = 9; + lbMsg_station.Text = "..."; // // bt_find_station // - this.bt_find_station.Location = new System.Drawing.Point(9, 830); - this.bt_find_station.Name = "bt_find_station"; - this.bt_find_station.Size = new System.Drawing.Size(94, 29); - this.bt_find_station.TabIndex = 7; - this.bt_find_station.Text = "查詢"; - this.bt_find_station.UseVisualStyleBackColor = true; - this.bt_find_station.Click += new System.EventHandler(this.bt_find_station_Click); + bt_find_station.Location = new System.Drawing.Point(9, 830); + bt_find_station.Name = "bt_find_station"; + bt_find_station.Size = new System.Drawing.Size(94, 29); + bt_find_station.TabIndex = 7; + bt_find_station.Text = "查詢"; + bt_find_station.UseVisualStyleBackColor = true; + bt_find_station.Click += bt_find_station_Click; // // dtselect_station1 // - this.dtselect_station1.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.dtselect_station1.Location = new System.Drawing.Point(5, 782); - this.dtselect_station1.Name = "dtselect_station1"; - this.dtselect_station1.Size = new System.Drawing.Size(234, 31); - this.dtselect_station1.TabIndex = 6; + dtselect_station1.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dtselect_station1.Location = new System.Drawing.Point(5, 782); + dtselect_station1.Name = "dtselect_station1"; + dtselect_station1.Size = new System.Drawing.Size(234, 31); + dtselect_station1.TabIndex = 6; // // sp_child_station // - this.sp_child_station.Dock = System.Windows.Forms.DockStyle.Fill; - this.sp_child_station.Location = new System.Drawing.Point(0, 0); - this.sp_child_station.Margin = new System.Windows.Forms.Padding(4); - this.sp_child_station.Name = "sp_child_station"; + sp_child_station.Dock = System.Windows.Forms.DockStyle.Fill; + sp_child_station.Location = new System.Drawing.Point(0, 0); + sp_child_station.Margin = new System.Windows.Forms.Padding(4); + sp_child_station.Name = "sp_child_station"; // // sp_child_station.Panel1 // - this.sp_child_station.Panel1.Controls.Add(this.gv_web_station_month); - this.sp_child_station.Panel1.Controls.Add(this.panel10); - this.sp_child_station.Panel1.Controls.Add(this.gv_web_station_day); - this.sp_child_station.Panel1.Controls.Add(this.panel7); - this.sp_child_station.Panel1.Controls.Add(this.gv_web_station_hour); - this.sp_child_station.Panel1.Controls.Add(this.panel4); - this.sp_child_station.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.No; + sp_child_station.Panel1.Controls.Add(gv_web_station_month); + sp_child_station.Panel1.Controls.Add(panel10); + sp_child_station.Panel1.Controls.Add(gv_web_station_day); + sp_child_station.Panel1.Controls.Add(panel7); + sp_child_station.Panel1.Controls.Add(gv_web_station_hour); + sp_child_station.Panel1.Controls.Add(panel4); + sp_child_station.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.No; // // sp_child_station.Panel2 // - this.sp_child_station.Panel2.Controls.Add(this.gv_fic_station_day); - this.sp_child_station.Panel2.Controls.Add(this.panel5); - this.sp_child_station.Panel2.Controls.Add(this.gv_fic_station_raw); - this.sp_child_station.Panel2.Controls.Add(this.panel6); - this.sp_child_station.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.sp_child_station.Size = new System.Drawing.Size(1468, 1001); - this.sp_child_station.SplitterDistance = 711; - this.sp_child_station.SplitterWidth = 13; - this.sp_child_station.TabIndex = 1; + sp_child_station.Panel2.Controls.Add(gv_fic_station_day); + sp_child_station.Panel2.Controls.Add(panel5); + sp_child_station.Panel2.Controls.Add(gv_fic_station_raw); + sp_child_station.Panel2.Controls.Add(panel6); + sp_child_station.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.No; + sp_child_station.Size = new System.Drawing.Size(1468, 1001); + sp_child_station.SplitterDistance = 711; + sp_child_station.SplitterWidth = 13; + sp_child_station.TabIndex = 1; // // gv_web_station_month // - this.gv_web_station_month.AllowUserToAddRows = false; - this.gv_web_station_month.AllowUserToDeleteRows = false; + gv_web_station_month.AllowUserToAddRows = false; + gv_web_station_month.AllowUserToDeleteRows = false; dataGridViewCellStyle17.BackColor = System.Drawing.Color.Azure; - this.gv_web_station_month.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle17; + gv_web_station_month.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle17; dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle18.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle18.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -856,8 +856,8 @@ namespace solarApp dataGridViewCellStyle18.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle18.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_station_month.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle18; - this.gv_web_station_month.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + gv_web_station_month.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle18; + gv_web_station_month.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle19.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle19.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -865,12 +865,12 @@ namespace solarApp dataGridViewCellStyle19.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle19.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle19.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_web_station_month.DefaultCellStyle = dataGridViewCellStyle19; - this.gv_web_station_month.Dock = System.Windows.Forms.DockStyle.Fill; - this.gv_web_station_month.Location = new System.Drawing.Point(0, 913); - this.gv_web_station_month.Margin = new System.Windows.Forms.Padding(4); - this.gv_web_station_month.Name = "gv_web_station_month"; - this.gv_web_station_month.ReadOnly = true; + gv_web_station_month.DefaultCellStyle = dataGridViewCellStyle19; + gv_web_station_month.Dock = System.Windows.Forms.DockStyle.Fill; + gv_web_station_month.Location = new System.Drawing.Point(0, 913); + gv_web_station_month.Margin = new System.Windows.Forms.Padding(4); + gv_web_station_month.Name = "gv_web_station_month"; + gv_web_station_month.ReadOnly = true; dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle20.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle20.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -878,51 +878,51 @@ namespace solarApp dataGridViewCellStyle20.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle20.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_station_month.RowHeadersDefaultCellStyle = dataGridViewCellStyle20; - this.gv_web_station_month.RowHeadersWidth = 51; - this.gv_web_station_month.RowTemplate.Height = 25; - this.gv_web_station_month.Size = new System.Drawing.Size(711, 88); - this.gv_web_station_month.TabIndex = 5; + gv_web_station_month.RowHeadersDefaultCellStyle = dataGridViewCellStyle20; + gv_web_station_month.RowHeadersWidth = 51; + gv_web_station_month.RowTemplate.Height = 25; + gv_web_station_month.Size = new System.Drawing.Size(711, 88); + gv_web_station_month.TabIndex = 5; // // panel10 // - this.panel10.Controls.Add(this.label18); - this.panel10.Controls.Add(this.label19); - this.panel10.Dock = System.Windows.Forms.DockStyle.Top; - this.panel10.Location = new System.Drawing.Point(0, 875); - this.panel10.Margin = new System.Windows.Forms.Padding(4); - this.panel10.Name = "panel10"; - this.panel10.Size = new System.Drawing.Size(711, 38); - this.panel10.TabIndex = 4; + panel10.Controls.Add(label18); + panel10.Controls.Add(label19); + panel10.Dock = System.Windows.Forms.DockStyle.Top; + panel10.Location = new System.Drawing.Point(0, 875); + panel10.Margin = new System.Windows.Forms.Padding(4); + panel10.Name = "panel10"; + panel10.Size = new System.Drawing.Size(711, 38); + panel10.TabIndex = 4; // // label18 // - this.label18.AutoSize = true; - this.label18.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.label18.Location = new System.Drawing.Point(230, 8); - this.label18.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.label18.Name = "label18"; - this.label18.Size = new System.Drawing.Size(397, 24); - this.label18.TabIndex = 1; - this.label18.Text = "solar_master.power_station_history_month"; + label18.AutoSize = true; + label18.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label18.Location = new System.Drawing.Point(230, 8); + label18.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label18.Name = "label18"; + label18.Size = new System.Drawing.Size(397, 24); + label18.TabIndex = 1; + label18.Text = "solar_master.power_station_history_month"; // // label19 // - this.label19.AutoSize = true; - this.label19.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.label19.Location = new System.Drawing.Point(35, 8); - this.label19.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.label19.Name = "label19"; - this.label19.Size = new System.Drawing.Size(162, 24); - this.label19.TabIndex = 0; - this.label19.Text = "web: station 每月"; + label19.AutoSize = true; + label19.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label19.Location = new System.Drawing.Point(35, 8); + label19.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label19.Name = "label19"; + label19.Size = new System.Drawing.Size(162, 24); + label19.TabIndex = 0; + label19.Text = "web: station 每月"; // // gv_web_station_day // - this.gv_web_station_day.AllowUserToAddRows = false; - this.gv_web_station_day.AllowUserToDeleteRows = false; + gv_web_station_day.AllowUserToAddRows = false; + gv_web_station_day.AllowUserToDeleteRows = false; dataGridViewCellStyle21.BackColor = System.Drawing.Color.Azure; - this.gv_web_station_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle21; + gv_web_station_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle21; dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle22.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle22.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -930,8 +930,8 @@ namespace solarApp dataGridViewCellStyle22.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle22.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle22.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_station_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle22; - this.gv_web_station_day.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + gv_web_station_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle22; + gv_web_station_day.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle23.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle23.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -939,12 +939,12 @@ namespace solarApp dataGridViewCellStyle23.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle23.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_web_station_day.DefaultCellStyle = dataGridViewCellStyle23; - this.gv_web_station_day.Dock = System.Windows.Forms.DockStyle.Top; - this.gv_web_station_day.Location = new System.Drawing.Point(0, 583); - this.gv_web_station_day.Margin = new System.Windows.Forms.Padding(4); - this.gv_web_station_day.Name = "gv_web_station_day"; - this.gv_web_station_day.ReadOnly = true; + gv_web_station_day.DefaultCellStyle = dataGridViewCellStyle23; + gv_web_station_day.Dock = System.Windows.Forms.DockStyle.Top; + gv_web_station_day.Location = new System.Drawing.Point(0, 583); + gv_web_station_day.Margin = new System.Windows.Forms.Padding(4); + gv_web_station_day.Name = "gv_web_station_day"; + gv_web_station_day.ReadOnly = true; dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle24.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle24.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -952,52 +952,52 @@ namespace solarApp dataGridViewCellStyle24.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle24.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle24.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_station_day.RowHeadersDefaultCellStyle = dataGridViewCellStyle24; - this.gv_web_station_day.RowHeadersWidth = 51; - this.gv_web_station_day.RowTemplate.Height = 25; - this.gv_web_station_day.Size = new System.Drawing.Size(711, 292); - this.gv_web_station_day.TabIndex = 3; - this.gv_web_station_day.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.gv_web_station_day_CellFormatting); + gv_web_station_day.RowHeadersDefaultCellStyle = dataGridViewCellStyle24; + gv_web_station_day.RowHeadersWidth = 51; + gv_web_station_day.RowTemplate.Height = 25; + gv_web_station_day.Size = new System.Drawing.Size(711, 292); + gv_web_station_day.TabIndex = 3; + gv_web_station_day.CellFormatting += gv_web_station_day_CellFormatting; // // panel7 // - this.panel7.Controls.Add(this.label10); - this.panel7.Controls.Add(this.label11); - this.panel7.Dock = System.Windows.Forms.DockStyle.Top; - this.panel7.Location = new System.Drawing.Point(0, 545); - this.panel7.Margin = new System.Windows.Forms.Padding(4); - this.panel7.Name = "panel7"; - this.panel7.Size = new System.Drawing.Size(711, 38); - this.panel7.TabIndex = 2; + panel7.Controls.Add(label10); + panel7.Controls.Add(label11); + panel7.Dock = System.Windows.Forms.DockStyle.Top; + panel7.Location = new System.Drawing.Point(0, 545); + panel7.Margin = new System.Windows.Forms.Padding(4); + panel7.Name = "panel7"; + panel7.Size = new System.Drawing.Size(711, 38); + panel7.TabIndex = 2; // // label10 // - this.label10.AutoSize = true; - this.label10.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.label10.Location = new System.Drawing.Point(230, 8); - this.label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.label10.Name = "label10"; - this.label10.Size = new System.Drawing.Size(368, 24); - this.label10.TabIndex = 1; - this.label10.Text = "solar_master.power_station_history_day"; + label10.AutoSize = true; + label10.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label10.Location = new System.Drawing.Point(230, 8); + label10.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label10.Name = "label10"; + label10.Size = new System.Drawing.Size(368, 24); + label10.TabIndex = 1; + label10.Text = "solar_master.power_station_history_day"; // // label11 // - this.label11.AutoSize = true; - this.label11.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.label11.Location = new System.Drawing.Point(35, 8); - this.label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.label11.Name = "label11"; - this.label11.Size = new System.Drawing.Size(162, 24); - this.label11.TabIndex = 0; - this.label11.Text = "web: station 每天"; + label11.AutoSize = true; + label11.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label11.Location = new System.Drawing.Point(35, 8); + label11.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label11.Name = "label11"; + label11.Size = new System.Drawing.Size(162, 24); + label11.TabIndex = 0; + label11.Text = "web: station 每天"; // // gv_web_station_hour // - this.gv_web_station_hour.AllowUserToAddRows = false; - this.gv_web_station_hour.AllowUserToDeleteRows = false; + gv_web_station_hour.AllowUserToAddRows = false; + gv_web_station_hour.AllowUserToDeleteRows = false; dataGridViewCellStyle25.BackColor = System.Drawing.Color.Azure; - this.gv_web_station_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle25; + gv_web_station_hour.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); @@ -1005,8 +1005,8 @@ namespace solarApp dataGridViewCellStyle26.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle26.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle26.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_station_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle26; - this.gv_web_station_hour.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + gv_web_station_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle26; + gv_web_station_hour.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); @@ -1014,12 +1014,12 @@ namespace solarApp dataGridViewCellStyle27.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle27.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle27.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_web_station_hour.DefaultCellStyle = dataGridViewCellStyle27; - this.gv_web_station_hour.Dock = System.Windows.Forms.DockStyle.Top; - this.gv_web_station_hour.Location = new System.Drawing.Point(0, 38); - this.gv_web_station_hour.Margin = new System.Windows.Forms.Padding(4); - this.gv_web_station_hour.Name = "gv_web_station_hour"; - this.gv_web_station_hour.ReadOnly = true; + gv_web_station_hour.DefaultCellStyle = dataGridViewCellStyle27; + gv_web_station_hour.Dock = System.Windows.Forms.DockStyle.Top; + gv_web_station_hour.Location = new System.Drawing.Point(0, 38); + gv_web_station_hour.Margin = new System.Windows.Forms.Padding(4); + gv_web_station_hour.Name = "gv_web_station_hour"; + gv_web_station_hour.ReadOnly = true; dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle28.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle28.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1027,51 +1027,51 @@ namespace solarApp dataGridViewCellStyle28.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle28.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle28.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_station_hour.RowHeadersDefaultCellStyle = dataGridViewCellStyle28; - this.gv_web_station_hour.RowHeadersWidth = 51; - this.gv_web_station_hour.RowTemplate.Height = 25; - this.gv_web_station_hour.Size = new System.Drawing.Size(711, 507); - this.gv_web_station_hour.TabIndex = 1; + gv_web_station_hour.RowHeadersDefaultCellStyle = dataGridViewCellStyle28; + gv_web_station_hour.RowHeadersWidth = 51; + gv_web_station_hour.RowTemplate.Height = 25; + gv_web_station_hour.Size = new System.Drawing.Size(711, 507); + gv_web_station_hour.TabIndex = 1; // // panel4 // - this.panel4.Controls.Add(this.label5); - this.panel4.Controls.Add(this.label6); - this.panel4.Dock = System.Windows.Forms.DockStyle.Top; - this.panel4.Location = new System.Drawing.Point(0, 0); - this.panel4.Margin = new System.Windows.Forms.Padding(4); - this.panel4.Name = "panel4"; - this.panel4.Size = new System.Drawing.Size(711, 38); - this.panel4.TabIndex = 0; + panel4.Controls.Add(label5); + panel4.Controls.Add(label6); + panel4.Dock = System.Windows.Forms.DockStyle.Top; + panel4.Location = new System.Drawing.Point(0, 0); + panel4.Margin = new System.Windows.Forms.Padding(4); + panel4.Name = "panel4"; + panel4.Size = new System.Drawing.Size(711, 38); + panel4.TabIndex = 0; // // label5 // - this.label5.AutoSize = true; - this.label5.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.label5.Location = new System.Drawing.Point(230, 8); - this.label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.label5.Name = "label5"; - this.label5.Size = new System.Drawing.Size(379, 24); - this.label5.TabIndex = 1; - this.label5.Text = "solar_master.power_station_history_hour"; + label5.AutoSize = true; + label5.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label5.Location = new System.Drawing.Point(230, 8); + label5.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label5.Name = "label5"; + label5.Size = new System.Drawing.Size(379, 24); + label5.TabIndex = 1; + label5.Text = "solar_master.power_station_history_hour"; // // label6 // - this.label6.AutoSize = true; - this.label6.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.label6.Location = new System.Drawing.Point(35, 8); - this.label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.label6.Name = "label6"; - this.label6.Size = new System.Drawing.Size(156, 24); - this.label6.TabIndex = 0; - this.label6.Text = "web: site 每小時 "; + label6.AutoSize = true; + label6.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label6.Location = new System.Drawing.Point(35, 8); + label6.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label6.Name = "label6"; + label6.Size = new System.Drawing.Size(156, 24); + label6.TabIndex = 0; + label6.Text = "web: site 每小時 "; // // gv_fic_station_day // - this.gv_fic_station_day.AllowUserToAddRows = false; - this.gv_fic_station_day.AllowUserToDeleteRows = false; + gv_fic_station_day.AllowUserToAddRows = false; + gv_fic_station_day.AllowUserToDeleteRows = false; dataGridViewCellStyle29.BackColor = System.Drawing.Color.LightCyan; - this.gv_fic_station_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle29; + gv_fic_station_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle29; dataGridViewCellStyle30.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle30.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle30.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1079,8 +1079,8 @@ namespace solarApp dataGridViewCellStyle30.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle30.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle30.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_fic_station_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle30; - this.gv_fic_station_day.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + gv_fic_station_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle30; + gv_fic_station_day.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridViewCellStyle31.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle31.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle31.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1088,12 +1088,12 @@ namespace solarApp dataGridViewCellStyle31.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle31.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle31.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_fic_station_day.DefaultCellStyle = dataGridViewCellStyle31; - this.gv_fic_station_day.Dock = System.Windows.Forms.DockStyle.Fill; - this.gv_fic_station_day.Location = new System.Drawing.Point(0, 583); - this.gv_fic_station_day.Margin = new System.Windows.Forms.Padding(4); - this.gv_fic_station_day.Name = "gv_fic_station_day"; - this.gv_fic_station_day.ReadOnly = true; + gv_fic_station_day.DefaultCellStyle = dataGridViewCellStyle31; + gv_fic_station_day.Dock = System.Windows.Forms.DockStyle.Fill; + gv_fic_station_day.Location = new System.Drawing.Point(0, 583); + gv_fic_station_day.Margin = new System.Windows.Forms.Padding(4); + gv_fic_station_day.Name = "gv_fic_station_day"; + gv_fic_station_day.ReadOnly = true; dataGridViewCellStyle32.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle32.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle32.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1101,40 +1101,40 @@ namespace solarApp dataGridViewCellStyle32.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle32.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle32.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_fic_station_day.RowHeadersDefaultCellStyle = dataGridViewCellStyle32; - this.gv_fic_station_day.RowHeadersWidth = 51; - this.gv_fic_station_day.RowTemplate.Height = 25; - this.gv_fic_station_day.Size = new System.Drawing.Size(744, 418); - this.gv_fic_station_day.TabIndex = 4; - this.gv_fic_station_day.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.gv_fic_station_day_CellFormatting); + gv_fic_station_day.RowHeadersDefaultCellStyle = dataGridViewCellStyle32; + gv_fic_station_day.RowHeadersWidth = 51; + gv_fic_station_day.RowTemplate.Height = 25; + gv_fic_station_day.Size = new System.Drawing.Size(744, 418); + gv_fic_station_day.TabIndex = 4; + gv_fic_station_day.CellFormatting += gv_fic_station_day_CellFormatting; // // panel5 // - this.panel5.Controls.Add(this.label7); - this.panel5.Dock = System.Windows.Forms.DockStyle.Top; - this.panel5.Location = new System.Drawing.Point(0, 545); - this.panel5.Margin = new System.Windows.Forms.Padding(4); - this.panel5.Name = "panel5"; - this.panel5.Size = new System.Drawing.Size(744, 38); - this.panel5.TabIndex = 3; + panel5.Controls.Add(label7); + panel5.Dock = System.Windows.Forms.DockStyle.Top; + panel5.Location = new System.Drawing.Point(0, 545); + panel5.Margin = new System.Windows.Forms.Padding(4); + panel5.Name = "panel5"; + panel5.Size = new System.Drawing.Size(744, 38); + panel5.TabIndex = 3; // // label7 // - this.label7.AutoSize = true; - this.label7.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.label7.Location = new System.Drawing.Point(15, 8); - this.label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.label7.Name = "label7"; - this.label7.Size = new System.Drawing.Size(152, 24); - this.label7.TabIndex = 2; - this.label7.Text = "FIC: station 每天"; + label7.AutoSize = true; + label7.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label7.Location = new System.Drawing.Point(15, 8); + label7.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label7.Name = "label7"; + label7.Size = new System.Drawing.Size(152, 24); + label7.TabIndex = 2; + label7.Text = "FIC: station 每天"; // // gv_fic_station_raw // - this.gv_fic_station_raw.AllowUserToAddRows = false; - this.gv_fic_station_raw.AllowUserToDeleteRows = false; + gv_fic_station_raw.AllowUserToAddRows = false; + gv_fic_station_raw.AllowUserToDeleteRows = false; dataGridViewCellStyle33.BackColor = System.Drawing.Color.LightCyan; - this.gv_fic_station_raw.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle33; + gv_fic_station_raw.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle33; dataGridViewCellStyle34.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle34.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle34.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1142,8 +1142,8 @@ namespace solarApp dataGridViewCellStyle34.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle34.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle34.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_fic_station_raw.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle34; - this.gv_fic_station_raw.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + gv_fic_station_raw.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle34; + gv_fic_station_raw.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridViewCellStyle35.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle35.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle35.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1151,12 +1151,12 @@ namespace solarApp dataGridViewCellStyle35.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle35.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle35.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_fic_station_raw.DefaultCellStyle = dataGridViewCellStyle35; - this.gv_fic_station_raw.Dock = System.Windows.Forms.DockStyle.Top; - this.gv_fic_station_raw.Location = new System.Drawing.Point(0, 38); - this.gv_fic_station_raw.Margin = new System.Windows.Forms.Padding(4); - this.gv_fic_station_raw.Name = "gv_fic_station_raw"; - this.gv_fic_station_raw.ReadOnly = true; + gv_fic_station_raw.DefaultCellStyle = dataGridViewCellStyle35; + gv_fic_station_raw.Dock = System.Windows.Forms.DockStyle.Top; + gv_fic_station_raw.Location = new System.Drawing.Point(0, 38); + gv_fic_station_raw.Margin = new System.Windows.Forms.Padding(4); + gv_fic_station_raw.Name = "gv_fic_station_raw"; + gv_fic_station_raw.ReadOnly = true; dataGridViewCellStyle36.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle36.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle36.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1164,213 +1164,213 @@ namespace solarApp dataGridViewCellStyle36.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle36.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle36.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_fic_station_raw.RowHeadersDefaultCellStyle = dataGridViewCellStyle36; - this.gv_fic_station_raw.RowHeadersWidth = 51; - this.gv_fic_station_raw.RowTemplate.Height = 25; - this.gv_fic_station_raw.Size = new System.Drawing.Size(744, 507); - this.gv_fic_station_raw.TabIndex = 2; + gv_fic_station_raw.RowHeadersDefaultCellStyle = dataGridViewCellStyle36; + gv_fic_station_raw.RowHeadersWidth = 51; + gv_fic_station_raw.RowTemplate.Height = 25; + gv_fic_station_raw.Size = new System.Drawing.Size(744, 507); + gv_fic_station_raw.TabIndex = 2; // // panel6 // - this.panel6.Controls.Add(this.lbSiteRaw); - this.panel6.Controls.Add(this.label9); - this.panel6.Dock = System.Windows.Forms.DockStyle.Top; - this.panel6.Location = new System.Drawing.Point(0, 0); - this.panel6.Margin = new System.Windows.Forms.Padding(4); - this.panel6.Name = "panel6"; - this.panel6.Size = new System.Drawing.Size(744, 38); - this.panel6.TabIndex = 1; + panel6.Controls.Add(lbSiteRaw); + panel6.Controls.Add(label9); + panel6.Dock = System.Windows.Forms.DockStyle.Top; + panel6.Location = new System.Drawing.Point(0, 0); + panel6.Margin = new System.Windows.Forms.Padding(4); + panel6.Name = "panel6"; + panel6.Size = new System.Drawing.Size(744, 38); + panel6.TabIndex = 1; // // lbSiteRaw // - this.lbSiteRaw.AutoSize = true; - this.lbSiteRaw.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.lbSiteRaw.Location = new System.Drawing.Point(268, 8); - this.lbSiteRaw.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.lbSiteRaw.Name = "lbSiteRaw"; - this.lbSiteRaw.Size = new System.Drawing.Size(350, 24); - this.lbSiteRaw.TabIndex = 3; - this.lbSiteRaw.Text = "solar_com0002.s02202000101_station"; + lbSiteRaw.AutoSize = true; + lbSiteRaw.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + lbSiteRaw.Location = new System.Drawing.Point(268, 8); + lbSiteRaw.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + lbSiteRaw.Name = "lbSiteRaw"; + lbSiteRaw.Size = new System.Drawing.Size(350, 24); + lbSiteRaw.TabIndex = 3; + lbSiteRaw.Text = "solar_com0002.s02202000101_station"; // // label9 // - this.label9.AutoSize = true; - this.label9.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.label9.Location = new System.Drawing.Point(15, 8); - this.label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.label9.Name = "label9"; - this.label9.Size = new System.Drawing.Size(245, 24); - this.label9.TabIndex = 2; - this.label9.Text = "FIC: station 原始資料(hour)"; + label9.AutoSize = true; + label9.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label9.Location = new System.Drawing.Point(15, 8); + label9.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label9.Name = "label9"; + label9.Size = new System.Drawing.Size(245, 24); + label9.TabIndex = 2; + label9.Text = "FIC: station 原始資料(hour)"; // // tbSensor // - this.tbSensor.Controls.Add(this.splitContainer1); - this.tbSensor.Location = new System.Drawing.Point(4, 44); - this.tbSensor.Name = "tbSensor"; - this.tbSensor.Padding = new System.Windows.Forms.Padding(3); - this.tbSensor.Size = new System.Drawing.Size(1735, 1007); - this.tbSensor.TabIndex = 2; - this.tbSensor.Text = "Sensor"; - this.tbSensor.UseVisualStyleBackColor = true; + tbSensor.Controls.Add(splitContainer1); + tbSensor.Location = new System.Drawing.Point(4, 44); + tbSensor.Name = "tbSensor"; + tbSensor.Padding = new System.Windows.Forms.Padding(3); + tbSensor.Size = new System.Drawing.Size(1735, 1007); + tbSensor.TabIndex = 2; + tbSensor.Text = "Sensor"; + 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.Dock = System.Windows.Forms.DockStyle.Fill; + splitContainer1.Location = new System.Drawing.Point(3, 3); + splitContainer1.Name = "splitContainer1"; // // splitContainer1.Panel1 // - this.splitContainer1.Panel1.BackColor = System.Drawing.Color.Khaki; - 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); - this.splitContainer1.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.No; + splitContainer1.Panel1.BackColor = System.Drawing.Color.Khaki; + splitContainer1.Panel1.Controls.Add(lbSiteDB_sensor); + splitContainer1.Panel1.Controls.Add(lbSiteID_sensor); + splitContainer1.Panel1.Controls.Add(lbSiteName_sensor); + splitContainer1.Panel1.Controls.Add(lbMsg_sensor); + splitContainer1.Panel1.Controls.Add(label24); + splitContainer1.Panel1.Controls.Add(flowLayoutPanel1); + splitContainer1.Panel1.Controls.Add(btSearch_sensor); + splitContainer1.Panel1.Controls.Add(dtSelect_sensor1); + splitContainer1.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.No; // // splitContainer1.Panel2 // - this.splitContainer1.Panel2.Controls.Add(this.splitContainer2); - this.splitContainer1.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.splitContainer1.Size = new System.Drawing.Size(1729, 1001); - this.splitContainer1.SplitterDistance = 351; - this.splitContainer1.TabIndex = 1; + splitContainer1.Panel2.Controls.Add(splitContainer2); + splitContainer1.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.No; + splitContainer1.Size = new System.Drawing.Size(1729, 1001); + splitContainer1.SplitterDistance = 351; + splitContainer1.TabIndex = 1; // // 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"; + lbSiteDB_sensor.AutoSize = true; + lbSiteDB_sensor.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + lbSiteDB_sensor.Location = new System.Drawing.Point(36, 100); + lbSiteDB_sensor.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + lbSiteDB_sensor.Name = "lbSiteDB_sensor"; + lbSiteDB_sensor.Size = new System.Drawing.Size(79, 24); + lbSiteDB_sensor.TabIndex = 8; + 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"; + lbSiteID_sensor.AutoSize = true; + lbSiteID_sensor.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + lbSiteID_sensor.Location = new System.Drawing.Point(36, 58); + lbSiteID_sensor.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + lbSiteID_sensor.Name = "lbSiteID_sensor"; + lbSiteID_sensor.Size = new System.Drawing.Size(72, 24); + lbSiteID_sensor.TabIndex = 7; + 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"; + lbSiteName_sensor.AutoSize = true; + lbSiteName_sensor.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + lbSiteName_sensor.Location = new System.Drawing.Point(36, 14); + lbSiteName_sensor.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + lbSiteName_sensor.Name = "lbSiteName_sensor"; + lbSiteName_sensor.Size = new System.Drawing.Size(107, 24); + lbSiteName_sensor.TabIndex = 6; + 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, 218); - 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 = "..."; + lbMsg_sensor.AutoSize = true; + lbMsg_sensor.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + lbMsg_sensor.Location = new System.Drawing.Point(155, 218); + lbMsg_sensor.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + lbMsg_sensor.Name = "lbMsg_sensor"; + lbMsg_sensor.Size = new System.Drawing.Size(22, 24); + lbMsg_sensor.TabIndex = 5; + 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, 332); - 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"; + label24.AutoSize = true; + label24.Dock = System.Windows.Forms.DockStyle.Bottom; + label24.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label24.Location = new System.Drawing.Point(0, 332); + label24.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label24.Name = "label24"; + label24.Size = new System.Drawing.Size(132, 24); + label24.TabIndex = 3; + 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, 356); - 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; + flowLayoutPanel1.BackColor = System.Drawing.Color.LemonChiffon; + flowLayoutPanel1.Controls.Add(label25); + flowLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Bottom; + flowLayoutPanel1.FlowDirection = System.Windows.Forms.FlowDirection.TopDown; + flowLayoutPanel1.Location = new System.Drawing.Point(0, 356); + flowLayoutPanel1.Margin = new System.Windows.Forms.Padding(4); + flowLayoutPanel1.Name = "flowLayoutPanel1"; + flowLayoutPanel1.Size = new System.Drawing.Size(351, 645); + 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"; + label25.AutoSize = true; + label25.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label25.Location = new System.Drawing.Point(4, 0); + label25.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label25.Name = "label25"; + label25.Size = new System.Drawing.Size(134, 24); + label25.TabIndex = 4; + label25.Text = "請選擇 Sensor"; // // btSearch_sensor // - this.btSearch_sensor.Location = new System.Drawing.Point(36, 215); - 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); + btSearch_sensor.Location = new System.Drawing.Point(36, 215); + btSearch_sensor.Name = "btSearch_sensor"; + btSearch_sensor.Size = new System.Drawing.Size(94, 29); + btSearch_sensor.TabIndex = 1; + btSearch_sensor.Text = "查詢"; + btSearch_sensor.UseVisualStyleBackColor = true; + btSearch_sensor.Click += 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, 148); - this.dtSelect_sensor1.Name = "dtSelect_sensor1"; - this.dtSelect_sensor1.Size = new System.Drawing.Size(250, 31); - this.dtSelect_sensor1.TabIndex = 0; + dtSelect_sensor1.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dtSelect_sensor1.Location = new System.Drawing.Point(36, 148); + dtSelect_sensor1.Name = "dtSelect_sensor1"; + dtSelect_sensor1.Size = new System.Drawing.Size(250, 31); + 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.Dock = System.Windows.Forms.DockStyle.Fill; + splitContainer2.Location = new System.Drawing.Point(0, 0); + splitContainer2.Margin = new System.Windows.Forms.Padding(4); + 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); - this.splitContainer2.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.No; + splitContainer2.Panel1.Controls.Add(gv_web_sensor_month); + splitContainer2.Panel1.Controls.Add(panel11); + splitContainer2.Panel1.Controls.Add(gv_web_sensor_day); + splitContainer2.Panel1.Controls.Add(panel12); + splitContainer2.Panel1.Controls.Add(gv_web_sensor_hour); + splitContainer2.Panel1.Controls.Add(panel13); + splitContainer2.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.No; // // splitContainer2.Panel2 // - this.splitContainer2.Panel2.Controls.Add(this.gv_fic_sensor_raw); - this.splitContainer2.Panel2.Controls.Add(this.panel15); - this.splitContainer2.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.splitContainer2.Size = new System.Drawing.Size(1374, 1001); - this.splitContainer2.SplitterDistance = 666; - this.splitContainer2.SplitterWidth = 13; - this.splitContainer2.TabIndex = 0; + splitContainer2.Panel2.Controls.Add(gv_fic_sensor_raw); + splitContainer2.Panel2.Controls.Add(panel15); + splitContainer2.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.No; + splitContainer2.Size = new System.Drawing.Size(1374, 1001); + splitContainer2.SplitterDistance = 666; + splitContainer2.SplitterWidth = 13; + splitContainer2.TabIndex = 0; // // gv_web_sensor_month // - this.gv_web_sensor_month.AllowUserToAddRows = false; - this.gv_web_sensor_month.AllowUserToDeleteRows = false; + gv_web_sensor_month.AllowUserToAddRows = false; + gv_web_sensor_month.AllowUserToDeleteRows = false; dataGridViewCellStyle37.BackColor = System.Drawing.Color.Azure; - this.gv_web_sensor_month.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle37; + gv_web_sensor_month.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); @@ -1378,8 +1378,8 @@ namespace solarApp dataGridViewCellStyle38.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle38.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle38.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_sensor_month.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle38; - this.gv_web_sensor_month.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + gv_web_sensor_month.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle38; + gv_web_sensor_month.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); @@ -1387,12 +1387,12 @@ namespace solarApp dataGridViewCellStyle39.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle39.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle39.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_web_sensor_month.DefaultCellStyle = dataGridViewCellStyle39; - this.gv_web_sensor_month.Dock = System.Windows.Forms.DockStyle.Fill; - this.gv_web_sensor_month.Location = new System.Drawing.Point(0, 874); - this.gv_web_sensor_month.Margin = new System.Windows.Forms.Padding(4); - this.gv_web_sensor_month.Name = "gv_web_sensor_month"; - this.gv_web_sensor_month.ReadOnly = true; + gv_web_sensor_month.DefaultCellStyle = dataGridViewCellStyle39; + gv_web_sensor_month.Dock = System.Windows.Forms.DockStyle.Fill; + gv_web_sensor_month.Location = new System.Drawing.Point(0, 874); + gv_web_sensor_month.Margin = new System.Windows.Forms.Padding(4); + gv_web_sensor_month.Name = "gv_web_sensor_month"; + gv_web_sensor_month.ReadOnly = true; dataGridViewCellStyle40.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle40.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle40.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1400,51 +1400,51 @@ namespace solarApp dataGridViewCellStyle40.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle40.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle40.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_sensor_month.RowHeadersDefaultCellStyle = dataGridViewCellStyle40; - 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, 127); - this.gv_web_sensor_month.TabIndex = 7; + gv_web_sensor_month.RowHeadersDefaultCellStyle = dataGridViewCellStyle40; + gv_web_sensor_month.RowHeadersWidth = 51; + gv_web_sensor_month.RowTemplate.Height = 25; + gv_web_sensor_month.Size = new System.Drawing.Size(666, 127); + 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, 836); - 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; + panel11.Controls.Add(label26); + panel11.Controls.Add(label27); + panel11.Dock = System.Windows.Forms.DockStyle.Top; + panel11.Location = new System.Drawing.Point(0, 836); + panel11.Margin = new System.Windows.Forms.Padding(4); + panel11.Name = "panel11"; + panel11.Size = new System.Drawing.Size(666, 38); + 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"; + label26.AutoSize = true; + label26.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label26.Location = new System.Drawing.Point(230, 8); + label26.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label26.Name = "label26"; + label26.Size = new System.Drawing.Size(331, 24); + label26.TabIndex = 1; + 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 每月"; + label27.AutoSize = true; + label27.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label27.Location = new System.Drawing.Point(35, 8); + label27.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label27.Name = "label27"; + label27.Size = new System.Drawing.Size(160, 24); + label27.TabIndex = 0; + label27.Text = "web: sensor 每月"; // // gv_web_sensor_day // - this.gv_web_sensor_day.AllowUserToAddRows = false; - this.gv_web_sensor_day.AllowUserToDeleteRows = false; + gv_web_sensor_day.AllowUserToAddRows = false; + gv_web_sensor_day.AllowUserToDeleteRows = false; dataGridViewCellStyle41.BackColor = System.Drawing.Color.Azure; - this.gv_web_sensor_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle41; + gv_web_sensor_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle41; dataGridViewCellStyle42.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle42.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle42.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1452,8 +1452,8 @@ namespace solarApp dataGridViewCellStyle42.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle42.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle42.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_sensor_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle42; - this.gv_web_sensor_day.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + gv_web_sensor_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle42; + gv_web_sensor_day.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridViewCellStyle43.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle43.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle43.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1461,12 +1461,12 @@ namespace solarApp dataGridViewCellStyle43.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle43.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle43.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_web_sensor_day.DefaultCellStyle = dataGridViewCellStyle43; - 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; + gv_web_sensor_day.DefaultCellStyle = dataGridViewCellStyle43; + gv_web_sensor_day.Dock = System.Windows.Forms.DockStyle.Top; + gv_web_sensor_day.Location = new System.Drawing.Point(0, 583); + gv_web_sensor_day.Margin = new System.Windows.Forms.Padding(4); + gv_web_sensor_day.Name = "gv_web_sensor_day"; + gv_web_sensor_day.ReadOnly = true; dataGridViewCellStyle44.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle44.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle44.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1474,52 +1474,52 @@ namespace solarApp dataGridViewCellStyle44.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle44.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle44.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_sensor_day.RowHeadersDefaultCellStyle = dataGridViewCellStyle44; - this.gv_web_sensor_day.RowHeadersWidth = 51; - this.gv_web_sensor_day.RowTemplate.Height = 25; - this.gv_web_sensor_day.Size = new System.Drawing.Size(666, 253); - this.gv_web_sensor_day.TabIndex = 4; - this.gv_web_sensor_day.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.gv_web_sensor_day_CellFormatting); + gv_web_sensor_day.RowHeadersDefaultCellStyle = dataGridViewCellStyle44; + gv_web_sensor_day.RowHeadersWidth = 51; + gv_web_sensor_day.RowTemplate.Height = 25; + gv_web_sensor_day.Size = new System.Drawing.Size(666, 253); + gv_web_sensor_day.TabIndex = 4; + gv_web_sensor_day.CellFormatting += gv_web_sensor_day_CellFormatting; // // 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; + panel12.Controls.Add(label28); + panel12.Controls.Add(label29); + panel12.Dock = System.Windows.Forms.DockStyle.Top; + panel12.Location = new System.Drawing.Point(0, 545); + panel12.Margin = new System.Windows.Forms.Padding(4); + panel12.Name = "panel12"; + panel12.Size = new System.Drawing.Size(666, 38); + 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"; + label28.AutoSize = true; + label28.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label28.Location = new System.Drawing.Point(230, 8); + label28.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label28.Name = "label28"; + label28.Size = new System.Drawing.Size(302, 24); + label28.TabIndex = 1; + 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 每天"; + label29.AutoSize = true; + label29.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label29.Location = new System.Drawing.Point(35, 8); + label29.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label29.Name = "label29"; + label29.Size = new System.Drawing.Size(160, 24); + label29.TabIndex = 0; + label29.Text = "web: sensor 每天"; // // gv_web_sensor_hour // - this.gv_web_sensor_hour.AllowUserToAddRows = false; - this.gv_web_sensor_hour.AllowUserToDeleteRows = false; + gv_web_sensor_hour.AllowUserToAddRows = false; + gv_web_sensor_hour.AllowUserToDeleteRows = false; dataGridViewCellStyle45.BackColor = System.Drawing.Color.Azure; - this.gv_web_sensor_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle45; + gv_web_sensor_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle45; dataGridViewCellStyle46.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle46.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle46.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1527,8 +1527,8 @@ namespace solarApp dataGridViewCellStyle46.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle46.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle46.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_sensor_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle46; - this.gv_web_sensor_hour.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + gv_web_sensor_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle46; + gv_web_sensor_hour.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridViewCellStyle47.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle47.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle47.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1536,12 +1536,12 @@ namespace solarApp dataGridViewCellStyle47.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle47.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle47.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_web_sensor_hour.DefaultCellStyle = dataGridViewCellStyle47; - 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; + gv_web_sensor_hour.DefaultCellStyle = dataGridViewCellStyle47; + gv_web_sensor_hour.Dock = System.Windows.Forms.DockStyle.Top; + gv_web_sensor_hour.Location = new System.Drawing.Point(0, 38); + gv_web_sensor_hour.Margin = new System.Windows.Forms.Padding(4); + gv_web_sensor_hour.Name = "gv_web_sensor_hour"; + gv_web_sensor_hour.ReadOnly = true; dataGridViewCellStyle48.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle48.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle48.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1549,62 +1549,62 @@ namespace solarApp dataGridViewCellStyle48.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle48.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle48.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_sensor_hour.RowHeadersDefaultCellStyle = dataGridViewCellStyle48; - 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; + gv_web_sensor_hour.RowHeadersDefaultCellStyle = dataGridViewCellStyle48; + gv_web_sensor_hour.RowHeadersWidth = 51; + gv_web_sensor_hour.RowTemplate.Height = 25; + gv_web_sensor_hour.Size = new System.Drawing.Size(666, 507); + gv_web_sensor_hour.TabIndex = 1; // // panel13 // - this.panel13.Controls.Add(this.btSensor_switch); - 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; + panel13.Controls.Add(btSensor_switch); + panel13.Controls.Add(label30); + panel13.Controls.Add(label31); + panel13.Dock = System.Windows.Forms.DockStyle.Top; + panel13.Location = new System.Drawing.Point(0, 0); + panel13.Margin = new System.Windows.Forms.Padding(4); + panel13.Name = "panel13"; + panel13.Size = new System.Drawing.Size(666, 38); + panel13.TabIndex = 0; // // btSensor_switch // - this.btSensor_switch.Location = new System.Drawing.Point(563, 6); - this.btSensor_switch.Name = "btSensor_switch"; - this.btSensor_switch.Size = new System.Drawing.Size(94, 29); - this.btSensor_switch.TabIndex = 10; - this.btSensor_switch.Text = "sensor50"; - this.btSensor_switch.UseVisualStyleBackColor = true; - this.btSensor_switch.Click += new System.EventHandler(this.btSensor_switch_Click); + btSensor_switch.Location = new System.Drawing.Point(563, 6); + btSensor_switch.Name = "btSensor_switch"; + btSensor_switch.Size = new System.Drawing.Size(94, 29); + btSensor_switch.TabIndex = 10; + btSensor_switch.Text = "sensor50"; + btSensor_switch.UseVisualStyleBackColor = true; + btSensor_switch.Click += btSensor_switch_Click; // // 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"; + label30.AutoSize = true; + label30.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label30.Location = new System.Drawing.Point(230, 8); + label30.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label30.Name = "label30"; + label30.Size = new System.Drawing.Size(313, 24); + label30.TabIndex = 1; + 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 每小時 "; + label31.AutoSize = true; + label31.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label31.Location = new System.Drawing.Point(35, 8); + label31.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label31.Name = "label31"; + label31.Size = new System.Drawing.Size(186, 24); + label31.TabIndex = 0; + label31.Text = "web: Sensor 每小時 "; // // gv_fic_sensor_raw // - this.gv_fic_sensor_raw.AllowUserToAddRows = false; - this.gv_fic_sensor_raw.AllowUserToDeleteRows = false; + gv_fic_sensor_raw.AllowUserToAddRows = false; + gv_fic_sensor_raw.AllowUserToDeleteRows = false; dataGridViewCellStyle49.BackColor = System.Drawing.Color.LightCyan; - this.gv_fic_sensor_raw.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle49; + gv_fic_sensor_raw.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle49; dataGridViewCellStyle50.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle50.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle50.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1612,8 +1612,8 @@ namespace solarApp dataGridViewCellStyle50.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle50.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle50.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_fic_sensor_raw.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle50; - this.gv_fic_sensor_raw.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + gv_fic_sensor_raw.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle50; + gv_fic_sensor_raw.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridViewCellStyle51.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle51.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle51.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1621,12 +1621,12 @@ namespace solarApp dataGridViewCellStyle51.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle51.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle51.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_fic_sensor_raw.DefaultCellStyle = dataGridViewCellStyle51; - this.gv_fic_sensor_raw.Dock = System.Windows.Forms.DockStyle.Fill; - 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; + gv_fic_sensor_raw.DefaultCellStyle = dataGridViewCellStyle51; + gv_fic_sensor_raw.Dock = System.Windows.Forms.DockStyle.Fill; + gv_fic_sensor_raw.Location = new System.Drawing.Point(0, 38); + gv_fic_sensor_raw.Margin = new System.Windows.Forms.Padding(4); + gv_fic_sensor_raw.Name = "gv_fic_sensor_raw"; + gv_fic_sensor_raw.ReadOnly = true; dataGridViewCellStyle52.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle52.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle52.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1634,146 +1634,146 @@ namespace solarApp dataGridViewCellStyle52.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle52.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle52.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_fic_sensor_raw.RowHeadersDefaultCellStyle = dataGridViewCellStyle52; - 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, 963); - this.gv_fic_sensor_raw.TabIndex = 2; + gv_fic_sensor_raw.RowHeadersDefaultCellStyle = dataGridViewCellStyle52; + gv_fic_sensor_raw.RowHeadersWidth = 51; + gv_fic_sensor_raw.RowTemplate.Height = 25; + gv_fic_sensor_raw.Size = new System.Drawing.Size(695, 963); + 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; + panel15.Controls.Add(lbSensorRaw); + panel15.Controls.Add(label34); + panel15.Dock = System.Windows.Forms.DockStyle.Top; + panel15.Location = new System.Drawing.Point(0, 0); + panel15.Margin = new System.Windows.Forms.Padding(4); + panel15.Name = "panel15"; + panel15.Size = new System.Drawing.Size(695, 38); + 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"; + lbSensorRaw.AutoSize = true; + lbSensorRaw.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + lbSensorRaw.Location = new System.Drawing.Point(255, 8); + lbSensorRaw.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + lbSensorRaw.Name = "lbSensorRaw"; + lbSensorRaw.Size = new System.Drawing.Size(350, 24); + lbSensorRaw.TabIndex = 3; + 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 原始資料"; + label34.AutoSize = true; + label34.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + label34.Location = new System.Drawing.Point(15, 8); + label34.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); + label34.Name = "label34"; + label34.Size = new System.Drawing.Size(190, 24); + label34.TabIndex = 2; + label34.Text = "FIC: Sensor 原始資料"; // // tabPage1 // - this.tabPage1.Controls.Add(this.splitContainer3); - this.tabPage1.Location = new System.Drawing.Point(4, 44); - this.tabPage1.Name = "tabPage1"; - this.tabPage1.Padding = new System.Windows.Forms.Padding(3); - this.tabPage1.Size = new System.Drawing.Size(1735, 1007); - this.tabPage1.TabIndex = 3; - this.tabPage1.Text = "異常"; - this.tabPage1.UseVisualStyleBackColor = true; + tabPage1.Controls.Add(splitContainer3); + tabPage1.Location = new System.Drawing.Point(4, 44); + tabPage1.Name = "tabPage1"; + tabPage1.Padding = new System.Windows.Forms.Padding(3); + tabPage1.Size = new System.Drawing.Size(1735, 1007); + tabPage1.TabIndex = 3; + tabPage1.Text = "異常"; + tabPage1.UseVisualStyleBackColor = true; // // splitContainer3 // - this.splitContainer3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.splitContainer3.Cursor = System.Windows.Forms.Cursors.HSplit; - this.splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer3.Location = new System.Drawing.Point(3, 3); - this.splitContainer3.Name = "splitContainer3"; - this.splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal; + splitContainer3.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + splitContainer3.Cursor = System.Windows.Forms.Cursors.HSplit; + splitContainer3.Dock = System.Windows.Forms.DockStyle.Fill; + splitContainer3.Location = new System.Drawing.Point(3, 3); + splitContainer3.Name = "splitContainer3"; + splitContainer3.Orientation = System.Windows.Forms.Orientation.Horizontal; // // splitContainer3.Panel1 // - this.splitContainer3.Panel1.Controls.Add(this.button1); - this.splitContainer3.Panel1.Controls.Add(this.label13); - this.splitContainer3.Panel1.Controls.Add(this.label12); - this.splitContainer3.Panel1.Controls.Add(this.btLoadData); - this.splitContainer3.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.No; + splitContainer3.Panel1.Controls.Add(button1); + splitContainer3.Panel1.Controls.Add(label13); + splitContainer3.Panel1.Controls.Add(label12); + splitContainer3.Panel1.Controls.Add(btLoadData); + splitContainer3.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.No; // // splitContainer3.Panel2 // - this.splitContainer3.Panel2.Controls.Add(this.splitContainer4); - this.splitContainer3.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.splitContainer3.Size = new System.Drawing.Size(1729, 1001); - this.splitContainer3.SplitterDistance = 89; - this.splitContainer3.TabIndex = 0; + splitContainer3.Panel2.Controls.Add(splitContainer4); + splitContainer3.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.No; + splitContainer3.Size = new System.Drawing.Size(1729, 1001); + splitContainer3.SplitterDistance = 89; + splitContainer3.TabIndex = 0; // // button1 // - this.button1.Location = new System.Drawing.Point(1603, 51); - this.button1.Name = "button1"; - this.button1.Size = new System.Drawing.Size(94, 29); - this.button1.TabIndex = 3; - this.button1.Text = "更換資料表"; - this.button1.UseVisualStyleBackColor = true; - this.button1.Click += new System.EventHandler(this.button1_Click_2); + button1.Location = new System.Drawing.Point(1603, 51); + button1.Name = "button1"; + button1.Size = new System.Drawing.Size(94, 29); + button1.TabIndex = 3; + button1.Text = "更換資料表"; + button1.UseVisualStyleBackColor = true; + button1.Click += button1_Click_2; // // label13 // - this.label13.AutoSize = true; - this.label13.Location = new System.Drawing.Point(1042, 61); - this.label13.Name = "label13"; - this.label13.Size = new System.Drawing.Size(257, 19); - this.label13.TabIndex = 2; - this.label13.Text = "solar_master.notice_schedule資料表"; + label13.AutoSize = true; + label13.Location = new System.Drawing.Point(1042, 61); + label13.Name = "label13"; + label13.Size = new System.Drawing.Size(257, 19); + label13.TabIndex = 2; + label13.Text = "solar_master.notice_schedule資料表"; // // label12 // - this.label12.AutoSize = true; - this.label12.Location = new System.Drawing.Point(15, 61); - this.label12.Name = "label12"; - this.label12.Size = new System.Drawing.Size(208, 19); - this.label12.TabIndex = 1; - this.label12.Text = "solar_master.err_main資料表"; + label12.AutoSize = true; + label12.Location = new System.Drawing.Point(15, 61); + label12.Name = "label12"; + label12.Size = new System.Drawing.Size(208, 19); + label12.TabIndex = 1; + label12.Text = "solar_master.err_main資料表"; // // btLoadData // - this.btLoadData.Location = new System.Drawing.Point(34, 21); - this.btLoadData.Name = "btLoadData"; - this.btLoadData.Size = new System.Drawing.Size(94, 29); - this.btLoadData.TabIndex = 0; - this.btLoadData.Text = "載入資料"; - this.btLoadData.UseVisualStyleBackColor = true; - this.btLoadData.Click += new System.EventHandler(this.button1_Click_1); + btLoadData.Location = new System.Drawing.Point(34, 21); + btLoadData.Name = "btLoadData"; + btLoadData.Size = new System.Drawing.Size(94, 29); + btLoadData.TabIndex = 0; + btLoadData.Text = "載入資料"; + btLoadData.UseVisualStyleBackColor = true; + btLoadData.Click += button1_Click_1; // // splitContainer4 // - this.splitContainer4.Cursor = System.Windows.Forms.Cursors.VSplit; - this.splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill; - this.splitContainer4.Location = new System.Drawing.Point(0, 0); - this.splitContainer4.Name = "splitContainer4"; + splitContainer4.Cursor = System.Windows.Forms.Cursors.VSplit; + splitContainer4.Dock = System.Windows.Forms.DockStyle.Fill; + splitContainer4.Location = new System.Drawing.Point(0, 0); + splitContainer4.Name = "splitContainer4"; // // splitContainer4.Panel1 // - this.splitContainer4.Panel1.Controls.Add(this.gv_all_data); - this.splitContainer4.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.No; + splitContainer4.Panel1.Controls.Add(gv_all_data); + splitContainer4.Panel1.RightToLeft = System.Windows.Forms.RightToLeft.No; // // splitContainer4.Panel2 // - this.splitContainer4.Panel2.Controls.Add(this.gv_notice_data); - this.splitContainer4.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.No; - this.splitContainer4.Size = new System.Drawing.Size(1727, 906); - this.splitContainer4.SplitterDistance = 733; - this.splitContainer4.SplitterWidth = 15; - this.splitContainer4.TabIndex = 1; + splitContainer4.Panel2.Controls.Add(gv_notice_data); + splitContainer4.Panel2.RightToLeft = System.Windows.Forms.RightToLeft.No; + splitContainer4.Size = new System.Drawing.Size(1727, 906); + splitContainer4.SplitterDistance = 733; + splitContainer4.SplitterWidth = 15; + splitContainer4.TabIndex = 1; // // gv_all_data // - this.gv_all_data.AllowUserToAddRows = false; - this.gv_all_data.AllowUserToDeleteRows = false; - dataGridViewCellStyle53.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.gv_all_data.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle53; + gv_all_data.AllowUserToAddRows = false; + gv_all_data.AllowUserToDeleteRows = false; + dataGridViewCellStyle53.BackColor = System.Drawing.Color.FromArgb(192, 255, 255); + gv_all_data.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle53; dataGridViewCellStyle54.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle54.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle54.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1781,8 +1781,8 @@ namespace solarApp dataGridViewCellStyle54.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle54.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle54.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_all_data.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle54; - this.gv_all_data.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + gv_all_data.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle54; + gv_all_data.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridViewCellStyle55.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle55.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle55.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1790,23 +1790,23 @@ namespace solarApp dataGridViewCellStyle55.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle55.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle55.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_all_data.DefaultCellStyle = dataGridViewCellStyle55; - this.gv_all_data.Dock = System.Windows.Forms.DockStyle.Fill; - this.gv_all_data.Location = new System.Drawing.Point(0, 0); - this.gv_all_data.Name = "gv_all_data"; - this.gv_all_data.ReadOnly = true; - this.gv_all_data.RowHeadersWidth = 51; - this.gv_all_data.RowTemplate.Height = 29; - this.gv_all_data.Size = new System.Drawing.Size(733, 906); - this.gv_all_data.TabIndex = 2; + gv_all_data.DefaultCellStyle = dataGridViewCellStyle55; + gv_all_data.Dock = System.Windows.Forms.DockStyle.Fill; + gv_all_data.Location = new System.Drawing.Point(0, 0); + gv_all_data.Name = "gv_all_data"; + gv_all_data.ReadOnly = true; + gv_all_data.RowHeadersWidth = 51; + gv_all_data.RowTemplate.Height = 29; + gv_all_data.Size = new System.Drawing.Size(733, 906); + gv_all_data.TabIndex = 2; // // gv_notice_data // - this.gv_notice_data.AllowUserToAddRows = false; - this.gv_notice_data.AllowUserToDeleteRows = false; - this.gv_notice_data.AllowUserToOrderColumns = true; - dataGridViewCellStyle56.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); - this.gv_notice_data.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle56; + gv_notice_data.AllowUserToAddRows = false; + gv_notice_data.AllowUserToDeleteRows = false; + gv_notice_data.AllowUserToOrderColumns = true; + dataGridViewCellStyle56.BackColor = System.Drawing.Color.FromArgb(192, 255, 255); + gv_notice_data.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle56; dataGridViewCellStyle57.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle57.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle57.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1814,8 +1814,8 @@ namespace solarApp dataGridViewCellStyle57.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle57.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle57.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_notice_data.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle57; - this.gv_notice_data.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + gv_notice_data.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle57; + gv_notice_data.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridViewCellStyle58.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle58.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle58.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -1823,114 +1823,113 @@ namespace solarApp dataGridViewCellStyle58.SelectionBackColor = System.Drawing.SystemColors.Highlight; dataGridViewCellStyle58.SelectionForeColor = System.Drawing.SystemColors.HighlightText; dataGridViewCellStyle58.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_notice_data.DefaultCellStyle = dataGridViewCellStyle58; - this.gv_notice_data.Dock = System.Windows.Forms.DockStyle.Fill; - this.gv_notice_data.Location = new System.Drawing.Point(0, 0); - this.gv_notice_data.Name = "gv_notice_data"; - this.gv_notice_data.ReadOnly = true; - this.gv_notice_data.RowHeadersWidth = 51; - this.gv_notice_data.RowTemplate.Height = 29; - this.gv_notice_data.Size = new System.Drawing.Size(979, 906); - this.gv_notice_data.TabIndex = 1; + gv_notice_data.DefaultCellStyle = dataGridViewCellStyle58; + gv_notice_data.Dock = System.Windows.Forms.DockStyle.Fill; + gv_notice_data.Location = new System.Drawing.Point(0, 0); + gv_notice_data.Name = "gv_notice_data"; + gv_notice_data.ReadOnly = true; + gv_notice_data.RowHeadersWidth = 51; + gv_notice_data.RowTemplate.Height = 29; + gv_notice_data.Size = new System.Drawing.Size(979, 906); + gv_notice_data.TabIndex = 1; // // fmMain // - this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 19F); - this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(1743, 1055); - this.Controls.Add(this.tabControl1); - this.Name = "fmMain"; - this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; - this.Text = "太陽能電站數據檢核 V0817"; - this.Load += new System.EventHandler(this.fmMain_Load); - this.tabControl1.ResumeLayout(false); - this.tb_inv.ResumeLayout(false); - this.sp_main_inv.Panel1.ResumeLayout(false); - this.sp_main_inv.Panel1.PerformLayout(); - this.sp_main_inv.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.sp_main_inv)).EndInit(); - this.sp_main_inv.ResumeLayout(false); - this.fp_inv.ResumeLayout(false); - this.fp_inv.PerformLayout(); - this.sp_child_inv.Panel1.ResumeLayout(false); - this.sp_child_inv.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.sp_child_inv)).EndInit(); - this.sp_child_inv.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.gv_web_inv_month)).EndInit(); - this.panel9.ResumeLayout(false); - this.panel9.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gv_web_inv_day)).EndInit(); - this.panel8.ResumeLayout(false); - this.panel8.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gv_web_inv_hour)).EndInit(); - this.panel1.ResumeLayout(false); - this.panel1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gv_fic_inv_raw)).EndInit(); - this.panel2.ResumeLayout(false); - this.panel2.PerformLayout(); - this.tb2.ResumeLayout(false); - this.sp_main_station.Panel1.ResumeLayout(false); - this.sp_main_station.Panel1.PerformLayout(); - this.sp_main_station.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.sp_main_station)).EndInit(); - this.sp_main_station.ResumeLayout(false); - this.sp_child_station.Panel1.ResumeLayout(false); - this.sp_child_station.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.sp_child_station)).EndInit(); - this.sp_child_station.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.gv_web_station_month)).EndInit(); - this.panel10.ResumeLayout(false); - this.panel10.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gv_web_station_day)).EndInit(); - this.panel7.ResumeLayout(false); - this.panel7.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gv_web_station_hour)).EndInit(); - this.panel4.ResumeLayout(false); - this.panel4.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gv_fic_station_day)).EndInit(); - this.panel5.ResumeLayout(false); - this.panel5.PerformLayout(); - ((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_raw)).EndInit(); - this.panel15.ResumeLayout(false); - this.panel15.PerformLayout(); - this.tabPage1.ResumeLayout(false); - this.splitContainer3.Panel1.ResumeLayout(false); - this.splitContainer3.Panel1.PerformLayout(); - this.splitContainer3.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).EndInit(); - this.splitContainer3.ResumeLayout(false); - this.splitContainer4.Panel1.ResumeLayout(false); - this.splitContainer4.Panel2.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.splitContainer4)).EndInit(); - this.splitContainer4.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.gv_all_data)).EndInit(); - ((System.ComponentModel.ISupportInitialize)(this.gv_notice_data)).EndInit(); - this.ResumeLayout(false); - + AutoScaleDimensions = new System.Drawing.SizeF(9F, 19F); + AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + ClientSize = new System.Drawing.Size(1743, 1055); + Controls.Add(tabControl1); + Name = "fmMain"; + StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + Text = "太陽能電站數據檢核 V0817"; + Load += fmMain_Load; + tabControl1.ResumeLayout(false); + tb_inv.ResumeLayout(false); + sp_main_inv.Panel1.ResumeLayout(false); + sp_main_inv.Panel1.PerformLayout(); + sp_main_inv.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)sp_main_inv).EndInit(); + sp_main_inv.ResumeLayout(false); + fp_inv.ResumeLayout(false); + fp_inv.PerformLayout(); + sp_child_inv.Panel1.ResumeLayout(false); + sp_child_inv.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)sp_child_inv).EndInit(); + sp_child_inv.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)gv_web_inv_month).EndInit(); + panel9.ResumeLayout(false); + panel9.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)gv_web_inv_day).EndInit(); + panel8.ResumeLayout(false); + panel8.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)gv_web_inv_hour).EndInit(); + panel1.ResumeLayout(false); + panel1.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)gv_fic_inv_raw).EndInit(); + panel2.ResumeLayout(false); + panel2.PerformLayout(); + tb2.ResumeLayout(false); + sp_main_station.Panel1.ResumeLayout(false); + sp_main_station.Panel1.PerformLayout(); + sp_main_station.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)sp_main_station).EndInit(); + sp_main_station.ResumeLayout(false); + sp_child_station.Panel1.ResumeLayout(false); + sp_child_station.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)sp_child_station).EndInit(); + sp_child_station.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)gv_web_station_month).EndInit(); + panel10.ResumeLayout(false); + panel10.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)gv_web_station_day).EndInit(); + panel7.ResumeLayout(false); + panel7.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)gv_web_station_hour).EndInit(); + panel4.ResumeLayout(false); + panel4.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)gv_fic_station_day).EndInit(); + panel5.ResumeLayout(false); + panel5.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)gv_fic_station_raw).EndInit(); + panel6.ResumeLayout(false); + panel6.PerformLayout(); + tbSensor.ResumeLayout(false); + splitContainer1.Panel1.ResumeLayout(false); + splitContainer1.Panel1.PerformLayout(); + splitContainer1.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)splitContainer1).EndInit(); + splitContainer1.ResumeLayout(false); + flowLayoutPanel1.ResumeLayout(false); + flowLayoutPanel1.PerformLayout(); + splitContainer2.Panel1.ResumeLayout(false); + splitContainer2.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)splitContainer2).EndInit(); + splitContainer2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)gv_web_sensor_month).EndInit(); + panel11.ResumeLayout(false); + panel11.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)gv_web_sensor_day).EndInit(); + panel12.ResumeLayout(false); + panel12.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)gv_web_sensor_hour).EndInit(); + panel13.ResumeLayout(false); + panel13.PerformLayout(); + ((System.ComponentModel.ISupportInitialize)gv_fic_sensor_raw).EndInit(); + panel15.ResumeLayout(false); + panel15.PerformLayout(); + tabPage1.ResumeLayout(false); + splitContainer3.Panel1.ResumeLayout(false); + splitContainer3.Panel1.PerformLayout(); + splitContainer3.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)splitContainer3).EndInit(); + splitContainer3.ResumeLayout(false); + splitContainer4.Panel1.ResumeLayout(false); + splitContainer4.Panel2.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)splitContainer4).EndInit(); + splitContainer4.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)gv_all_data).EndInit(); + ((System.ComponentModel.ISupportInitialize)gv_notice_data).EndInit(); + ResumeLayout(false); } #endregion diff --git a/solarApp/fmMain.cs b/solarApp/fmMain.cs index fdb59b6..d5807b9 100644 --- a/solarApp/fmMain.cs +++ b/solarApp/fmMain.cs @@ -19,7 +19,7 @@ namespace solarApp public fmMain() { InitializeComponent(); - // init_GridView(); + // init_GridView(); } private async void button1_Click(object sender, EventArgs e) @@ -38,15 +38,15 @@ namespace solarApp } catch (Exception ex) { - MessageBox.Show(ex.Message); - } + MessageBox.Show(ex.Message); + } gv_web_inv_hour.DataSource = inv_svc.get_web_Inv_hour(date2, lbInverterID.Text); gv_web_inv_day.DataSource = inv_svc.get_web_Inv_day(date1, date2, lbInverterID.Text); - gv_web_inv_month.DataSource = inv_svc.get_web_Inv_month( date1.Substring(0, 7), date2.Substring(0, 7), lbInverterID.Text); - + gv_web_inv_month.DataSource = inv_svc.get_web_Inv_month(date1.Substring(0, 7), date2.Substring(0, 7), lbInverterID.Text); + lbMsg_inv.Text = " done " + System.DateTime.Now.ToShortTimeString(); } @@ -57,12 +57,12 @@ namespace solarApp //string date2 = dtSelect_sensor2.Value.ToString("yyyy-MM-dd"); string date1 = dtselect_inv.Value.AddDays(-7).ToString("yyyy-MM-dd"); - gv_web_inv_hour.DataSource = inv_svc.get_web_Inv_15min(date2, lbInverterID.Text , lbSiteID_inv.Text.Substring(0, 9)); + gv_web_inv_hour.DataSource = inv_svc.get_web_Inv_15min(date2, lbInverterID.Text, lbSiteID_inv.Text.Substring(0, 9)); } private void fmMain_Load(object sender, EventArgs e) { - + dtselect_station1.Value = DateTime.Today.AddDays(-1); @@ -92,7 +92,7 @@ namespace solarApp } #endregion - + #region 顯示逆變器list //add_inv_list(); #endregion @@ -112,12 +112,12 @@ namespace solarApp lbSiteID_sensor.Text = lbSiteID_inv.Text; //顯示 table name on label - lbSiteRaw.Text = lbSiteName_inv.Text + " "+ lbSiteDB_inv.Text + ".s" + lbSiteID_inv.Text + "_Station"; + 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)); - } + } } /// @@ -125,9 +125,10 @@ namespace solarApp /// /// /// - void add_inv_list(string siteDB, string siteID) { + void add_inv_list(string siteDB, string siteID) + { fp_inv.Controls.Clear(); - var inv_list = inv_svc.get_Inv_list(siteDB, siteID); + var inv_list = inv_svc.get_Inv_list(siteDB, siteID); int i = 0; foreach (var item in inv_list) { @@ -147,8 +148,8 @@ namespace solarApp private void radio_inv_click(object sender, EventArgs e) { RadioButton rb = sender as RadioButton; - if (rb.Checked) - { + if (rb.Checked) + { lbInverterID.Text = rb.Text; lbMsg_inv.Text = "..."; } @@ -194,11 +195,11 @@ namespace solarApp try { gv_fic_station_raw.DataSource = stationSvc.get_station_raw(date2, lbSiteDB_inv.Text, lbSiteID_inv.Text); - gv_fic_station_day.DataSource = stationSvc.get_station_rawAvg(date1, date2, lbSiteDB_inv.Text, lbSiteID_inv.Text); + gv_fic_station_day.DataSource = stationSvc.get_station_rawAvg(date1, date2, lbSiteDB_inv.Text, lbSiteID_inv.Text); } - catch (Exception ex ) + catch (Exception ex) { - MessageBox.Show( ex.Message); + MessageBox.Show(ex.Message); } gv_web_station_hour.DataSource = stationSvc.get_web_station_hour(date2, lbSiteID_inv.Text); @@ -223,8 +224,8 @@ namespace solarApp } catch (Exception ex) { - MessageBox.Show(ex.Message); - } + MessageBox.Show(ex.Message); + } gv_web_sensor_hour.DataSource = sensorSvc.get_web_sensor_hour(date2, lbSiteID_inv.Text.Substring(0, 09)); gv_web_sensor_day.DataSource = sensorSvc.get_web_sensor_day(date1, date2, lbSiteID_inv.Text.Substring(0, 09)); @@ -329,7 +330,7 @@ namespace solarApp private void button1_Click_2(object sender, EventArgs e) { - if(label13.Text == "solar_master.notice_schedule資料表") + if (label13.Text == "solar_master.notice_schedule資料表") { gv_notice_data.DataSource = errorSvc.QueryAlarmorion_orionalarmrecordData(); label13.Text = "solar_master.alarmorion_orionalarmrecord資料表"; diff --git a/solarApp/fmMain.resx b/solarApp/fmMain.resx index f298a7b..af32865 100644 --- a/solarApp/fmMain.resx +++ b/solarApp/fmMain.resx @@ -1,4 +1,64 @@ - + + +