|
@@ -1240,9 +1240,16 @@ namespace OTSIncAReportApp
|
|
|
|
|
|
private void ribbonOrbMenuItem_InclusionsTraceability_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
+ string sou = m_conditionChoose.m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE].itemDisplayVal.ToString();
|
|
|
+ if(sou.Contains("+"))
|
|
|
+ {
|
|
|
+ MessageBox.Show("This function does not support multiple samples!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ int index = m_conditionChoose.m_conditionData.GetComboDownListIndexByItemName(OTSSampleReportInfo.OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE);
|
|
|
try
|
|
|
{
|
|
|
- System.Diagnostics.Process p = System.Diagnostics.Process.Start(".\\OTSInclusionsTraceability.exe", "\""+ m_rstDataMgr.CurResultFile.FilePath+ "\"");
|
|
|
+ System.Diagnostics.Process p = System.Diagnostics.Process.Start(".\\OTSInclusionsTraceability.exe", "\""+ m_rstDataMgr.ResultFilesList[index].FilePath+ "\"");
|
|
|
p.WaitForExit();
|
|
|
}
|
|
|
catch (Exception ex)
|
|
@@ -1263,6 +1270,12 @@ namespace OTSIncAReportApp
|
|
|
|
|
|
private void ribbonOrbMenuItem_purity_Click(object sender, EventArgs e)
|
|
|
{
|
|
|
+ string sou = m_conditionChoose.m_CurrentConditions[OTS_REPORT_PROP_GRID_ITEMS.DATA_SOURCE].itemDisplayVal.ToString();
|
|
|
+ if (sou.Contains("+"))
|
|
|
+ {
|
|
|
+ MessageBox.Show("This function does not support multiple samples!");
|
|
|
+ return;
|
|
|
+ }
|
|
|
try
|
|
|
{
|
|
|
_1_UI.GBCalculate.Purity purity = new _1_UI.GBCalculate.Purity(this);
|