diff --git a/EcomAnalysis/FormCompareLogs.Designer.cs b/EcomAnalysis/FormCompareLogs.Designer.cs index 9bbac58..cd54d6e 100644 --- a/EcomAnalysis/FormCompareLogs.Designer.cs +++ b/EcomAnalysis/FormCompareLogs.Designer.cs @@ -42,6 +42,11 @@ this.RadioPoint = new System.Windows.Forms.RadioButton(); this.label1 = new System.Windows.Forms.Label(); this.RadioOK = new System.Windows.Forms.RadioButton(); + this.RadioGood = new System.Windows.Forms.RadioButton(); + this.RadioNice = new System.Windows.Forms.RadioButton(); + this.RadioGreat = new System.Windows.Forms.RadioButton(); + this.RadioExcellent = new System.Windows.Forms.RadioButton(); + this.BtnClose = new System.Windows.Forms.Button(); ((System.ComponentModel.ISupportInitialize)(this.chart1)).BeginInit(); this.SuspendLayout(); // @@ -133,7 +138,7 @@ chartArea4.AxisY.MajorGrid.LineDashStyle = System.Windows.Forms.DataVisualization.Charting.ChartDashStyle.Dash; chartArea4.Name = "ChartArea1"; this.chart1.ChartAreas.Add(chartArea4); - this.chart1.Location = new System.Drawing.Point(12, 265); + this.chart1.Location = new System.Drawing.Point(12, 245); this.chart1.Name = "chart1"; series4.BorderColor = System.Drawing.Color.White; series4.BorderWidth = 2; @@ -147,7 +152,7 @@ series4.MarkerStyle = System.Windows.Forms.DataVisualization.Charting.MarkerStyle.Circle; series4.Name = "Series1"; this.chart1.Series.Add(series4); - this.chart1.Size = new System.Drawing.Size(848, 404); + this.chart1.Size = new System.Drawing.Size(848, 406); this.chart1.TabIndex = 1; this.chart1.Text = "chart1"; title4.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); @@ -159,8 +164,9 @@ // this.RadioFBTotal.Appearance = System.Windows.Forms.Appearance.Button; this.RadioFBTotal.AutoSize = true; + this.RadioFBTotal.Checked = true; this.RadioFBTotal.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); - this.RadioFBTotal.Location = new System.Drawing.Point(171, 230); + this.RadioFBTotal.Location = new System.Drawing.Point(171, 666); this.RadioFBTotal.Name = "RadioFBTotal"; this.RadioFBTotal.Size = new System.Drawing.Size(79, 29); this.RadioFBTotal.TabIndex = 2; @@ -174,7 +180,7 @@ this.RadioPoint.Appearance = System.Windows.Forms.Appearance.Button; this.RadioPoint.AutoSize = true; this.RadioPoint.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); - this.RadioPoint.Location = new System.Drawing.Point(256, 230); + this.RadioPoint.Location = new System.Drawing.Point(256, 666); this.RadioPoint.Name = "RadioPoint"; this.RadioPoint.Size = new System.Drawing.Size(76, 29); this.RadioPoint.TabIndex = 3; @@ -187,7 +193,7 @@ // this.label1.AutoSize = true; this.label1.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); - this.label1.Location = new System.Drawing.Point(12, 235); + this.label1.Location = new System.Drawing.Point(12, 671); this.label1.Name = "label1"; this.label1.Size = new System.Drawing.Size(153, 19); this.label1.TabIndex = 4; @@ -198,7 +204,7 @@ this.RadioOK.Appearance = System.Windows.Forms.Appearance.Button; this.RadioOK.AutoSize = true; this.RadioOK.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); - this.RadioOK.Location = new System.Drawing.Point(338, 230); + this.RadioOK.Location = new System.Drawing.Point(338, 666); this.RadioOK.Name = "RadioOK"; this.RadioOK.Size = new System.Drawing.Size(43, 29); this.RadioOK.TabIndex = 5; @@ -207,11 +213,83 @@ this.RadioOK.UseVisualStyleBackColor = true; this.RadioOK.CheckedChanged += new System.EventHandler(this.RadioOK_CheckedChanged); // + // RadioGood + // + this.RadioGood.Appearance = System.Windows.Forms.Appearance.Button; + this.RadioGood.AutoSize = true; + this.RadioGood.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + this.RadioGood.Location = new System.Drawing.Point(387, 666); + this.RadioGood.Name = "RadioGood"; + this.RadioGood.Size = new System.Drawing.Size(61, 29); + this.RadioGood.TabIndex = 6; + this.RadioGood.TabStop = true; + this.RadioGood.Text = "Good"; + this.RadioGood.UseVisualStyleBackColor = true; + this.RadioGood.CheckedChanged += new System.EventHandler(this.RadioGood_CheckedChanged); + // + // RadioNice + // + this.RadioNice.Appearance = System.Windows.Forms.Appearance.Button; + this.RadioNice.AutoSize = true; + this.RadioNice.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + this.RadioNice.Location = new System.Drawing.Point(454, 666); + this.RadioNice.Name = "RadioNice"; + this.RadioNice.Size = new System.Drawing.Size(55, 29); + this.RadioNice.TabIndex = 7; + this.RadioNice.TabStop = true; + this.RadioNice.Text = "Nice"; + this.RadioNice.UseVisualStyleBackColor = true; + this.RadioNice.CheckedChanged += new System.EventHandler(this.RadioNice_CheckedChanged); + // + // RadioGreat + // + this.RadioGreat.Appearance = System.Windows.Forms.Appearance.Button; + this.RadioGreat.AutoSize = true; + this.RadioGreat.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + this.RadioGreat.Location = new System.Drawing.Point(515, 666); + this.RadioGreat.Name = "RadioGreat"; + this.RadioGreat.Size = new System.Drawing.Size(65, 29); + this.RadioGreat.TabIndex = 8; + this.RadioGreat.TabStop = true; + this.RadioGreat.Text = "Great"; + this.RadioGreat.UseVisualStyleBackColor = true; + this.RadioGreat.CheckedChanged += new System.EventHandler(this.RadioGreat_CheckedChanged); + // + // RadioExcellent + // + this.RadioExcellent.Appearance = System.Windows.Forms.Appearance.Button; + this.RadioExcellent.AutoSize = true; + this.RadioExcellent.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + this.RadioExcellent.Location = new System.Drawing.Point(586, 666); + this.RadioExcellent.Name = "RadioExcellent"; + this.RadioExcellent.Size = new System.Drawing.Size(94, 29); + this.RadioExcellent.TabIndex = 9; + this.RadioExcellent.TabStop = true; + this.RadioExcellent.Text = "Excellent"; + this.RadioExcellent.UseVisualStyleBackColor = true; + this.RadioExcellent.CheckedChanged += new System.EventHandler(this.RadioExcellent_CheckedChanged); + // + // BtnClose + // + this.BtnClose.Font = new System.Drawing.Font("MS UI Gothic", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(128))); + this.BtnClose.Location = new System.Drawing.Point(776, 667); + this.BtnClose.Name = "BtnClose"; + this.BtnClose.Size = new System.Drawing.Size(84, 27); + this.BtnClose.TabIndex = 10; + this.BtnClose.Text = "閉じる"; + this.BtnClose.UseVisualStyleBackColor = true; + this.BtnClose.Click += new System.EventHandler(this.BtnClose_Click); + // // FormCompareLogs // this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; - this.ClientSize = new System.Drawing.Size(872, 681); + this.ClientSize = new System.Drawing.Size(872, 708); + this.Controls.Add(this.BtnClose); + this.Controls.Add(this.RadioExcellent); + this.Controls.Add(this.RadioGreat); + this.Controls.Add(this.RadioNice); + this.Controls.Add(this.RadioGood); this.Controls.Add(this.RadioOK); this.Controls.Add(this.label1); this.Controls.Add(this.RadioPoint); @@ -246,5 +324,10 @@ private System.Windows.Forms.RadioButton RadioPoint; private System.Windows.Forms.Label label1; private System.Windows.Forms.RadioButton RadioOK; + private System.Windows.Forms.RadioButton RadioGood; + private System.Windows.Forms.RadioButton RadioNice; + private System.Windows.Forms.RadioButton RadioGreat; + private System.Windows.Forms.RadioButton RadioExcellent; + private System.Windows.Forms.Button BtnClose; } } \ No newline at end of file diff --git a/EcomAnalysis/FormCompareLogs.cs b/EcomAnalysis/FormCompareLogs.cs index 653bcdf..64a9ce6 100644 --- a/EcomAnalysis/FormCompareLogs.cs +++ b/EcomAnalysis/FormCompareLogs.cs @@ -39,9 +39,6 @@ $"{log.FB.Count(Feedback.FBITEM.NICE)} 回", $"{log.FB.Count(Feedback.FBITEM.GREAT)} 回", $"{log.FB.Count(Feedback.FBITEM.EXCELLENT)} 回"})); - - chart1.Series[0].Points.AddXY($"visit {log.Visit}\r\n{log.ExecDate.ToString("MM/dd")}", - log.FB.Count(Feedback.FBITEM.TOTAL)); } } @@ -59,13 +56,18 @@ case 6: val = log.FB.Count(Feedback.FBITEM.EXCELLENT); break; } - chart1.Series[0].Points.AddXY($"visit {log.Visit}\r\n{log.ExecDate.ToString("MM/dd")}", - val); + chart1.Series[0].Points.AddXY( + $"visit {log.Visit}\r\n{log.ExecDate.ToString("MM/dd")}", val); } - var titles = new string[] {"フィードバック回数", "獲得ポイント", "OK回数", + var titles = new string[] {"合計フィードバック回数", "獲得ポイント", "OK回数", "Good回数", "Nice回数", "Great回数", "Excellent回数"}; chart1.Titles[0].Text = titles[type]; + + var colors = new Color[] { Color.Orange, Color.Blue, Color.PaleGreen, + Color.MediumPurple, Color.Gold, Color.Red, Color.Brown}; + chart1.Series[0].Color = colors[type]; + chart1.Series[0].MarkerColor = colors[type]; } private void RadioFBTotal_CheckedChanged(object sender, EventArgs e) { @@ -79,5 +81,25 @@ private void RadioOK_CheckedChanged(object sender, EventArgs e) { MakeChart(2); } + + private void RadioGood_CheckedChanged(object sender, EventArgs e) { + MakeChart(3); + } + + private void RadioNice_CheckedChanged(object sender, EventArgs e) { + MakeChart(4); + } + + private void RadioGreat_CheckedChanged(object sender, EventArgs e) { + MakeChart(5); + } + + private void RadioExcellent_CheckedChanged(object sender, EventArgs e) { + MakeChart(6); + } + + private void BtnClose_Click(object sender, EventArgs e) { + Close(); + } } }