Added checkboxes for Placekeepers and Phonelist

Supporting logic to save/retrieve Placekeeper and Phonelist information
Supporting logic to save/retrieve Placekeeper information
Added Placekeeper logic
Null reference fix
Logic to get PrintPhoneList flag
Rearranged the panel and added Placekeeper checkbox
This commit is contained in:
2014-04-08 21:02:43 +00:00
parent c926ddbe60
commit d41c675f6e
9 changed files with 610 additions and 462 deletions

View File

@@ -375,23 +375,58 @@ namespace VEPROMS.CSLA.Library
OnPropertyChanged("Section_TOC");
}
}
[Category("Section")]
//PROPGRID: Hide AutoGen
[DisplayName("Section AutoGen")]
[Category("General")]
// Placekeeper
[DisplayName("Placekeeper")]
[RefreshProperties(RefreshProperties.All)]
[Description("Section AutoGen")]
public string Section_AutoGen
[Description("Include in Placekeeper")]
public string Section_Placekeeper
{
get
{
return _Xp["Section", "AutoGen"];
string tmp = _Xp["Section", "Placekeeper"];
return tmp == null || tmp == "" ? "N" : tmp;
}
set
{
_Xp["Section", "AutoGen"] = value;
OnPropertyChanged("Section_AutoGen");
_Xp["Section", "Placekeeper"] = value;
OnPropertyChanged("Section_Placekeeper");
}
}
// Phonelist
[DisplayName("PhoneList")]
[RefreshProperties(RefreshProperties.All)]
[Description("Include PhoneList")]
public string Section_PhoneList
{
get
{
string tmp = _Xp["Section", "PhoneList"];
return tmp == null || tmp == "" ? "N" : tmp;
}
set
{
_Xp["Section", "PhoneList"] = value;
OnPropertyChanged("Section_PhoneList");
}
}
//[Category("Section")]
////PROPGRID: Hide AutoGen
//[DisplayName("Section AutoGen")]
//[RefreshProperties(RefreshProperties.All)]
//[Description("Section AutoGen")]
//public string Section_AutoGen
//{
// get
// {
// return _Xp["Section", "AutoGen"];
// }
// set
// {
// _Xp["Section", "AutoGen"] = value;
// OnPropertyChanged("Section_AutoGen");
// }
//}
[Category("Section")]
//PROPGRID: Hide Subsection PH
[DisplayName("Section PrintHdr")]

View File

@@ -136,6 +136,29 @@ namespace VEPROMS.CSLA.Library
}
}
//[Category("Step Attributes")]
//[DisplayName("Step Placekeeper")]
//[RefreshProperties(RefreshProperties.All)]
//[Description("Step Placekeeper")]
public bool Step_Placekeeper
{
get
{
string s = _Xp["Step", "Placekeeper"];
//If there is no value to get, then get the parent value (a.k.a. default value).
if (s == string.Empty) return false;
if (s == "True") return true;
return false;
}
set
{
string s = _Xp["Step", "Placekeeper"];
if (value.ToString() == s) return;
_Xp["Step", "Placekeeper"] = value.ToString();
OnPropertyChanged("Step_Placekeeper");
}
}
//[Category("Step Attributes")]
//[DisplayName("Step Check Off Index")]
//[RefreshProperties(RefreshProperties.All)]
//[Description("Step Check Off Index")]