Переглянути джерело

Excel 작업 끝난 후 Process 남아 있을 떄 강제로 Kill 하도록 수정

YJ 5 роки тому
батько
коміт
da67f1b12d

+ 185 - 184
Main.Designer.cs

@@ -59,25 +59,15 @@
59 59
             this.label_Catm1Test = new System.Windows.Forms.Label();
60 60
             this.panel_GpsMode = new System.Windows.Forms.Panel();
61 61
             this.label_GPSTest = new System.Windows.Forms.Label();
62
-            this.panel_SnCheckMain = new System.Windows.Forms.Panel();
63
-            this.button_DiffClear = new System.Windows.Forms.Button();
64
-            this.button_DuplicateClear = new System.Windows.Forms.Button();
65
-            this.button_SNClear = new System.Windows.Forms.Button();
66
-            this.button_ChkStart = new System.Windows.Forms.Button();
67
-            this.label_Diff = new System.Windows.Forms.Label();
68
-            this.label8 = new System.Windows.Forms.Label();
69
-            this.label_Duplicate = new System.Windows.Forms.Label();
70
-            this.listBox_Diff = new System.Windows.Forms.ListBox();
71
-            this.listBox_ProductDuplicate = new System.Windows.Forms.ListBox();
72
-            this.listBox_SNDuplicate = new System.Windows.Forms.ListBox();
73
-            this.dataGridView_Chk = new System.Windows.Forms.DataGridView();
74
-            this.button_FileFindLoad = new System.Windows.Forms.Button();
75
-            this.progressBar2 = new System.Windows.Forms.ProgressBar();
76 62
             this.panel_GpsTest = new System.Windows.Forms.Panel();
77 63
             this.button_GpsTestSave = new System.Windows.Forms.Button();
78 64
             this.richTextBox_Gps = new System.Windows.Forms.RichTextBox();
79 65
             this.checkBox_GPGSV = new System.Windows.Forms.CheckBox();
80 66
             this.dataGridView_Gps = new System.Windows.Forms.DataGridView();
67
+            this.Gps_SerialNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
68
+            this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
69
+            this.LitmitMinimum = new System.Windows.Forms.DataGridViewTextBoxColumn();
70
+            this.LitmitMaximum = new System.Windows.Forms.DataGridViewTextBoxColumn();
81 71
             this.panel_SensorTest = new System.Windows.Forms.Panel();
82 72
             this.pictureBox_Check2 = new System.Windows.Forms.PictureBox();
83 73
             this.pictureBox_Check3 = new System.Windows.Forms.PictureBox();
@@ -121,12 +111,22 @@
121 111
             this.Catm1_SerialNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
122 112
             this.Modem_Ver = new System.Windows.Forms.DataGridViewTextBoxColumn();
123 113
             this.RSRP = new System.Windows.Forms.DataGridViewTextBoxColumn();
114
+            this.panel_SnCheckMain = new System.Windows.Forms.Panel();
115
+            this.button_DiffClear = new System.Windows.Forms.Button();
116
+            this.button_DuplicateClear = new System.Windows.Forms.Button();
117
+            this.button_SNClear = new System.Windows.Forms.Button();
118
+            this.button_ChkStart = new System.Windows.Forms.Button();
119
+            this.label_Diff = new System.Windows.Forms.Label();
120
+            this.label8 = new System.Windows.Forms.Label();
121
+            this.label_Duplicate = new System.Windows.Forms.Label();
122
+            this.listBox_Diff = new System.Windows.Forms.ListBox();
123
+            this.listBox_ProductDuplicate = new System.Windows.Forms.ListBox();
124
+            this.listBox_SNDuplicate = new System.Windows.Forms.ListBox();
125
+            this.dataGridView_Chk = new System.Windows.Forms.DataGridView();
126
+            this.button_FileFindLoad = new System.Windows.Forms.Button();
127
+            this.progressBar2 = new System.Windows.Forms.ProgressBar();
124 128
             this.folderBrowserDialog_Mainpath = new System.Windows.Forms.FolderBrowserDialog();
125 129
             this.openFileDialog = new System.Windows.Forms.OpenFileDialog();
126
-            this.Gps_SerialNumber = new System.Windows.Forms.DataGridViewTextBoxColumn();
127
-            this.dataGridViewTextBoxColumn8 = new System.Windows.Forms.DataGridViewTextBoxColumn();
128
-            this.LitmitMinimum = new System.Windows.Forms.DataGridViewTextBoxColumn();
129
-            this.LitmitMaximum = new System.Windows.Forms.DataGridViewTextBoxColumn();
130 130
             this.panel_Main.SuspendLayout();
131 131
             this.panel4.SuspendLayout();
132 132
             ((System.ComponentModel.ISupportInitialize)(this.pictureBox5)).BeginInit();
@@ -139,8 +139,6 @@
139 139
             this.panel_SensorMode.SuspendLayout();
140 140
             this.panel_Catm1Mode.SuspendLayout();
141 141
             this.panel_GpsMode.SuspendLayout();
142
-            this.panel_SnCheckMain.SuspendLayout();
143
-            ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Chk)).BeginInit();
144 142
             this.panel_GpsTest.SuspendLayout();
145 143
             ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Gps)).BeginInit();
146 144
             this.panel_SensorTest.SuspendLayout();
@@ -157,6 +155,8 @@
157 155
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).BeginInit();
158 156
             this.panel_Catm1Test.SuspendLayout();
