Changed TODO comment to CSLATODO
Corrected logic for IsValidList to use IsValidList rather than IsValid
This commit is contained in:
@@ -145,7 +145,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (_StartDate != tmp.ToString())
|
||||
{
|
||||
_StartDate = tmp.ToString();
|
||||
// TODO: Any Cross Property Validation
|
||||
// CSLATODO: Any Cross Property Validation
|
||||
}
|
||||
}
|
||||
catch
|
||||
@@ -175,7 +175,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if (_EndDate != tmp.ToString())
|
||||
{
|
||||
_EndDate = tmp.ToString();
|
||||
// TODO: Any Cross Property Validation
|
||||
// CSLATODO: Any Cross Property Validation
|
||||
}
|
||||
}
|
||||
catch
|
||||
@@ -366,7 +366,7 @@ namespace VEPROMS.CSLA.Library
|
||||
return _Role_UsrID;
|
||||
}
|
||||
}
|
||||
// TODO: Check GroupAssignment.GetIdValue to assure that the ID returned is unique
|
||||
// CSLATODO: Check GroupAssignment.GetIdValue to assure that the ID returned is unique
|
||||
/// <summary>
|
||||
/// Overrides Base GetIdValue - Used internally by CSLA to determine equality
|
||||
/// </summary>
|
||||
@@ -375,7 +375,7 @@ namespace VEPROMS.CSLA.Library
|
||||
{
|
||||
return MyGroupAssignmentUnique; // Absolutely Unique ID
|
||||
}
|
||||
// TODO: Replace base GroupAssignment.ToString function as necessary
|
||||
// CSLATODO: Replace base GroupAssignment.ToString function as necessary
|
||||
/// <summary>
|
||||
/// Overrides Base ToString
|
||||
/// </summary>
|
||||
@@ -409,7 +409,7 @@ namespace VEPROMS.CSLA.Library
|
||||
if(list.Contains(this))
|
||||
return (IsNew && !IsDirty) ? true : base.IsValid;
|
||||
list.Add(this);
|
||||
return ((IsNew && !IsDirty) ? true : base.IsValid) && (_MyRole == null ? true : _MyRole.IsValid) && (_MyFolder == null ? true : _MyFolder.IsValid);
|
||||
return ((IsNew && !IsDirty) ? true : base.IsValid) && (_MyRole == null ? true : _MyRole.IsValidList(list)) && (_MyFolder == null ? true : _MyFolder.IsValidList(list));
|
||||
}
|
||||
#endregion
|
||||
#region ValidationRules
|
||||
@@ -457,7 +457,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(GroupAssignment target, Csla.Validation.RuleArgs e)
|
||||
{
|
||||
@@ -518,7 +518,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(AID, "<Role(s)>");
|
||||
//AuthorizationRules.AllowRead(RID, "<Role(s)>");
|
||||
//AuthorizationRules.AllowWrite(RID, "<Role(s)>");
|
||||
@@ -535,18 +535,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;
|
||||
@@ -555,7 +555,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
public static bool CanEditObject()
|
||||
{
|
||||
// TODO: CanEdit Authorization
|
||||
// CSLATODO: CanEdit Authorization
|
||||
//return Csla.ApplicationContext.User.IsInRole("ProjectManager");
|
||||
return true;
|
||||
}
|
||||
@@ -589,7 +589,7 @@ namespace VEPROMS.CSLA.Library
|
||||
private GroupAssignment(Role myRole, Folder myFolder)
|
||||
{
|
||||
MarkAsChild();
|
||||
// TODO: Add any initialization & defaults
|
||||
// CSLATODO: Add any initialization & defaults
|
||||
_AID = Assignment.NextAID;
|
||||
_StartDate = _GroupAssignmentExtension.DefaultStartDate;
|
||||
_DTS = _GroupAssignmentExtension.DefaultDTS;
|
||||
@@ -742,7 +742,7 @@ namespace VEPROMS.CSLA.Library
|
||||
// {
|
||||
// partial class GroupAssignmentExtension : 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