From 38a1b571446ad41f668e9515dacfeb34d5258663 Mon Sep 17 00:00:00 2001 From: Rich Date: Wed, 7 Aug 2013 04:57:47 +0000 Subject: [PATCH] Fixed code to assure when printing all or some procedures for multiunit doc versions that output PDFs will be stored in sub folder associated with selected unit Fixed code to prevent visibility of Applicability tab in Step Tools flyout when doc version is not a multiunit doc version --- PROMS/VEPROMS User Interface/DlgPrintProcedure.cs | 4 ++-- PROMS/VEPROMS User Interface/frmVEPROMS.cs | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/PROMS/VEPROMS User Interface/DlgPrintProcedure.cs b/PROMS/VEPROMS User Interface/DlgPrintProcedure.cs index d6512b48..c52e9161 100644 --- a/PROMS/VEPROMS User Interface/DlgPrintProcedure.cs +++ b/PROMS/VEPROMS User Interface/DlgPrintProcedure.cs @@ -512,9 +512,9 @@ namespace VEPROMS pbPDFsStatus.Value = i; // this.Text = string.Format("Create PDF for {0} ({1} of {2})", myProc.DisplayNumber, ++i, n); MyProcedure = ProcedureInfo.GetItemAndChildrenByUnit(MyProcedure.ItemID, 0, MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave); - GetMultiunitPDFPath(); + string myPDFPath = GetMultiunitPDFPath(); // RHM 20120925 Overlay the bottom of the dialog so that cancel button is covered. - frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNumAndDate,pw.ToString(), cbxDebug.Checked, cbxOrPgBrk.Checked, cbxOpenAfterCreate2.Checked, cbxOverwritePDF2.Checked, PDFPath, cbd, txbPDFName.Text, new Point(Left,Bottom-50)); + frmPDFStatusForm frmStatus = new frmPDFStatusForm(MyProcedure, RevNumAndDate, pw.ToString(), cbxDebug.Checked, cbxOrPgBrk.Checked, cbxOpenAfterCreate2.Checked, cbxOverwritePDF2.Checked, myPDFPath, cbd, txbPDFName.Text, new Point(Left, Bottom - 50)); frmStatus.CloseWhenDone = true; Application.DoEvents(); frmStatus.CancelStop = true; diff --git a/PROMS/VEPROMS User Interface/frmVEPROMS.cs b/PROMS/VEPROMS User Interface/frmVEPROMS.cs index 43a29834..3214153d 100644 --- a/PROMS/VEPROMS User Interface/frmVEPROMS.cs +++ b/PROMS/VEPROMS User Interface/frmVEPROMS.cs @@ -1613,6 +1613,8 @@ namespace VEPROMS infotabApplicability.Visible = true; displayApplicability.MyItemInfo = args.MyEditItem.MyItemInfo; } + else + infotabApplicability.Visible = false; if (args.MyEditItem.MyItemInfo.ActiveFormat != null) { // see if format has floating foldouts, and if so, display the panel.