B2019-076: support for folder/working draft level proc set specific info (moved code from VlnSvgPageHelper to here)
B2019-076: support for folder/working draft level proc set specific info & C2019-023: default values on outside transitions SI B2019-076: make folder/working draft level proc set specific info consistent B2019-076: Move GetInheritedSIValue from here to DocVersionExt.cs so it is accessible from TransitionExt.cs
This commit is contained in:
@@ -859,6 +859,30 @@ namespace VEPROMS.CSLA.Library
|
||||
return _UnitNames;
|
||||
}
|
||||
}
|
||||
#region Proc Set Specific info support
|
||||
public static string GetInheritedSIValue(ProcedureInfo pi, string fieldName)
|
||||
{
|
||||
string val = null;
|
||||
DocVersionConfig dvConfig = new DocVersionConfig(pi.MyDocVersion.Config);
|
||||
if (dvConfig != null)
|
||||
{
|
||||
val = dvConfig.GetValue("SI", fieldName);
|
||||
if (val != null && val != "") return val; // the value exists within the docversion level
|
||||
}
|
||||
FolderInfo fi = pi.MyDocVersion.MyFolder;
|
||||
while (fi != null)
|
||||
{
|
||||
FolderConfig folderConfig = new FolderConfig(fi.Config);
|
||||
if (folderConfig != null)
|
||||
{
|
||||
val = folderConfig.GetValue("SI", fieldName);
|
||||
if (val != null && val != "") return val; // the value exists within this folder
|
||||
}
|
||||
fi = fi.ActiveParent as FolderInfo;
|
||||
}
|
||||
return val;
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
#region VersionPastingPartCriteria
|
||||
[Serializable()]
|
||||
|
Reference in New Issue
Block a user