This commit is contained in:
Jsj
2008-05-16 18:07:47 +00:00
parent 9d0b3cd543
commit cda0291dbd
116 changed files with 4257 additions and 3382 deletions

View File

@@ -59,9 +59,9 @@ namespace VEPROMS.CSLA.Library
}
public ItemTransition_RangeID Add(Content myContent, Item myItemToID) // One to Many
{
ItemTransition_RangeID transition = ItemTransition_RangeID.New(myContent, myItemToID);
this.Add(transition);
return transition;
ItemTransition_RangeID transition = ItemTransition_RangeID.New(myContent, myItemToID);
this.Add(transition);
return transition;
}
public void Remove(Transition myTransition)
{
@@ -94,8 +94,8 @@ namespace VEPROMS.CSLA.Library
{
get
{
IVEHasBrokenRules hasBrokenRules=null;
foreach(ItemTransition_RangeID itemTransitionRangeID in this)
IVEHasBrokenRules hasBrokenRules = null;
foreach (ItemTransition_RangeID itemTransitionRangeID in this)
if ((hasBrokenRules = itemTransitionRangeID.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(RangeIDCriteria criteria)
{
this.RaiseListChangedEvents = false;
if(_MyLog.IsDebugEnabled)_MyLog.DebugFormat("[{0}] ItemTransitions_RangeID.DataPortal_FetchRangeID", GetHashCode());
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ItemTransitions_RangeID.DataPortal_FetchRangeID", GetHashCode());
try
{
using (SqlConnection cn = Database.VEPROMS_SqlConnection)
@@ -184,7 +184,7 @@ namespace VEPROMS.CSLA.Library
}
catch (Exception ex)
{
if(_MyLog.IsErrorEnabled)_MyLog.Error("ItemTransitions_RangeID.DataPortal_FetchRangeID", ex);
if (_MyLog.IsErrorEnabled) _MyLog.Error("ItemTransitions_RangeID.DataPortal_FetchRangeID", ex);
throw new DbCslaException("ItemTransitions_RangeID.DataPortal_Fetch", ex);
}
this.RaiseListChangedEvents = true;
@@ -269,8 +269,8 @@ namespace VEPROMS.CSLA.Library
/// </summary>
public partial class ItemTransitions_RangeIDPropertyDescriptor : vlnListPropertyDescriptor
{
private ItemTransition_RangeID Item { get { return (ItemTransition_RangeID) _Item;} }
public ItemTransitions_RangeIDPropertyDescriptor(ItemTransitions_RangeID collection, int index):base(collection, index){;}
private ItemTransition_RangeID Item { get { return (ItemTransition_RangeID)_Item; } }
public ItemTransitions_RangeIDPropertyDescriptor(ItemTransitions_RangeID collection, int index) : base(collection, index) { ;}
}
#endregion
#region Converter
@@ -281,7 +281,7 @@ namespace VEPROMS.CSLA.Library
if (destType == typeof(string) && value is ItemTransitions_RangeID)
{
// Return department and department role separated by comma.
return ((ItemTransitions_RangeID) value).Items.Count.ToString() + " Transitions_RangeID";
return ((ItemTransitions_RangeID)value).Items.Count.ToString() + " Transitions_RangeID";
}
return base.ConvertTo(context, culture, value, destType);
}