C2019-004: Allow user to define duplex blank page text (handle approved & baseline output)
This commit is contained in:
@@ -564,6 +564,44 @@ namespace VEPROMS.CSLA.Library
|
||||
OnPropertyChanged("Print_DisableDuplex");
|
||||
}
|
||||
}
|
||||
// C2019-004: Allow user to define duplex lank page text at the docversion level
|
||||
[Category("Print Settings")]
|
||||
[DisplayName("Duplex Blank Page Text")]
|
||||
[RefreshProperties(RefreshProperties.All)]
|
||||
[Description("Duplex Blank Page Text")]
|
||||
public string Print_DuplexBlankPageText
|
||||
{
|
||||
get
|
||||
{
|
||||
string s = _Xp["PrintSettings", "duplexblnktxt"];
|
||||
|
||||
//If there is no value to get, then get the parent value (a.k.a. default value).
|
||||
if (s == string.Empty)
|
||||
s = _Xp.ParentValue("PrintSettings", "duplexblnktxt"); // get the parent value
|
||||
// If there is no parent value, then use the volian default
|
||||
if (s == string.Empty)
|
||||
s = "";// default to volian default
|
||||
|
||||
return s;
|
||||
}
|
||||
set
|
||||
{
|
||||
// if value being saved is same as the parent value, then clear the value (save blank). This will
|
||||
// reset the data to use the parent value.
|
||||
|
||||
string parval = _Xp.ParentValue("PrintSettings", "duplexblnktxt"); // get the parent value
|
||||
|
||||
if (parval.Equals(string.Empty)) // if the parent value is empty, then use the volian default
|
||||
parval = "";
|
||||
|
||||
if (parval.Equals(value))
|
||||
_Xp["PrintSettings", "duplexblnktxt"] = string.Empty; // reset to parent value
|
||||
else
|
||||
_Xp["PrintSettings", "duplexblnktxt"] = value; // save selected value
|
||||
|
||||
OnPropertyChanged("Print_DuplexBlankPageText");
|
||||
}
|
||||
}
|
||||
//// Change Bar Use from 16-bit code:
|
||||
//// No Default
|
||||
//// Without Change Bars
|
||||
|
Reference in New Issue
Block a user