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
|
||||
@@ -345,7 +345,7 @@ namespace VEPROMS.CSLA.Library
|
||||
return _User_UsrID;
|
||||
}
|
||||
}
|
||||
// TODO: Check GroupMembership.GetIdValue to assure that the ID returned is unique
|
||||
// CSLATODO: Check GroupMembership.GetIdValue to assure that the ID returned is unique
|
||||
/// <summary>
|
||||
/// Overrides Base GetIdValue - Used internally by CSLA to determine equality
|
||||
/// </summary>
|
||||
@@ -354,7 +354,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
return MyGroupMembershipUnique; // Absolutely Unique ID
|
||||
}
|
||||
// TODO: Replace base GroupMembership.ToString function as necessary
|
||||
// CSLATODO: Replace base GroupMembership.ToString function as necessary
|
||||
/// <summary>
|
||||
/// Overrides Base ToString
|
||||
/// </summary>
|
||||
@@ -388,7 +388,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if(list.Contains(this))
|
||||
return (IsNew && !IsDirty) ? true : base.IsValid;
|
||||
list.Add(this);
|
||||
return ((IsNew && !IsDirty) ? true : base.IsValid) && (_MyUser == null ? true : _MyUser.IsValid);
|
||||
return ((IsNew && !IsDirty) ? true : base.IsValid) && (_MyUser == null ? true : _MyUser.IsValidList(list));
|
||||
}
|
||||
#endregion
|
||||
#region ValidationRules
|
||||
@@ -437,7 +437,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(GroupMembership target, Csla.Validation.RuleArgs e)
|
||||
{
|
||||
@@ -489,7 +489,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(UID, "<Role(s)>");
|
||||
//AuthorizationRules.AllowWrite(UID, "<Role(s)>");
|
||||
@@ -506,18 +506,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;
|
||||
@@ -526,7 +526,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public static bool CanEditObject()
|
||||
{
|
||||
// TODO: CanEdit Authorization
|
||||
// CSLATODO: CanEdit Authorization
|
||||
//return Csla.ApplicationContext.User.IsInRole("ProjectManager");
|
||||
return true;
|
||||
}
|
||||
@@ -560,7 +560,7 @@ namespace VEPROMS.CSLA.Library
|
||||
private GroupMembership(User myUser)
|
||||
{
|
||||
MarkAsChild();
|
||||
// TODO: Add any initialization & defaults
|
||||
// CSLATODO: Add any initialization & defaults
|
||||
_UGID = Membership.NextUGID;
|
||||
_StartDate = _GroupMembershipExtension.DefaultStartDate;
|
||||
_DTS = _GroupMembershipExtension.DefaultDTS;
|
||||
@@ -711,7 +711,7 @@ namespace VEPROMS.CSLA.Library
|
||||
// {
|
||||
// partial class GroupMembershipExtension : 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