Browse Source

HFR GUI 변경 사항 아직 미구현

PYJ 5 years ago
parent
commit
f0c5ab100b

BIN
.vs/Jdas_Mbic/v15/.suo


BIN
.vs/Jdas_Mbic/v15/Server/sqlite3/storage.ide


BIN
.vs/Jdas_Mbic/v15/Server/sqlite3/storage.ide-wal


+ 15 - 15
Jdas_Mbic/Main.Designer.cs

@@ -30,9 +30,9 @@
30 30
         {
31 31
             this.components = new System.ComponentModel.Container();
32 32
             System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(JdasMbic));
33
-            System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea1 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
34
-            System.Windows.Forms.DataVisualization.Charting.Legend legend1 = new System.Windows.Forms.DataVisualization.Charting.Legend();
35
-            System.Windows.Forms.DataVisualization.Charting.Series series1 = new System.Windows.Forms.DataVisualization.Charting.Series();
33
+            System.Windows.Forms.DataVisualization.Charting.ChartArea chartArea2 = new System.Windows.Forms.DataVisualization.Charting.ChartArea();
34
+            System.Windows.Forms.DataVisualization.Charting.Legend legend2 = new System.Windows.Forms.DataVisualization.Charting.Legend();
35
+            System.Windows.Forms.DataVisualization.Charting.Series series2 = new System.Windows.Forms.DataVisualization.Charting.Series();
36 36
             this.pictureBox1 = new System.Windows.Forms.PictureBox();
37 37
             this.Mbic_Setting = new System.Windows.Forms.TabControl();
38 38
             this.tabPage_Main = new System.Windows.Forms.TabPage();
@@ -2277,17 +2277,17 @@
2277 2277
             // 
2278 2278
             // chart_Table
2279 2279
             // 
2280
-            chartArea1.Name = "ChartArea1";
2281
-            this.chart_Table.ChartAreas.Add(chartArea1);
2282
-            legend1.Name = "Legend1";
2283
-            this.chart_Table.Legends.Add(legend1);
2280
+            chartArea2.Name = "ChartArea1";
2281
+            this.chart_Table.ChartAreas.Add(chartArea2);
2282
+            legend2.Name = "Legend1";
2283
+            this.chart_Table.Legends.Add(legend2);
2284 2284
             this.chart_Table.Location = new System.Drawing.Point(336, 548);
2285 2285
             this.chart_Table.Name = "chart_Table";
2286
-            series1.ChartArea = "ChartArea1";
2287
-            series1.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
2288
-            series1.Legend = "Legend1";
2289
-            series1.Name = "Series1";
2290
-            this.chart_Table.Series.Add(series1);
2286
+            series2.ChartArea = "ChartArea1";
2287
+            series2.ChartType = System.Windows.Forms.DataVisualization.Charting.SeriesChartType.Point;
2288
+            series2.Legend = "Legend1";
2289
+            series2.Name = "Series1";
2290
+            this.chart_Table.Series.Add(series2);
2291 2291
             this.chart_Table.Size = new System.Drawing.Size(431, 168);
2292 2292
             this.chart_Table.TabIndex = 8;
2293 2293
             this.chart_Table.Text = "chart1";
@@ -3353,10 +3353,10 @@
3353 3353
             this.numericUpDown_DLI_Shutdown_Threshold.Location = new System.Drawing.Point(176, 16);
3354 3354
             this.numericUpDown_DLI_Shutdown_Threshold.Margin = new System.Windows.Forms.Padding(2, 3, 2, 3);
