From 5d808e436aaa7cff61fead43dde4a5b0137cf251 Mon Sep 17 00:00:00 2001 From: Kathy Ruffing Date: Wed, 22 May 2024 08:51:22 -0400 Subject: [PATCH 1/4] B2024-023: UI fixes for insert section with associated enhanced section --- PROMS/Volian.Controls.Library/vlnTreeView.cs | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/PROMS/Volian.Controls.Library/vlnTreeView.cs b/PROMS/Volian.Controls.Library/vlnTreeView.cs index 1751f6ed..05e3d73e 100644 --- a/PROMS/Volian.Controls.Library/vlnTreeView.cs +++ b/PROMS/Volian.Controls.Library/vlnTreeView.cs @@ -3065,6 +3065,15 @@ namespace Volian.Controls.Library { SaveEnhancedForSection(sourceSect, newenhSection, sed.Type); RefreshRelatedNode(SectionInfo.Get(newenhSection.ItemID)); + // B2024-023: when inserting a source section, the associated + // enhanced section did not appear in tree view or in edit window (if it + // was displayed in editor). Add to tree view and close the enhanced + // procedure edit window. Note that closing of edit window was done to + // be consistent on what happens upon delete of source w/ and enhanced + // section. + SectionInfo tmpsi = SectionInfo.Get(newenhSection.ItemID); + RefreshRelatedNode(ProcedureInfo.Get(tmpsi.MyParent.ItemID)); + OnSectionShouldClose(this, new vlnTreeSectionInfoEventArgs(tmpsi, true)); } } return; From 7a5129208c77f3b4e039609bd763dad9a1ad1f15 Mon Sep 17 00:00:00 2001 From: Paul Larsen Date: Wed, 22 May 2024 16:08:12 -0400 Subject: [PATCH 2/4] B2024-034 Fix Overwrite PDF File. --- PROMS/Volian.Print.Library/PromsPrinter.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PROMS/Volian.Print.Library/PromsPrinter.cs b/PROMS/Volian.Print.Library/PromsPrinter.cs index 4d61ef03..11b1969c 100644 --- a/PROMS/Volian.Print.Library/PromsPrinter.cs +++ b/PROMS/Volian.Print.Library/PromsPrinter.cs @@ -699,7 +699,7 @@ namespace Volian.Print.Library try { - if (File.Exists(outputFileName)) + if (File.Exists(outputFileName) && !OverWrite) { if (!BaselineTesting && !SaveLinks) // B2024-031 don't do if creating PDF hyperlinks { From f9690ee772a0e17ab8dc164a387bfe4b4792ec08 Mon Sep 17 00:00:00 2001 From: John Jenko Date: Thu, 23 May 2024 14:19:14 -0400 Subject: [PATCH 3/4] F2024-062 Removed the Unit number that was mistakenly added to the procedure steps section header. --- PROMS/Formats/fmtall/BNPP1Newall.xml | Bin 231078 -> 230770 bytes 1 file changed, 0 insertions(+), 0 deletions(-) diff --git a/PROMS/Formats/fmtall/BNPP1Newall.xml b/PROMS/Formats/fmtall/BNPP1Newall.xml index 9097498a9f0c0c22ba73d337ab728f109a281b71..f24a381a90261f8f7609d59bda5de5d5f004e663 100644 GIT binary patch delta 19 bcmZ41%lD~^uc3u;3)7|>+n?QJIoC*w3I6d(*ld`NIgC|1>P^g+AlmWu_1G0P>oETggf~HRt zU{+=|W-w Date: Wed, 29 May 2024 15:30:25 -0400 Subject: [PATCH 4/4] B2024-035-Overwrite-settings. --- PROMS/Volian.Print.Library/PromsPrinter.cs | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/PROMS/Volian.Print.Library/PromsPrinter.cs b/PROMS/Volian.Print.Library/PromsPrinter.cs index 11b1969c..ee22b33e 100644 --- a/PROMS/Volian.Print.Library/PromsPrinter.cs +++ b/PROMS/Volian.Print.Library/PromsPrinter.cs @@ -699,7 +699,7 @@ namespace Volian.Print.Library try { - if (File.Exists(outputFileName) && !OverWrite) + if (File.Exists(outputFileName) && !OverWrite && !outputFileName.Contains("PageNumberPass") && !outputFileName.Contains("Foldout")) { if (!BaselineTesting && !SaveLinks) // B2024-031 don't do if creating PDF hyperlinks { @@ -836,14 +836,6 @@ namespace Volian.Print.Library OnStatusChanged("Print " + myProcedure.DisplayNumber, PromsPrinterStatusType.Start); string outputFileName = pdfFolder + "\\" + Prefix + PDFFile; // RHM20150506 Multiline ItemID TextBox - if (!OverWrite && File.Exists(outputFileName)) - { - if (MessageBox.Show(outputFileName + " exists. Overwrite file?", "File Exists", MessageBoxButtons.YesNo) == DialogResult.No) - { - ProfileTimer.Pop(profileDepth); - return null; - } - } string retval = PrintProcedureOrFoldout(myProcedure, null, outputFileName, makePlacekeeper, makeContinuousActionSummary, makeTimeCriticalAction); ProfileTimer.Pop(profileDepth); return retval;