Changed TODO comment to CSLATODO

Corrected logic for IsValidList to use IsValidList rather than IsValid
This commit is contained in:
Rich
2010-09-27 16:10:01 +00:00
parent fe23fd84e3
commit fb3ed8d053
49 changed files with 768 additions and 768 deletions

View File

@@ -205,7 +205,7 @@ namespace VEPROMS.CSLA.Library
return _ROFst_UserID;
}
}
// TODO: Check ROImageFigure.GetIdValue to assure that the ID returned is unique
// CSLATODO: Check ROImageFigure.GetIdValue to assure that the ID returned is unique
/// <summary>
/// Overrides Base GetIdValue - Used internally by CSLA to determine equality
/// </summary>
@@ -214,7 +214,7 @@ namespace VEPROMS.CSLA.Library
{
return MyROImageFigureUnique; // Absolutely Unique ID
}
// TODO: Replace base ROImageFigure.ToString function as necessary
// CSLATODO: Replace base ROImageFigure.ToString function as necessary
/// <summary>
/// Overrides Base ToString
/// </summary>
@@ -248,7 +248,7 @@ namespace VEPROMS.CSLA.Library
if(list.Contains(this))
return (IsNew && !IsDirty) ? true : base.IsValid;
list.Add(this);
return ((IsNew && !IsDirty) ? true : base.IsValid) && (_MyROFst == null ? true : _MyROFst.IsValid);
return ((IsNew && !IsDirty) ? true : base.IsValid) && (_MyROFst == null ? true : _MyROFst.IsValidList(list));
}
#endregion
#region ValidationRules
@@ -293,7 +293,7 @@ namespace VEPROMS.CSLA.Library
ValidationRules.AddRule(
Csla.Validation.CommonRules.StringMaxLength,
new Csla.Validation.CommonRules.MaxLengthRuleArgs("UserID", 100));
// TODO: Add other validation rules
// CSLATODO: Add other validation rules
}
private static bool MyROFstRequired(ROImageFigure target, Csla.Validation.RuleArgs e)
{
@@ -319,7 +319,7 @@ namespace VEPROMS.CSLA.Library
#region Authorization Rules
protected override void AddAuthorizationRules()
{
//TODO: Who can read/write which fields
//CSLATODO: Who can read/write which fields
//AuthorizationRules.AllowRead(FigureID, "<Role(s)>");
//AuthorizationRules.AllowRead(ROFstID, "<Role(s)>");
//AuthorizationRules.AllowWrite(ROFstID, "<Role(s)>");
@@ -332,18 +332,18 @@ namespace VEPROMS.CSLA.Library
}
public static bool CanAddObject()
{
// TODO: Can Add Authorization
// CSLATODO: Can Add Authorization
//return Csla.ApplicationContext.User.IsInRole("ProjectManager");
return true;
}
public static bool CanGetObject()
{
// TODO: CanGet Authorization
// CSLATODO: CanGet Authorization
return true;
}
public static bool CanDeleteObject()
{
// TODO: CanDelete Authorization
// CSLATODO: CanDelete Authorization
//bool result = false;
//if (Csla.ApplicationContext.User.IsInRole("ProjectManager"))result = true;
//if (Csla.ApplicationContext.User.IsInRole("Administrator"))result = true;
@@ -352,7 +352,7 @@ namespace VEPROMS.CSLA.Library
}
public static bool CanEditObject()
{
// TODO: CanEdit Authorization
// CSLATODO: CanEdit Authorization
//return Csla.ApplicationContext.User.IsInRole("ProjectManager");
return true;
}
@@ -385,7 +385,7 @@ namespace VEPROMS.CSLA.Library
private ROImageFigure(ROFst myROFst)
{
MarkAsChild();
// TODO: Add any initialization & defaults
// CSLATODO: Add any initialization & defaults
_FigureID = Figure.NextFigureID;
_DTS = _ROImageFigureExtension.DefaultDTS;
_UserID = _ROImageFigureExtension.DefaultUserID;
@@ -521,7 +521,7 @@ namespace VEPROMS.CSLA.Library
// {
// partial class ROImageFigureExtension : extensionBase
// {
// // TODO: Override automatic defaults
// // CSLATODO: Override automatic defaults
// public virtual DateTime DefaultDTS
// {
// get { return DateTime.Now; }