Bladeren bron

fix the problem when insert Point position into MeasrueDB and the problem of linescan mode.

gsp 4 jaren geleden
bovenliggende
commit
299336847d
3 gewijzigde bestanden met toevoegingen van 167 en 145 verwijderingen
  1. 18 0
      DBManager/MeasureDB.cs
  2. 2 2
      HOZProject/OTSMeasureOutputNlog.Designer.cs
  3. 147 143
      MeasureThread/Measure.cs

+ 18 - 0
DBManager/MeasureDB.cs

@@ -307,6 +307,24 @@ namespace DBManager
                     i++;
                 }
 
+                //向位置表插入数据
+
+               
+               
+
+                    sql = "INSERT INTO AreaPosition(XrayID, AID, SegNum, SegID, X, Y, Length) values ("
+                       + XrayId.ToString() + ","
+                       + (-1).ToString() + ","
+                       + (-1).ToString() + ","
+                       + (-1).ToString() + ","
+                       + X.ToString() + ","
+                       + Y.ToString() + ","
+                       + (-1).ToString() + ")";
+
+                    command = new SQLiteCommand(sql, m_db);
+                    command.ExecuteNonQuery();
+                  
+
                 tr.Commit();
 
                 Thread.Sleep(500);

+ 2 - 2
HOZProject/OTSMeasureOutputNlog.Designer.cs

@@ -74,7 +74,6 @@
             this.button1.TabIndex = 3;
             this.button1.Text = "Test";
             this.button1.UseVisualStyleBackColor = true;
-            this.button1.Visible = false;
             this.button1.Click += new System.EventHandler(this.button1_Click);
             // 
             // button_Clear
@@ -85,7 +84,7 @@
             this.button_Clear.Name = "button_Clear";
             this.button_Clear.Size = new System.Drawing.Size(84, 29);
             this.button_Clear.TabIndex = 4;
-            this.button_Clear.Text = "close";
+            this.button_Clear.Text = "clear";
             this.button_Clear.UseVisualStyleBackColor = true;
             this.button_Clear.Click += new System.EventHandler(this.button_Clear_Click);
             // 
@@ -140,6 +139,7 @@
             this.Name = "OTSMeasureOutputNlog";
             this.ShowIcon = false;
             this.ShowInTaskbar = false;
+            this.Text = "Log";
             this.Load += new System.EventHandler(this.OTSMeasureOutputNlog_Load);
             this.groupBox1.ResumeLayout(false);
             this.tableLayoutPanel1.ResumeLayout(false);

File diff suppressed because it is too large
+ 147 - 143
MeasureThread/Measure.cs


Some files were not shown because too many files changed in this diff