Logic added to capture Calvert Placekeeper information on sub-steps

This commit is contained in:
John Jenko 2014-05-08 14:29:17 +00:00
parent c0c9c8e314
commit 387dcd5dac

View File

@ -139,22 +139,21 @@ namespace VEPROMS.CSLA.Library
//[DisplayName("Step Placekeeper")] //[DisplayName("Step Placekeeper")]
//[RefreshProperties(RefreshProperties.All)] //[RefreshProperties(RefreshProperties.All)]
//[Description("Step Placekeeper")] //[Description("Step Placekeeper")]
public bool Step_Placekeeper public string Step_Placekeeper
{ {
get get
{ {
string s = _Xp["Step", "Placekeeper"]; string s = _Xp["Step", "Placekeeper"];
//If there is no value to get, then get the parent value (a.k.a. default value). //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 == string.Empty) return "N";
if (s == "True") return true; return s;
return false;
} }
set set
{ {
string s = _Xp["Step", "Placekeeper"]; string s = _Xp["Step", "Placekeeper"];
if (value.ToString() == s) return; if (value == s) return;
_Xp["Step", "Placekeeper"] = value.ToString(); _Xp["Step", "Placekeeper"] = value;
OnPropertyChanged("Step_Placekeeper"); OnPropertyChanged("Step_Placekeeper");
} }
} }