159 157
             ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Catm1)).BeginInit();
158
+            this.panel_SnCheckMain.SuspendLayout();
159
+            ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Chk)).BeginInit();
160 160
             this.SuspendLayout();
161 161
             // 
162 162
             // serialPort
@@ -173,11 +173,11 @@
173 173
             this.panel_Main.Controls.Add(this.panel4);
174 174
             this.panel_Main.Controls.Add(this.label6);
175 175
             this.panel_Main.Controls.Add(this.panel1);
176
+            this.panel_Main.Controls.Add(this.panel_GpsTest);
176 177
             this.panel_Main.Controls.Add(this.panel_SensorTest);
177 178
             this.panel_Main.Controls.Add(this.panel_MergeMain);
178 179
             this.panel_Main.Controls.Add(this.panel_Catm1Test);
179 180
             this.panel_Main.Controls.Add(this.panel_SnCheckMain);
180
-            this.panel_Main.Controls.Add(this.panel_GpsTest);
181 181
             this.panel_Main.Location = new System.Drawing.Point(0, 0);
182 182
             this.panel_Main.Name = "panel_Main";
183 183
             this.panel_Main.Size = new System.Drawing.Size(1356, 710);
@@ -519,152 +519,6 @@
519 519
             this.label_GPSTest.MouseLeave += new System.EventHandler(this.label_GPSTest_MouseLeave);
520 520
             this.label_GPSTest.MouseMove += new System.Windows.Forms.MouseEventHandler(this.label_GPSTest_MouseMove);
521 521
             // 
