Add initialization and reset code
This commit is contained in:
@@ -175,6 +175,8 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("ItemAnnotationCount", true);
|
||||
if (_ItemAnnotationCount < 0)
|
||||
_ItemAnnotationCount = ItemAnnotations.Count;
|
||||
return _ItemAnnotationCount;
|
||||
}
|
||||
}
|
||||
@@ -195,6 +197,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public void RefreshItemAnnotations()
|
||||
{
|
||||
_ItemAnnotationCount = -1;
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(_ItemID.ToString()))
|
||||
foreach (ItemInfo tmp in _CacheByPrimaryKey[_ItemID.ToString()])
|
||||
@@ -210,6 +213,8 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("ItemDocVersionCount", true);
|
||||
if (_ItemDocVersionCount < 0)
|
||||
_ItemDocVersionCount = ItemDocVersions.Count;
|
||||
return _ItemDocVersionCount;
|
||||
}
|
||||
}
|
||||
@@ -230,6 +235,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public void RefreshItemDocVersions()
|
||||
{
|
||||
_ItemDocVersionCount = -1;
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(_ItemID.ToString()))
|
||||
foreach (ItemInfo tmp in _CacheByPrimaryKey[_ItemID.ToString()])
|
||||
@@ -245,6 +251,8 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("NextItemCount", true);
|
||||
if (_NextItemCount < 0)
|
||||
_NextItemCount = NextItems.Count;
|
||||
return _NextItemCount;
|
||||
}
|
||||
}
|
||||
@@ -265,6 +273,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public void RefreshNextItems()
|
||||
{
|
||||
_NextItemCount = -1;
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(_ItemID.ToString()))
|
||||
foreach (ItemInfo tmp in _CacheByPrimaryKey[_ItemID.ToString()])
|
||||
@@ -280,6 +289,8 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("ItemPartCount", true);
|
||||
if (_ItemPartCount < 0)
|
||||
_ItemPartCount = ItemParts.Count;
|
||||
return _ItemPartCount;
|
||||
}
|
||||
}
|
||||
@@ -300,6 +311,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public void RefreshItemParts()
|
||||
{
|
||||
_ItemPartCount = -1;
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(_ItemID.ToString()))
|
||||
foreach (ItemInfo tmp in _CacheByPrimaryKey[_ItemID.ToString()])
|
||||
@@ -307,7 +319,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
private int _ItemTransition_RangeIDCount = 0;
|
||||
/// <summary>
|
||||
/// Count of ItemTransitions for this Item
|
||||
/// Count of ItemTransitions_RangeID for this Item
|
||||
/// </summary>
|
||||
public int ItemTransition_RangeIDCount
|
||||
{
|
||||
@@ -315,6 +327,8 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("ItemTransition_RangeIDCount", true);
|
||||
if (_ItemTransition_RangeIDCount < 0)
|
||||
_ItemTransition_RangeIDCount = ItemTransitions_RangeID.Count;
|
||||
return _ItemTransition_RangeIDCount;
|
||||
}
|
||||
}
|
||||
@@ -335,6 +349,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public void RefreshItemTransitions_RangeID()
|
||||
{
|
||||
_ItemTransition_RangeIDCount = -1;
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(_ItemID.ToString()))
|
||||
foreach (ItemInfo tmp in _CacheByPrimaryKey[_ItemID.ToString()])
|
||||
@@ -342,7 +357,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
private int _ItemTransition_ToIDCount = 0;
|
||||
/// <summary>
|
||||
/// Count of ItemTransitions for this Item
|
||||
/// Count of ItemTransitions_ToID for this Item
|
||||
/// </summary>
|
||||
public int ItemTransition_ToIDCount
|
||||
{
|
||||
@@ -350,6 +365,8 @@ namespace VEPROMS.CSLA.Library
|
||||
get
|
||||
{
|
||||
CanReadProperty("ItemTransition_ToIDCount", true);
|
||||
if (_ItemTransition_ToIDCount < 0)
|
||||
_ItemTransition_ToIDCount = ItemTransitions_ToID.Count;
|
||||
return _ItemTransition_ToIDCount;
|
||||
}
|
||||
}
|
||||
@@ -370,6 +387,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public void RefreshItemTransitions_ToID()
|
||||
{
|
||||
_ItemTransition_ToIDCount = -1;
|
||||
ConvertListToDictionary();
|
||||
if (_CacheByPrimaryKey.ContainsKey(_ItemID.ToString()))
|
||||
foreach (ItemInfo tmp in _CacheByPrimaryKey[_ItemID.ToString()])
|
||||
|
Reference in New Issue
Block a user