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
This commit is contained in:
Rich 2013-08-07 04:57:47 +00:00
parent 2ce0990d62
commit 38a1b57144
2 changed files with 4 additions and 2 deletions

View File

@ -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;

View File

@ -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.