This commit is contained in:
2008-08-12 11:21:19 +00:00
parent 610f408c6d
commit d0dba2aad4
14 changed files with 937 additions and 240 deletions

View File

@@ -96,9 +96,19 @@ namespace VEPROMS.CSLA.Library
return MyFolder;
}
}
private Format _ActiveFormat = null;
public Format ActiveFormat
{
get { return LocalFormat != null ? LocalFormat : ActiveParent.ActiveFormat; }
get
{
if (_ActiveFormat == null)
_ActiveFormat = LocalFormat != null ? LocalFormat : ActiveParent.ActiveFormat;
return _ActiveFormat;
}
set
{
_ActiveFormat = null;
}
}
public Format LocalFormat
{
@@ -110,21 +120,26 @@ namespace VEPROMS.CSLA.Library
}
#endregion
}
public partial class DocVersionInfo:IVEDrillDownReadOnly
public partial class DocVersionInfo : IVEDrillDownReadOnly
{
#region DocVersion Config
[NonSerialized]
private DocVersionConfig _DocVersionConfig;
public DocVersionConfig DocVersionConfig
{ get { return (_DocVersionConfig != null ? _DocVersionConfig : _DocVersionConfig = new DocVersionConfig(this));} }
{ get { return (_DocVersionConfig != null ? _DocVersionConfig : _DocVersionConfig = new DocVersionConfig(this)); } }
private void DocVersionConfigRefresh()
{
_DocVersionConfig = null;
}
#endregion
ItemInfoList _iil = null;
ItemInfoList _Procedures = null;
public ItemInfoList Procedures
{ get { return (_iil != null ? _iil: _iil = ItemInfoList.GetList(_ItemID,(int)E_FromType.Procedure)); } }
{ get { return (_Procedures != null ? _Procedures : _Procedures = ItemInfoList.GetList(_ItemID, (int)E_FromType.Procedure)); } }
public void ResetProcedures()
{
_Procedures = null;
}
#region IVEReadOnlyItem
public System.Collections.IList GetChildren()
{
@@ -196,6 +211,14 @@ namespace VEPROMS.CSLA.Library
//{
// return ToString();
//}
public ItemInfo LastChild()
{
return MyItem.LastSibling;
}
public ItemInfo FirstChild()
{
return MyItem;
}
#endregion
#region Extension
partial class DocVersionInfoExtension : extensionBase