Added Print and Print All Procedures
Added DebugPagination and DebugText properties
This commit is contained in:
parent
a9882ad357
commit
3a408d7af5
@ -12,6 +12,12 @@ namespace VEPROMS
|
|||||||
{
|
{
|
||||||
public partial class frmPDFStatusForm : Form
|
public partial class frmPDFStatusForm : Form
|
||||||
{
|
{
|
||||||
|
private bool _CloseWhenDone = false;
|
||||||
|
public bool CloseWhenDone
|
||||||
|
{
|
||||||
|
get { return _CloseWhenDone; }
|
||||||
|
set { _CloseWhenDone = value; }
|
||||||
|
}
|
||||||
private string _PDFPath;
|
private string _PDFPath;
|
||||||
|
|
||||||
public string PDFPath
|
public string PDFPath
|
||||||
@ -91,6 +97,11 @@ namespace VEPROMS
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
btnOpenFolder.Visible = btnOpenPDF.Visible = true;
|
btnOpenFolder.Visible = btnOpenPDF.Visible = true;
|
||||||
|
if (CloseWhenDone)
|
||||||
|
{
|
||||||
|
this.Close();
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private void btnOpenPDF_Click(object sender, EventArgs e)
|
private void btnOpenPDF_Click(object sender, EventArgs e)
|
||||||
|
@ -195,6 +195,23 @@ namespace VEPROMS
|
|||||||
ContentInfo.InfoChanged += new ContentInfoEvent(RefreshDisplayHistory);
|
ContentInfo.InfoChanged += new ContentInfoEvent(RefreshDisplayHistory);
|
||||||
ItemInfo.InfoRestored += new ItemInfoEvent(RefreshDisplayHistory);
|
ItemInfo.InfoRestored += new ItemInfoEvent(RefreshDisplayHistory);
|
||||||
ItemInfo.ItemDeleted += new ItemInfoEvent(RefreshDisplayHistory);
|
ItemInfo.ItemDeleted += new ItemInfoEvent(RefreshDisplayHistory);
|
||||||
|
tv.PrintProcedure += new vlnTreeViewEvent(tv_PrintProcedure);
|
||||||
|
tv.PrintAllProcedures += new vlnTreeViewEvent(tv_PrintAllProcedures);
|
||||||
|
}
|
||||||
|
|
||||||
|
void tv_PrintAllProcedures(object sender, vlnTreeEventArgs args)
|
||||||
|
{
|
||||||
|
DocVersionInfo dvi = (args.Node as VETreeNode).VEObject as DocVersionInfo;
|
||||||
|
if (dvi == null) return;
|
||||||
|
DlgPrintProcedure prnDlg = new DlgPrintProcedure(dvi);
|
||||||
|
prnDlg.Show();
|
||||||
|
}
|
||||||
|
void tv_PrintProcedure(object sender, vlnTreeEventArgs args)
|
||||||
|
{
|
||||||
|
ProcedureInfo pi = (args.Node as VETreeNode).VEObject as ProcedureInfo;
|
||||||
|
if (pi == null) return;
|
||||||
|
DlgPrintProcedure prnDlg = new DlgPrintProcedure(pi);
|
||||||
|
prnDlg.Show();
|
||||||
}
|
}
|
||||||
void RefreshDisplayHistory(object sender)
|
void RefreshDisplayHistory(object sender)
|
||||||
{
|
{
|
||||||
|
@ -16,6 +16,18 @@ namespace Volian.Base.Library
|
|||||||
// <add key ="OperatingMode" value ="Debug"|"Demo"|"Production"/>
|
// <add key ="OperatingMode" value ="Debug"|"Demo"|"Production"/>
|
||||||
// For DataLoader, this is set via the Debug checkbox on the form.
|
// For DataLoader, this is set via the Debug checkbox on the form.
|
||||||
private static bool WasLoaded = false;
|
private static bool WasLoaded = false;
|
||||||
|
private static bool _DebugPagination = false;
|
||||||
|
public static bool DebugPagination
|
||||||
|
{
|
||||||
|
get { return VlnSettings._DebugPagination; }
|
||||||
|
set { VlnSettings._DebugPagination = value; }
|
||||||
|
}
|
||||||
|
private static bool _DebugText = false;
|
||||||
|
public static bool DebugText
|
||||||
|
{
|
||||||
|
get { return VlnSettings._DebugText; }
|
||||||
|
set { VlnSettings._DebugText = value; }
|
||||||
|
}
|
||||||
private static bool _DebugMode = false;
|
private static bool _DebugMode = false;
|
||||||
public static bool DebugMode
|
public static bool DebugMode
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user