Added code to handle non-date formatted revision dates (eg: DRAFT)
Utilized newly created procedure config property ChangeBarDate Modified method to populate ContentAuditInfoList used in summary report Modified method to populate AnnotationAuditInfoList used in summary report Fixed code to store correct date in History StartDate Cleaned up code used to print procedure Developed method to store ChangeBarDate in procedure config Fixed code to assure rev and revdate were displayed when printing multi unit procedure
This commit is contained in:
@@ -278,6 +278,7 @@ namespace VEPROMS
|
||||
if (txbPDFName.Text.StartsWith("*"))
|
||||
txbPDFName.Text = txbPDFName.Text.Replace("*", this.UnitNumber);
|
||||
ProcedureConfig pc = _MyProcedure.MyConfig as ProcedureConfig;
|
||||
if(SelectedSlave > 0) pc.SelectedSlave = SelectedSlave;
|
||||
if (pc != null)
|
||||
{
|
||||
RevNum = pc.Print_Rev;
|
||||
@@ -446,6 +447,8 @@ namespace VEPROMS
|
||||
_DocVersionConfig.SaveChangesToDocVersionConfig = true;
|
||||
//_DocVersionConfig.ParentLookup = true;
|
||||
|
||||
ProcedureConfig pc = _MyProcedure.MyConfig as ProcedureConfig;
|
||||
if (SelectedSlave > 0) pc.SelectedSlave = 0;
|
||||
}
|
||||
|
||||
private ProcedureInfo _MyProcedure;
|
||||
@@ -533,6 +536,7 @@ namespace VEPROMS
|
||||
pbPDFsStatus.Value = i;
|
||||
// this.Text = string.Format("Create PDF for {0} ({1} of {2})", myProc.DisplayNumber, ++i, n);
|
||||
// RHM 20120925 Overlay the bottom of the dialog so that cancel button is covered.
|
||||
MyProcedure = ProcedureInfo.GetItemAndChildren(MyProcedure.ItemID);
|
||||
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));
|
||||
frmStatus.CloseWhenDone = true;
|
||||
Application.DoEvents();
|
||||
@@ -590,6 +594,8 @@ namespace VEPROMS
|
||||
ChangeBarDefinition cbd = DetermineChangeBarSettings();
|
||||
if (MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave > 0)
|
||||
MyProcedure = ProcedureInfo.GetItemAndChildrenByUnit(MyProcedure.ItemID, 0, MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave);
|
||||
else
|
||||
MyProcedure = ProcedureInfo.GetItemAndChildren(MyProcedure.ItemID);
|
||||
// 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));
|
||||
frmStatus.ShowDialog();
|
||||
|
Reference in New Issue
Block a user