diff --git a/PROMS/VEPROMS.CSLA.Library/Config/StepConfig.cs b/PROMS/VEPROMS.CSLA.Library/Config/StepConfig.cs index c1a27add..ad9df915 100644 --- a/PROMS/VEPROMS.CSLA.Library/Config/StepConfig.cs +++ b/PROMS/VEPROMS.CSLA.Library/Config/StepConfig.cs @@ -297,6 +297,74 @@ namespace VEPROMS.CSLA.Library OnPropertyChanged("Step_Responsibility"); } } + public string Step_SourceToBackground + { + get + { + string s = _Xp["Step", "SourceToBackground"]; + if (s == string.Empty) return null; + return s; + } + set + { + string s = _Xp["Step", "SourceToBackground"]; + if (value != null && value.ToString() == s) return; + if (value == null && s != null) _Xp["Step", "SourceToBackground"] = null; + else _Xp["Step", "SourceToBackground"] = value.ToString(); + OnPropertyChanged("Step_SourceToBackground"); + } + } + public string Step_BackgroundToSource + { + get + { + string s = _Xp["Step", "BackgroundToSource"]; + if (s == string.Empty) return null; + return s; + } + set + { + string s = _Xp["Step", "BackgroundToSource"]; + if (value != null && value.ToString() == s) return; + if (value == null && s != null) _Xp["Step", "BackgroundToSource"] = null; + else _Xp["Step", "BackgroundToSource"] = value.ToString(); + OnPropertyChanged("Step_BackgroundToSource"); + } + } + public string Step_SourceToDeviation + { + get + { + string s = _Xp["Step", "SourceToDeviation"]; + if (s == string.Empty) return null; + return s; + } + set + { + string s = _Xp["Step", "SourceToDeviation"]; + if (value != null && value.ToString() == s) return; + if (value == null && s != null) _Xp["Step", "SourceToDeviation"] = null; + else _Xp["Step", "SourceToDeviation"] = value.ToString(); + OnPropertyChanged("Step_SourceToDeviation"); + } + } + public string Step_DeviationToSource + { + get + { + string s = _Xp["Step", "DeviationToSource"]; + if (s == string.Empty) return null; + return s; + } + set + { + string s = _Xp["Step", "DeviationToSource"]; + if (value != null && value.ToString() == s) return; + if (value == null && s != null) _Xp["Step", "DeviationToSource"] = null; + else _Xp["Step", "DeviationToSource"] = value.ToString(); + OnPropertyChanged("Step_DeviationToSource"); + } + } #endregion #region IItemConfig Members diff --git a/PROMS/VEPROMS.CSLA.Library/Generated/ContentInfo.cs b/PROMS/VEPROMS.CSLA.Library/Generated/ContentInfo.cs index a9a2a7c2..008cc646 100644 --- a/PROMS/VEPROMS.CSLA.Library/Generated/ContentInfo.cs +++ b/PROMS/VEPROMS.CSLA.Library/Generated/ContentInfo.cs @@ -627,6 +627,23 @@ namespace VEPROMS.CSLA.Library if (tmp.LocalEntry != null && tmpInfo.MyEntry != null && tmp.MyEntry.MyDocument.DocID != tmpInfo.MyEntry.MyDocument.DocID) EntryInfo.Refresh(tmp.MyEntry); } + StepConfig sc = new StepConfig(tmp.Config); + if (sc.Step_SourceToBackground != null) + { + int s2b = int.Parse(sc.Step_SourceToBackground); + ItemInfo iib = ItemInfo.Get(s2b); + Content cb = Content.Get(iib.MyContent.ContentID); + cb.Text = tmp.Text; + cb.Save(); + } + if (sc.Step_SourceToDeviation != null) + { + int s2d = int.Parse(sc.Step_SourceToDeviation); + ItemInfo iid = ItemInfo.Get(s2d); + Content cd = Content.Get(iid.MyContent.ContentID); + cd.Text = tmp.Text; + cd.Save(); + } } protected virtual void RefreshFields(Content tmp) {