Browse Source

Fix the bug of incorrect loading of the measurement program management standard library

cxs 1 tháng trước cách đây
mục cha
commit
79352d3b6f

+ 3 - 3
OTSIncAMeasureApp/7-OTSProgMgrInfo/ProgMgrInfoForm.cs

@@ -570,15 +570,15 @@ namespace OTSMeasureApp
             tBMeasArea.Text = m_cgenparam.GetArea().ToString();
             foreach (ComboBoxItem cbi in IDC_COMBO_STDSelect.Items)
             {
-                if (comboEngineType.SelectedIndex == (int)OTS_CLASSIFY_ENGINE_TYPE.InclustionEngine)
+                if (EngineType == (int)OTS_CLASSIFY_ENGINE_TYPE.InclustionEngine)
                 {
                     if (cbi.Text.ToString() == "NoSTDDB")
-                        IDC_COMBO_STDSelect.SelectedItem = cbi; break;
+                    {IDC_COMBO_STDSelect.SelectedItem = cbi; break;}
                 }
                 else
                 {
                     if (cbi.Text.ToString() == m_cgenparam.GetSTDSelect())
-                        IDC_COMBO_STDSelect.SelectedItem = cbi; break;
+                    {IDC_COMBO_STDSelect.SelectedItem = cbi; break; }
                 }
             }
          }

+ 2 - 0
OTSIncAReportApp/1-UI/Control_Grids/CompositionDistributionGrid.cs

@@ -284,6 +284,8 @@ namespace OTSIncAReportGrids
             }
         }
 
+        
+        
         void AddSumRow(OTSGridView gridView)
         {
             if (gridView == null || gridView.Rows == null || gridView.Rows.Count == 0)