Placekeeper logic

Added Checkbox to generate the Placekeeper
Generate Placekeeper logic
Disable the “include in placekeeper” checkbox on Placekeeper section types
This commit is contained in:
2014-05-09 19:13:15 +00:00
parent 10607cce7d
commit 9b930ffeda
6 changed files with 54 additions and 41 deletions

View File

@@ -140,6 +140,9 @@ namespace VEPROMS
cbxOverwritePDF2.Visible = oneProcedure;
cbxOverwritePDF2.Checked = true;
gpnlDebug.Visible = Volian.Base.Library.VlnSettings.DebugMode;
cbxGeneratePlacekeeper.Checked = false;
cbxGeneratePlacekeeper.Visible = oneProcedure &&
((MyProcedure.ActiveFormat.PlantFormat.FormatData.PurchaseOptions & E_PurchaseOptions.AutoPlacekeeper) == E_PurchaseOptions.AutoPlacekeeper);
}
private string _UnitNumber;
public string UnitNumber
@@ -658,6 +661,7 @@ namespace VEPROMS
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), cbxBlankPgsForDuplex.Checked);
frmStatus.MakePlaceKeeper = cbxGeneratePlacekeeper.Checked;
frmStatus.ShowDialog();
MyProcedure.MyDocVersion.DocVersionConfig.SelectedSlave = 0;
this.Close();