522
-            // panel_SnCheckMain
523
-            // 
524
-            this.panel_SnCheckMain.Controls.Add(this.button_DiffClear);
525
-            this.panel_SnCheckMain.Controls.Add(this.button_DuplicateClear);
526
-            this.panel_SnCheckMain.Controls.Add(this.button_SNClear);
527
-            this.panel_SnCheckMain.Controls.Add(this.button_ChkStart);
528
-            this.panel_SnCheckMain.Controls.Add(this.label_Diff);
529
-            this.panel_SnCheckMain.Controls.Add(this.label8);
530
-            this.panel_SnCheckMain.Controls.Add(this.label_Duplicate);
531
-            this.panel_SnCheckMain.Controls.Add(this.listBox_Diff);
532
-            this.panel_SnCheckMain.Controls.Add(this.listBox_ProductDuplicate);
533
-            this.panel_SnCheckMain.Controls.Add(this.listBox_SNDuplicate);
534
-            this.panel_SnCheckMain.Controls.Add(this.dataGridView_Chk);
535
-            this.panel_SnCheckMain.Controls.Add(this.button_FileFindLoad);
536
-            this.panel_SnCheckMain.Controls.Add(this.progressBar2);
537
-            this.panel_SnCheckMain.Location = new System.Drawing.Point(163, 44);
538
-            this.panel_SnCheckMain.Name = "panel_SnCheckMain";
539
-            this.panel_SnCheckMain.Size = new System.Drawing.Size(1202, 599);
540
-            this.panel_SnCheckMain.TabIndex = 90;
541
-            // 
542
-            // button_DiffClear
543
-            // 
544
-            this.button_DiffClear.Location = new System.Drawing.Point(826, 549);
545
-            this.button_DiffClear.Name = "button_DiffClear";
546
-            this.button_DiffClear.Size = new System.Drawing.Size(167, 40);
547
-            this.button_DiffClear.TabIndex = 8;
548
-            this.button_DiffClear.Text = "Clear";
549
-            this.button_DiffClear.UseVisualStyleBackColor = true;
550
-            this.button_DiffClear.Click += new System.EventHandler(this.button_DiffClear_Click);
551
-            // 
552
-            // button_DuplicateClear
553
-            // 
554
-            this.button_DuplicateClear.Location = new System.Drawing.Point(653, 549);
555
-            this.button_DuplicateClear.Name = "button_DuplicateClear";
556
-            this.button_DuplicateClear.Size = new System.Drawing.Size(167, 40);
557
-            this.button_DuplicateClear.TabIndex = 8;
558
-            this.button_DuplicateClear.Text = "Clear";
559
-            this.button_DuplicateClear.UseVisualStyleBackColor = true;
560
-            this.button_DuplicateClear.Click += new System.EventHandler(this.button_DuplicateClear_Click);
561
-            // 
562
-            // button_SNClear
563
-            // 
564
-            this.button_SNClear.Location = new System.Drawing.Point(481, 549);
565
-            this.button_SNClear.Name = "button_SNClear";
566
-            this.button_SNClear.Size = new System.Drawing.Size(167, 40);
567
-            this.button_SNClear.TabIndex = 8;
568
-            this.button_SNClear.Text = "Clear";
569
-            this.button_SNClear.UseVisualStyleBackColor = true;
570
-            this.button_SNClear.Click += new System.EventHandler(this.button_SNClear_Click);
571
-            // 
572
-            // button_ChkStart
573
-            // 
574
-            this.button_ChkStart.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(159)))), ((int)(((byte)(200)))));
575
-            this.button_ChkStart.Location = new System.Drawing.Point(1007, 68);
576
-            this.button_ChkStart.Name = "button_ChkStart";
577
-            this.button_ChkStart.Size = new System.Drawing.Size(75, 519);
578
-            this.button_ChkStart.TabIndex = 7;
579
-            this.button_ChkStart.Text = "Start";
580
-            this.button_ChkStart.UseVisualStyleBackColor = false;
581
-            this.button_ChkStart.Click += new System.EventHandler(this.button_ChkStart_Click);
582
-            // 
583
-            // label_Diff
584
-            // 
585
-            this.label_Diff.AutoSize = true;
586
-            this.label_Diff.Font = new System.Drawing.Font("굴림", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
587
-            this.label_Diff.Location = new System.Drawing.Point(843, 78);
588
-            this.label_Diff.Name = "label_Diff";
589
-            this.label_Diff.Size = new System.Drawing.Size(143, 19);
590
-            this.label_Diff.TabIndex = 6;
591
-            this.label_Diff.Text = "짝이 틀린 항목";
592
-            // 
593
-            // label8
594
-            // 
595
-            this.label8.AutoSize = true;
596
-            this.label8.Font = new System.Drawing.Font("굴림", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
597
-            this.label8.Location = new System.Drawing.Point(649, 76);
598
-            this.label8.Name = "label8";
599
-            this.label8.Size = new System.Drawing.Size(190, 19);
600
-            this.label8.TabIndex = 6;
601
-            this.label8.Text = "생산 번호 중복 항목";
602
-            // 
603
-            // label_Duplicate
604
-            // 
605
-            this.label_Duplicate.AutoSize = true;
606
-            this.label_Duplicate.Font = new System.Drawing.Font("굴림", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
607
-            this.label_Duplicate.Location = new System.Drawing.Point(499, 78);
608
-            this.label_Duplicate.Name = "label_Duplicate";
609
-            this.label_Duplicate.Size = new System.Drawing.Size(137, 19);
610
-            this.label_Duplicate.TabIndex = 6;
611
-            this.label_Duplicate.Text = "S/N 중복 항목";
612
-            // 
613
-            // listBox_Diff
614
-            // 
615
-            this.listBox_Diff.FormattingEnabled = true;
616
-            this.listBox_Diff.ItemHeight = 12;
617
-            this.listBox_Diff.Location = new System.Drawing.Point(828, 110);
618
-            this.listBox_Diff.Name = "listBox_Diff";
619
-            this.listBox_Diff.Size = new System.Drawing.Size(168, 436);
620
-            this.listBox_Diff.TabIndex = 5;
621
-            // 
622
-            // listBox_ProductDuplicate
623
-            // 
624
-            this.listBox_ProductDuplicate.FormattingEnabled = true;
625
-            this.listBox_ProductDuplicate.ItemHeight = 12;
626
-            this.listBox_ProductDuplicate.Location = new System.Drawing.Point(654, 110);
627
-            this.listBox_ProductDuplicate.Name = "listBox_ProductDuplicate";
628
-            this.listBox_ProductDuplicate.Size = new System.Drawing.Size(168, 436);
629
-            this.listBox_ProductDuplicate.TabIndex = 5;
630
-            // 
631
-            // listBox_SNDuplicate
632
-            // 
633
-            this.listBox_SNDuplicate.FormattingEnabled = true;
634
-            this.listBox_SNDuplicate.ItemHeight = 12;
635
-            this.listBox_SNDuplicate.Location = new System.Drawing.Point(480, 110);
636
-            this.listBox_SNDuplicate.Name = "listBox_SNDuplicate";
637
-            this.listBox_SNDuplicate.Size = new System.Drawing.Size(168, 436);
638
-            this.listBox_SNDuplicate.TabIndex = 5;
639
-            // 
640
-            // dataGridView_Chk
641
-            // 
642
-            this.dataGridView_Chk.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.DisplayedCells;
643
-            this.dataGridView_Chk.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
644
-            this.dataGridView_Chk.Location = new System.Drawing.Point(102, 65);
645
-            this.dataGridView_Chk.Name = "dataGridView_Chk";
646
-            this.dataGridView_Chk.RowTemplate.Height = 23;
647
-            this.dataGridView_Chk.Size = new System.Drawing.Size(372, 524);
648
-            this.dataGridView_Chk.TabIndex = 4;
649
-            // 
650
-            // button_FileFindLoad
651
-            // 
652
-            this.button_FileFindLoad.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(159)))), ((int)(((byte)(200)))));
653
-            this.button_FileFindLoad.Location = new System.Drawing.Point(21, 65);
654
-            this.button_FileFindLoad.Name = "button_FileFindLoad";
655
-            this.button_FileFindLoad.Size = new System.Drawing.Size(75, 519);
656
-            this.button_FileFindLoad.TabIndex = 3;
657
-            this.button_FileFindLoad.Text = "Load";
658
-            this.button_FileFindLoad.UseVisualStyleBackColor = false;
659
-            this.button_FileFindLoad.Click += new System.EventHandler(this.button_FileFindLoad_Click);
660
-            // 
661
-            // progressBar2
662
-            // 
663
-            this.progressBar2.Location = new System.Drawing.Point(21, 21);
664
-            this.progressBar2.Name = "progressBar2";
665
-            this.progressBar2.Size = new System.Drawing.Size(1159, 40);
666
-            this.progressBar2.TabIndex = 0;
667
-            // 
668 522
             // panel_GpsTest
669 523
             // 
670 524
             this.panel_GpsTest.Controls.Add(this.button_GpsTestSave);
