This commit is contained in:
parent
de1c6dd937
commit
23a0857051
@ -150,6 +150,13 @@ namespace VEPROMS.CSLA.Library
|
|||||||
}
|
}
|
||||||
public DocVersion MyDocVersion
|
public DocVersion MyDocVersion
|
||||||
{ get { return _DocVersion; } }
|
{ get { return _DocVersion; } }
|
||||||
|
private bool _SaveChangesToDocVersionConfig = true;
|
||||||
|
|
||||||
|
public bool SaveChangesToDocVersionConfig
|
||||||
|
{
|
||||||
|
get { return _SaveChangesToDocVersionConfig; }
|
||||||
|
set { _SaveChangesToDocVersionConfig = value; }
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
#region ToString
|
#region ToString
|
||||||
public override string ToString()
|
public override string ToString()
|
||||||
@ -397,6 +404,8 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return (PrintChangeBar)int.Parse(s);
|
return (PrintChangeBar)int.Parse(s);
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
|
{
|
||||||
|
if (_SaveChangesToDocVersionConfig)
|
||||||
{
|
{
|
||||||
// if value being saved is same as the parent value, then clear the value (save blank). This will
|
// 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.
|
// reset the data to use the parent value.
|
||||||
@ -414,6 +423,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
OnPropertyChanged("Print_ChangeBar");
|
OnPropertyChanged("Print_ChangeBar");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
// User Specified Change Bar Location from16-bit code:
|
// User Specified Change Bar Location from16-bit code:
|
||||||
// With Text
|
// With Text
|
||||||
// Outside Box
|
// Outside Box
|
||||||
@ -451,6 +461,8 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return (PrintChangeBarLoc)int.Parse(s);
|
return (PrintChangeBarLoc)int.Parse(s);
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
|
{
|
||||||
|
if (_SaveChangesToDocVersionConfig)
|
||||||
{
|
{
|
||||||
// if value being saved is same as the parent value, then clear the value (save blank). This will
|
// 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.
|
// reset the data to use the parent value.
|
||||||
@ -468,6 +480,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
OnPropertyChanged("Print_ChangeBarLoc");
|
OnPropertyChanged("Print_ChangeBarLoc");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// Change Bar Text from16-bit code:
|
// Change Bar Text from16-bit code:
|
||||||
// Date and Change ID
|
// Date and Change ID
|
||||||
@ -508,6 +521,8 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return (PrintChangeBarText)int.Parse(s);
|
return (PrintChangeBarText)int.Parse(s);
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
|
{
|
||||||
|
if (_SaveChangesToDocVersionConfig)
|
||||||
{
|
{
|
||||||
// if value being saved is same as the parent value, then clear the value (save blank). This will
|
// 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.
|
// reset the data to use the parent value.
|
||||||
@ -525,6 +540,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
OnPropertyChanged("Print_ChangeBarText");
|
OnPropertyChanged("Print_ChangeBarText");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
[Category("Format Settings")]
|
[Category("Format Settings")]
|
||||||
[DisplayName("Custom Change Bar Message Line One")]
|
[DisplayName("Custom Change Bar Message Line One")]
|
||||||
[RefreshProperties(RefreshProperties.All)]
|
[RefreshProperties(RefreshProperties.All)]
|
||||||
@ -545,6 +561,8 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
|
{
|
||||||
|
if (_SaveChangesToDocVersionConfig)
|
||||||
{
|
{
|
||||||
// if value being saved is same as the parent value, then clear the value (save blank). This will
|
// 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.
|
// reset the data to use the parent value.
|
||||||
@ -562,6 +580,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
OnPropertyChanged("Print_UserCBMess1");
|
OnPropertyChanged("Print_UserCBMess1");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
[Category("Format Settings")]
|
[Category("Format Settings")]
|
||||||
[DisplayName("Custom Change Bar Message Line Two")]
|
[DisplayName("Custom Change Bar Message Line Two")]
|
||||||
[RefreshProperties(RefreshProperties.All)]
|
[RefreshProperties(RefreshProperties.All)]
|
||||||
@ -582,6 +601,8 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return s;
|
return s;
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
|
{
|
||||||
|
if (_SaveChangesToDocVersionConfig)
|
||||||
{
|
{
|
||||||
// if value being saved is same as the parent value, then clear the value (save blank). This will
|
// 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.
|
// reset the data to use the parent value.
|
||||||
@ -599,6 +620,7 @@ namespace VEPROMS.CSLA.Library
|
|||||||
OnPropertyChanged("Print_UserCBMess2");
|
OnPropertyChanged("Print_UserCBMess2");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
[Category("Print Settings")]
|
[Category("Print Settings")]
|
||||||
//PROPGRID: Hide User Format
|
//PROPGRID: Hide User Format
|
||||||
[Browsable(false)]
|
[Browsable(false)]
|
||||||
@ -669,11 +691,70 @@ namespace VEPROMS.CSLA.Library
|
|||||||
return _Xp["PrintSettings", "PDFLocation"];
|
return _Xp["PrintSettings", "PDFLocation"];
|
||||||
}
|
}
|
||||||
set
|
set
|
||||||
|
{
|
||||||
|
if (_SaveChangesToDocVersionConfig)
|
||||||
{
|
{
|
||||||
_Xp["PrintSettings", "PDFLocation"] = value; // save selected value
|
_Xp["PrintSettings", "PDFLocation"] = value; // save selected value
|
||||||
OnPropertyChanged("Print_PDFLocation");
|
OnPropertyChanged("Print_PDFLocation");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
[Category("Print Settings")]
|
||||||
|
[DisplayName("AlwaysOverwritePDF")]
|
||||||
|
[RefreshProperties(RefreshProperties.All)]
|
||||||
|
[Description("Always Overwrite PDF File")]
|
||||||
|
public bool Print_AlwaysOverwritePDF
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
string s = _Xp["PrintSettings", "AlwaysOverwritePDF"];
|
||||||
|
|
||||||
|
// If there is no value, then default to false
|
||||||
|
if (s == string.Empty)
|
||||||
|
s = "false"; // default
|
||||||
|
|
||||||
|
return bool.Parse(s);
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (_SaveChangesToDocVersionConfig)
|
||||||
|
{
|
||||||
|
string parval = _Xp.ParentValue("PrintSettings", "AlwaysOverwritePDF");
|
||||||
|
|
||||||
|
_Xp["PrintSettings", "AlwaysOverwritePDF"] = value.ToString();
|
||||||
|
|
||||||
|
OnPropertyChanged("Print_AlwaysOverwritePDF");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
[Category("Print Settings")]
|
||||||
|
[DisplayName("AlwaysViewPDFAfterCreate")]
|
||||||
|
[RefreshProperties(RefreshProperties.All)]
|
||||||
|
[Description("Always View PDF File After Create")]
|
||||||
|
public bool Print_AlwaysViewPDFAfterCreate
|
||||||
|
{
|
||||||
|
get
|
||||||
|
{
|
||||||
|
string s = _Xp["PrintSettings", "AlwaysViewPDFAfterCreate"];
|
||||||
|
|
||||||
|
// If there is no value, then default to false
|
||||||
|
if (s == string.Empty)
|
||||||
|
s = "false"; // default
|
||||||
|
|
||||||
|
return bool.Parse(s);
|
||||||
|
}
|
||||||
|
set
|
||||||
|
{
|
||||||
|
if (_SaveChangesToDocVersionConfig)
|
||||||
|
{
|
||||||
|
string parval = _Xp.ParentValue("PrintSettings", "AlwaysViewPDFAfterCreate");
|
||||||
|
|
||||||
|
_Xp["PrintSettings", "AlwaysViewPDFAfterCreate"] = value.ToString();
|
||||||
|
|
||||||
|
OnPropertyChanged("Print_AlwaysViewPDFAfterCreate");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
#endregion
|
#endregion
|
||||||
#region Unit // From PROC.INI
|
#region Unit // From PROC.INI
|
||||||
[Category("Unit")]
|
[Category("Unit")]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user