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