|
@@ -20,6 +20,7 @@ using System.IO;
|
|
using System.Runtime.InteropServices;
|
|
using System.Runtime.InteropServices;
|
|
using System.Windows.Forms;
|
|
using System.Windows.Forms;
|
|
using OTSCommon.DBOperate.Model;
|
|
using OTSCommon.DBOperate.Model;
|
|
|
|
+using OTSIncAReportApp._1_UI;
|
|
|
|
|
|
namespace OTSIncAReportApp
|
|
namespace OTSIncAReportApp
|
|
{
|
|
{
|
|
@@ -42,6 +43,8 @@ namespace OTSIncAReportApp
|
|
public frmSampleImage m_SImageWindow = null; //BSE窗体
|
|
public frmSampleImage m_SImageWindow = null; //BSE窗体
|
|
public frmCharts m_ChartsWindow = null; //图表窗体
|
|
public frmCharts m_ChartsWindow = null; //图表窗体
|
|
public frmTables m_TablesWindow = null; //报表窗体
|
|
public frmTables m_TablesWindow = null; //报表窗体
|
|
|
|
+ public FormStandardLibraryInformation m_StandardLibrary = null; //标准库窗体
|
|
|
|
+
|
|
public frmReportSysConfig m_ReportSysConfigForm; //配置参数窗体
|
|
public frmReportSysConfig m_ReportSysConfigForm; //配置参数窗体
|
|
|
|
|
|
#endregion //-----------------------------------------------------------------------------------------------
|
|
#endregion //-----------------------------------------------------------------------------------------------
|
|
@@ -208,7 +211,8 @@ namespace OTSIncAReportApp
|
|
m_OutputNlog.Visible = true;
|
|
m_OutputNlog.Visible = true;
|
|
log = NLog.LogManager.GetCurrentClassLogger();
|
|
log = NLog.LogManager.GetCurrentClassLogger();
|
|
|
|
|
|
-
|
|
|
|
|
|
+
|
|
|
|
+
|
|
InitializeComponent();
|
|
InitializeComponent();
|
|
|
|
|
|
//初始化Ribbon类,操作Ribbon按钮的可用或者不可用
|
|
//初始化Ribbon类,操作Ribbon按钮的可用或者不可用
|
|
@@ -227,9 +231,12 @@ namespace OTSIncAReportApp
|
|
m_ChartsWindow = new frmCharts(this);
|
|
m_ChartsWindow = new frmCharts(this);
|
|
//grid表格窗体
|
|
//grid表格窗体
|
|
m_TablesWindow = new frmTables(this);
|
|
m_TablesWindow = new frmTables(this);
|
|
|
|
+ //标准库窗体
|
|
|
|
+ m_StandardLibrary = new FormStandardLibraryInformation (this);
|
|
|
|
|
|
|
|
|
|
-
|
|
|
|
|
|
+ m_StandardLibrary = new FormStandardLibraryInformation(this);
|
|
|
|
+ m_StandardLibrary.Visible = true;
|
|
SetTag();
|
|
SetTag();
|
|
|
|
|
|
#region 国际化语言
|
|
#region 国际化语言
|
|
@@ -271,6 +278,8 @@ namespace OTSIncAReportApp
|
|
{
|
|
{
|
|
m_OutputNlog = new OutputNlog();
|
|
m_OutputNlog = new OutputNlog();
|
|
m_OutputNlog.Visible = true;
|
|
m_OutputNlog.Visible = true;
|
|
|
|
+
|
|
|
|
+
|
|
log = NLog.LogManager.GetCurrentClassLogger();
|
|
log = NLog.LogManager.GetCurrentClassLogger();
|
|
|
|
|
|
m_str_resultfilepaths = str_resultfilepaths;
|
|
m_str_resultfilepaths = str_resultfilepaths;
|
|
@@ -295,9 +304,11 @@ namespace OTSIncAReportApp
|
|
m_ChartsWindow = new frmCharts(this);
|
|
m_ChartsWindow = new frmCharts(this);
|
|
//grid表格窗体
|
|
//grid表格窗体
|
|
m_TablesWindow = new frmTables(this);
|
|
m_TablesWindow = new frmTables(this);
|
|
-
|
|
|
|
|
|
+ //标准库窗体
|
|
|
|
+ m_StandardLibrary = new FormStandardLibraryInformation(this);
|
|
|
|
|
|
-
|
|
|
|
|
|
+ m_StandardLibrary = new FormStandardLibraryInformation(this);
|
|
|
|
+ m_StandardLibrary.Visible = true;
|
|
SetTag();
|
|
SetTag();
|
|
#region 国际化语言
|
|
#region 国际化语言
|
|
Language lan = new Language(this);
|
|
Language lan = new Language(this);
|
|
@@ -351,7 +362,8 @@ namespace OTSIncAReportApp
|
|
m_rstDataMgr.m_RptConfigFile.LoadDataFromFile();
|
|
m_rstDataMgr.m_RptConfigFile.LoadDataFromFile();
|
|
//设置菜单按钮,都为true状态
|
|
//设置菜单按钮,都为true状态
|
|
m_RibbonFun.SetAllRibbonButnStatu(false);
|
|
m_RibbonFun.SetAllRibbonButnStatu(false);
|
|
-
|
|
|
|
|
|
+ //激活标准库窗体
|
|
|
|
+ this.m_StandardLibrary.Activate();
|
|
//创建,树窗口,属性grid窗口,分布图,grid,chart窗体等。
|
|
//创建,树窗口,属性grid窗口,分布图,grid,chart窗体等。
|
|
CreateNewWorkspaceWindow();
|
|
CreateNewWorkspaceWindow();
|
|
|
|
|
|
@@ -359,6 +371,8 @@ namespace OTSIncAReportApp
|
|
this.m_RstWindow.Activate();
|
|
this.m_RstWindow.Activate();
|
|
//激活表图窗体
|
|
//激活表图窗体
|
|
this.m_TablesWindow.Activate();
|
|
this.m_TablesWindow.Activate();
|
|
|
|
+
|
|
|
|
+
|
|
//----------------end the initialization
|
|
//----------------end the initialization
|
|
|
|
|
|
if (m_str_resultfilepaths != null)
|
|
if (m_str_resultfilepaths != null)
|
|
@@ -457,6 +471,7 @@ namespace OTSIncAReportApp
|
|
Cursor = Cursors.WaitCursor;
|
|
Cursor = Cursors.WaitCursor;
|
|
this.m_RstWindow.AddSampleResult(path);
|
|
this.m_RstWindow.AddSampleResult(path);
|
|
Cursor = Cursors.Default;
|
|
Cursor = Cursors.Default;
|
|
|
|
+ this.m_StandardLibrary.DataRefresh();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
@@ -875,6 +890,8 @@ namespace OTSIncAReportApp
|
|
/// </summary>
|
|
/// </summary>
|
|
public void CreateNewWorkspaceWindow()
|
|
public void CreateNewWorkspaceWindow()
|
|
{
|
|
{
|
|
|
|
+
|
|
|
|
+
|
|
//创建测量数据窗口
|
|
//创建测量数据窗口
|
|
CreateCTablesWindow();
|
|
CreateCTablesWindow();
|
|
//Show BSE图窗口
|
|
//Show BSE图窗口
|
|
@@ -882,10 +899,15 @@ namespace OTSIncAReportApp
|
|
//创建图表窗口
|
|
//创建图表窗口
|
|
CreateChartsWindow();
|
|
CreateChartsWindow();
|
|
|
|
|
|
|
|
+ //StandardLibraryWindow();
|
|
|
|
+
|
|
m_OutputNlog.Show(DockWindowPanel, OTS.WinFormsUI.Docking.DockState.DockRight);
|
|
m_OutputNlog.Show(DockWindowPanel, OTS.WinFormsUI.Docking.DockState.DockRight);
|
|
m_OutputNlog.Visible = true;
|
|
m_OutputNlog.Visible = true;
|
|
|
|
+ m_StandardLibrary.Show(DockWindowPanel, DockState.DockLeft);
|
|
m_RstWindow.Show(DockWindowPanel, OTS.WinFormsUI.Docking.DockState.DockLeft);
|
|
m_RstWindow.Show(DockWindowPanel, OTS.WinFormsUI.Docking.DockState.DockLeft);
|
|
m_conditionChoose.Show(DockWindowPanel);
|
|
m_conditionChoose.Show(DockWindowPanel);
|
|
|
|
+
|
|
|
|
+ //m_StandardLibrary.Visible = true;`
|
|
DockWindowPanel.DockLeftPortion = 300;
|
|
DockWindowPanel.DockLeftPortion = 300;
|
|
DockWindowPanel.DockRightPortion = 351;
|
|
DockWindowPanel.DockRightPortion = 351;
|
|
}
|
|
}
|
|
@@ -912,6 +934,11 @@ namespace OTSIncAReportApp
|
|
{
|
|
{
|
|
text = table["analysisdatachart"].ToString();
|
|
text = table["analysisdatachart"].ToString();
|
|
}
|
|
}
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ text = "标准库信息";
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
WorkWindow.Text = text;
|
|
WorkWindow.Text = text;
|
|
return WorkWindow;
|
|
return WorkWindow;
|
|
@@ -938,6 +965,36 @@ namespace OTSIncAReportApp
|
|
m_SImageWindow.Show(DockWindowPanel);
|
|
m_SImageWindow.Show(DockWindowPanel);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ private void StandardLibraryWindow()
|
|
|
|
+ {
|
|
|
|
+ if (null == m_StandardLibrary)
|
|
|
|
+ {
|
|
|
|
+ m_StandardLibrary = new FormStandardLibraryInformation(this);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ m_StandardLibrary = (FormStandardLibraryInformation)CreateNewDocument(m_StandardLibrary, DisplayPicutureType.AnalyzeStandardLibrary);
|
|
|
|
+
|
|
|
|
+ if (DockWindowPanel.DocumentStyle == DocumentStyle.SystemMdi)
|
|
|
|
+ {
|
|
|
|
+ m_StandardLibrary.MdiParent = this;
|
|
|
|
+ m_StandardLibrary.Show();
|
|
|
|
+ }
|
|
|
|
+ else
|
|
|
|
+ {
|
|
|
|
+ m_StandardLibrary.Show(DockWindowPanel);
|
|
|
|
+ }
|
|
|
|
+ //m_StandardLibrary.Text = "标准库数据";
|
|
|
|
+ //if (DockWindowPanel.DocumentStyle == DocumentStyle.SystemMdi)
|
|
|
|
+ //{
|
|
|
|
+ // m_StandardLibrary.MdiParent = this;
|
|
|
|
+ // m_StandardLibrary.Show();
|
|
|
|
+ //}
|
|
|
|
+ //else
|
|
|
|
+ //{
|
|
|
|
+ // m_StandardLibrary.Show(DockWindowPanel);
|
|
|
|
+ //}
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// 创建Grid表格窗体
|
|
/// 创建Grid表格窗体
|
|
@@ -1075,6 +1132,7 @@ namespace OTSIncAReportApp
|
|
foreach (System.IO.FileInfo file in directory.GetFiles("*.rst"))
|
|
foreach (System.IO.FileInfo file in directory.GetFiles("*.rst"))
|
|
{
|
|
{
|
|
this.m_RstWindow.AddSampleResult(file.FullName);
|
|
this.m_RstWindow.AddSampleResult(file.FullName);
|
|
|
|
+ this.m_StandardLibrary.DataRefresh();
|
|
}
|
|
}
|
|
}
|
|
}
|
|
this.Cursor = Cursors.Default;
|
|
this.Cursor = Cursors.Default;
|
|
@@ -1234,6 +1292,7 @@ namespace OTSIncAReportApp
|
|
private void rbClose_Click(object sender, EventArgs e)
|
|
private void rbClose_Click(object sender, EventArgs e)
|
|
{
|
|
{
|
|
m_RstWindow. RemoveSample();
|
|
m_RstWindow. RemoveSample();
|
|
|
|
+ //m_StandardLibrary.DataDeletion();
|
|
}
|
|
}
|
|
|
|
|
|
private void rbClose_DoubleClick(object sender, EventArgs e)
|
|
private void rbClose_DoubleClick(object sender, EventArgs e)
|