Saxonite
This commit is contained in:
@@ -146,7 +146,7 @@ namespace Sarand.Net.Standard.Dbas.Security
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Validate item properties.
|
||||
// Validate item.
|
||||
public override bool IsValidSecurityItemData(SaSecurityItem.Data securityItemData, SaSecurityItem.ErrField errField)
|
||||
{
|
||||
ClearErrorState();
|
||||
@@ -186,7 +186,7 @@ namespace Sarand.Net.Standard.Dbas.Security
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Update SecurityItem.
|
||||
// Update item.
|
||||
public override bool UpdateSecurityItem(SaSecurityItem securityItem, DbUpdateInfo dbUpdateInfo)
|
||||
{
|
||||
String fn = GetType().Name + ".UpdateSecurityItem";
|
||||
@@ -203,12 +203,12 @@ namespace Sarand.Net.Standard.Dbas.Security
|
||||
{
|
||||
try
|
||||
{
|
||||
// Retrieve securityItem.
|
||||
// Retrieve item.
|
||||
dbConnection.Open();
|
||||
SaSecItem_Db dbSecurityItem = new SaSecItem_Db(DbInfo);
|
||||
dbSecurityItem.PopulateFrom(dbCommand, aliasSecurityItem, "Id=" + SysId.ToString(securityItem.Id));
|
||||
SaUpdateLogItemMonitor_SecurityItem updateLogMonitor = new SaUpdateLogItemMonitor_SecurityItem(SecurityConsole, CreateSecurityItem(dbSecurityItem), dbUpdateInfo);
|
||||
// Update properties.
|
||||
// Update item.
|
||||
PopulateTo(dbSecurityItem, securityItem, dbUpdateInfo);
|
||||
dbSecurityItem.ExecuteUpdateCommand(dbCommand);
|
||||
securityItem.Changed = false;
|
||||
@@ -223,7 +223,7 @@ namespace Sarand.Net.Standard.Dbas.Security
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Delete SecurityItem.
|
||||
// Delete item.
|
||||
public override bool SecurityItemCanBeDeleted(SaSecurityItem securityItem)
|
||||
{
|
||||
ClearErrorState();
|
||||
@@ -240,11 +240,11 @@ namespace Sarand.Net.Standard.Dbas.Security
|
||||
{
|
||||
try
|
||||
{
|
||||
// Retrieve securityItem.
|
||||
// Retrieve item.
|
||||
dbConnection.Open();
|
||||
SaSecItem_Db dbSecurityItem = new SaSecItem_Db(DbInfo);
|
||||
dbSecurityItem.PopulateFrom(dbCommand, aliasSecurityItem, "Id=" + SysId.ToString(securityItem.Id));
|
||||
// Delete securityItem.
|
||||
// Delete item.
|
||||
dbCommand.CommandType = System.Data.CommandType.Text;
|
||||
dbCommand.CommandText = "DELETE FROM " + TableName_SecItem + " WHERE Id=" + SysId.ToString(securityItem.Id) + ";";
|
||||
dbCommand.ExecuteNonQuery();
|
||||
|
||||
Reference in New Issue
Block a user