Changed TODO comment to CSLATODO
Corrected logic for IsValidList to use IsValidList rather than IsValid
This commit is contained in:
@@ -113,7 +113,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (_StartDate != tmp.ToString())
|
||||
{
|
||||
_StartDate = tmp.ToString();
|
||||
// TODO: Any Cross Property Validation
|
||||
// CSLATODO: Any Cross Property Validation
|
||||
}
|
||||
}
|
||||
catch
|
||||
@@ -143,7 +143,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (_EndDate != tmp.ToString())
|
||||
{
|
||||
_EndDate = tmp.ToString();
|
||||
// TODO: Any Cross Property Validation
|
||||
// CSLATODO: Any Cross Property Validation
|
||||
}
|
||||
}
|
||||
catch
|
||||
@@ -265,7 +265,7 @@ namespace VEPROMS.CSLA.Library
|
||||
return _Group_UsrID;
|
||||
}
|
||||
}
|
||||
// TODO: Check UserMembership.GetIdValue to assure that the ID returned is unique
|
||||
// CSLATODO: Check UserMembership.GetIdValue to assure that the ID returned is unique
|
||||
/// <summary>
|
||||
/// Overrides Base GetIdValue - Used internally by CSLA to determine equality
|
||||
/// </summary>
|
||||
@@ -274,7 +274,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
return MyUserMembershipUnique; // Absolutely Unique ID
|
||||
}
|
||||
// TODO: Replace base UserMembership.ToString function as necessary
|
||||
// CSLATODO: Replace base UserMembership.ToString function as necessary
|
||||
/// <summary>
|
||||
/// Overrides Base ToString
|
||||
/// </summary>
|
||||
@@ -308,7 +308,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if(list.Contains(this))
|
||||
return (IsNew && !IsDirty) ? true : base.IsValid;
|
||||
list.Add(this);
|
||||
return ((IsNew && !IsDirty) ? true : base.IsValid) && (_MyGroup == null ? true : _MyGroup.IsValid);
|
||||
return ((IsNew && !IsDirty) ? true : base.IsValid) && (_MyGroup == null ? true : _MyGroup.IsValidList(list));
|
||||
}
|
||||
#endregion
|
||||
#region ValidationRules
|
||||
@@ -357,7 +357,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 StartDateValid(UserMembership target, Csla.Validation.RuleArgs e)
|
||||
{
|
||||
@@ -409,7 +409,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(UGID, "<Role(s)>");
|
||||
//AuthorizationRules.AllowRead(GID, "<Role(s)>");
|
||||
//AuthorizationRules.AllowWrite(GID, "<Role(s)>");
|
||||
@@ -426,18 +426,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;
|
||||
@@ -446,7 +446,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public static bool CanEditObject()
|
||||
{
|
||||
// TODO: CanEdit Authorization
|
||||
// CSLATODO: CanEdit Authorization
|
||||
//return Csla.ApplicationContext.User.IsInRole("ProjectManager");
|
||||
return true;
|
||||
}
|
||||
@@ -480,7 +480,7 @@ namespace VEPROMS.CSLA.Library
|
||||
private UserMembership(Group myGroup)
|
||||
{
|
||||
MarkAsChild();
|
||||
// TODO: Add any initialization & defaults
|
||||
// CSLATODO: Add any initialization & defaults
|
||||
_UGID = Membership.NextUGID;
|
||||
_StartDate = _UserMembershipExtension.DefaultStartDate;
|
||||
_DTS = _UserMembershipExtension.DefaultDTS;
|
||||
@@ -623,7 +623,7 @@ namespace VEPROMS.CSLA.Library
|
||||
// {
|
||||
// partial class UserMembershipExtension : extensionBase
|
||||
// {
|
||||
// // TODO: Override automatic defaults
|
||||
// // CSLATODO: Override automatic defaults
|
||||
// public virtual SmartDate DefaultStartDate
|
||||
// {
|
||||
// get { return DateTime.Now.ToShortDateString(); }
|
||||
|
Reference in New Issue
Block a user