This commit is contained in:
@@ -96,7 +96,7 @@ namespace VEPROMS.CSLA.Library
|
||||
private void DataPortal_Fetch()
|
||||
{
|
||||
this.RaiseListChangedEvents = false;
|
||||
if(_MyLog.IsDebugEnabled)_MyLog.DebugFormat("[{0}] UserInfoList.DataPortal_Fetch", GetHashCode());
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] UserInfoList.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("UserInfoList.DataPortal_Fetch", ex);
|
||||
if (_MyLog.IsErrorEnabled) _MyLog.Error("UserInfoList.DataPortal_Fetch", ex);
|
||||
throw new DbCslaException("UserInfoList.DataPortal_Fetch", ex);
|
||||
}
|
||||
this.RaiseListChangedEvents = true;
|
||||
@@ -177,8 +177,8 @@ namespace VEPROMS.CSLA.Library
|
||||
/// </summary>
|
||||
public partial class UserInfoListPropertyDescriptor : vlnListPropertyDescriptor
|
||||
{
|
||||
private UserInfo Item { get { return (UserInfo) _Item;} }
|
||||
public UserInfoListPropertyDescriptor(UserInfoList collection, int index):base(collection, index){;}
|
||||
private UserInfo Item { get { return (UserInfo)_Item; } }
|
||||
public UserInfoListPropertyDescriptor(UserInfoList collection, int index) : base(collection, index) { ;}
|
||||
}
|
||||
#endregion
|
||||
#region Converter
|
||||
@@ -189,7 +189,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (destType == typeof(string) && value is UserInfoList)
|
||||
{
|
||||
// Return department and department role separated by comma.
|
||||
return ((UserInfoList) value).Items.Count.ToString() + " Users";
|
||||
return ((UserInfoList)value).Items.Count.ToString() + " Users";
|
||||
}
|
||||
return base.ConvertTo(context, culture, value, destType);
|
||||
}
|
||||
|
Reference in New Issue
Block a user