Update related lists when related value changes.

This commit is contained in:
Rich
2008-05-01 11:01:21 +00:00
parent 26de18fb28
commit 1973b9646c
20 changed files with 561 additions and 87 deletions

View File

@@ -176,11 +176,17 @@ namespace VEPROMS.CSLA.Library
get
{
CanReadProperty("DocumentEntries",true);
if (_DocumentEntryCount > 0 && _DocumentEntries == null)
if (_DocumentEntryCount < 0 || (_DocumentEntryCount > 0 && _DocumentEntries == null))
_DocumentEntries = EntryInfoList.GetByDocID(_DocID);
if (_DocumentEntryCount < 0)
_DocumentEntryCount = _DocumentEntries.Count;
return _DocumentEntries;
}
}
internal void RefreshDocumentEntries()
{
_DocumentEntryCount = -1; // This will cause the data to be requeried
}
// TODO: Replace base DocumentInfo.ToString function as necessary
/// <summary>
/// Overrides Base ToString