This commit is contained in:
@@ -59,9 +59,9 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public Item Add(Content myContent) // One to Many
|
||||
{
|
||||
Item item = Item.New(myContent);
|
||||
this.Add(item);
|
||||
return item;
|
||||
Item item = Item.New(myContent);
|
||||
this.Add(item);
|
||||
return item;
|
||||
}
|
||||
public void Remove(int itemID)
|
||||
{
|
||||
@@ -94,8 +94,8 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
get
|
||||
{
|
||||
IVEHasBrokenRules hasBrokenRules=null;
|
||||
foreach(Item item in this)
|
||||
IVEHasBrokenRules hasBrokenRules = null;
|
||||
foreach (Item item in this)
|
||||
if ((hasBrokenRules = item.HasBrokenRules) != null) return hasBrokenRules;
|
||||
return hasBrokenRules;
|
||||
}
|
||||
@@ -104,8 +104,8 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
get
|
||||
{
|
||||
IVEHasBrokenRules hasBrokenRules = HasBrokenRules;
|
||||
return (hasBrokenRules != null ? hasBrokenRules.BrokenRules : null);
|
||||
IVEHasBrokenRules hasBrokenRules = HasBrokenRules;
|
||||
return (hasBrokenRules != null ? hasBrokenRules.BrokenRules : null);
|
||||
}
|
||||
}
|
||||
#endregion
|
||||
@@ -165,7 +165,7 @@ namespace VEPROMS.CSLA.Library
|
||||
private void DataPortal_Fetch(PreviousIDCriteria criteria)
|
||||
{
|
||||
this.RaiseListChangedEvents = false;
|
||||
if(_MyLog.IsDebugEnabled)_MyLog.DebugFormat("[{0}] NextItems.DataPortal_FetchPreviousID", GetHashCode());
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] NextItems.DataPortal_FetchPreviousID", GetHashCode());
|
||||
try
|
||||
{
|
||||
using (SqlConnection cn = Database.VEPROMS_SqlConnection)
|
||||
@@ -184,7 +184,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if(_MyLog.IsErrorEnabled)_MyLog.Error("NextItems.DataPortal_FetchPreviousID", ex);
|
||||
if (_MyLog.IsErrorEnabled) _MyLog.Error("NextItems.DataPortal_FetchPreviousID", ex);
|
||||
throw new DbCslaException("NextItems.DataPortal_Fetch", ex);
|
||||
}
|
||||
this.RaiseListChangedEvents = true;
|
||||
@@ -269,8 +269,8 @@ namespace VEPROMS.CSLA.Library
|
||||
/// </summary>
|
||||
public partial class NextItemsPropertyDescriptor : vlnListPropertyDescriptor
|
||||
{
|
||||
private Item Item { get { return (Item) _Item;} }
|
||||
public NextItemsPropertyDescriptor(NextItems collection, int index):base(collection, index){;}
|
||||
private Item Item { get { return (Item)_Item; } }
|
||||
public NextItemsPropertyDescriptor(NextItems collection, int index) : base(collection, index) { ;}
|
||||
}
|
||||
#endregion
|
||||
#region Converter
|
||||
@@ -281,7 +281,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (destType == typeof(string) && value is NextItems)
|
||||
{
|
||||
// Return department and department role separated by comma.
|
||||
return ((NextItems) value).Items.Count.ToString() + " Items";
|
||||
return ((NextItems)value).Items.Count.ToString() + " Items";
|
||||
}
|
||||
return base.ConvertTo(context, culture, value, destType);
|
||||
}
|
||||
|
Reference in New Issue
Block a user