|
@@ -603,7 +603,7 @@ namespace OTSIncAReportApp.DataOperation.DataAccess
|
|
|
|
|
|
public DataTable GetInfoForPartucleDevidePage_analyticalParticle(string condition)
|
|
|
{
|
|
|
- string sqliteString = "select fieldid,particleid,AveGray,RectLeft,RectTop,RectWidth,RectHeight,Area,PosX,PosY,TypeId,SegmentNum,SEMPosX,SEMPosY,XrayId,DMAX,DMIN,DPERP,PERIMETER,ORIENTATION,DINSCR,DMEAN,DELONG,DFERET,TypeName,TypeColor,'' as Element from INcAData where xrayid > -1 and typeid !=9 and typeid !=-1 and typeid !=4" +
|
|
|
+ string sqliteString = "select fieldid,particleid,AveGray,RectLeft,RectTop,RectWidth,RectHeight,Area,PosX,PosY,TypeId,SegmentNum,SEMPosX,SEMPosY,XrayId,DMAX,DMIN,DPERP,PERIMETER,ORIENTATION,DINSCR,DMEAN,DELONG,DFERET,TypeName,TypeColor,'' as Element from INcAData where (xrayid > -1 and typeid !=9 and typeid !=-1 and typeid !=4)" +
|
|
|
condition;
|
|
|
DataTable DT = new DataTable();
|
|
|
DT = dbHelper.ExecuteQuery(sqliteString);
|
|
@@ -613,7 +613,7 @@ namespace OTSIncAReportApp.DataOperation.DataAccess
|
|
|
|
|
|
public DataTable GetInfoForPartucleDevidePage_otherParticle(string condition)
|
|
|
{
|
|
|
- string sqliteString = "select fieldid,particleid,AveGray,RectLeft,RectTop,RectWidth,RectHeight,Area,PosX,PosY,TypeId,SegmentNum,SEMPosX,SEMPosY,XrayId,DMAX,DMIN,DPERP,PERIMETER,ORIENTATION,DINSCR,DMEAN,DELONG,DFERET,TypeName,TypeColor,'' as Element from INcAData where typeid =9 or typeid =-1 or typeid =4 " +
|
|
|
+ string sqliteString = "select fieldid,particleid,AveGray,RectLeft,RectTop,RectWidth,RectHeight,Area,PosX,PosY,TypeId,SegmentNum,SEMPosX,SEMPosY,XrayId,DMAX,DMIN,DPERP,PERIMETER,ORIENTATION,DINSCR,DMEAN,DELONG,DFERET,TypeName,TypeColor,'' as Element from INcAData where (typeid =9 or typeid =-1 or typeid =4) " +
|
|
|
condition;
|
|
|
DataTable DT = new DataTable();
|
|
|
DT = dbHelper.ExecuteQuery(sqliteString);
|
|
@@ -660,9 +660,9 @@ namespace OTSIncAReportApp.DataOperation.DataAccess
|
|
|
DT = dbHelper.ExecuteQuery(sqliteString);
|
|
|
return DT;
|
|
|
}
|
|
|
- public DataTable GetClassificationOfAllParticles()
|
|
|
+ public DataTable GetClassificationOfAllParticles(string condition)
|
|
|
{
|
|
|
- string sqliteString1 = "select distinct TypeName from INcAData";
|
|
|
+ string sqliteString1 = "select distinct TypeName from INcAData "+ condition;
|
|
|
DataTable DT = new DataTable();
|
|
|
DT = dbHelper.ExecuteQuery(sqliteString1);
|
|
|
return DT;
|