Added Properties to PromsPrinter
This commit is contained in:
parent
c5fc60bfbd
commit
0f7e6962be
@ -86,6 +86,12 @@ namespace Volian.Print.Library
|
|||||||
}
|
}
|
||||||
public class PromsPrinter
|
public class PromsPrinter
|
||||||
{
|
{
|
||||||
|
private string _Prefix = ""; // RHM20150506 Multiline ItemID TextBox
|
||||||
|
public string Prefix
|
||||||
|
{
|
||||||
|
get { return _Prefix; }
|
||||||
|
set { _Prefix = value; }
|
||||||
|
}
|
||||||
private static readonly log4net.ILog _MyLog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
private static readonly log4net.ILog _MyLog = log4net.LogManager.GetLogger(System.Reflection.MethodBase.GetCurrentMethod().DeclaringType);
|
||||||
public event PromsPrinterStatusEvent StatusChanged;
|
public event PromsPrinterStatusEvent StatusChanged;
|
||||||
internal void OnStatusChanged(object sender, PromsPrintStatusArgs args)
|
internal void OnStatusChanged(object sender, PromsPrintStatusArgs args)
|
||||||
@ -114,13 +120,11 @@ namespace Volian.Print.Library
|
|||||||
}
|
}
|
||||||
private string _Watermark;
|
private string _Watermark;
|
||||||
private string _PDFFile;
|
private string _PDFFile;
|
||||||
|
|
||||||
public string PDFFile
|
public string PDFFile
|
||||||
{
|
{
|
||||||
get { return _PDFFile; }
|
get { return _PDFFile; }
|
||||||
set { _PDFFile = value; }
|
set { _PDFFile = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
private bool _DebugOutput;
|
private bool _DebugOutput;
|
||||||
public bool DebugOutput
|
public bool DebugOutput
|
||||||
{
|
{
|
||||||
@ -203,8 +207,9 @@ namespace Volian.Print.Library
|
|||||||
get { return _MyReaderHelper; }
|
get { return _MyReaderHelper; }
|
||||||
set { _MyReaderHelper = value; }
|
set { _MyReaderHelper = value; }
|
||||||
}
|
}
|
||||||
public PromsPrinter(ItemInfo myItem, string rev, string watermark, bool debugOutput, bool origPgBrk, string backgroundFolder, bool openPDF, bool overWrite, ChangeBarDefinition cbd, String pdfFile, bool insertBlankPages, bool batchPrint)
|
public PromsPrinter(ItemInfo myItem, string rev, string watermark, bool debugOutput, bool origPgBrk, string backgroundFolder, bool openPDF, bool overWrite, ChangeBarDefinition cbd, String pdfFile, bool insertBlankPages, bool batchPrint, string prefix)
|
||||||
{
|
{
|
||||||
|
Prefix = prefix; // RHM20150506 Multiline ItemID TextBox
|
||||||
_MyItem = myItem;
|
_MyItem = myItem;
|
||||||
_Rev = rev;
|
_Rev = rev;
|
||||||
_Watermark = watermark;
|
_Watermark = watermark;
|
||||||
@ -534,7 +539,7 @@ namespace Volian.Print.Library
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
OnStatusChanged("Print " + myProcedure.DisplayNumber, PromsPrinterStatusType.Start);
|
OnStatusChanged("Print " + myProcedure.DisplayNumber, PromsPrinterStatusType.Start);
|
||||||
string outputFileName = pdfFolder + "\\" + PDFFile;
|
string outputFileName = pdfFolder + "\\" + Prefix + PDFFile; // RHM20150506 Multiline ItemID TextBox
|
||||||
|
|
||||||
if (!OverWrite && File.Exists(outputFileName))
|
if (!OverWrite && File.Exists(outputFileName))
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user