@@ -725,8 +579,29 @@
725 579
             this.dataGridView_Gps.RowTemplate.Height = 23;
726 580
             this.dataGridView_Gps.Size = new System.Drawing.Size(889, 56);
727 581
             this.dataGridView_Gps.TabIndex = 15;
582
+            this.dataGridView_Gps.CellClick += new System.Windows.Forms.DataGridViewCellEventHandler(this.dataGridView_Gps_CellClick);
728 583
             this.dataGridView_Gps.KeyDown += new System.Windows.Forms.KeyEventHandler(this.dataGridView_Gps_KeyDown);
729 584
             // 
585
+            // Gps_SerialNumber
586
+            // 
587
+            this.Gps_SerialNumber.HeaderText = "생산번호";
588
+            this.Gps_SerialNumber.Name = "Gps_SerialNumber";
589
+            // 
590
+            // dataGridViewTextBoxColumn8
591
+            // 
592
+            this.dataGridViewTextBoxColumn8.HeaderText = "GPS SNR";
593
+            this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
594
+            // 
595
+            // LitmitMinimum
596
+            // 
597
+            this.LitmitMinimum.HeaderText = "LitmitMinimum";
598
+            this.LitmitMinimum.Name = "LitmitMinimum";
599
+            // 
600
+            // LitmitMaximum
601
+            // 
602
+            this.LitmitMaximum.HeaderText = "LitmitMaximum";
603
+            this.LitmitMaximum.Name = "LitmitMaximum";
604
+            // 
730 605
             // panel_SensorTest
731 606
             // 
732 607
             this.panel_SensorTest.Controls.Add(this.pictureBox_Check2);
@@ -1132,29 +1007,155 @@
1132 1007
             this.RSRP.HeaderText = "RSRP";
1133 1008
             this.RSRP.Name = "RSRP";
1134 1009
             // 
1135
-            // openFileDialog
1010
+            // panel_SnCheckMain
1136 1011
             // 
1137
-            this.openFileDialog.Multiselect = true;
1012
+            this.panel_SnCheckMain.Controls.Add(this.button_DiffClear);
1013
+            this.panel_SnCheckMain.Controls.Add(this.button_DuplicateClear);
1014
+            this.panel_SnCheckMain.Controls.Add(this.button_SNClear);
1015
+            this.panel_SnCheckMain.Controls.Add(this.button_ChkStart);
1016
+            this.panel_SnCheckMain.Controls.Add(this.label_Diff);
1017
+            this.panel_SnCheckMain.Controls.Add(this.label8);
1018
+            this.panel_SnCheckMain.Controls.Add(this.label_Duplicate);
1019
+            this.panel_SnCheckMain.Controls.Add(this.listBox_Diff);
1020
+            this.panel_SnCheckMain.Controls.Add(this.listBox_ProductDuplicate);
1021
+            this.panel_SnCheckMain.Controls.Add(this.listBox_SNDuplicate);
1022
+            this.panel_SnCheckMain.Controls.Add(this.dataGridView_Chk);
1023
+            this.panel_SnCheckMain.Controls.Add(this.button_FileFindLoad);
1024
+            this.panel_SnCheckMain.Controls.Add(this.progressBar2);
1025
+            this.panel_SnCheckMain.Location = new System.Drawing.Point(163, 44);
1026
+            this.panel_SnCheckMain.Name = "panel_SnCheckMain";
1027
+            this.panel_SnCheckMain.Size = new System.Drawing.Size(1202, 599);
1028
+            this.panel_SnCheckMain.TabIndex = 90;
1138 1029
             // 
1139
-            // Gps_SerialNumber
1030
+            // button_DiffClear
1140 1031
             // 
1141
-            this.Gps_SerialNumber.HeaderText = "생산번호";
1142
-            this.Gps_SerialNumber.Name = "Gps_SerialNumber";
1032
+            this.button_DiffClear.Location = new System.Drawing.Point(826, 549);
1033
+            this.button_DiffClear.Name = "button_DiffClear";
1034
+            this.button_DiffClear.Size = new System.Drawing.Size(167, 40);
1035
+            this.button_DiffClear.TabIndex = 8;
1036
+            this.button_DiffClear.Text = "Clear";
1037
+            this.button_DiffClear.UseVisualStyleBackColor = true;
1038
+            this.button_DiffClear.Click += new System.EventHandler(this.button_DiffClear_Click);
1143 1039
             // 
1144
-            // dataGridViewTextBoxColumn8
1040
+            // button_DuplicateClear
1145 1041
             // 
1146
-            this.dataGridViewTextBoxColumn8.HeaderText = "GPS SNR";
1147
-            this.dataGridViewTextBoxColumn8.Name = "dataGridViewTextBoxColumn8";
1042
+            this.button_DuplicateClear.Location = new System.Drawing.Point(653, 549);
1043
+            this.button_DuplicateClear.Name = "button_DuplicateClear";
1044
+            this.button_DuplicateClear.Size = new System.Drawing.Size(167, 40);
1045
+            this.button_DuplicateClear.TabIndex = 8;
1046
+            this.button_DuplicateClear.Text = "Clear";
1047
+            this.button_DuplicateClear.UseVisualStyleBackColor = true;
1048
+            this.button_DuplicateClear.Click += new System.EventHandler(this.button_DuplicateClear_Click);
1148 1049
             // 
1149
-            // LitmitMinimum
1050
+            // button_SNClear
1150 1051
             // 
