Added Grids and Images
This commit is contained in:
@@ -265,6 +265,64 @@ namespace VEPROMS.CSLA.Library
|
||||
return _MyEntry;
|
||||
}
|
||||
}
|
||||
private int _ContentGridCount = 0;
|
||||
/// <summary>
|
||||
/// Count of ContentGrids for this Content
|
||||
/// </summary>
|
||||
public int ContentGridCount
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("ContentGridCount", true);
|
||||
return _ContentGridCount;
|
||||
}
|
||||
}
|
||||
private GridInfo _MyGrid = null;
|
||||
[TypeConverter(typeof(GridInfoConverter))]
|
||||
public GridInfo MyGrid
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("MyGrid", true);
|
||||
if (_ContentGridCount != 0 && _MyGrid == null)
|
||||
{
|
||||
_MyGrid = GridInfo.Get(_ContentID);
|
||||
_ContentGridCount = _MyGrid == null ? 0 : 1;
|
||||
}
|
||||
return _MyGrid;
|
||||
}
|
||||
}
|
||||
private int _ContentImageCount = 0;
|
||||
/// <summary>
|
||||
/// Count of ContentImages for this Content
|
||||
/// </summary>
|
||||
public int ContentImageCount
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("ContentImageCount", true);
|
||||
return _ContentImageCount;
|
||||
}
|
||||
}
|
||||
private ImageInfo _MyImage = null;
|
||||
[TypeConverter(typeof(ImageInfoConverter))]
|
||||
public ImageInfo MyImage
|
||||
{
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("MyImage", true);
|
||||
if (_ContentImageCount != 0 && _MyImage == null)
|
||||
{
|
||||
_MyImage = ImageInfo.Get(_ContentID);
|
||||
_ContentImageCount = _MyImage == null ? 0 : 1;
|
||||
}
|
||||
return _MyImage;
|
||||
}
|
||||
}
|
||||
private int _ContentItemCount = 0;
|
||||
/// <summary>
|
||||
/// Count of ContentItems for this Content
|
||||
@@ -538,6 +596,24 @@ namespace VEPROMS.CSLA.Library
|
||||
//RHM Removed 20090724 - Duplicates function of code above.
|
||||
// - Dispose caused error when a new step was added.
|
||||
// - Resequence of transitions did not work properly.
|
||||
// if(_MyGrid != null)
|
||||
// {
|
||||
// _MyGrid.Dispose();// Dispose related value
|
||||
// _MyGrid = null;// Reset related value
|
||||
// }
|
||||
_ContentGridCount = -1;// Reset Count
|
||||
//RHM Removed 20090724 - Duplicates function of code above.
|
||||
// - Dispose caused error when a new step was added.
|
||||
// - Resequence of transitions did not work properly.
|
||||
// if(_MyImage != null)
|
||||
// {
|
||||
// _MyImage.Dispose();// Dispose related value
|
||||
// _MyImage = null;// Reset related value
|
||||
// }
|
||||
_ContentImageCount = -1;// Reset Count
|
||||
//RHM Removed 20090724 - Duplicates function of code above.
|
||||
// - Dispose caused error when a new step was added.
|
||||
// - Resequence of transitions did not work properly.
|
||||
// if(_MyZContent != null)
|
||||
// {
|
||||
// _MyZContent.Dispose();// Dispose related value
|
||||
@@ -583,6 +659,24 @@ namespace VEPROMS.CSLA.Library
|
||||
//RHM Removed 20090724 - Duplicates function of code above.
|
||||
// - Dispose caused error when a new step was added.
|
||||
// - Resequence of transitions did not work properly.
|
||||
// if(_MyGrid != null)
|
||||
// {
|
||||
// _MyGrid.Dispose();// Dispose related value
|
||||
// _MyGrid = null;// Reset related value
|
||||
// }
|
||||
_ContentGridCount = -1;// Reset Count
|
||||
//RHM Removed 20090724 - Duplicates function of code above.
|
||||
// - Dispose caused error when a new step was added.
|
||||
// - Resequence of transitions did not work properly.
|
||||
// if(_MyImage != null)
|
||||
// {
|
||||
// _MyImage.Dispose();// Dispose related value
|
||||
// _MyImage = null;// Reset related value
|
||||
// }
|
||||
_ContentImageCount = -1;// Reset Count
|
||||
//RHM Removed 20090724 - Duplicates function of code above.
|
||||
// - Dispose caused error when a new step was added.
|
||||
// - Resequence of transitions did not work properly.
|
||||
// if(_MyZContent != null)
|
||||
// {
|
||||
// _MyZContent.Dispose();// Dispose related value
|
||||
@@ -656,6 +750,8 @@ namespace VEPROMS.CSLA.Library
|
||||
_UserID = dr.GetString("UserID");
|
||||
_ContentDetailCount = dr.GetInt32("DetailCount");
|
||||
_ContentEntryCount = dr.GetInt32("EntryCount");
|
||||
_ContentGridCount = dr.GetInt32("GridCount");
|
||||
_ContentImageCount = dr.GetInt32("ImageCount");
|
||||
_ContentItemCount = dr.GetInt32("ItemCount");
|
||||
_ContentPartCount = dr.GetInt32("PartCount");
|
||||
_ContentRoUsageCount = dr.GetInt32("RoUsageCount");
|
||||
|
Reference in New Issue
Block a user