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:
parent
450c3ef6c1
commit
ae7058eb8d
File diff suppressed because it is too large
Load Diff
@ -110,11 +110,6 @@ namespace VEPROMS
|
||||
get { return txbReviewDate.Text; }
|
||||
set { txbReviewDate.Text = value; }
|
||||
}
|
||||
public string PDFPathSetting
|
||||
{
|
||||
get { return txbPdfLocationS.Text; }
|
||||
set { txbPdfLocationS.Text = value; }
|
||||
}
|
||||
public DlgPrintProcedure(DocVersionInfo dvi, bool automatic)
|
||||
{
|
||||
_Automatic = automatic;
|
||||
@ -816,27 +811,14 @@ namespace VEPROMS
|
||||
}
|
||||
}
|
||||
private bool _Initializing = false;
|
||||
private void tbSettings_Click(object sender, EventArgs e)
|
||||
{
|
||||
// Fill in the settings from the config. This tab is used
|
||||
// to update the settings for PdfLocation, RevNum, RevDate and ReviewDate
|
||||
_Initializing = true;
|
||||
txbPdfLocationS.Text = txbPDFLocation.Text;
|
||||
_Initializing = false;
|
||||
}
|
||||
|
||||
|
||||
private void btnPdfLocation_Click(object sender, EventArgs e)
|
||||
{
|
||||
DlgBrowseFolder.SelectedPath = PDFPathSetting;
|
||||
DlgBrowseFolder.SelectedPath = PDFPath;
|
||||
DialogResult drslt = DlgBrowseFolder.ShowDialog();
|
||||
if (drslt == DialogResult.OK)
|
||||
{
|
||||
//cbxPDFloc.Text = DlgBrowseFolder.SelectedPath;
|
||||
txbPdfLocationS.Text = DlgBrowseFolder.SelectedPath;
|
||||
txbPDFLocation.Text = txbPdfLocationS.Text;
|
||||
//lblCurPDFLoc.Text = cbxPDFloc.Text;
|
||||
//UpdateDropDown2();
|
||||
txbPDFLocation.Text = DlgBrowseFolder.SelectedPath;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -117,26 +117,26 @@
|
||||
<resheader name="writer">
|
||||
<value>System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089</value>
|
||||
</resheader>
|
||||
<metadata name="docVersionConfigBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>321, 17</value>
|
||||
</metadata>
|
||||
<metadata name="docVersionConfigBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>321, 17</value>
|
||||
</metadata>
|
||||
<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />
|
||||
<data name="btnPdfLocation.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
|
||||
<value>
|
||||
iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8
|
||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAASdAAA
|
||||
EnQB3mYfeAAAAVlJREFUOE+l098rQ2EYwPHHteIfsMiSWhqh3Sjzo9xJKYVQaBfcrKQoicQuyIk77im5
|
||||
oCQd+W1bGDmbGXcuaKYWF+/Zzs7s1OM8K9ZY6t3e+ty89X2e9+bNQ0TI6QQWLYKOZUD3+TrIhBYnlz8s
|
||||
N8jau4SJt9MfWvgKQ4dzqn++VtAV6OC31IAla0S9H0L1biDFb8N4YApfxWnV56hh/xDAv1AnK9ddGHU2
|
||||
p7haUPF0oOobw8TzTtrrvl+qfXhRmqliIM1aZMXVhpE9UzqxEqPH9ag4W1Fxt/8Rk+x4M2lmcDlRLQfX
|
||||
GvFltZRLcL0JPeMVDC5GTUwL72I2qAWXvZwlQpsY8/ZwoYZaOB8uY59PKxg9s3Khhlo4sRlZ/NGBEdHM
|
||||
hRpq4ai/hKm3IyhvG7hQQy0c9BYzxd2HbKOQCzXUwn63QR8wiPKWkQs11ILYWSToWJaE5I/KxRd5GZ5M
|
||||
Xbgb9AAAAABJRU5ErkJggg==
|
||||
YQUAAAAgY0hSTQAAeiYAAICEAAD6AAAAgOgAAHUwAADqYAAAOpgAABdwnLpRPAAAAAlwSFlzAAAScQAA
|
||||
EnEB89x6jgAAAVlJREFUOE+l088rw2EcwPHPXfEPWGRJLY3QLsr8KDcppRAK7cBlJUVJJHYg37hxp+RA
|
||||
SZr8ti2MfDczbg40U4vD892++8539fF8Lt81k3rm8Lo8Pe9Pn556ABH/BcJLNoljv6DzAo7u5DAGPK40
|
||||
KukPGfX3M0M6do3Ro3kttFAncYUc/JQZsGyPaw/DqN0PZoQcmApP45t7Rgu6atkfJAgt1ivqTTcmPC0Z
|
||||
3lZU/Z2oBcdRf9nN2s7Y8jOA8mw1A3nOpqjedozvW7K5qzBx0oCqpw1VX0eOpOzE2ykrg6vJGiWy3oSv
|
||||
a2VCIhvN6J+oZHA5ZmHp2B5/OHHUgtdZwfToFiYDvUKooRYuRsrZ1/MqJs7tQqihFk4dZpZ6cvFHswqh
|
||||
hlo4Hihl2t0oKjsmIdRQC4d9JUz19SPbLBJCDbVw0GPiA4ZQ2TYLoYZacHcVSxzLk2R8ivwgfAOkg8se
|
||||
rIQcQAAAAABJRU5ErkJggg==
|
||||
</value>
|
||||
</data>
|
||||
<metadata name="docVersionConfigBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>321, 17</value>
|
||||
</metadata>
|
||||
<metadata name="docVersionConfigBindingSource.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>321, 17</value>
|
||||
</metadata>
|
||||
<metadata name="DlgBrowseFolder.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
|
||||
<value>153, 17</value>
|
||||
</metadata>
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user