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