This commit is contained in:
@@ -59,9 +59,9 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public FolderDocVersion Add(string name) // One to Many
|
||||
{
|
||||
FolderDocVersion docVersion = FolderDocVersion.New(name);
|
||||
this.Add(docVersion);
|
||||
return docVersion;
|
||||
FolderDocVersion docVersion = FolderDocVersion.New(name);
|
||||
this.Add(docVersion);
|
||||
return docVersion;
|
||||
}
|
||||
public void Remove(DocVersion myDocVersion)
|
||||
{
|
||||
@@ -94,8 +94,8 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
get
|
||||
{
|
||||
IVEHasBrokenRules hasBrokenRules=null;
|
||||
foreach(FolderDocVersion folderDocVersion in this)
|
||||
IVEHasBrokenRules hasBrokenRules = null;
|
||||
foreach (FolderDocVersion folderDocVersion in this)
|
||||
if ((hasBrokenRules = folderDocVersion.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}] FolderDocVersions.DataPortal_FetchFolderID", GetHashCode());
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] FolderDocVersions.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("FolderDocVersions.DataPortal_FetchFolderID", ex);
|
||||
if (_MyLog.IsErrorEnabled) _MyLog.Error("FolderDocVersions.DataPortal_FetchFolderID", ex);
|
||||
throw new DbCslaException("FolderDocVersions.DataPortal_Fetch", ex);
|
||||
}
|
||||
this.RaiseListChangedEvents = true;
|
||||
@@ -269,8 +269,8 @@ namespace VEPROMS.CSLA.Library
|
||||
/// </summary>
|
||||
public partial class FolderDocVersionsPropertyDescriptor : vlnListPropertyDescriptor
|
||||
{
|
||||
private FolderDocVersion Item { get { return (FolderDocVersion) _Item;} }
|
||||
public FolderDocVersionsPropertyDescriptor(FolderDocVersions collection, int index):base(collection, index){;}
|
||||
private FolderDocVersion Item { get { return (FolderDocVersion)_Item; } }
|
||||
public FolderDocVersionsPropertyDescriptor(FolderDocVersions collection, int index) : base(collection, index) { ;}
|
||||
}
|
||||
#endregion
|
||||
#region Converter
|
||||
@@ -281,7 +281,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (destType == typeof(string) && value is FolderDocVersions)
|
||||
{
|
||||
// Return department and department role separated by comma.
|
||||
return ((FolderDocVersions) value).Items.Count.ToString() + " DocVersions";
|
||||
return ((FolderDocVersions)value).Items.Count.ToString() + " DocVersions";
|
||||
}
|
||||
return base.ConvertTo(context, culture, value, destType);
|
||||
}
|
||||
|
Reference in New Issue
Block a user