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

@@ -426,9 +426,9 @@ namespace VEPROMS.CSLA.Library
if(list.Contains(this))
return (IsNew && !IsDirty) ? true : base.IsValid;
list.Add(this);
return ((IsNew && !IsDirty) ? true : base.IsValid) && (_RODbROFsts == null ? true : _RODbROFsts.IsValid) && (_RODbROImages == null ? true : _RODbROImages.IsValid) && (_RODbRoUsages == null ? true : _RODbRoUsages.IsValid);
return ((IsNew && !IsDirty) ? true : base.IsValid) && (_RODbROFsts == null ? true : _RODbROFsts.IsValidList(list)) && (_RODbROImages == null ? true : _RODbROImages.IsValidList(list)) && (_RODbRoUsages == null ? true : _RODbRoUsages.IsValidList(list));
}
// TODO: Replace base RODb.ToString function as necessary
// CSLATODO: Replace base RODb.ToString function as necessary
/// <summary>
/// Overrides Base ToString
/// </summary>
@@ -437,7 +437,7 @@ namespace VEPROMS.CSLA.Library
//{
// return base.ToString();
//}
// TODO: Check RODb.GetIdValue to assure that the ID returned is unique
// CSLATODO: Check RODb.GetIdValue to assure that the ID returned is unique
/// <summary>
/// Overrides Base GetIdValue - Used internally by CSLA to determine equality
/// </summary>
@@ -507,12 +507,12 @@ namespace VEPROMS.CSLA.Library
new Csla.Validation.CommonRules.MaxLengthRuleArgs("UserID", 100));
//ValidationRules.AddDependantProperty("x", "y");
_RODbExtension.AddValidationRules(ValidationRules);
// TODO: Add other validation rules
// CSLATODO: Add other validation rules
}
protected override void AddInstanceBusinessRules()
{
_RODbExtension.AddInstanceValidationRules(ValidationRules);
// TODO: Add other validation rules
// CSLATODO: Add other validation rules
}
// Sample data comparison validation rule
//private bool StartDateGTEndDate(object target, Csla.Validation.RuleArgs e)
@@ -529,7 +529,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(RODbID, "<Role(s)>");
//AuthorizationRules.AllowRead(ROName, "<Role(s)>");
//AuthorizationRules.AllowRead(FolderPath, "<Role(s)>");
@@ -547,23 +547,23 @@ namespace VEPROMS.CSLA.Library
}
protected override void AddInstanceAuthorizationRules()
{
//TODO: Who can read/write which fields
//CSLATODO: Who can read/write which fields
_RODbExtension.AddInstanceAuthorizationRules(AuthorizationRules);
}
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;
@@ -587,7 +587,7 @@ namespace VEPROMS.CSLA.Library
}
public static bool CanEditObject()
{
// TODO: CanEdit Authorization
// CSLATODO: CanEdit Authorization
//return Csla.ApplicationContext.User.IsInRole("ProjectManager");
return true;
}
@@ -829,7 +829,7 @@ namespace VEPROMS.CSLA.Library
_FolderPath = folderPath;
}
}
// TODO: If Create needs to access DB - It should not be marked RunLocal
// CSLATODO: If Create needs to access DB - It should not be marked RunLocal
[RunLocal()]
private new void DataPortal_Create()
{
@@ -837,7 +837,7 @@ namespace VEPROMS.CSLA.Library
// Database Defaults
_DTS = _RODbExtension.DefaultDTS;
_UserID = _RODbExtension.DefaultUserID;
// TODO: Add any defaults that are necessary
// CSLATODO: Add any defaults that are necessary
ValidationRules.CheckRules();
}
private void ReadData(SafeDataReader dr)
@@ -994,7 +994,7 @@ namespace VEPROMS.CSLA.Library
SqlParameter param_LastChanged = new SqlParameter("@newLastChanged", SqlDbType.Timestamp);
param_LastChanged.Direction = ParameterDirection.Output;
cm.Parameters.Add(param_LastChanged);
// TODO: Define any additional output parameters
// CSLATODO: Define any additional output parameters
cm.ExecuteNonQuery();
// Save all values being returned from the Procedure
_RODbID = (int)cm.Parameters["@newRODbID"].Value;
@@ -1038,7 +1038,7 @@ namespace VEPROMS.CSLA.Library
SqlParameter param_LastChanged = new SqlParameter("@newLastChanged", SqlDbType.Timestamp);
param_LastChanged.Direction = ParameterDirection.Output;
cm.Parameters.Add(param_LastChanged);
// TODO: Define any additional output parameters
// CSLATODO: Define any additional output parameters
cm.ExecuteNonQuery();
// Save all values being returned from the Procedure
rODbID = (int)cm.Parameters["@newRODbID"].Value;
@@ -1101,7 +1101,7 @@ namespace VEPROMS.CSLA.Library
SqlParameter param_LastChanged = new SqlParameter("@newLastChanged", SqlDbType.Timestamp);
param_LastChanged.Direction = ParameterDirection.Output;
cm.Parameters.Add(param_LastChanged);
// TODO: Define any additional output parameters
// CSLATODO: Define any additional output parameters
cm.ExecuteNonQuery();
// Save all values being returned from the Procedure
_LastChanged = (byte[])cm.Parameters["@newLastChanged"].Value;
@@ -1159,7 +1159,7 @@ namespace VEPROMS.CSLA.Library
SqlParameter param_LastChanged = new SqlParameter("@newLastChanged", SqlDbType.Timestamp);
param_LastChanged.Direction = ParameterDirection.Output;
cm.Parameters.Add(param_LastChanged);
// TODO: Define any additional output parameters
// CSLATODO: Define any additional output parameters
cm.ExecuteNonQuery();
// Save all values being returned from the Procedure
return (byte[])cm.Parameters["@newLastChanged"].Value;
@@ -1212,7 +1212,7 @@ namespace VEPROMS.CSLA.Library
cm.CommandText = "deleteRODb";
// Input PK Fields
cm.Parameters.AddWithValue("@RODbID", rODbID);
// TODO: Define any additional output parameters
// CSLATODO: Define any additional output parameters
cm.ExecuteNonQuery();
}
}
@@ -1347,7 +1347,7 @@ namespace VEPROMS.CSLA.Library
// {
// partial class RODbExtension : extensionBase
// {
// // TODO: Override automatic defaults
// // CSLATODO: Override automatic defaults
// public virtual DateTime DefaultDTS
// {
// get { return DateTime.Now; }