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

@@ -96,7 +96,7 @@ namespace VEPROMS.CSLA.Library
private void DataPortal_Fetch()
{
this.RaiseListChangedEvents = false;
if(_MyLog.IsDebugEnabled)_MyLog.DebugFormat("[{0}] GroupInfoList.DataPortal_Fetch", GetHashCode());
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] GroupInfoList.DataPortal_Fetch", GetHashCode());
try
{
using (SqlConnection cn = Database.VEPROMS_SqlConnection)
@@ -116,7 +116,7 @@ namespace VEPROMS.CSLA.Library
}
catch (Exception ex)
{
if(_MyLog.IsErrorEnabled)_MyLog.Error("GroupInfoList.DataPortal_Fetch", ex);
if (_MyLog.IsErrorEnabled) _MyLog.Error("GroupInfoList.DataPortal_Fetch", ex);
throw new DbCslaException("GroupInfoList.DataPortal_Fetch", ex);
}
this.RaiseListChangedEvents = true;
@@ -177,8 +177,8 @@ namespace VEPROMS.CSLA.Library
/// </summary>
public partial class GroupInfoListPropertyDescriptor : vlnListPropertyDescriptor
{
private GroupInfo Item { get { return (GroupInfo) _Item;} }
public GroupInfoListPropertyDescriptor(GroupInfoList collection, int index):base(collection, index){;}
private GroupInfo Item { get { return (GroupInfo)_Item; } }
public GroupInfoListPropertyDescriptor(GroupInfoList collection, int index) : base(collection, index) { ;}
}
#endregion
#region Converter
@@ -189,7 +189,7 @@ namespace VEPROMS.CSLA.Library
if (destType == typeof(string) && value is GroupInfoList)
{
// Return department and department role separated by comma.
return ((GroupInfoList) value).Items.Count.ToString() + " Groups";
return ((GroupInfoList)value).Items.Count.ToString() + " Groups";
}
return base.ConvertTo(context, culture, value, destType);
}