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