From fedbb698ab58477947ba62ba8b2c2882d7796944 Mon Sep 17 00:00:00 2001 From: John Jenko Date: Fri, 13 Oct 2023 14:03:39 -0400 Subject: [PATCH] C2023-019 Added a message box to install the latest PROMSFixes for when PROMS opens a database that does not have the needed Stored Procedures that allow for displaying only the formats related to that plant. --- PROMS/VEPROMS.CSLA.Library/Generated/FormatInfoList.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/FormatInfoList.cs b/PROMS/VEPROMS.CSLA.Library/Generated/FormatInfoList.cs index cfe55f2f..459f7407 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/FormatInfoList.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/FormatInfoList.cs @@ -160,6 +160,14 @@ namespace VEPROMS.CSLA.Library catch (Exception ex) { if (_MyLog.IsErrorEnabled) _MyLog.Error("FormatInfoList.DataPortal_Fetch", ex); + System.Text.StringBuilder sbMsg = new System.Text.StringBuilder(); + sbMsg.Append("The SQL Stored Procedures may need updating."); + sbMsg.Append("\n\nPlease have your DBA update the database with the PROMSFixes.sql script file that was delivered with this PROMS executable."); + sbMsg.Append("\n\nThe PROMSFixes.sql file is included with the PROMS installation download."); + sbMsg.Append("\n\nIt can also be found in your PROMS executable folder:"); + sbMsg.AppendFormat("\n\t{0}", Volian.Base.Library.ExeInfo.PROMSExecutableFolderPath()); + + System.Windows.Forms.MessageBox.Show(sbMsg.ToString(), "Update Stored Procedures", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Exclamation); throw new DbCslaException("FormatInfoList.DataPortal_Fetch", ex); } this.RaiseListChangedEvents = true;