diff --git a/PROMS/VEPROMS.CSLA.Library/Extension/DocVersionExt.cs b/PROMS/VEPROMS.CSLA.Library/Extension/DocVersionExt.cs index 39cbf066..a57e4bc5 100644 --- a/PROMS/VEPROMS.CSLA.Library/Extension/DocVersionExt.cs +++ b/PROMS/VEPROMS.CSLA.Library/Extension/DocVersionExt.cs @@ -81,44 +81,46 @@ namespace VEPROMS.CSLA.Library //return string.Format("{0} - {1}", Name, Title); } #region IVEDrillDown - public System.Collections.IList GetChildren() - { - return null; - } - public bool HasChildren - { - get { return _ItemID > 0; } - } - public IVEDrillDown ActiveParent - { - get - { - return MyFolder; - } - } - private Format _ActiveFormat = null; - public Format ActiveFormat - { - get - { - if (_ActiveFormat == null) - _ActiveFormat = LocalFormat != null ? LocalFormat : ActiveParent.ActiveFormat; - return _ActiveFormat; - } - set - { - _ActiveFormat = null; - } - } - public Format LocalFormat - { - get { return MyFormat; } - } + //public System.Collections.IList GetChildren() + //{ + // return null; + //} + //public bool HasChildren + //{ + // get { return _ItemID > 0; } + //} + //public IVEDrillDown ActiveParent + //{ + // get + // { + // return MyFolder; + // } + //} + //private Format _ActiveFormat = null; + //public Format ActiveFormat + //{ + // get + // { + // if (_ActiveFormat == null) + // _ActiveFormat = LocalFormat != null ? LocalFormat : ActiveParent.ActiveFormat; + // return _ActiveFormat; + // } + // set + // { + // _ActiveFormat = null; + // } + //} + //public Format LocalFormat + //{ + // get { return MyFormat; } + //} public ConfigDynamicTypeDescriptor MyConfig { get { return DocVersionConfig; } } #endregion + public DocVersionInfo MyDocVersionInfo + { get { return DocVersionInfo.Get(VersionID); } } } public partial class DocVersionInfo : IVEDrillDownReadOnly { @@ -359,7 +361,7 @@ namespace VEPROMS.CSLA.Library public FormatInfo LocalFormat { get { - Console.WriteLine("DV Local {0} {1} {2}", (MyFormat == null) ? "MYformat is null" : MyFormat.Name,FormatID,(MyFormat == null)?0:MyFormat.FormatID); + //Console.WriteLine("DV Local {0} {1} {2}", (MyFormat == null) ? "MYformat is null" : MyFormat.Name,FormatID,(MyFormat == null)?0:MyFormat.FormatID); return MyFormat; } }