|
@@ -4,6 +4,7 @@ using NPOI.Util;
|
|
|
using OTSCommon.DBOperate;
|
|
|
using OTSIncAReportApp._1_UI.OTSReportExport;
|
|
|
using OTSIncAReportApp._1_UI.OTSTemplateDesigner;
|
|
|
+using OTSIncAReportApp.DataOperation.DataAccess;
|
|
|
using OTSIncAReportApp.OTSSampleReportInfo;
|
|
|
using OTSIncAReportApp.SysMgrTools;
|
|
|
using OTSPeriodicTable;
|
|
@@ -15,6 +16,7 @@ using System.Data;
|
|
|
using System.Drawing;
|
|
|
using System.IO;
|
|
|
using System.Windows.Forms;
|
|
|
+using static DevExpress.XtraCharts.GLGraphics.GL;
|
|
|
using static OTSDataType.otsdataconst;
|
|
|
|
|
|
namespace OTSIncAReportApp.OTSTemplateDesigner
|
|
@@ -31,11 +33,13 @@ namespace OTSIncAReportApp.OTSTemplateDesigner
|
|
|
private bool SwitchCategories = false;
|
|
|
private List<string> TCCleannessAList = new List<string>();
|
|
|
private List<string> list_MainPriority = new List<string>();
|
|
|
- #endregion
|
|
|
|
|
|
- #region 构造函数及窗体加载
|
|
|
+ ParticleData fielddata;
|
|
|
+ #endregion
|
|
|
+
|
|
|
+ #region 构造函数及窗体加载
|
|
|
|
|
|
- public OTSReport_Template_CleannessA(OTSReport_Export in_otsreport_export,string a_FileName)
|
|
|
+ public OTSReport_Template_CleannessA(OTSReport_Export in_otsreport_export,string a_FileName)
|
|
|
{
|
|
|
InitializeComponent();
|
|
|
m_OTSReport_Export = in_otsreport_export;
|
|
@@ -77,9 +81,16 @@ namespace OTSIncAReportApp.OTSTemplateDesigner
|
|
|
{
|
|
|
cb_TccleanlinessA.Enabled = true;
|
|
|
}
|
|
|
-
|
|
|
|
|
|
- }
|
|
|
+ try
|
|
|
+ {
|
|
|
+ fielddata = new ParticleData(m_OTSReport_Export.m_ReportApp.m_rstDataMgr.ResultFilesList[m_OTSReport_Export.m_ReportApp.m_rstDataMgr.GetWorkingResultId()].FilePath);
|
|
|
+ }
|
|
|
+ catch
|
|
|
+ {
|
|
|
+
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
@@ -793,12 +804,21 @@ namespace OTSIncAReportApp.OTSTemplateDesigner
|
|
|
{
|
|
|
if (textBox_zypxss.Text.Split(',')[i] != "")
|
|
|
vs.Add(MainPriority[i]);
|
|
|
- }
|
|
|
+ }
|
|
|
}
|
|
|
+ DataTable fieldData = fielddata.GetAreaByAllIncA("");
|
|
|
+ DataTable ResultLibrary = fieldData.Clone();
|
|
|
+ for (int i = 0; i < fieldData.Rows.Count; i++)
|
|
|
+ {
|
|
|
+ if (Convert.ToInt64(fieldData.Rows[i][0]) > 50000)
|
|
|
+ {
|
|
|
+ ResultLibrary.Rows.Add(fieldData.Rows[i].ItemArray);
|
|
|
|
|
|
+ }
|
|
|
+ }
|
|
|
|
|
|
- //Category category = new Category(vs, ReadClassification(comboBox1.SelectedIndex));
|
|
|
- Category category = new Category(m_OTSReport_Export.m_mbszclass.list_str_MainPriority_Serial.Copy(), ReadClassification(comboBox1.SelectedIndex),false);
|
|
|
+ //Category category = new Category(vs, ReadClassification(comboBox1.SelectedIndex));
|
|
|
+ Category category = new Category(m_OTSReport_Export.m_mbszclass.list_str_MainPriority_Serial.Copy(), ReadClassification(comboBox1.SelectedIndex),false, ResultLibrary);
|
|
|
category.ShowDialog();
|
|
|
List<string> ls = category.OutElementList;
|
|
|
TCCleannessAList = category.vs;
|