|
@@ -8,6 +8,7 @@ using System.Collections.Generic;
|
|
|
using System.Data;
|
|
|
using System.Drawing;
|
|
|
using System.Drawing.Drawing2D;
|
|
|
+using System.IO.Ports;
|
|
|
using System.Linq;
|
|
|
using System.Text;
|
|
|
using System.Threading.Tasks;
|
|
@@ -367,8 +368,16 @@ namespace OTSIncAReportApp._1_UI.OTSReportExport.DataIntegration
|
|
|
}
|
|
|
private string getWhere(string max, string min, string col)
|
|
|
{
|
|
|
- return col + ">=" + min + " and " + col + "<=" + max;
|
|
|
- }
|
|
|
+ if (col == "Area")
|
|
|
+ {
|
|
|
+ return col + ">=" + (Convert.ToDouble(min) * Convert.ToDouble(min) * Math.PI).ToString() + " and " + col + "<=" + (Convert.ToDouble(max) * Convert.ToDouble(max) * Math.PI).ToString();
|
|
|
+
|
|
|
+ }
|
|
|
+ else
|
|
|
+ {
|
|
|
+ return col + ">=" + min + " and " + col + "<=" + max ;
|
|
|
+ }
|
|
|
+ }
|
|
|
private string getStrRet(List<string> template, string element)
|
|
|
{
|
|
|
List<string> name = new List<string>()
|