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

@@ -59,9 +59,9 @@ namespace VEPROMS.CSLA.Library
}
public FolderAssignment Add(Group myGroup, Role myRole) // One to Many
{
FolderAssignment assignment = FolderAssignment.New(myGroup, myRole);
this.Add(assignment);
return assignment;
FolderAssignment assignment = FolderAssignment.New(myGroup, myRole);
this.Add(assignment);
return assignment;
}
public void Remove(Assignment myAssignment)
{
@@ -94,8 +94,8 @@ namespace VEPROMS.CSLA.Library
{
get
{
IVEHasBrokenRules hasBrokenRules=null;
foreach(FolderAssignment folderAssignment in this)
IVEHasBrokenRules hasBrokenRules = null;
foreach (FolderAssignment folderAssignment in this)
if ((hasBrokenRules = folderAssignment.HasBrokenRules) != null) return hasBrokenRules;
return hasBrokenRules;
}
@@ -104,8 +104,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
@@ -165,7 +165,7 @@ namespace VEPROMS.CSLA.Library
private void DataPortal_Fetch(FolderIDCriteria criteria)
{
this.RaiseListChangedEvents = false;
if(_MyLog.IsDebugEnabled)_MyLog.DebugFormat("[{0}] FolderAssignments.DataPortal_FetchFolderID", GetHashCode());
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] FolderAssignments.DataPortal_FetchFolderID", GetHashCode());
try
{
using (SqlConnection cn = Database.VEPROMS_SqlConnection)
@@ -184,7 +184,7 @@ namespace VEPROMS.CSLA.Library
}
catch (Exception ex)
{
if(_MyLog.IsErrorEnabled)_MyLog.Error("FolderAssignments.DataPortal_FetchFolderID", ex);
if (_MyLog.IsErrorEnabled) _MyLog.Error("FolderAssignments.DataPortal_FetchFolderID", ex);
throw new DbCslaException("FolderAssignments.DataPortal_Fetch", ex);
}
this.RaiseListChangedEvents = true;
@@ -269,8 +269,8 @@ namespace VEPROMS.CSLA.Library
/// </summary>
public partial class FolderAssignmentsPropertyDescriptor : vlnListPropertyDescriptor
{
private FolderAssignment Item { get { return (FolderAssignment) _Item;} }
public FolderAssignmentsPropertyDescriptor(FolderAssignments collection, int index):base(collection, index){;}
private FolderAssignment Item { get { return (FolderAssignment)_Item; } }
public FolderAssignmentsPropertyDescriptor(FolderAssignments collection, int index) : base(collection, index) { ;}
}
#endregion
#region Converter
@@ -281,7 +281,7 @@ namespace VEPROMS.CSLA.Library
if (destType == typeof(string) && value is FolderAssignments)
{
// Return department and department role separated by comma.
return ((FolderAssignments) value).Items.Count.ToString() + " Assignments";
return ((FolderAssignments)value).Items.Count.ToString() + " Assignments";
}
return base.ConvertTo(context, culture, value, destType);
}