Added code to support enabling/diabling create pdf button until user selects a unit
This commit is contained in:
parent
a7dce88741
commit
db93956df7
@ -337,7 +337,12 @@ namespace VEPROMS
|
||||
{
|
||||
pnl.ApplDisplayMode = displayApplicability.ViewMode;
|
||||
displayHistory.ApplDisplayMode = pnl.ApplDisplayMode;
|
||||
|
||||
//added by jcb 20130718 to support enabling/diabling create pdf button until user selects a unit
|
||||
if (pnl.ApplDisplayMode > 0)
|
||||
pnl.MyStepTabPanel.MyStepTabRibbon.btnPdfCreate.Enabled = true;
|
||||
else
|
||||
pnl.MyStepTabPanel.MyStepTabRibbon.btnPdfCreate.Enabled = false;
|
||||
//end added by jcb 20130718
|
||||
}
|
||||
}
|
||||
|
||||
@ -490,9 +495,18 @@ namespace VEPROMS
|
||||
void MyStepTabRibbon_PrintRequest(object sender, StepTabRibbonEventArgs args)
|
||||
{
|
||||
ProcedureInfo pi = args.Proc as ProcedureInfo;
|
||||
//added by jcb 20130718 to support create pdf button when multiunit and user selects a unit
|
||||
pi.MyDocVersion.DocVersionConfig.SelectedSlave = pi.ProcedureConfig.SelectedSlave;
|
||||
//end added by jcb 20130718
|
||||
if (pi == null) return;
|
||||
DlgPrintProcedure prnDlg = new DlgPrintProcedure(pi);
|
||||
//added by jcb 20130718 to support create pdf button when multiunit and user selects a unit
|
||||
prnDlg.SelectedSlave = pi.ProcedureConfig.SelectedSlave;
|
||||
//end added by jcb 20130718
|
||||
prnDlg.ShowDialog(this); // RHM 20120925 - Center dialog over PROMS window
|
||||
//added by jcb 20130718 to support create pdf button when multiunit and user selects a unit
|
||||
pi.MyDocVersion.DocVersionConfig.SelectedSlave = 0;
|
||||
//end added by jcb 20130718
|
||||
}
|
||||
void displaySearch1_PrintRequest(object sender, DisplaySearchEventArgs args)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user