1151
-            this.LitmitMinimum.HeaderText = "LitmitMinimum";
1152
-            this.LitmitMinimum.Name = "LitmitMinimum";
1052
+            this.button_SNClear.Location = new System.Drawing.Point(481, 549);
1053
+            this.button_SNClear.Name = "button_SNClear";
1054
+            this.button_SNClear.Size = new System.Drawing.Size(167, 40);
1055
+            this.button_SNClear.TabIndex = 8;
1056
+            this.button_SNClear.Text = "Clear";
1057
+            this.button_SNClear.UseVisualStyleBackColor = true;
1058
+            this.button_SNClear.Click += new System.EventHandler(this.button_SNClear_Click);
1153 1059
             // 
1154
-            // LitmitMaximum
1060
+            // button_ChkStart
1155 1061
             // 
1156
-            this.LitmitMaximum.HeaderText = "LitmitMaximum";
1157
-            this.LitmitMaximum.Name = "LitmitMaximum";
1062
+            this.button_ChkStart.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(159)))), ((int)(((byte)(200)))));
1063
+            this.button_ChkStart.Location = new System.Drawing.Point(1007, 68);
1064
+            this.button_ChkStart.Name = "button_ChkStart";
1065
+            this.button_ChkStart.Size = new System.Drawing.Size(75, 519);
1066
+            this.button_ChkStart.TabIndex = 7;
1067
+            this.button_ChkStart.Text = "Start";
1068
+            this.button_ChkStart.UseVisualStyleBackColor = false;
1069
+            this.button_ChkStart.Click += new System.EventHandler(this.button_ChkStart_Click);
1070
+            // 
1071
+            // label_Diff
1072
+            // 
1073
+            this.label_Diff.AutoSize = true;
1074
+            this.label_Diff.Font = new System.Drawing.Font("굴림", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
1075
+            this.label_Diff.Location = new System.Drawing.Point(843, 78);
1076
+            this.label_Diff.Name = "label_Diff";
1077
+            this.label_Diff.Size = new System.Drawing.Size(143, 19);
1078
+            this.label_Diff.TabIndex = 6;
1079
+            this.label_Diff.Text = "짝이 틀린 항목";
1080
+            // 
1081
+            // label8
1082
+            // 
1083
+            this.label8.AutoSize = true;
1084
+            this.label8.Font = new System.Drawing.Font("굴림", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
1085
+            this.label8.Location = new System.Drawing.Point(649, 76);
1086
+            this.label8.Name = "label8";
1087
+            this.label8.Size = new System.Drawing.Size(190, 19);
1088
+            this.label8.TabIndex = 6;
1089
+            this.label8.Text = "생산 번호 중복 항목";
1090
+            // 
1091
+            // label_Duplicate
1092
+            // 
1093
+            this.label_Duplicate.AutoSize = true;
1094
+            this.label_Duplicate.Font = new System.Drawing.Font("굴림", 14F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(129)));
1095
+            this.label_Duplicate.Location = new System.Drawing.Point(499, 78);
1096
+            this.label_Duplicate.Name = "label_Duplicate";
1097
+            this.label_Duplicate.Size = new System.Drawing.Size(137, 19);
1098
+            this.label_Duplicate.TabIndex = 6;
1099
+            this.label_Duplicate.Text = "S/N 중복 항목";
1100
+            // 
1101
+            // listBox_Diff
1102
+            // 
1103
+            this.listBox_Diff.FormattingEnabled = true;
1104
+            this.listBox_Diff.ItemHeight = 12;
1105
+            this.listBox_Diff.Location = new System.Drawing.Point(828, 110);
1106
+            this.listBox_Diff.Name = "listBox_Diff";
1107
+            this.listBox_Diff.Size = new System.Drawing.Size(168, 436);
1108
+            this.listBox_Diff.TabIndex = 5;
1109
+            // 
1110
+            // listBox_ProductDuplicate
1111
+            // 
1112
+            this.listBox_ProductDuplicate.FormattingEnabled = true;
1113
+            this.listBox_ProductDuplicate.ItemHeight = 12;
1114
+            this.listBox_ProductDuplicate.Location = new System.Drawing.Point(654, 110);
1115
+            this.listBox_ProductDuplicate.Name = "listBox_ProductDuplicate";
1116
+            this.listBox_ProductDuplicate.Size = new System.Drawing.Size(168, 436);
1117
+            this.listBox_ProductDuplicate.TabIndex = 5;
1118
+            // 
1119
+            // listBox_SNDuplicate
1120
+            // 
1121
+            this.listBox_SNDuplicate.FormattingEnabled = true;
1122
+            this.listBox_SNDuplicate.ItemHeight = 12;
1123
+            this.listBox_SNDuplicate.Location = new System.Drawing.Point(480, 110);
1124
+            this.listBox_SNDuplicate.Name = "listBox_SNDuplicate";
1125
+            this.listBox_SNDuplicate.Size = new System.Drawing.Size(168, 436);
1126
+            this.listBox_SNDuplicate.TabIndex = 5;
1127
+            // 
1128
+            // dataGridView_Chk
1129
+            // 
1130
+            this.dataGridView_Chk.AutoSizeColumnsMode = System.Windows.Forms.DataGridViewAutoSizeColumnsMode.DisplayedCells;
1131
+            this.dataGridView_Chk.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
1132
+            this.dataGridView_Chk.Location = new System.Drawing.Point(102, 65);
1133
+            this.dataGridView_Chk.Name = "dataGridView_Chk";
1134
+            this.dataGridView_Chk.RowTemplate.Height = 23;
1135
+            this.dataGridView_Chk.Size = new System.Drawing.Size(372, 524);
1136
+            this.dataGridView_Chk.TabIndex = 4;
1137
+            // 
1138
+            // button_FileFindLoad
1139
+            // 
1140
+            this.button_FileFindLoad.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(0)))), ((int)(((byte)(159)))), ((int)(((byte)(200)))));
1141
+            this.button_FileFindLoad.Location = new System.Drawing.Point(21, 65);
1142
+            this.button_FileFindLoad.Name = "button_FileFindLoad";
1143
+            this.button_FileFindLoad.Size = new System.Drawing.Size(75, 519);
1144
+            this.button_FileFindLoad.TabIndex = 3;
1145
+            this.button_FileFindLoad.Text = "Load";
1146
+            this.button_FileFindLoad.UseVisualStyleBackColor = false;
1147
+            this.button_FileFindLoad.Click += new System.EventHandler(this.button_FileFindLoad_Click);
1148
+            // 
1149
+            // progressBar2
1150
+            // 
1151
+            this.progressBar2.Location = new System.Drawing.Point(21, 21);
1152
+            this.progressBar2.Name = "progressBar2";
1153
+            this.progressBar2.Size = new System.Drawing.Size(1159, 40);
1154
+            this.progressBar2.TabIndex = 0;
1155
+            // 
1156
+            // openFileDialog
1157
+            // 
1158
+            this.openFileDialog.Multiselect = true;
1158 1159
             // 
