This commit is contained in:
@@ -59,9 +59,9 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public ItemAnnotation Add(AnnotationType myAnnotationType) // One to Many
|
||||
{
|
||||
ItemAnnotation annotation = ItemAnnotation.New(myAnnotationType);
|
||||
this.Add(annotation);
|
||||
return annotation;
|
||||
ItemAnnotation annotation = ItemAnnotation.New(myAnnotationType);
|
||||
this.Add(annotation);
|
||||
return annotation;
|
||||
}
|
||||
public void Remove(Annotation myAnnotation)
|
||||
{
|
||||
@@ -94,8 +94,8 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
get
|
||||
{
|
||||
IVEHasBrokenRules hasBrokenRules=null;
|
||||
foreach(ItemAnnotation itemAnnotation in this)
|
||||
IVEHasBrokenRules hasBrokenRules = null;
|
||||
foreach (ItemAnnotation itemAnnotation in this)
|
||||
if ((hasBrokenRules = itemAnnotation.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(ItemIDCriteria criteria)
|
||||
{
|
||||
this.RaiseListChangedEvents = false;
|
||||
if(_MyLog.IsDebugEnabled)_MyLog.DebugFormat("[{0}] ItemAnnotations.DataPortal_FetchItemID", GetHashCode());
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] ItemAnnotations.DataPortal_FetchItemID", GetHashCode());
|
||||
try
|
||||
{
|
||||
using (SqlConnection cn = Database.VEPROMS_SqlConnection)
|
||||
@@ -184,7 +184,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
catch (Exception ex)
|
||||
{
|
||||
if(_MyLog.IsErrorEnabled)_MyLog.Error("ItemAnnotations.DataPortal_FetchItemID", ex);
|
||||
if (_MyLog.IsErrorEnabled) _MyLog.Error("ItemAnnotations.DataPortal_FetchItemID", ex);
|
||||
throw new DbCslaException("ItemAnnotations.DataPortal_Fetch", ex);
|
||||
}
|
||||
this.RaiseListChangedEvents = true;
|
||||
@@ -269,8 +269,8 @@ namespace VEPROMS.CSLA.Library
|
||||
/// </summary>
|
||||
public partial class ItemAnnotationsPropertyDescriptor : vlnListPropertyDescriptor
|
||||
{
|
||||
private ItemAnnotation Item { get { return (ItemAnnotation) _Item;} }
|
||||
public ItemAnnotationsPropertyDescriptor(ItemAnnotations collection, int index):base(collection, index){;}
|
||||
private ItemAnnotation Item { get { return (ItemAnnotation)_Item; } }
|
||||
public ItemAnnotationsPropertyDescriptor(ItemAnnotations collection, int index) : base(collection, index) { ;}
|
||||
}
|
||||
#endregion
|
||||
#region Converter
|
||||
@@ -281,7 +281,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (destType == typeof(string) && value is ItemAnnotations)
|
||||
{
|
||||
// Return department and department role separated by comma.
|
||||
return ((ItemAnnotations) value).Items.Count.ToString() + " Annotations";
|
||||
return ((ItemAnnotations)value).Items.Count.ToString() + " Annotations";
|
||||
}
|
||||
return base.ConvertTo(context, culture, value, destType);
|
||||
}
|
||||
|
Reference in New Issue
Block a user