From 19f6a8e1dfb2fb4a3c491ac055e8676c19198fcc Mon Sep 17 00:00:00 2001 From: "wanling040@gmail.com" Date: Thu, 18 Aug 2022 19:24:54 +0800 Subject: [PATCH] =?UTF-8?q?solar=5FApp:=20=E5=A2=9E=E5=8A=A0=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C=E6=9F=A5=E8=A9=A2=E7=95=B0=E5=B8=B8=E6=98=AF?= =?UTF-8?q?=E5=90=A6=E9=80=81=E8=87=B3=E5=AF=84=E4=BF=A1=E7=9A=84=E8=B3=87?= =?UTF-8?q?=E6=96=99=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- solarApp/Model/errMain_model.cs | 57 ++ solarApp/Service/procSyncError.cs | 95 ++++ solarApp/fmMain.Designer.cs | 833 +++++++++++++++--------------- solarApp/fmMain.cs | 84 ++- 4 files changed, 624 insertions(+), 445 deletions(-) diff --git a/solarApp/Model/errMain_model.cs b/solarApp/Model/errMain_model.cs index 548436a..598f5ba 100644 --- a/solarApp/Model/errMain_model.cs +++ b/solarApp/Model/errMain_model.cs @@ -31,4 +31,61 @@ namespace solarApp.Model public string errDeviceBrand { get; set; } public string errDeviceModel { get; set; } } + + public class ExceptionEmailInfo + { + public int id { get; set; }//Id編號 + public string site_id { get; set; }//電站編號 + public string alarmClassName { get; set; }//異常類別 + public string errDevice { get; set; }//設備編號 + public string errValue { get; set; }//原始值 + public string dev_time { get; set; }//發生時間 + public string errMsg { get; set; }//錯誤原因 + public string PowerStationName { get; set; }//電站名稱 + public int PowerStationId { get; set; }//電站流水號 + public string normalTime { get; set; }//賦歸時間 + public string errMsgT { get; set; } //errMsgType + public int priority { get; set; }//priority + public int sourceState { get; set; }//異常狀態 + public string emailTime { get; set; }//送到寄信資料表的時間 + } + + public class NoticeInfo + { + public int Id { get; set; }//Id編號 + public int Type { get; set; }//設備類型 + public string RecipientName { get; set; }//收件人 + public string RecipientEmail { get; set; }//收件Email + public string Subject { get; set; }//主旨 + public string Content { get; set; }//內容 + public int ExceptionId { get; set; }//異常id + public int IsDelivery { get; set; }//是否已寄出信件 + public string DeliveryAt { get; set; }//寄出時間 + public string CreatedAt { get; set; } //製造時間 + } + + public class AlarmorionInfo + { + public int id { get; set; } + public string site_id { get; set; } + public string timestamp2 { get; set; } + public string datestamp { get; set; } + public int uuidHash { get; set; } + //public Byte[] uuid { get; set; } + public string isOpen { get; set; } + public string sourceState { get; set; } + public string ackState { get; set; } + public Int16 ackRequired { get; set; } + public int alarmClass { get; set; } + public int priority { get; set; } + public Int64 normalTime { get; set; } + public Int64 ackTime { get; set; } + public string userAccount { get; set; } + public int alarmTransition { get; set; } + public Int64 lastUpdate { get; set; } + public string siteID { get; set; } + public string deviceID { get; set; } + public string errMsg { get; set; } + } + } diff --git a/solarApp/Service/procSyncError.cs b/solarApp/Service/procSyncError.cs index bfd5bab..cf60eb5 100644 --- a/solarApp/Service/procSyncError.cs +++ b/solarApp/Service/procSyncError.cs @@ -187,5 +187,100 @@ namespace solarApp.Service } return result; } + + public List QueryExceptionData() + { + try + { + using (MySqlConnection conn = new MySqlConnection(Connection1)) + { + conn.Open(); + string sql = $@"SELECT a.`*`,ns.Id, + case priority when 1 then DATE_ADD(dev_time, INTERVAL 24 HOUR) + when 2 then DATE_ADD(dev_time, INTERVAL 12 HOUR) + else dev_time end emailTime + FROM + ( + select pr.FormId as FormId, pr.Id as ErrorID, priority, a.id, site_id, `timestamp`, a.sourceState, + FROM_UNIXTIME((`timestamp` / 1000), '%Y-%m-%d %H:%i:%s') dev_time , + a.sourceState err_status, FROM_UNIXTIME( (a.normalTime / 1000), '%Y-%m-%d %H:%i:%s') normalTime, + a.alarmClass, b.alarmClass as alarmClassName,ps.Name as PowerStationName, ps.Id as PowerStationId,errDevice, err_valueKind, errValue, + FROM_UNIXTIME( (a.lastUpdate / 1000), '%Y-%m-%d %H:%i:%s') lastUpdate, c.errMsg_tw cerrMsg_tw, d.errMsg_tw derrMsg_tw, + case when c.errMsg_tw is null then + case when err_valueKind = 'b' then d.errMsg_tw + when err_valueKind = 'd' then CONCAT(d.errMsg_tw, ': ', round(a.errValue, 2)) + when d.errMsg_tw is null then a.errValue + when a.errValue is null then d.errMsg_tw + else CONCAT(a.errValue, ', ' , ifNull(d.errMsg_tw, '')) end + else + case when err_valueKind = 'b' then c.errMsg_tw + when err_valueKind = 'd' then CONCAT(c.errMsg_tw, ': ', round(a.errValue, 2)) + when c.errMsg_tw is null then a.errValue + when a.errValue is null then c.errMsg_tw + else CONCAT(a.errValue, ', ' , ifNull(c.errMsg_tw, '')) end + end errMsg + #, a.errDeviceBrand , d.brend , a.errDeviceModel, d.model , a.errValue , d.errCode + from err_main a + left join alarmorion_orionalarmclass b on a.alarmclass = b.id + left join ref_err_device c on trim(b.alarmClass) = c.deviceType + left join ref_err_inv d on lower(b.alarmClass) = d.deviceType + and a.errDeviceBrand = d.brend and a.errDeviceModel = d.model and a.errValue = d.errCode + left join power_station ps on ps.`Code` = site_id + left join operation_record pr on pr.ErrorCode = a.id + where sourceState = 1 and datestamp > '{System.DateTime.Now.AddDays(-60).ToString("yyyy-MM-dd")}' and ps.`Code` is not null + ) a LEFT JOIN notice_schedule ns ON a.id = ns.ExceptionId + WHERE ns.Id IS NULL + order by a.id desc limit 1000"; + List ds = conn.Query(sql, commandTimeout: 600).AsList(); + conn.Close(); + return ds; + } + } + catch (Exception ex) + { + throw ex; + } + } + + public List QueryNoticeData() + { + try + { + using (MySqlConnection conn = new MySqlConnection(Connection1)) + { + conn.Open(); + string sql = $@"select * from notice_schedule order by 1 desc limit 1000"; + List ds = conn.Query(sql, commandTimeout: 600).AsList(); + conn.Close(); + return ds; + } + } + catch (Exception ex) + { + throw ex; + } + } + + public List QueryAlarmorion_orionalarmrecordData() + { + try + { + using (MySqlConnection conn = new MySqlConnection(Connection1)) + { + conn.Open(); + string sql = $@"select a.*, FROM_UNIXTIME((a.`timestamp` / 1000), '%Y-%m-%d %H:%i:%s') timestamp2 + from alarmorion_orionalarmrecord a + order by 1 desc limit 1000"; + List ds = conn.Query(sql, commandTimeout: 600).AsList(); + conn.Close(); + return ds; + } + } + catch (Exception ex) + { + throw ex; + } + } + } } diff --git a/solarApp/fmMain.Designer.cs b/solarApp/fmMain.Designer.cs index 7d6bf22..f0f8b69 100644 --- a/solarApp/fmMain.Designer.cs +++ b/solarApp/fmMain.Designer.cs @@ -83,12 +83,6 @@ namespace solarApp System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle52 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle53 = new System.Windows.Forms.DataGridViewCellStyle(); System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle54 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle55 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle56 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle57 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle58 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle59 = new System.Windows.Forms.DataGridViewCellStyle(); - System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle60 = new System.Windows.Forms.DataGridViewCellStyle(); this.tabControl1 = new System.Windows.Forms.TabControl(); this.tb_inv = new System.Windows.Forms.TabPage(); this.sp_main_inv = new System.Windows.Forms.SplitContainer(); @@ -115,9 +109,6 @@ namespace solarApp 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_hour = new System.Windows.Forms.DataGridView(); - this.panel3 = new System.Windows.Forms.Panel(); - this.label1 = 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(); @@ -173,13 +164,18 @@ namespace solarApp 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_hour = new System.Windows.Forms.DataGridView(); - this.panel14 = new System.Windows.Forms.Panel(); - this.label32 = new System.Windows.Forms.Label(); this.gv_fic_sensor_raw = new System.Windows.Forms.DataGridView(); this.panel15 = new System.Windows.Forms.Panel(); this.lbSensorRaw = new System.Windows.Forms.Label(); this.label34 = new System.Windows.Forms.Label(); + this.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.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(); @@ -197,8 +193,6 @@ namespace solarApp this.panel8.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gv_web_inv_hour)).BeginInit(); this.panel1.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gv_fic_inv_hour)).BeginInit(); - this.panel3.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gv_fic_inv_raw)).BeginInit(); this.panel2.SuspendLayout(); this.tb2.SuspendLayout(); @@ -236,10 +230,15 @@ namespace solarApp this.panel12.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gv_web_sensor_hour)).BeginInit(); this.panel13.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gv_fic_sensor_hour)).BeginInit(); - this.panel14.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.gv_fic_sensor_raw)).BeginInit(); this.panel15.SuspendLayout(); + this.tabPage1.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.splitContainer3)).BeginInit(); + this.splitContainer3.Panel1.SuspendLayout(); + this.splitContainer3.Panel2.SuspendLayout(); + this.splitContainer3.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.gv_all_data)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.gv_notice_data)).BeginInit(); this.SuspendLayout(); // // tabControl1 @@ -247,6 +246,7 @@ namespace solarApp 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.Location = new System.Drawing.Point(0, 0); this.tabControl1.Name = "tabControl1"; @@ -259,8 +259,9 @@ namespace solarApp 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, 28); + 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(3); + this.tb_inv.Padding = new System.Windows.Forms.Padding(10); this.tb_inv.Size = new System.Drawing.Size(1735, 1023); this.tb_inv.TabIndex = 0; this.tb_inv.Text = " Inverter "; @@ -268,7 +269,7 @@ namespace solarApp // sp_main_inv // this.sp_main_inv.Dock = System.Windows.Forms.DockStyle.Fill; - this.sp_main_inv.Location = new System.Drawing.Point(3, 3); + this.sp_main_inv.Location = new System.Drawing.Point(10, 10); this.sp_main_inv.Name = "sp_main_inv"; // // sp_main_inv.Panel1 @@ -286,8 +287,8 @@ namespace solarApp // sp_main_inv.Panel2 // this.sp_main_inv.Panel2.Controls.Add(this.sp_child_inv); - this.sp_main_inv.Size = new System.Drawing.Size(1729, 1017); - this.sp_main_inv.SplitterDistance = 351; + this.sp_main_inv.Size = new System.Drawing.Size(1715, 1003); + this.sp_main_inv.SplitterDistance = 348; this.sp_main_inv.TabIndex = 0; // // lbSiteDB_inv @@ -339,7 +340,7 @@ namespace solarApp 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, 348); + this.lbInverterID.Location = new System.Drawing.Point(0, 334); 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); @@ -352,10 +353,10 @@ namespace solarApp 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, 372); + this.fp_inv.Location = new System.Drawing.Point(0, 358); this.fp_inv.Margin = new System.Windows.Forms.Padding(4); this.fp_inv.Name = "fp_inv"; - this.fp_inv.Size = new System.Drawing.Size(351, 645); + this.fp_inv.Size = new System.Drawing.Size(348, 645); this.fp_inv.TabIndex = 2; // // label4 @@ -406,12 +407,10 @@ namespace solarApp // // sp_child_inv.Panel2 // - this.sp_child_inv.Panel2.Controls.Add(this.gv_fic_inv_hour); - this.sp_child_inv.Panel2.Controls.Add(this.panel3); 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.Size = new System.Drawing.Size(1374, 1017); - this.sp_child_inv.SplitterDistance = 666; + this.sp_child_inv.Size = new System.Drawing.Size(1363, 1003); + this.sp_child_inv.SplitterDistance = 660; this.sp_child_inv.SplitterWidth = 13; this.sp_child_inv.TabIndex = 0; // @@ -453,7 +452,7 @@ namespace solarApp this.gv_web_inv_month.RowHeadersDefaultCellStyle = dataGridViewCellStyle4; this.gv_web_inv_month.RowHeadersWidth = 51; this.gv_web_inv_month.RowTemplate.Height = 25; - this.gv_web_inv_month.Size = new System.Drawing.Size(666, 126); + this.gv_web_inv_month.Size = new System.Drawing.Size(660, 112); this.gv_web_inv_month.TabIndex = 7; // // panel9 @@ -464,7 +463,7 @@ namespace solarApp 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(666, 38); + this.panel9.Size = new System.Drawing.Size(660, 38); this.panel9.TabIndex = 6; // // label16 @@ -527,7 +526,7 @@ namespace solarApp this.gv_web_inv_day.RowHeadersDefaultCellStyle = dataGridViewCellStyle8; this.gv_web_inv_day.RowHeadersWidth = 51; this.gv_web_inv_day.RowTemplate.Height = 25; - this.gv_web_inv_day.Size = new System.Drawing.Size(666, 270); + 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); // @@ -539,7 +538,7 @@ namespace solarApp 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(666, 38); + this.panel8.Size = new System.Drawing.Size(660, 38); this.panel8.TabIndex = 3; // // label14 @@ -602,7 +601,7 @@ namespace solarApp this.gv_web_inv_hour.RowHeadersDefaultCellStyle = dataGridViewCellStyle12; this.gv_web_inv_hour.RowHeadersWidth = 51; this.gv_web_inv_hour.RowTemplate.Height = 25; - this.gv_web_inv_hour.Size = new System.Drawing.Size(666, 507); + this.gv_web_inv_hour.Size = new System.Drawing.Size(660, 507); this.gv_web_inv_hour.TabIndex = 1; // // panel1 @@ -614,7 +613,7 @@ namespace solarApp this.panel1.Location = new System.Drawing.Point(0, 0); this.panel1.Margin = new System.Windows.Forms.Padding(4); this.panel1.Name = "panel1"; - this.panel1.Size = new System.Drawing.Size(666, 38); + this.panel1.Size = new System.Drawing.Size(660, 38); this.panel1.TabIndex = 0; // // btInv_15min @@ -649,12 +648,12 @@ namespace solarApp this.lb_inv_hour.TabIndex = 0; this.lb_inv_hour.Text = "web: inv 每小時 "; // - // gv_fic_inv_hour + // gv_fic_inv_raw // - this.gv_fic_inv_hour.AllowUserToAddRows = false; - this.gv_fic_inv_hour.AllowUserToDeleteRows = false; + this.gv_fic_inv_raw.AllowUserToAddRows = false; + this.gv_fic_inv_raw.AllowUserToDeleteRows = false; dataGridViewCellStyle13.BackColor = System.Drawing.Color.LightCyan; - this.gv_fic_inv_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle13; + this.gv_fic_inv_raw.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle13; dataGridViewCellStyle14.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle14.BackColor = System.Drawing.SystemColors.Control; dataGridViewCellStyle14.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -662,8 +661,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_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14; - this.gv_fic_inv_hour.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.gv_fic_inv_raw.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle14; + this.gv_fic_inv_raw.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; dataGridViewCellStyle15.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; dataGridViewCellStyle15.BackColor = System.Drawing.SystemColors.Window; dataGridViewCellStyle15.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); @@ -671,12 +670,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_hour.DefaultCellStyle = dataGridViewCellStyle15; - this.gv_fic_inv_hour.Dock = System.Windows.Forms.DockStyle.Fill; - this.gv_fic_inv_hour.Location = new System.Drawing.Point(0, 583); - this.gv_fic_inv_hour.Margin = new System.Windows.Forms.Padding(4); - this.gv_fic_inv_hour.Name = "gv_fic_inv_hour"; - this.gv_fic_inv_hour.ReadOnly = true; + 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; 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); @@ -684,73 +683,10 @@ 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_hour.RowHeadersDefaultCellStyle = dataGridViewCellStyle16; - this.gv_fic_inv_hour.RowHeadersWidth = 51; - this.gv_fic_inv_hour.RowTemplate.Height = 25; - this.gv_fic_inv_hour.Size = new System.Drawing.Size(695, 434); - this.gv_fic_inv_hour.TabIndex = 4; - this.gv_fic_inv_hour.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.gv_fic_inv_hour_CellFormatting); - // - // panel3 - // - this.panel3.Controls.Add(this.label1); - this.panel3.Dock = System.Windows.Forms.DockStyle.Top; - this.panel3.Location = new System.Drawing.Point(0, 545); - this.panel3.Margin = new System.Windows.Forms.Padding(4); - this.panel3.Name = "panel3"; - this.panel3.Size = new System.Drawing.Size(695, 38); - this.panel3.TabIndex = 3; - // - // label1 - // - this.label1.AutoSize = true; - this.label1.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.label1.Location = new System.Drawing.Point(15, 8); - this.label1.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(141, 24); - this.label1.TabIndex = 2; - this.label1.Text = "FIC: inv 每小時 "; - // - // gv_fic_inv_raw - // - this.gv_fic_inv_raw.AllowUserToAddRows = false; - this.gv_fic_inv_raw.AllowUserToDeleteRows = false; - dataGridViewCellStyle17.BackColor = System.Drawing.Color.LightCyan; - this.gv_fic_inv_raw.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle17; - dataGridViewCellStyle18.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle18.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle18.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle18.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle18.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle18.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_fic_inv_raw.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle18; - this.gv_fic_inv_raw.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle19.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle19.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle19.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle19.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle19.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle19.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_fic_inv_raw.DefaultCellStyle = dataGridViewCellStyle19; - this.gv_fic_inv_raw.Dock = System.Windows.Forms.DockStyle.Top; - this.gv_fic_inv_raw.Location = new System.Drawing.Point(0, 38); - this.gv_fic_inv_raw.Margin = new System.Windows.Forms.Padding(4); - this.gv_fic_inv_raw.Name = "gv_fic_inv_raw"; - this.gv_fic_inv_raw.ReadOnly = true; - dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle20.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle20.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle20.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle20.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle20.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_fic_inv_raw.RowHeadersDefaultCellStyle = dataGridViewCellStyle20; + this.gv_fic_inv_raw.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(695, 507); + this.gv_fic_inv_raw.Size = new System.Drawing.Size(690, 965); this.gv_fic_inv_raw.TabIndex = 2; // // panel2 @@ -761,7 +697,7 @@ namespace solarApp this.panel2.Location = new System.Drawing.Point(0, 0); this.panel2.Margin = new System.Windows.Forms.Padding(4); this.panel2.Name = "panel2"; - this.panel2.Size = new System.Drawing.Size(695, 38); + this.panel2.Size = new System.Drawing.Size(690, 38); this.panel2.TabIndex = 1; // // lbInvRaw @@ -890,38 +826,38 @@ namespace solarApp // this.gv_web_station_month.AllowUserToAddRows = false; this.gv_web_station_month.AllowUserToDeleteRows = false; - dataGridViewCellStyle21.BackColor = System.Drawing.Color.Azure; - this.gv_web_station_month.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle21; - dataGridViewCellStyle22.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle22.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle22.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle22.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle22.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle22.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle22.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_station_month.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle22; + dataGridViewCellStyle17.BackColor = System.Drawing.Color.Azure; + this.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); + dataGridViewCellStyle18.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle18.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle18.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle18.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.gv_web_station_month.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle18; this.gv_web_station_month.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); - dataGridViewCellStyle23.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle23.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle23.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_web_station_month.DefaultCellStyle = dataGridViewCellStyle23; + dataGridViewCellStyle19.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle19.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle19.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dataGridViewCellStyle19.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle19.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle19.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle19.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.gv_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; - dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle24.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle24.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle24.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle24.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle24.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle24.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_station_month.RowHeadersDefaultCellStyle = dataGridViewCellStyle24; + dataGridViewCellStyle20.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle20.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle20.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dataGridViewCellStyle20.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle20.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle20.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle20.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.gv_web_station_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, 104); @@ -964,38 +900,38 @@ namespace solarApp // this.gv_web_station_day.AllowUserToAddRows = false; this.gv_web_station_day.AllowUserToDeleteRows = false; - dataGridViewCellStyle25.BackColor = System.Drawing.Color.Azure; - this.gv_web_station_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle25; - dataGridViewCellStyle26.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle26.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle26.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle26.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle26.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle26.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle26.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_station_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle26; + dataGridViewCellStyle21.BackColor = System.Drawing.Color.Azure; + this.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); + dataGridViewCellStyle22.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle22.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle22.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle22.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.gv_web_station_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle22; this.gv_web_station_day.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle27.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle27.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle27.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle27.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle27.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle27.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_web_station_day.DefaultCellStyle = dataGridViewCellStyle27; + dataGridViewCellStyle23.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle23.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle23.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dataGridViewCellStyle23.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle23.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle23.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle23.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.gv_web_station_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; - dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle28.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle28.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle28.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle28.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle28.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle28.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_station_day.RowHeadersDefaultCellStyle = dataGridViewCellStyle28; + dataGridViewCellStyle24.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle24.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle24.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dataGridViewCellStyle24.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle24.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle24.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle24.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.gv_web_station_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); @@ -1039,38 +975,38 @@ namespace solarApp // this.gv_web_station_hour.AllowUserToAddRows = false; this.gv_web_station_hour.AllowUserToDeleteRows = false; - dataGridViewCellStyle29.BackColor = System.Drawing.Color.Azure; - this.gv_web_station_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle29; - dataGridViewCellStyle30.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle30.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle30.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle30.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle30.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle30.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle30.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_station_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle30; + dataGridViewCellStyle25.BackColor = System.Drawing.Color.Azure; + this.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); + dataGridViewCellStyle26.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle26.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle26.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle26.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.gv_web_station_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle26; this.gv_web_station_hour.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); - dataGridViewCellStyle31.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle31.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle31.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle31.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_web_station_hour.DefaultCellStyle = dataGridViewCellStyle31; + dataGridViewCellStyle27.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle27.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle27.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dataGridViewCellStyle27.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle27.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle27.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle27.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.gv_web_station_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; - dataGridViewCellStyle32.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle32.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle32.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle32.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle32.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle32.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle32.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_station_hour.RowHeadersDefaultCellStyle = dataGridViewCellStyle32; + dataGridViewCellStyle28.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle28.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle28.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dataGridViewCellStyle28.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle28.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle28.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle28.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.gv_web_station_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); @@ -1113,38 +1049,38 @@ namespace solarApp // this.gv_fic_station_day.AllowUserToAddRows = false; this.gv_fic_station_day.AllowUserToDeleteRows = false; - dataGridViewCellStyle33.BackColor = System.Drawing.Color.LightCyan; - this.gv_fic_station_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle33; - dataGridViewCellStyle34.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle34.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle34.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle34.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle34.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle34.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle34.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_fic_station_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle34; + dataGridViewCellStyle29.BackColor = System.Drawing.Color.LightCyan; + this.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); + dataGridViewCellStyle30.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle30.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle30.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle30.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.gv_fic_station_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle30; this.gv_fic_station_day.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); - dataGridViewCellStyle35.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle35.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle35.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle35.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_fic_station_day.DefaultCellStyle = dataGridViewCellStyle35; + dataGridViewCellStyle31.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle31.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle31.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dataGridViewCellStyle31.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle31.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle31.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle31.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.gv_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; - dataGridViewCellStyle36.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle36.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle36.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle36.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle36.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle36.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle36.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_fic_station_day.RowHeadersDefaultCellStyle = dataGridViewCellStyle36; + dataGridViewCellStyle32.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle32.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle32.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dataGridViewCellStyle32.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle32.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle32.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle32.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.gv_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, 434); @@ -1176,38 +1112,38 @@ namespace solarApp // this.gv_fic_station_raw.AllowUserToAddRows = false; this.gv_fic_station_raw.AllowUserToDeleteRows = false; - dataGridViewCellStyle37.BackColor = System.Drawing.Color.LightCyan; - this.gv_fic_station_raw.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle37; - dataGridViewCellStyle38.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle38.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle38.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle38.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle38.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle38.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle38.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_fic_station_raw.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle38; + dataGridViewCellStyle33.BackColor = System.Drawing.Color.LightCyan; + this.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); + dataGridViewCellStyle34.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle34.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle34.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle34.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.gv_fic_station_raw.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle34; this.gv_fic_station_raw.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - dataGridViewCellStyle39.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle39.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle39.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle39.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle39.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle39.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle39.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_fic_station_raw.DefaultCellStyle = dataGridViewCellStyle39; + dataGridViewCellStyle35.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle35.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle35.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dataGridViewCellStyle35.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle35.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle35.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle35.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.gv_fic_station_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; - dataGridViewCellStyle40.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle40.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle40.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle40.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle40.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle40.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle40.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_fic_station_raw.RowHeadersDefaultCellStyle = dataGridViewCellStyle40; + dataGridViewCellStyle36.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle36.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle36.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dataGridViewCellStyle36.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle36.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle36.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle36.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.gv_fic_station_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); @@ -1397,8 +1333,6 @@ namespace solarApp // // splitContainer2.Panel2 // - this.splitContainer2.Panel2.Controls.Add(this.gv_fic_sensor_hour); - this.splitContainer2.Panel2.Controls.Add(this.panel14); this.splitContainer2.Panel2.Controls.Add(this.gv_fic_sensor_raw); this.splitContainer2.Panel2.Controls.Add(this.panel15); this.splitContainer2.Size = new System.Drawing.Size(1374, 1017); @@ -1410,38 +1344,38 @@ namespace solarApp // this.gv_web_sensor_month.AllowUserToAddRows = false; this.gv_web_sensor_month.AllowUserToDeleteRows = false; - dataGridViewCellStyle41.BackColor = System.Drawing.Color.Azure; - this.gv_web_sensor_month.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle41; - dataGridViewCellStyle42.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle42.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle42.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle42.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle42.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle42.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle42.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_sensor_month.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle42; + dataGridViewCellStyle37.BackColor = System.Drawing.Color.Azure; + this.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); + dataGridViewCellStyle38.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle38.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle38.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle38.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.gv_web_sensor_month.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle38; this.gv_web_sensor_month.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); - dataGridViewCellStyle43.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle43.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle43.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle43.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_web_sensor_month.DefaultCellStyle = dataGridViewCellStyle43; + dataGridViewCellStyle39.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle39.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle39.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dataGridViewCellStyle39.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle39.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle39.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle39.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.gv_web_sensor_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; - dataGridViewCellStyle44.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle44.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle44.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle44.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle44.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle44.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle44.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_sensor_month.RowHeadersDefaultCellStyle = dataGridViewCellStyle44; + dataGridViewCellStyle40.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle40.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle40.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dataGridViewCellStyle40.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle40.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle40.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle40.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.gv_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, 143); @@ -1484,38 +1418,38 @@ namespace solarApp // this.gv_web_sensor_day.AllowUserToAddRows = false; this.gv_web_sensor_day.AllowUserToDeleteRows = false; - dataGridViewCellStyle45.BackColor = System.Drawing.Color.Azure; - this.gv_web_sensor_day.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle45; - dataGridViewCellStyle46.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle46.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle46.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle46.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle46.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle46.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle46.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_sensor_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle46; + dataGridViewCellStyle41.BackColor = System.Drawing.Color.Azure; + this.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); + dataGridViewCellStyle42.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle42.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle42.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle42.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.gv_web_sensor_day.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle42; this.gv_web_sensor_day.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); - dataGridViewCellStyle47.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle47.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle47.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle47.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_web_sensor_day.DefaultCellStyle = dataGridViewCellStyle47; + dataGridViewCellStyle43.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle43.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle43.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dataGridViewCellStyle43.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle43.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle43.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle43.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.gv_web_sensor_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; - dataGridViewCellStyle48.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle48.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle48.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle48.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle48.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle48.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle48.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_sensor_day.RowHeadersDefaultCellStyle = dataGridViewCellStyle48; + dataGridViewCellStyle44.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle44.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle44.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dataGridViewCellStyle44.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle44.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle44.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle44.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.gv_web_sensor_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); @@ -1559,38 +1493,38 @@ namespace solarApp // this.gv_web_sensor_hour.AllowUserToAddRows = false; this.gv_web_sensor_hour.AllowUserToDeleteRows = false; - dataGridViewCellStyle49.BackColor = System.Drawing.Color.Azure; - this.gv_web_sensor_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle49; - dataGridViewCellStyle50.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle50.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle50.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle50.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle50.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle50.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle50.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_sensor_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle50; + dataGridViewCellStyle45.BackColor = System.Drawing.Color.Azure; + this.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); + dataGridViewCellStyle46.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle46.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle46.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle46.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.gv_web_sensor_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle46; this.gv_web_sensor_hour.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); - dataGridViewCellStyle51.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle51.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle51.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle51.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_web_sensor_hour.DefaultCellStyle = dataGridViewCellStyle51; + dataGridViewCellStyle47.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle47.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle47.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dataGridViewCellStyle47.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle47.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle47.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle47.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.gv_web_sensor_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; - dataGridViewCellStyle52.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle52.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle52.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle52.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle52.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle52.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle52.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_web_sensor_hour.RowHeadersDefaultCellStyle = dataGridViewCellStyle52; + dataGridViewCellStyle48.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle48.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle48.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dataGridViewCellStyle48.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle48.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle48.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle48.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.gv_web_sensor_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); @@ -1640,108 +1574,45 @@ namespace solarApp this.label31.TabIndex = 0; this.label31.Text = "web: Sensor 每小時 "; // - // gv_fic_sensor_hour - // - this.gv_fic_sensor_hour.AllowUserToAddRows = false; - this.gv_fic_sensor_hour.AllowUserToDeleteRows = false; - dataGridViewCellStyle53.BackColor = System.Drawing.Color.LightCyan; - this.gv_fic_sensor_hour.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle53; - dataGridViewCellStyle54.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle54.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle54.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle54.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle54.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle54.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle54.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_fic_sensor_hour.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle54; - this.gv_fic_sensor_hour.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - dataGridViewCellStyle55.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle55.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle55.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle55.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle55.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle55.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle55.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_fic_sensor_hour.DefaultCellStyle = dataGridViewCellStyle55; - this.gv_fic_sensor_hour.Dock = System.Windows.Forms.DockStyle.Fill; - this.gv_fic_sensor_hour.Location = new System.Drawing.Point(0, 583); - this.gv_fic_sensor_hour.Margin = new System.Windows.Forms.Padding(4); - this.gv_fic_sensor_hour.Name = "gv_fic_sensor_hour"; - this.gv_fic_sensor_hour.ReadOnly = true; - dataGridViewCellStyle56.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle56.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle56.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle56.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle56.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle56.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle56.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_fic_sensor_hour.RowHeadersDefaultCellStyle = dataGridViewCellStyle56; - this.gv_fic_sensor_hour.RowHeadersWidth = 51; - this.gv_fic_sensor_hour.RowTemplate.Height = 25; - this.gv_fic_sensor_hour.Size = new System.Drawing.Size(695, 434); - this.gv_fic_sensor_hour.TabIndex = 4; - this.gv_fic_sensor_hour.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.gv_fic_sensor_hour_CellFormatting); - // - // panel14 - // - this.panel14.Controls.Add(this.label32); - this.panel14.Dock = System.Windows.Forms.DockStyle.Top; - this.panel14.Location = new System.Drawing.Point(0, 545); - this.panel14.Margin = new System.Windows.Forms.Padding(4); - this.panel14.Name = "panel14"; - this.panel14.Size = new System.Drawing.Size(695, 38); - this.panel14.TabIndex = 3; - // - // label32 - // - this.label32.AutoSize = true; - this.label32.Font = new System.Drawing.Font("Microsoft JhengHei UI", 11F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - this.label32.Location = new System.Drawing.Point(15, 8); - this.label32.Margin = new System.Windows.Forms.Padding(4, 0, 4, 0); - this.label32.Name = "label32"; - this.label32.Size = new System.Drawing.Size(176, 24); - this.label32.TabIndex = 2; - this.label32.Text = "FIC: Sensor 每小時 "; - // // gv_fic_sensor_raw // this.gv_fic_sensor_raw.AllowUserToAddRows = false; this.gv_fic_sensor_raw.AllowUserToDeleteRows = false; - dataGridViewCellStyle57.BackColor = System.Drawing.Color.LightCyan; - this.gv_fic_sensor_raw.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle57; - dataGridViewCellStyle58.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle58.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle58.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle58.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle58.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle58.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle58.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_fic_sensor_raw.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle58; + dataGridViewCellStyle49.BackColor = System.Drawing.Color.LightCyan; + this.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); + dataGridViewCellStyle50.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle50.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle50.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle50.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.gv_fic_sensor_raw.ColumnHeadersDefaultCellStyle = dataGridViewCellStyle50; this.gv_fic_sensor_raw.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; - dataGridViewCellStyle59.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle59.BackColor = System.Drawing.SystemColors.Window; - dataGridViewCellStyle59.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle59.ForeColor = System.Drawing.SystemColors.ControlText; - dataGridViewCellStyle59.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle59.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle59.WrapMode = System.Windows.Forms.DataGridViewTriState.False; - this.gv_fic_sensor_raw.DefaultCellStyle = dataGridViewCellStyle59; - this.gv_fic_sensor_raw.Dock = System.Windows.Forms.DockStyle.Top; + dataGridViewCellStyle51.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle51.BackColor = System.Drawing.SystemColors.Window; + dataGridViewCellStyle51.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dataGridViewCellStyle51.ForeColor = System.Drawing.SystemColors.ControlText; + dataGridViewCellStyle51.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle51.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle51.WrapMode = System.Windows.Forms.DataGridViewTriState.False; + this.gv_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; - dataGridViewCellStyle60.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; - dataGridViewCellStyle60.BackColor = System.Drawing.SystemColors.Control; - dataGridViewCellStyle60.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); - dataGridViewCellStyle60.ForeColor = System.Drawing.SystemColors.WindowText; - dataGridViewCellStyle60.SelectionBackColor = System.Drawing.SystemColors.Highlight; - dataGridViewCellStyle60.SelectionForeColor = System.Drawing.SystemColors.HighlightText; - dataGridViewCellStyle60.WrapMode = System.Windows.Forms.DataGridViewTriState.True; - this.gv_fic_sensor_raw.RowHeadersDefaultCellStyle = dataGridViewCellStyle60; + dataGridViewCellStyle52.Alignment = System.Windows.Forms.DataGridViewContentAlignment.MiddleLeft; + dataGridViewCellStyle52.BackColor = System.Drawing.SystemColors.Control; + dataGridViewCellStyle52.Font = new System.Drawing.Font("Microsoft JhengHei UI", 9F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point); + dataGridViewCellStyle52.ForeColor = System.Drawing.SystemColors.WindowText; + dataGridViewCellStyle52.SelectionBackColor = System.Drawing.SystemColors.Highlight; + dataGridViewCellStyle52.SelectionForeColor = System.Drawing.SystemColors.HighlightText; + dataGridViewCellStyle52.WrapMode = System.Windows.Forms.DataGridViewTriState.True; + this.gv_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, 507); + this.gv_fic_sensor_raw.Size = new System.Drawing.Size(695, 979); this.gv_fic_sensor_raw.TabIndex = 2; // // panel15 @@ -1777,6 +1648,116 @@ namespace solarApp this.label34.TabIndex = 2; this.label34.Text = "FIC: Sensor 原始資料"; // + // tabPage1 + // + this.tabPage1.Controls.Add(this.splitContainer3); + this.tabPage1.Location = new System.Drawing.Point(4, 28); + this.tabPage1.Name = "tabPage1"; + this.tabPage1.Padding = new System.Windows.Forms.Padding(3); + this.tabPage1.Size = new System.Drawing.Size(1735, 1023); + this.tabPage1.TabIndex = 3; + this.tabPage1.Text = "異常"; + this.tabPage1.UseVisualStyleBackColor = true; + // + // splitContainer3 + // + 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.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); + // + // splitContainer3.Panel2 + // + this.splitContainer3.Panel2.Controls.Add(this.gv_all_data); + this.splitContainer3.Panel2.Controls.Add(this.gv_notice_data); + this.splitContainer3.Size = new System.Drawing.Size(1729, 1017); + this.splitContainer3.SplitterDistance = 91; + this.splitContainer3.TabIndex = 0; + // + // button1 + // + this.button1.Cursor = System.Windows.Forms.Cursors.Arrow; + this.button1.Location = new System.Drawing.Point(1352, 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); + // + // 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資料表"; + // + // 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資料表"; + // + // btLoadData + // + this.btLoadData.Cursor = System.Windows.Forms.Cursors.Arrow; + 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); + // + // 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; + this.gv_all_data.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.gv_all_data.Cursor = System.Windows.Forms.Cursors.Arrow; + 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(863, 922); + this.gv_all_data.TabIndex = 1; + // + // gv_notice_data + // + this.gv_notice_data.AllowUserToAddRows = false; + this.gv_notice_data.AllowUserToDeleteRows = false; + this.gv_notice_data.AllowUserToOrderColumns = true; + dataGridViewCellStyle54.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(192)))), ((int)(((byte)(255)))), ((int)(((byte)(255))))); + this.gv_notice_data.AlternatingRowsDefaultCellStyle = dataGridViewCellStyle54; + this.gv_notice_data.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize; + this.gv_notice_data.Cursor = System.Windows.Forms.Cursors.Arrow; + this.gv_notice_data.Dock = System.Windows.Forms.DockStyle.Right; + this.gv_notice_data.Location = new System.Drawing.Point(863, 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(866, 922); + this.gv_notice_data.TabIndex = 0; + this.gv_notice_data.CellFormatting += new System.Windows.Forms.DataGridViewCellFormattingEventHandler(this.gv_notice_test_data_CellFormatting); + // // fmMain // this.AutoScaleDimensions = new System.Drawing.SizeF(9F, 19F); @@ -1809,9 +1790,6 @@ namespace solarApp ((System.ComponentModel.ISupportInitialize)(this.gv_web_inv_hour)).EndInit(); this.panel1.ResumeLayout(false); this.panel1.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gv_fic_inv_hour)).EndInit(); - this.panel3.ResumeLayout(false); - this.panel3.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.gv_fic_inv_raw)).EndInit(); this.panel2.ResumeLayout(false); this.panel2.PerformLayout(); @@ -1861,12 +1839,17 @@ namespace solarApp ((System.ComponentModel.ISupportInitialize)(this.gv_web_sensor_hour)).EndInit(); this.panel13.ResumeLayout(false); this.panel13.PerformLayout(); - ((System.ComponentModel.ISupportInitialize)(this.gv_fic_sensor_hour)).EndInit(); - this.panel14.ResumeLayout(false); - this.panel14.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.gv_fic_sensor_raw)).EndInit(); this.panel15.ResumeLayout(false); this.panel15.PerformLayout(); + this.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); + ((System.ComponentModel.ISupportInitialize)(this.gv_all_data)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.gv_notice_data)).EndInit(); this.ResumeLayout(false); } @@ -1888,9 +1871,6 @@ namespace solarApp private System.Windows.Forms.Panel panel2; private System.Windows.Forms.Label lb_raw_inv_hour; private System.Windows.Forms.FlowLayoutPanel fp_inv; - private System.Windows.Forms.Panel panel3; - private System.Windows.Forms.Label label1; - private System.Windows.Forms.DataGridView gv_fic_inv_hour; private System.Windows.Forms.Label label2; private System.Windows.Forms.Label label3; private System.Windows.Forms.Label lbInverterID; @@ -1959,9 +1939,6 @@ namespace solarApp private System.Windows.Forms.Panel panel13; private System.Windows.Forms.Label label30; private System.Windows.Forms.Label label31; - private System.Windows.Forms.DataGridView gv_fic_sensor_hour; - private System.Windows.Forms.Panel panel14; - private System.Windows.Forms.Label label32; private System.Windows.Forms.DataGridView gv_fic_sensor_raw; private System.Windows.Forms.Panel panel15; private System.Windows.Forms.Label lbSensorRaw; @@ -1972,5 +1949,13 @@ namespace solarApp private System.Windows.Forms.Button btSensor_switch; private System.Windows.Forms.Button btInv_15min; private System.Windows.Forms.FlowLayoutPanel fp_site; + private System.Windows.Forms.TabPage tabPage1; + private System.Windows.Forms.SplitContainer splitContainer3; + private System.Windows.Forms.Button btLoadData; + private System.Windows.Forms.DataGridView gv_all_data; + private System.Windows.Forms.DataGridView gv_notice_data; + private System.Windows.Forms.Label label13; + private System.Windows.Forms.Label label12; + private System.Windows.Forms.Button button1; } } \ No newline at end of file diff --git a/solarApp/fmMain.cs b/solarApp/fmMain.cs index 68b28c2..bca851f 100644 --- a/solarApp/fmMain.cs +++ b/solarApp/fmMain.cs @@ -15,6 +15,7 @@ namespace solarApp get_inv_svc inv_svc = new get_inv_svc(); getStationSvc stationSvc = new getStationSvc(); getSensorSvc sensorSvc = new getSensorSvc(); + procSyncError errorSvc = new procSyncError(); // 異常資料 public fmMain() { InitializeComponent(); @@ -28,12 +29,12 @@ namespace solarApp //string date2 = dtSelect_sensor2.Value.ToString("yyyy-MM-dd"); string date1 = dtselect_inv.Value.AddDays(-7).ToString("yyyy-MM-dd"); gv_fic_inv_raw.DataSource = ""; - gv_fic_inv_hour.DataSource = ""; + //gv_fic_inv_hour.DataSource = ""; try { gv_fic_inv_raw.DataSource = inv_svc.Get_rawInv(date2, lbInverterID.Text, lbSiteDB_inv.Text, lbSiteID_inv.Text); - gv_fic_inv_hour.DataSource = inv_svc.get_Inv_rawAvg(date2, lbInverterID.Text, lbSiteDB_inv.Text, lbSiteID_inv.Text); + //gv_fic_inv_hour.DataSource = inv_svc.get_Inv_rawAvg(date2, lbInverterID.Text, lbSiteDB_inv.Text, lbSiteID_inv.Text); } catch (Exception ex) { @@ -155,18 +156,18 @@ namespace solarApp private void gv_fic_inv_hour_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { - //int rowindex = e.RowIndex; e.ColumnIndex - if (gv_fic_inv_hour.Rows[e.RowIndex].Cells["count"].Value != null && !string.IsNullOrWhiteSpace(gv_fic_inv_hour.Rows[e.RowIndex].Cells["count"].Value.ToString())) - { - if (gv_fic_inv_hour.Rows[e.RowIndex].Cells["count"].Value.ToString() != "12") - { - gv_fic_inv_hour.Rows[e.RowIndex].Cells["count"].Style = new DataGridViewCellStyle { ForeColor = Color.Red, BackColor = Color.White }; - } - } - //else + ////int rowindex = e.RowIndex; e.ColumnIndex + //if (gv_fic_inv_hour.Rows[e.RowIndex].Cells["count"].Value != null && !string.IsNullOrWhiteSpace(gv_fic_inv_hour.Rows[e.RowIndex].Cells["count"].Value.ToString())) //{ - // gv_fic_inv_hour.Rows[e.RowIndex].Cells[e.ColumnIndex].Style = gv_fic_inv_hour.DefaultCellStyle; + // if (gv_fic_inv_hour.Rows[e.RowIndex].Cells["count"].Value.ToString() != "12") + // { + // gv_fic_inv_hour.Rows[e.RowIndex].Cells["count"].Style = new DataGridViewCellStyle { ForeColor = Color.Red, BackColor = Color.White }; + // } //} + ////else + ////{ + //// gv_fic_inv_hour.Rows[e.RowIndex].Cells[e.ColumnIndex].Style = gv_fic_inv_hour.DefaultCellStyle; + ////} } @@ -214,11 +215,11 @@ namespace solarApp //string date2 = dtSelect_sensor2.Value.ToString("yyyy-MM-dd"); string date1 = dtSelect_sensor1.Value.AddDays(-7).ToString("yyyy-MM-dd"); gv_fic_sensor_raw.DataSource = ""; - gv_fic_sensor_hour.DataSource = ""; + //gv_fic_sensor_hour.DataSource = ""; try { gv_fic_sensor_raw.DataSource = sensorSvc.get_sensor_raw(date2, lbSiteDB_inv.Text, lbSiteID_inv.Text); - gv_fic_sensor_hour.DataSource = sensorSvc.get_sensor_raw_hour(date2, lbSiteDB_inv.Text, lbSiteID_inv.Text.Substring(0, 11)); + //gv_fic_sensor_hour.DataSource = sensorSvc.get_sensor_raw_hour(date2, lbSiteDB_inv.Text, lbSiteID_inv.Text.Substring(0, 11)); } catch (Exception ex) { @@ -246,13 +247,13 @@ namespace solarApp private void gv_fic_sensor_hour_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) { - if (gv_fic_sensor_hour.Rows[e.RowIndex].Cells["count"].Value != null && !string.IsNullOrWhiteSpace(gv_fic_sensor_hour.Rows[e.RowIndex].Cells["count"].Value.ToString())) - { - if (gv_fic_sensor_hour.Rows[e.RowIndex].Cells["count"].Value.ToString() != "12") - { - gv_fic_sensor_hour.Rows[e.RowIndex].Cells["count"].Style = new DataGridViewCellStyle { ForeColor = Color.Red, BackColor = Color.White }; - } - } + //if (gv_fic_sensor_hour.Rows[e.RowIndex].Cells["count"].Value != null && !string.IsNullOrWhiteSpace(gv_fic_sensor_hour.Rows[e.RowIndex].Cells["count"].Value.ToString())) + //{ + // if (gv_fic_sensor_hour.Rows[e.RowIndex].Cells["count"].Value.ToString() != "12") + // { + // gv_fic_sensor_hour.Rows[e.RowIndex].Cells["count"].Style = new DataGridViewCellStyle { ForeColor = Color.Red, BackColor = Color.White }; + // } + //} } private void gv_web_inv_day_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) @@ -298,5 +299,46 @@ namespace solarApp } } } + + private void button1_Click_1(object sender, EventArgs e) + { + gv_all_data.DataSource = ""; + gv_notice_data.DataSource = ""; + + try + { + gv_all_data.DataSource = errorSvc.QueryExceptionData(); + gv_notice_data.DataSource = errorSvc.QueryNoticeData(); + } + catch (Exception ex) + { + MessageBox.Show(ex.Message); + } + } + + private void gv_notice_test_data_CellFormatting(object sender, DataGridViewCellFormattingEventArgs e) + { + //if (gv_notice_test_data.Rows[e.RowIndex].Cells[0].Value != null && !string.IsNullOrWhiteSpace(gv_notice_test_data.Rows[e.RowIndex].Cells[0].Value.ToString())) + //{ + // if (gv_notice_test_data.Rows[e.RowIndex].Cells[0].Value.ToString() != "0") + // { + // gv_notice_test_data.Rows[e.RowIndex].Cells[0].Style = new DataGridViewCellStyle { ForeColor = Color.Red, BackColor = Color.White }; + // } + //} + } + + private void button1_Click_2(object sender, EventArgs e) + { + if(label13.Text == "solar_master.notice_schedule資料表") + { + gv_notice_data.DataSource = errorSvc.QueryAlarmorion_orionalarmrecordData(); + label13.Text = "solar_master.notice_schedule資料表"; + } + else + { + gv_notice_data.DataSource = errorSvc.QueryNoticeData(); + label13.Text = "solar_master.alarmorion_orionalarmrecord資料表"; + } + } } }