BusinessMgr
This commit is contained in:
@@ -44,7 +44,7 @@ namespace Sarand.Net.Standard.Dbas.ReferenceData
|
||||
//-------------------------------------------------------------------
|
||||
// M a n a g e R e f e r e n c e D a t a
|
||||
//-------------------------------------------------------------------
|
||||
// Manage Reference Data - returns true if changes made.
|
||||
// Manage Reference Data (interactive applicaton only, eg. desktop) - returns true if changes made.
|
||||
public override bool ManageReferenceData (bool userCanManageReferenceData, DbUpdateInfo dbUpdateInfo)
|
||||
{
|
||||
ClearErrorState();
|
||||
@@ -53,7 +53,7 @@ namespace Sarand.Net.Standard.Dbas.ReferenceData
|
||||
}
|
||||
// Method to display ReferenceData management dialog.
|
||||
protected delegate bool MaintainReferenceDataFunction (SaReferenceDataConsole codeTypeConsole, bool userCanManageReferenceData, DbUpdateInfo dbUpdateInfo);
|
||||
protected abstract MaintainReferenceDataFunction MaintainReferenceDataFn { get; }
|
||||
protected virtual MaintainReferenceDataFunction MaintainReferenceDataFn => null;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
}
|
||||
|
||||
@@ -85,8 +85,8 @@ namespace Sarand.Net.Standard.Dbas.Security
|
||||
public override bool RequiresPopulation()
|
||||
{
|
||||
ClearErrorState();
|
||||
if (SecurityRights.Count == 0) return false;
|
||||
foreach (SaSecurityRight securityRight in SecurityRights)
|
||||
if (RegisteredRights.Count == 0) return false;
|
||||
foreach (SaSecurityRight securityRight in RegisteredRights)
|
||||
{
|
||||
if (!securityMgr.SecurityItemExistsByTypeCode(SaSecurity.ItemType.Right, securityRight.Code))
|
||||
return true;
|
||||
@@ -96,9 +96,9 @@ namespace Sarand.Net.Standard.Dbas.Security
|
||||
public override bool PopulateSecurityRights(DbUpdateInfo dbUpdateInfo)
|
||||
{
|
||||
ClearErrorState();
|
||||
if (SecurityRights.Count == 0) return false;
|
||||
if (RegisteredRights.Count == 0) return false;
|
||||
|
||||
foreach (SaSecurityRight securityRight in SecurityRights)
|
||||
foreach (SaSecurityRight securityRight in RegisteredRights)
|
||||
{
|
||||
if (securityMgr.SecurityItemExistsByTypeCode(SaSecurity.ItemType.Right, securityRight.Code)) continue;
|
||||
SaSecurityItem securityItem = securityMgr.CreateSecurityItem(SaSecurity.ItemType.Right);
|
||||
|
||||
Reference in New Issue
Block a user