This commit is contained in:
@@ -42,7 +42,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("AID",true);
|
||||
CanReadProperty("AID", true);
|
||||
if (_MyAssignment != null) _AID = _MyAssignment.AID;
|
||||
return _AID;
|
||||
}
|
||||
@@ -54,7 +54,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("MyAssignment",true);
|
||||
CanReadProperty("MyAssignment", true);
|
||||
if (_MyAssignment == null && _AID != 0) _MyAssignment = Assignment.Get(_AID);
|
||||
return _MyAssignment;
|
||||
}
|
||||
@@ -65,7 +65,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("RID",true);
|
||||
CanReadProperty("RID", true);
|
||||
if (_MyRole != null) _RID = _MyRole.RID;
|
||||
return _RID;
|
||||
}
|
||||
@@ -76,14 +76,14 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("MyRole",true);
|
||||
CanReadProperty("MyRole", true);
|
||||
if (_MyRole == null && _RID != 0) _MyRole = Role.Get(_RID);
|
||||
return _MyRole;
|
||||
}
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
set
|
||||
{
|
||||
CanWriteProperty("MyRole",true);
|
||||
CanWriteProperty("MyRole", true);
|
||||
if (_MyRole != value)
|
||||
{
|
||||
_MyRole = value;
|
||||
@@ -97,7 +97,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("FolderID",true);
|
||||
CanReadProperty("FolderID", true);
|
||||
if (_MyFolder != null) _FolderID = _MyFolder.FolderID;
|
||||
return _FolderID;
|
||||
}
|
||||
@@ -108,14 +108,14 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("MyFolder",true);
|
||||
CanReadProperty("MyFolder", true);
|
||||
if (_MyFolder == null && _FolderID != 0) _MyFolder = Folder.Get(_FolderID);
|
||||
return _MyFolder;
|
||||
}
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
set
|
||||
{
|
||||
CanWriteProperty("MyFolder",true);
|
||||
CanWriteProperty("MyFolder", true);
|
||||
if (_MyFolder != value)
|
||||
{
|
||||
_MyFolder = value;
|
||||
@@ -129,13 +129,13 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("StartDate",true);
|
||||
CanReadProperty("StartDate", true);
|
||||
return _StartDate;
|
||||
}
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
set
|
||||
{
|
||||
CanWriteProperty("StartDate",true);
|
||||
CanWriteProperty("StartDate", true);
|
||||
if (value == null) value = string.Empty;
|
||||
_StartDate = value;
|
||||
try
|
||||
@@ -159,13 +159,13 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("EndDate",true);
|
||||
CanReadProperty("EndDate", true);
|
||||
return _EndDate;
|
||||
}
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
set
|
||||
{
|
||||
CanWriteProperty("EndDate",true);
|
||||
CanWriteProperty("EndDate", true);
|
||||
if (value == null) value = string.Empty;
|
||||
_EndDate = value;
|
||||
try
|
||||
@@ -189,13 +189,13 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("DTS",true);
|
||||
CanReadProperty("DTS", true);
|
||||
return _DTS;
|
||||
}
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
set
|
||||
{
|
||||
CanWriteProperty("DTS",true);
|
||||
CanWriteProperty("DTS", true);
|
||||
if (_DTS != value)
|
||||
{
|
||||
_DTS = value;
|
||||
@@ -209,13 +209,13 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("UsrID",true);
|
||||
CanReadProperty("UsrID", true);
|
||||
return _UsrID;
|
||||
}
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
set
|
||||
{
|
||||
CanWriteProperty("UsrID",true);
|
||||
CanWriteProperty("UsrID", true);
|
||||
if (value == null) value = string.Empty;
|
||||
if (_UsrID != value)
|
||||
{
|
||||
@@ -231,7 +231,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Folder_ParentID",true);
|
||||
CanReadProperty("Folder_ParentID", true);
|
||||
return _Folder_ParentID;
|
||||
}
|
||||
}
|
||||
@@ -241,7 +241,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Folder_DBID",true);
|
||||
CanReadProperty("Folder_DBID", true);
|
||||
return _Folder_DBID;
|
||||
}
|
||||
}
|
||||
@@ -251,7 +251,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Folder_Name",true);
|
||||
CanReadProperty("Folder_Name", true);
|
||||
return _Folder_Name;
|
||||
}
|
||||
}
|
||||
@@ -261,7 +261,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Folder_Title",true);
|
||||
CanReadProperty("Folder_Title", true);
|
||||
return _Folder_Title;
|
||||
}
|
||||
}
|
||||
@@ -271,7 +271,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Folder_ShortName",true);
|
||||
CanReadProperty("Folder_ShortName", true);
|
||||
return _Folder_ShortName;
|
||||
}
|
||||
}
|
||||
@@ -281,7 +281,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Folder_FormatID",true);
|
||||
CanReadProperty("Folder_FormatID", true);
|
||||
return _Folder_FormatID;
|
||||
}
|
||||
}
|
||||
@@ -291,7 +291,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Folder_Config",true);
|
||||
CanReadProperty("Folder_Config", true);
|
||||
return _Folder_Config;
|
||||
}
|
||||
}
|
||||
@@ -301,7 +301,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Folder_DTS",true);
|
||||
CanReadProperty("Folder_DTS", true);
|
||||
return _Folder_DTS;
|
||||
}
|
||||
}
|
||||
@@ -311,7 +311,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Folder_UsrID",true);
|
||||
CanReadProperty("Folder_UsrID", true);
|
||||
return _Folder_UsrID;
|
||||
}
|
||||
}
|
||||
@@ -321,7 +321,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Role_Name",true);
|
||||
CanReadProperty("Role_Name", true);
|
||||
return _Role_Name;
|
||||
}
|
||||
}
|
||||
@@ -331,7 +331,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Role_Title",true);
|
||||
CanReadProperty("Role_Title", true);
|
||||
return _Role_Title;
|
||||
}
|
||||
}
|
||||
@@ -341,7 +341,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Role_DTS",true);
|
||||
CanReadProperty("Role_DTS", true);
|
||||
return _Role_DTS;
|
||||
}
|
||||
}
|
||||
@@ -351,7 +351,7 @@ namespace VEPROMS.CSLA.Library
|
||||
[System.Runtime.CompilerServices.MethodImpl(System.Runtime.CompilerServices.MethodImplOptions.NoInlining)]
|
||||
get
|
||||
{
|
||||
CanReadProperty("Role_UsrID",true);
|
||||
CanReadProperty("Role_UsrID", true);
|
||||
return _Role_UsrID;
|
||||
}
|
||||
}
|
||||
@@ -384,24 +384,24 @@ namespace VEPROMS.CSLA.Library
|
||||
#endregion
|
||||
#region ValidationRules
|
||||
[NonSerialized]
|
||||
private bool _CheckingBrokenRules=false;
|
||||
private bool _CheckingBrokenRules = false;
|
||||
public IVEHasBrokenRules HasBrokenRules
|
||||
{
|
||||
get
|
||||
{
|
||||
if(_CheckingBrokenRules)return null;
|
||||
if (_CheckingBrokenRules) return null;
|
||||
if (BrokenRulesCollection.Count > 0) return this;
|
||||
try
|
||||
{
|
||||
_CheckingBrokenRules=true;
|
||||
IVEHasBrokenRules hasBrokenRules = null;
|
||||
if (_MyRole != null && (hasBrokenRules = _MyRole.HasBrokenRules) != null) return hasBrokenRules;
|
||||
if (_MyFolder != null && (hasBrokenRules = _MyFolder.HasBrokenRules) != null) return hasBrokenRules;
|
||||
return hasBrokenRules;
|
||||
_CheckingBrokenRules = true;
|
||||
IVEHasBrokenRules hasBrokenRules = null;
|
||||
if (_MyRole != null && (hasBrokenRules = _MyRole.HasBrokenRules) != null) return hasBrokenRules;
|
||||
if (_MyFolder != null && (hasBrokenRules = _MyFolder.HasBrokenRules) != null) return hasBrokenRules;
|
||||
return hasBrokenRules;
|
||||
}
|
||||
finally
|
||||
{
|
||||
_CheckingBrokenRules=false;
|
||||
_CheckingBrokenRules = false;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -557,8 +557,8 @@ namespace VEPROMS.CSLA.Library
|
||||
_StartDate = _GroupAssignmentExtension.DefaultStartDate;
|
||||
_DTS = _GroupAssignmentExtension.DefaultDTS;
|
||||
_UsrID = _GroupAssignmentExtension.DefaultUsrID;
|
||||
_MyRole = myRole;
|
||||
_MyFolder = myFolder;
|
||||
_MyRole = myRole;
|
||||
_MyFolder = myFolder;
|
||||
ValidationRules.CheckRules();
|
||||
}
|
||||
internal GroupAssignment(SafeDataReader dr)
|
||||
@@ -570,7 +570,7 @@ namespace VEPROMS.CSLA.Library
|
||||
#region Data Access Portal
|
||||
private void Fetch(SafeDataReader dr)
|
||||
{
|
||||
if(_MyLog.IsDebugEnabled)_MyLog.DebugFormat("[{0}] GroupAssignment.FetchDR", GetHashCode());
|
||||
if (_MyLog.IsDebugEnabled) _MyLog.DebugFormat("[{0}] GroupAssignment.FetchDR", GetHashCode());
|
||||
try
|
||||
{
|
||||
_AID = dr.GetInt32("AID");
|
||||
@@ -597,7 +597,7 @@ namespace VEPROMS.CSLA.Library
|
||||
}
|
||||
catch (Exception ex) // FKItem Fetch
|
||||
{
|
||||
if(_MyLog.IsErrorEnabled)_MyLog.Error("GroupAssignment.FetchDR", ex);
|
||||
if (_MyLog.IsErrorEnabled) _MyLog.Error("GroupAssignment.FetchDR", ex);
|
||||
throw new DbCslaException("GroupAssignment.Fetch", ex);
|
||||
}
|
||||
MarkOld();
|
||||
|
Reference in New Issue
Block a user