3355 3355
             this.numericUpDown_DLI_Shutdown_Threshold.Maximum = new decimal(new int[] {
3356
-            1,
3356
+            7,
3357 3357
             0,
3358 3358
             0,
3359
-            -2147483648});
3359
+            0});
3360 3360
             this.numericUpDown_DLI_Shutdown_Threshold.Minimum = new decimal(new int[] {
3361 3361
             22,
3362 3362
             0,
@@ -3723,7 +3723,7 @@
3723 3723
             // 
3724 3724
             // timer_JdasMbic
3725 3725
             // 
3726
-            this.timer_JdasMbic.Interval = 83;
3726
+            this.timer_JdasMbic.Interval = 166;
3727 3727
             this.timer_JdasMbic.Tick += new System.EventHandler(this.timer1_Tick);
3728 3728
             // 
3729 3729
             // label_CompileDate

+ 28 - 11
Jdas_Mbic/Main.cs

@@ -28,7 +28,7 @@ namespace Jdas_Mbic
28 28
     public partial class JdasMbic : Form
29 29
     {
30 30
         const double Table_Dbm_DefaultValue = 0;//31.5;
31
-        const int Table_DL_DefaultValue = 5;
31
+        const int Table_DL_DefaultValue = 7;
32 32
         const int Table_UL_DefaultValue = -15;
33 33
         const int Table_Temp_DefaultValue = -10;
34 34
         Serial serial = new Serial(); // Uart Open
@@ -113,7 +113,7 @@ namespace Jdas_Mbic
113 113
             switch (tempenum) {
114 114
                 case DLUL_Category.DL_DET:
115 115
                     double Temp_DL_Data = Table_DL_DefaultValue;
116
-                    for (int i = 0; i < 31; i++)
116
+                    for (int i = 0; i < 33; i++)
117 117
                     {
118 118
                         dataGridView_TableSetting.Rows.Add();
119 119
                         tempstr = string.Format("{0:0}", Temp_DL_Data);
@@ -2416,26 +2416,43 @@ namespace Jdas_Mbic
2416 2416
         private void TableChart_Create()
2417 2417
         {
2418 2418
             DataTable dt = new DataTable();
2419
-//            dt.Columns.Add("Column1");
2419
+            /*string targetStr = dataGridView_TableSetting.Rows[0].Cells[0].Value.ToString();
2420
+            string text = targetStr;
2421
+            var match = Regex.Match(text, "-?\\d+");
2422
+            */
2423
+            ///정수형 변환
2424
+            // int rstInt = int.Parse(tempStr);
2425
+
2426
+            //_body = Regex.Replace(dataGridView_TableSetting.Rows[0].Cells[0].Value.ToString(), @"[^0-9]", "");
2427
+
2428
+            //numericUpDown_TableRef.Value = Convert.ToDecimal(match.Value);
2429
+            //            dt.Columns.Add("Column1");
2420 2430
             //dt.Columns.Add("Column2");
2431
+            chart_Table.Series[0].Points.Clear();
2421 2432
             for (int i = 0; i < dataGridView_TableSetting.RowCount; i++)
2422 2433
             {
2423 2434
                 try
2424 2435
                 {
2425
-                    dt.Rows.Add(Convert.ToDouble(dataGridView_TableSetting[1, i].Value));
2436
+                   /* targetStr = dataGridView_TableSetting.Rows[0].Cells[i].Value.ToString();
2437
+                    match = Regex.Match(text, "-?\\d+");*/
2438
+                    chart_Table.Series[0].Points.AddXY(i,dataGridView_TableSetting[1, i].Value/*match.Value*/);
2439
+                    Thread.Sleep(1);
2440
+                    //dt.Rows.Add(Convert.ToDouble(dataGridView_TableSetting[1, i].Value));
2441
+                    //chart_Table.Series[0].Val
2426 2442
                     // Tmplist.Add(Convert.ToDouble(dataGridView_TableSetting[1, i].Value));
2427
-                 //   chart_Table.Series[0].Points.Add();
2443
+                    //   chart_Table.Series[0].Points.Add();
2428 2444
                     //chart_Table.Invalidate();
2429 2445
                     //chart_Table.Rows[i][1]
2430 2446
                     //table.Rows[i][1] = Convert.ToDouble(dataGridView_TableSetting[1, i].Value);
2431 2447
                 }
2432 2448
                 catch { }
2433 2449
             }
2434
-            chart_Table.DataSource = dt;
2450
+           // chart_Table.DataSource = dt;
2451
+            chart_Table.Update();
2435 2452
             //chart_Table.Series[0].XValueMembers = "Column1";
2436 2453
             //chart_Table.Series[0].YValueMembers = "Column2";
2437 2454
 
2438
-            chart_Table.DataBind();
2455
+            //chart_Table.DataBind();
2439 2456
             //chart_Table.Dispose(false);
2440 2457
 
2441 2458
 
@@ -2511,7 +2528,7 @@ namespace Jdas_Mbic
2511 2528
             }
2512 2529
             
2513 2530
 
2514
-            //TableChart_Create();
2531
+            TableChart_Create();
2515 2532
             /*dataGridView_TableSetting[1, i].Value
2516 2533
             this.Invoke(new StringSend(Table_Text_Set), dataGridView_TableSetting, adcdata.ToString("N2"));*/
2517 2534
 
@@ -2947,9 +2964,9 @@ namespace Jdas_Mbic
2947 2964
         {
2948 2965
             label_CompileDate.Text = "";
2949 2966
             byte[] temp_buf = new byte[TableGetMaxLength];
2950
-            byte[] Temp_MBICResetCmd = { 0x16, 0x16, 0x16, 0x16, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x48, 0x00, 0x14, 0x06, 0x09, 0x00, 0x14, 0x33, 0x00, 0x01, 0x00, 0x04, 0xa7, 0xe0, 0x0e, 0x01, 0x00, 0xac, 0xda, 0x03 };
2951
-            serial.Serial_DataSend(Temp_MBICResetCmd, Temp_MBICResetCmd.Length);
2952
-            return;
2967
+         //   byte[] Temp_MBICResetCmd = { 0x16, 0x16, 0x16, 0x16, 0x00, 0xf0, 0x00, 0x00, 0x00, 0x48, 0x00, 0x14, 0x06, 0x09, 0x00, 0x14, 0x33, 0x00, 0x01, 0x00, 0x04, 0xa7, 0xe0, 0x0e, 0x01, 0x00, 0xac, 0xda, 0x03 };
2968
+           // serial.Serial_DataSend(Temp_MBICResetCmd, Temp_MBICResetCmd.Length);
2969
+            //return;
2953 2970
             temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Header] = BLUECELL_HEADER;
2954 2971
             temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Type] = (byte)Bluecell_BootProtocol.DATATYPE.BLUECELL_SOFTWARERESET;
2955 2972
             temp_buf[(int)Bluecell_ProtIndex_p.Bluecell_Length_H] = Convert.ToByte((TableGetMaxLength - 2 & 0xFF00 )>> 8);

+ 6 - 0
Jdas_Mbic/Main.resx

@@ -1264,6 +1264,12 @@
1264 1264
   <metadata name="Column_Offset.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
1265 1265
     <value>True</value>
1266 1266
   </metadata>
1267
+  <metadata name="Column_DB.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
1268
+    <value>True</value>
1269
+  </metadata>
1270
+  <metadata name="Column_Offset.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
1271
+    <value>True</value>
1272
+  </metadata>
1267 1273
   <data name="pictureBox_UL_Shutdown_ON.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
1268 1274
     <value>
1269 1275
         iVBORw0KGgoAAAANSUhEUgAAACUAAAAkCAYAAAAOwvOmAAAABGdBTUEAALGPC/xhBQAACk5JREFUWEft

BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic.exe


BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic.pdb


BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic0.4 - 복사본.exe


BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic0.4.exe


BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic_0.3.exe


BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic_200630_1.exe


BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic_5_7.exe


BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic_NEW.exe


BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic_NEW_VER1.exe


BIN
Jdas_Mbic/bin/Debug/Jdas_Mbic_NEW_VER2.exe


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


BIN
Jdas_Mbic/obj/Debug/Jdas_Mbic.exe


BIN
Jdas_Mbic/obj/Debug/Jdas_Mbic.pdb