Changed TODO comment to CSLATODO
Corrected logic for IsValidList to use IsValidList rather than IsValid
This commit is contained in:
@@ -343,7 +343,7 @@ namespace VEPROMS.CSLA.Library
|
||||
return _Connection_UsrID;
|
||||
}
|
||||
}
|
||||
// TODO: Check FormatFolder.GetIdValue to assure that the ID returned is unique
|
||||
// CSLATODO: Check FormatFolder.GetIdValue to assure that the ID returned is unique
|
||||
/// <summary>
|
||||
/// Overrides Base GetIdValue - Used internally by CSLA to determine equality
|
||||
/// </summary>
|
||||
@@ -352,7 +352,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
return MyFormatFolderUnique; // Absolutely Unique ID
|
||||
}
|
||||
// TODO: Replace base FormatFolder.ToString function as necessary
|
||||
// CSLATODO: Replace base FormatFolder.ToString function as necessary
|
||||
/// <summary>
|
||||
/// Overrides Base ToString
|
||||
/// </summary>
|
||||
@@ -386,7 +386,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if(list.Contains(this))
|
||||
return (IsNew && !IsDirty) ? true : base.IsValid;
|
||||
list.Add(this);
|
||||
return ((IsNew && !IsDirty) ? true : base.IsValid) && (_MyFolder == null ? true : _MyFolder.IsValid) && (_MyConnection == null ? true : _MyConnection.IsValid);
|
||||
return ((IsNew && !IsDirty) ? true : base.IsValid) && (_MyFolder == null ? true : _MyFolder.IsValidList(list)) && (_MyConnection == null ? true : _MyConnection.IsValidList(list));
|
||||
}
|
||||
#endregion
|
||||
#region ValidationRules
|
||||
@@ -446,7 +446,7 @@ namespace VEPROMS.CSLA.Library
|
||||
ValidationRules.AddRule(
|
||||
Csla.Validation.CommonRules.StringMaxLength,
|
||||
new Csla.Validation.CommonRules.MaxLengthRuleArgs("UsrID", 100));
|
||||
// TODO: Add other validation rules
|
||||
// CSLATODO: Add other validation rules
|
||||
}
|
||||
private static bool MyFolderRequired(FormatFolder target, Csla.Validation.RuleArgs e)
|
||||
{
|
||||
@@ -481,7 +481,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(FolderID, "<Role(s)>");
|
||||
//AuthorizationRules.AllowRead(ParentID, "<Role(s)>");
|
||||
//AuthorizationRules.AllowWrite(ParentID, "<Role(s)>");
|
||||
@@ -504,18 +504,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;
|
||||
@@ -524,7 +524,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public static bool CanEditObject()
|
||||
{
|
||||
// TODO: CanEdit Authorization
|
||||
// CSLATODO: CanEdit Authorization
|
||||
//return Csla.ApplicationContext.User.IsInRole("ProjectManager");
|
||||
return true;
|
||||
}
|
||||
@@ -559,7 +559,7 @@ namespace VEPROMS.CSLA.Library
|
||||
private FormatFolder(Folder myParent, string name, string shortName)
|
||||
{
|
||||
MarkAsChild();
|
||||
// TODO: Add any initialization & defaults
|
||||
// CSLATODO: Add any initialization & defaults
|
||||
_FolderID = Folder.NextFolderID;
|
||||
_ParentID = _FormatFolderExtension.DefaultParentID;
|
||||
_DBID = _FormatFolderExtension.DefaultDBID;
|
||||
@@ -714,7 +714,7 @@ namespace VEPROMS.CSLA.Library
|
||||
// {
|
||||
// partial class FormatFolderExtension : extensionBase
|
||||
// {
|
||||
// // TODO: Override automatic defaults
|
||||
// // CSLATODO: Override automatic defaults
|
||||
// public virtual int DefaultParentID
|
||||
// {
|
||||
// get { return 1; }
|
||||
|
Reference in New Issue
Block a user