diff --git a/ENI2/DetailViewControls/OverViewDetailControl.xaml.cs b/ENI2/DetailViewControls/OverViewDetailControl.xaml.cs index d0ac236a..b0e5aa51 100644 --- a/ENI2/DetailViewControls/OverViewDetailControl.xaml.cs +++ b/ENI2/DetailViewControls/OverViewDetailControl.xaml.cs @@ -18,6 +18,7 @@ using System.Windows.Media.Imaging; using System.Collections.Generic; using System.Windows.Media; using Microsoft.Win32; +using System.Diagnostics; namespace ENI2.DetailViewControls { @@ -563,6 +564,7 @@ namespace ENI2.DetailViewControls { MessageBox.Show("Report created: " + sfd.FileName, "Success", MessageBoxButton.OK, MessageBoxImage.Information); // Clipboard.SetText(sfd.FileName); + Process.Start(sfd.FileName); } else { @@ -813,6 +815,7 @@ namespace ENI2.DetailViewControls { em.Export(sfd.FileName, this.Core, this.Messages, out string resultMessage); MessageBox.Show("Exported " + sfd.FileName, "Export successful", MessageBoxButton.OK, MessageBoxImage.Information); + Process.Start(sfd.FileName); } catch(Exception ex) { diff --git a/ENI2/Excel/ExcelUtil.cs b/ENI2/Excel/ExcelUtil.cs index dbdc5145..17466902 100644 --- a/ENI2/Excel/ExcelUtil.cs +++ b/ENI2/Excel/ExcelUtil.cs @@ -906,7 +906,7 @@ namespace ENI2.Excel if (!stat.ISMCompanyId.IsNullOrEmpty()) { // strip "ISM" at the beginning if it is there (27.12.21) - if (stat.ISMCompanyId.StartsWith("ism", StringComparison.OrdinalIgnoreCase)) + if (stat.ISMCompanyId.StartsWith("imo", StringComparison.OrdinalIgnoreCase)) stat.ISMCompanyId = stat.ISMCompanyId.Substring(3); if(stat.ISMCompanyId.Length < 7) { // zero - fill diff --git a/bsmd.database/MessageCore.cs b/bsmd.database/MessageCore.cs index ea8ab4d2..78a9752d 100644 --- a/bsmd.database/MessageCore.cs +++ b/bsmd.database/MessageCore.cs @@ -455,7 +455,7 @@ namespace bsmd.database public override void PrepareLoadCommand(System.Data.IDbCommand cmd, Message.LoadFilter filter, params object[] criteria) { StringBuilder sb = new StringBuilder("SELECT "); - if (this.ResultLimit.HasValue && this.ResultLimit.Value > 0) + if (this.ResultLimit > 0) { sb.AppendFormat("TOP {0} ", this.ResultLimit); }