فهرست منبع

去除报告程序新增零元素数据库Expression为空时提示行为

cxs 1 سال پیش
والد
کامیت
8f1873a70c

+ 0 - 4
OTSCPP/OTSClassifyEngine/ExpressionParseEngine/ZeroElementRulesDataDB.cpp

@@ -142,10 +142,6 @@ namespace OTSClassifyEngine
 		nCol = (int)CZeroElementRulesDataTable::ColumnID::S_Expression - (int)CZeroElementRulesDataTable::ColumnID::MIN;
 		sExpression = a_query->GetColStringValue(nCol, _T(""));
 		m_ZeroElementRuleItem->SetExpressionStr(sExpression.GetString());
-		if (sExpression == "")
-		{
-			return FALSE;
-		}
 		return TRUE;
 	}
 	

+ 1 - 6
OTSCPP/OTSClassifyEngine/SpectrumCompareEngine/OTSSTDLibFileMgr.cpp

@@ -132,12 +132,7 @@ namespace OTSClassifyEngine
 		GetZeroElementRulesDataDB();
 
 		auto rules= m_pZeroElementRulesDataDB->GetZeroElementRulesLib(bClear);
-		if (rules.size() == 0)
-		{
-			AfxMessageBox(_T("The format of the zero element rule is incorrect. Please use the zero element interface in the standard library editor to save and try again!"));
-				
-			return FALSE;
-		}
+		
 		lib->setZeroElementRuleList(rules);
 
 		return TRUE;

+ 1 - 1
OTSIncAMeasureApp/3-OTSDisplaySourceGridData/OTSPropertyWindow.cs

@@ -392,6 +392,6 @@ namespace OTSMeasureApp
             var stype = m_MeasureAppForm.m_ProjParam.GetDefaultParam().GetSysType();
             OTSSampleVisualPropertyInfo MeasureInfo = new OTSSampleVisualPropertyInfo(sample, stype);
             DisplaySampleMeasureInfo(MeasureInfo);
-        }
+        }3434
     }
 }