C2013-009: Use PDF Location text box on General Tab for setting location and remove PDF Location text box on Settings Tab

B2013-173: Print Shortcut - when multiple tabs are open, Ctrl-P now prints correct procedure
This commit is contained in:
2015-08-06 13:16:46 +00:00
parent 450c3ef6c1
commit ae7058eb8d
4 changed files with 440 additions and 490 deletions

View File

@@ -762,7 +762,15 @@ namespace VEPROMS
}
void MyStepTabRibbon_PrintRequest(object sender, StepTabRibbonEventArgs args)
{
// Fix for B2013-173:
// if the user did the print by using the shortcut keys 'Ctrl-P' the arguments sent in
// is the first opened procedure rather than the active procedure. So check for this
// and if they are not the same, use the CurrentItem from the main frmVEPROMS.
ProcedureInfo piThis = null;
if (_CurrentItem != null) piThis = _CurrentItem.MyProcedure;
ProcedureInfo pi = args.Proc as ProcedureInfo;
if (piThis != null && pi.ItemID != piThis.ItemID) pi = piThis;
//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