1159 1160
             // Main
1160 1161
             // 
@@ -1188,9 +1189,6 @@
1188 1189
             this.panel_Catm1Mode.PerformLayout();
1189 1190
             this.panel_GpsMode.ResumeLayout(false);
1190 1191
             this.panel_GpsMode.PerformLayout();
1191
-            this.panel_SnCheckMain.ResumeLayout(false);
1192
-            this.panel_SnCheckMain.PerformLayout();
1193
-            ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Chk)).EndInit();
1194 1192
             this.panel_GpsTest.ResumeLayout(false);
1195 1193
             this.panel_GpsTest.PerformLayout();
1196 1194
             ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Gps)).EndInit();
@@ -1210,6 +1208,9 @@
1210 1208
             ((System.ComponentModel.ISupportInitialize)(this.numericUpDown1)).EndInit();
1211 1209
             this.panel_Catm1Test.ResumeLayout(false);
1212 1210
             ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Catm1)).EndInit();
1211
+            this.panel_SnCheckMain.ResumeLayout(false);
1212
+            this.panel_SnCheckMain.PerformLayout();
1213
+            ((System.ComponentModel.ISupportInitialize)(this.dataGridView_Chk)).EndInit();
1213 1214
             this.ResumeLayout(false);
1214 1215
 
1215 1216
         }

+ 112 - 6
Main.cs

@@ -16,6 +16,7 @@ using System.Reflection;
16 16
 using Microsoft.WindowsAPICodePack.Dialogs;
17 17
 using System.Threading;
18 18
 using System.Data.OleDb;
19
+using System.Collections;
19 20
 
20 21
 
21 22
 //using Microsoft.Office.Interop.Excel;
@@ -909,8 +910,15 @@ namespace APL_TestCheck
909 910
             tbReceived.Text = "";
910 911
         }
911 912
         string FileSaveSet = null;
913
+
914
+
915
+        //private Thread rTh_Gps;
916
+
912 917
         private void button_GpsTestSave_Click(object sender, EventArgs e)
913 918
         {
919
+          // rTh_Gps = new Thread(new ParameterizedThreadStart(Gps_DataxlsWrite));
920
+            
921
+            Thread.Sleep(1000);
914 922
             AutoClosingMessageBox.Show("저장 중.....", "알림", 1000);
915 923
             string CheckProductionNum = null;
916 924
             try
@@ -991,7 +999,9 @@ namespace APL_TestCheck
991 999
                 MessageBox.Show("생산번호/GPS SNR 값이 제대로 입력 되지 않았습니다.\r\n확인후 다시 저장하세요.");
992 1000
                 return;
993 1001
             }
1002
+           // rTh_Gps.Start();
994 1003
             Gps_DataxlsWrite(Dst_Xls_File);
1004
+            //rTh_Gps.Start(Dst_Xls_File);
995 1005
             dataGridView_Gps.Rows[0].Cells[0].Value = null;
996 1006
             dataGridView_Gps.Rows[0].Cells[1].Value = null;
997 1007
             dataGridView_Gps.Refresh();
@@ -1115,13 +1125,24 @@ namespace APL_TestCheck
1115 1125
             }
1116 1126
 #endif
1117 1127
         }
1118
-
1119 1128
         Excel.Application ExcelApp = null;
1120 1129
         Excel.Workbook wb = null;
1121 1130
         Excel.Worksheet ws = null;
