C2022-004 Logic to print a Unit Designator Watermark
This commit is contained in:
parent
b1a39f4a21
commit
78e408706e
@ -165,6 +165,7 @@ namespace Volian.Print.Library
|
|||||||
set { _MyItem = value; }
|
set { _MyItem = value; }
|
||||||
}
|
}
|
||||||
private string _Watermark;
|
private string _Watermark;
|
||||||
|
private string _WatermarkColor;
|
||||||
//C2018-009 print PROMS version
|
//C2018-009 print PROMS version
|
||||||
private string _PromsVersion = "";
|
private string _PromsVersion = "";
|
||||||
public string PromsVersion
|
public string PromsVersion
|
||||||
@ -316,12 +317,13 @@ namespace Volian.Print.Library
|
|||||||
set { _MergedPdf = value; }
|
set { _MergedPdf = value; }
|
||||||
}
|
}
|
||||||
public PromsPrinter(ItemInfo myItem, string rev, string watermark, bool debugOutput, bool origPgBrk, string backgroundFolder, bool openPDF, bool overWrite,
|
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, bool saveLinks, int removeTrailngHardReturnsAndManualPageBreaks, string blankPageText, bool didAll, MergedPdf mergedPdf)
|
ChangeBarDefinition cbd, String pdfFile, bool insertBlankPages, bool batchPrint, string prefix, bool saveLinks, int removeTrailngHardReturnsAndManualPageBreaks, string blankPageText, bool didAll, MergedPdf mergedPdf, string watermarkColor)
|
||||||
{
|
{
|
||||||
Prefix = prefix; // RHM20150506 Multiline ItemID TextBox
|
Prefix = prefix; // RHM20150506 Multiline ItemID TextBox
|
||||||
_MyItem = myItem;
|
_MyItem = myItem;
|
||||||
_Rev = rev;
|
_Rev = rev;
|
||||||
_Watermark = watermark;
|
_Watermark = watermark;
|
||||||
|
_WatermarkColor = watermarkColor;
|
||||||
_DebugOutput = debugOutput;
|
_DebugOutput = debugOutput;
|
||||||
_BackgroundFolder = backgroundFolder;
|
_BackgroundFolder = backgroundFolder;
|
||||||
_OpenPDF = openPDF;
|
_OpenPDF = openPDF;
|
||||||
@ -883,6 +885,7 @@ namespace Volian.Print.Library
|
|||||||
bool firstStepSec = true;
|
bool firstStepSec = true;
|
||||||
// C2021-019: Override the watermark color, stored in the PSI - color list set as combobox in PSI with list of colors
|
// C2021-019: Override the watermark color, stored in the PSI - color list set as combobox in PSI with list of colors
|
||||||
ProcedureConfig pc = myProcedure.MyConfig as ProcedureConfig;
|
ProcedureConfig pc = myProcedure.MyConfig as ProcedureConfig;
|
||||||
|
WatermarkOverrideColor = _WatermarkColor;
|
||||||
if (pc != null)
|
if (pc != null)
|
||||||
{
|
{
|
||||||
string clr = pc.GetValue("PSI", "WATERMARKOVERRIDECLR");
|
string clr = pc.GetValue("PSI", "WATERMARKOVERRIDECLR");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user