From 0f7e6962beb34f712e3c977dc3d26d5849ff2563 Mon Sep 17 00:00:00 2001 From: Rich Date: Wed, 6 May 2015 14:39:37 +0000 Subject: [PATCH] Added Properties to PromsPrinter --- PROMS/Volian.Print.Library/PromsPrinter.cs | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/PROMS/Volian.Print.Library/PromsPrinter.cs b/PROMS/Volian.Print.Library/PromsPrinter.cs index efefef33..f5835460 100644 --- a/PROMS/Volian.Print.Library/PromsPrinter.cs +++ b/PROMS/Volian.Print.Library/PromsPrinter.cs @@ -86,6 +86,12 @@ namespace Volian.Print.Library } 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); public event PromsPrinterStatusEvent StatusChanged; internal void OnStatusChanged(object sender, PromsPrintStatusArgs args) @@ -114,13 +120,11 @@ namespace Volian.Print.Library } private string _Watermark; private string _PDFFile; - public string PDFFile { get { return _PDFFile; } set { _PDFFile = value; } } - private bool _DebugOutput; public bool DebugOutput { @@ -203,8 +207,9 @@ namespace Volian.Print.Library get { return _MyReaderHelper; } 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; _Rev = rev; _Watermark = watermark; @@ -534,7 +539,7 @@ namespace Volian.Print.Library } } OnStatusChanged("Print " + myProcedure.DisplayNumber, PromsPrinterStatusType.Start); - string outputFileName = pdfFolder + "\\" + PDFFile; + string outputFileName = pdfFolder + "\\" + Prefix + PDFFile; // RHM20150506 Multiline ItemID TextBox if (!OverWrite && File.Exists(outputFileName)) {