|
@@ -228,13 +228,14 @@ namespace OTSIncAReportGrids
|
|
Particledata = new ParticleData(result.FilePath);
|
|
Particledata = new ParticleData(result.FilePath);
|
|
string str_libraryName = ((Dictionary<string, object>)((Dictionary<string, object>)((Dictionary<string, object>)result.ResultInfo["Sample"])["Members"])["MsrParams"])["STDName"].ToString();
|
|
string str_libraryName = ((Dictionary<string, object>)((Dictionary<string, object>)((Dictionary<string, object>)result.ResultInfo["Sample"])["Members"])["MsrParams"])["STDName"].ToString();
|
|
userLibrary = new UserLibraryData(str_libraryName);
|
|
userLibrary = new UserLibraryData(str_libraryName);
|
|
- if (userLibrary != null)
|
|
|
|
|
|
+ if (userLibrary.GetSqlHelper() != null)
|
|
{
|
|
{
|
|
userLibraryData = userLibrary.GetSubAttributeFromDatabase();
|
|
userLibraryData = userLibrary.GetSubAttributeFromDatabase();
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
userLibraryData = null;
|
|
userLibraryData = null;
|
|
|
|
+ MessageBox.Show("未读取到用户标准库!");
|
|
}
|
|
}
|
|
//初始化底层操作类
|
|
//初始化底层操作类
|
|
m_OTSIncAReportGridsFun = new OTSReportGridsFun(m_ReportApp, this);
|
|
m_OTSIncAReportGridsFun = new OTSReportGridsFun(m_ReportApp, this);
|