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

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