1122
-
1123
-        private void Gps_DataxlsWrite(string dst)
1131
+        private void Gps_DataxlsWrite(object dst)
1124 1132
         {
1133
+
1134
+ 
1135
+
1136
+            #region // 프로세스 얻기 
1137
+            System.Diagnostics.Process[] BeforeExcelProcess;
1138
+            BeforeExcelProcess = System.Diagnostics.Process.GetProcessesByName("EXCEL");
1139
+            ArrayList arlProcessID = new ArrayList();
1140
+            for (int i = 0; i < BeforeExcelProcess.Length; i++)
1141
+            {
1142
+                arlProcessID.Add(BeforeExcelProcess[i].Id);
1143
+            }
1144
+            #endregion
1145
+
1125 1146
             //Write
1126 1147
 
1127 1148
             //파일이 존재 한다면..삭제 하고..
@@ -1132,7 +1153,7 @@ namespace APL_TestCheck
1132 1153
             try
1133 1154
             {
1134 1155
                 ExcelApp = new Excel.Application();
1135
-                wb = ExcelApp.Workbooks.Open(dst, 0, false, 5, Missing.Value, Missing.Value, false, Missing.Value,
1156
+                wb = ExcelApp.Workbooks.Open(dst.ToString(), 0, false, 5, Missing.Value, Missing.Value, false, Missing.Value,
1136 1157
                    Missing.Value, true, false, Missing.Value, false, false, false);
1137 1158
                 ws = wb.Worksheets["Sheet1"] as Excel.Worksheet;
1138 1159
 
@@ -1164,7 +1185,7 @@ namespace APL_TestCheck
1164 1185
                           */
1165 1186
                 //파일 닫기... 
1166 1187
                 wb.Close(false, Type.Missing, Type.Missing);
1167
-                wb = null;
1188
+               // wb = null;
1168 1189
                 ExcelApp.Quit();
1169 1190
             }
1170 1191
             catch (Exception ex)
@@ -1173,6 +1194,20 @@ namespace APL_TestCheck
1173 1194
                 ReleaseExcelObject(ws);
1174 1195
                 ReleaseExcelObject(wb);
1175 1196
                 ReleaseExcelObject(ExcelApp);
1197
+                #region // 프로세스 죽이기
1198
+                System.Diagnostics.Process[] AfterExcelProcess;
1199
+                AfterExcelProcess = System.Diagnostics.Process.GetProcessesByName("EXCEL");
1200
+
1201
+                for (int i = 0; i < AfterExcelProcess.Length; i++)
1202
+                {
1203
+                    try
1204
+                    {
1205
+                        if (!arlProcessID.Contains(AfterExcelProcess[i].Id))
1206
+                            AfterExcelProcess[i].Kill();
1207
+                    }
1208
+                    catch { }
1209
+                }
1210
+                #endregion
1176 1211
                 GC.Collect();
1177 1212
             }
1178 1213
             finally
@@ -1181,11 +1216,37 @@ namespace APL_TestCheck
1181 1216
                 ReleaseExcelObject(ws);
1182 1217
                 ReleaseExcelObject(wb);
1183 1218
                 ReleaseExcelObject(ExcelApp);
1219
+                #region // 프로세스 죽이기
1220
+                System.Diagnostics.Process[] AfterExcelProcess;
1221
+                AfterExcelProcess = System.Diagnostics.Process.GetProcessesByName("EXCEL");
1222
+
1223
+                for (int i = 0; i < AfterExcelProcess.Length; i++)
1224
+                {
1225
+                    try
1226
+                    {
1227
+                        if (!arlProcessID.Contains(AfterExcelProcess[i].Id))
1228
+                            AfterExcelProcess[i].Kill();
1229
+                    }
1230
+                    catch { }
1231
+                }
1232
+                #endregion
1233
+                //ExcelApp = null;
1184 1234
                 GC.Collect();
1185 1235
             }
1186 1236
         }
1187 1237
         private void Sensor_DataxlsWrite(string dst)
1188 1238
         {
1239
+   
1240
+
1241
+            #region // 프로세스 얻기 
1242
+            System.Diagnostics.Process[] BeforeExcelProcess;
1243
+            BeforeExcelProcess = System.Diagnostics.Process.GetProcessesByName("EXCEL");
1244
+            ArrayList arlProcessID = new ArrayList();
1245
+            for (int i = 0; i < BeforeExcelProcess.Length; i++)
1246
+            {
1247
+                arlProcessID.Add(BeforeExcelProcess[i].Id);
1248
+            }
1249
+            #endregion
1189 1250
             //Write
1190 1251
 
1191 1252
             //파일이 존재 한다면..삭제 하고..
@@ -1238,8 +1299,9 @@ namespace APL_TestCheck
1238 1299
                                       */
1239 1300
                            //파일 닫기... 
1240 1301
                 wb.Close(false, Type.Missing, Type.Missing);
1241
-                wb = null;
1302
+               // wb = null;
1242 1303
                 ExcelApp.Quit();
1304
+                //ExcelApp = null;
1243 1305
             }
1244 1306
             catch (Exception ex)
1245 1307
             {
@@ -1247,6 +1309,20 @@ namespace APL_TestCheck
1247 1309
                 ReleaseExcelObject(ws);
1248 1310
                 ReleaseExcelObject(wb);
1249 1311
                 ReleaseExcelObject(ExcelApp);
1312
+                #region // 프로세스 죽이기
1313
+                System.Diagnostics.Process[] AfterExcelProcess;
1314
+                AfterExcelProcess = System.Diagnostics.Process.GetProcessesByName("EXCEL");
1315
+
1316
+                for (int i = 0; i < AfterExcelProcess.Length; i++)
1317
+                {
1318
+                    try
1319
+                    {
1320
+                        if (!arlProcessID.Contains(AfterExcelProcess[i].Id))
1321
+                            AfterExcelProcess[i].Kill();
1322
+                    }
1323
+                    catch { }
1324
+                }
1325
+                #endregion
1250 1326
                 GC.Collect();
1251 1327
             }
