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

@@ -113,8 +113,8 @@ namespace VEPROMS.CSLA.Library
{
get
{
IVEHasBrokenRules hasBrokenRules=null;
foreach(Folder folder in this)
IVEHasBrokenRules hasBrokenRules = null;
foreach (Folder folder in this)
if ((hasBrokenRules = folder.HasBrokenRules) != null) return hasBrokenRules;
return hasBrokenRules;
}
@@ -123,8 +123,8 @@ namespace VEPROMS.CSLA.Library
{
get
{
IVEHasBrokenRules hasBrokenRules = HasBrokenRules;
return (hasBrokenRules != null ? hasBrokenRules.BrokenRules : null);
IVEHasBrokenRules hasBrokenRules = HasBrokenRules;
return (hasBrokenRules != null ? hasBrokenRules.BrokenRules : null);
}
}
#endregion
@@ -184,7 +184,7 @@ namespace VEPROMS.CSLA.Library
private void DataPortal_Fetch(ParentIDCriteria criteria)
{
this.RaiseListChangedEvents = false;
if(_MyLog.IsDebugEnabled)_MyLog.DebugFormat("[{0}] ChildFolders.DataPortal_FetchParentID", GetHashCode());
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ChildFolders.DataPortal_FetchParentID", GetHashCode());
try
{
using (SqlConnection cn = Database.VEPROMS_SqlConnection)
@@ -203,7 +203,7 @@ namespace VEPROMS.CSLA.Library
}
catch (Exception ex)
{
if(_MyLog.IsErrorEnabled)_MyLog.Error("ChildFolders.DataPortal_FetchParentID", ex);
if (_MyLog.IsErrorEnabled) _MyLog.Error("ChildFolders.DataPortal_FetchParentID", ex);
throw new DbCslaException("ChildFolders.DataPortal_Fetch", ex);
}
this.RaiseListChangedEvents = true;
@@ -288,8 +288,8 @@ namespace VEPROMS.CSLA.Library
/// </summary>
public partial class ChildFoldersPropertyDescriptor : vlnListPropertyDescriptor
{
private Folder Item { get { return (Folder) _Item;} }
public ChildFoldersPropertyDescriptor(ChildFolders collection, int index):base(collection, index){;}
private Folder Item { get { return (Folder)_Item; } }
public ChildFoldersPropertyDescriptor(ChildFolders collection, int index) : base(collection, index) { ;}
}
#endregion
#region Converter
@@ -300,7 +300,7 @@ namespace VEPROMS.CSLA.Library
if (destType == typeof(string) && value is ChildFolders)
{
// Return department and department role separated by comma.
return ((ChildFolders) value).Items.Count.ToString() + " Folders";
return ((ChildFolders)value).Items.Count.ToString() + " Folders";
}
return base.ConvertTo(context, culture, value, destType);
}