Save Enhanced Document Properties
Support new Properties Step_SourceToBackground, Step_BackgroundToSource, Step_SourceToDeviation, Step_DeviationToSource
This commit is contained in:
parent
694c887710
commit
551b71e525
@ -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
|
||||
|
@ -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)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user