1252 1328
             finally
@@ -1255,6 +1331,20 @@ namespace APL_TestCheck
1255 1331
                 ReleaseExcelObject(ws);
1256 1332
                 ReleaseExcelObject(wb);
1257 1333
                 ReleaseExcelObject(ExcelApp);
1334
+                #region // 프로세스 죽이기
1335
+                System.Diagnostics.Process[] AfterExcelProcess;
1336
+                AfterExcelProcess = System.Diagnostics.Process.GetProcessesByName("EXCEL");
1337
+
1338
+                for (int i = 0; i < AfterExcelProcess.Length; i++)
1339
+                {
1340
+                    try
1341
+                    {
1342
+                        if (!arlProcessID.Contains(AfterExcelProcess[i].Id))
1343
+                            AfterExcelProcess[i].Kill();
1344
+                    }
1345
+                    catch { }
1346
+                }
1347
+                #endregion
1258 1348
                 GC.Collect();
1259 1349
             }
1260 1350
         }
@@ -1748,6 +1838,22 @@ namespace APL_TestCheck
1748 1838
         {
1749 1839
             listBox_Diff.Items.Clear();
1750 1840
         }
1841
+
1842
+
1843
+
1844
+        private void dataGridView_Gps_CellClick(object sender, DataGridViewCellEventArgs e)
1845
+        {
1846
+            string value = "";
1847
+            //BL-VITE00-V
1848
+            if (InputBox("번호 입력", "일련 번호:", ref value) == DialogResult.OK && dataGridView_Gps.Rows[0].Cells[1].Value != null)
1849
+            {
1850
+                // SN
1851
+                dataGridView_Gps.Rows[0].Cells[0].Value = Name = value;
1852
+                button_GpsTestSave_Click(null, null);
1853
+                dataGridView_Gps_CellClick(null, null);
1854
+
1855
+            }
1856
+        }
1751 1857
     }
1752 1858
     class AutoClosingMessageBox
1753 1859
     {

+ 0 - 57
Main.resx

@@ -269,51 +269,6 @@
269 269
   <metadata name="BMA_Z.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
270 270
     <value>True</value>
271 271
   </metadata>
272
-  <metadata name="ProductNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
273
-    <value>True</value>
274
-  </metadata>
275
-  <metadata name="SN.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
276
-    <value>True</value>
277
-  </metadata>
278
-  <metadata name="IMEI.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
279
-    <value>True</value>
280
-  </metadata>
281
-  <metadata name="Phone.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
282
-    <value>True</value>
283
-  </metadata>
284
-  <metadata name="USIM.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
285
-    <value>True</value>
286
-  </metadata>
287
-  <metadata name="Version.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
288
-    <value>True</value>
289
-  </metadata>
290
-  <metadata name="BatteryVoltage.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
291
-    <value>True</value>
292
-  </metadata>
293
-  <metadata name="SystemVoltage.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
294
-    <value>True</value>
295
-  </metadata>
296
-  <metadata name="Temp.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
297
-    <value>True</value>
298
-  </metadata>
299
-  <metadata name="BMA_X.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
300
-    <value>True</value>
301
-  </metadata>
302
-  <metadata name="BMA_Y.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
303
-    <value>True</value>
304
-  </metadata>
305
-  <metadata name="BMA_Z.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
306
-    <value>True</value>
307
-  </metadata>
308
-  <metadata name="Catm1_SerialNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
309
-    <value>True</value>
310
-  </metadata>
311
-  <metadata name="Modem_Ver.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
312
-    <value>True</value>
313
-  </metadata>
314
-  <metadata name="RSRP.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
315
-    <value>True</value>
316
-  </metadata>
317 272
   <metadata name="Catm1_SerialNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
318 273
     <value>True</value>
319 274
   </metadata>
@@ -329,18 +284,6 @@
329 284
   <metadata name="openFileDialog.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
330 285
     <value>329, 17</value>
331 286
   </metadata>
332
-  <metadata name="Gps_SerialNumber.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
333
-    <value>True</value>
334
-  </metadata>
335
-  <metadata name="dataGridViewTextBoxColumn8.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
336
-    <value>True</value>
337
-  </metadata>
338
-  <metadata name="LitmitMinimum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
339
-    <value>True</value>
340
-  </metadata>
341
-  <metadata name="LitmitMaximum.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
342
-    <value>True</value>
343
-  </metadata>
344 287
   <data name="$this.Icon" type="System.Drawing.Icon, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
345 288
     <value>
346 289
         AAABAAEAICAAAAEAIACoEAAAFgAAACgAAAAgAAAAQAAAAAEAIAAAAAAAABAAAMMOAADDDgAAAAAAAAAA

BIN
bin/Debug/APL_TestCheck.exe


BIN
bin/Debug/APL_TestCheck.pdb


BIN
obj/Debug/APL_TestCheck.csproj.GenerateResource.cache


BIN
obj/Debug/APL_TestCheck.exe


BIN
obj/Debug/APL_TestCheck.pdb