Saxonite
This commit is contained in:
@@ -105,7 +105,7 @@ namespace Sarand.Net.Standard.Dbas.ReferenceData
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Validate TaxCode.
|
||||
// Validate item.
|
||||
public override bool IsValidTaxCodeData (SaTaxCode.Data data, SaTaxCode.ErrField errField)
|
||||
{
|
||||
ClearErrorState();
|
||||
@@ -114,7 +114,7 @@ namespace Sarand.Net.Standard.Dbas.ReferenceData
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Insert TaxCode.
|
||||
// Insert item.
|
||||
public override bool InsertTaxCode (SaTaxCode taxCode, DbUpdateInfo dbUpdateInfo)
|
||||
{
|
||||
ClearErrorState();
|
||||
@@ -142,7 +142,7 @@ namespace Sarand.Net.Standard.Dbas.ReferenceData
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Update TaxCode.
|
||||
// Update item.
|
||||
public override bool UpdateTaxCode (SaTaxCode taxCode, DbUpdateInfo dbUpdateInfo)
|
||||
{
|
||||
ClearErrorState();
|
||||
@@ -153,12 +153,12 @@ namespace Sarand.Net.Standard.Dbas.ReferenceData
|
||||
{
|
||||
try
|
||||
{
|
||||
// Retrieve taxCode.
|
||||
// Retrieve item.
|
||||
dbConnection.Open();
|
||||
TaxCode_Db dbTaxCode = new TaxCode_Db(DbInfo);
|
||||
dbTaxCode.PopulateFrom(dbCommand, aliasTaxCode, "Id=" + SysId.ToString(taxCode.Id));
|
||||
SaUpdateLogItemMonitor_TaxCode updateLogMonitor = new SaUpdateLogItemMonitor_TaxCode(ReferenceDataConsole, CreateTaxCode(dbTaxCode), dbUpdateInfo);
|
||||
// Update properties.
|
||||
// Update item.
|
||||
PopulateTo(dbTaxCode, taxCode, dbUpdateInfo);
|
||||
dbTaxCode.ExecuteUpdateCommand(dbCommand);
|
||||
// Record updates.
|
||||
@@ -171,7 +171,7 @@ namespace Sarand.Net.Standard.Dbas.ReferenceData
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Delete TaxCode.
|
||||
// Delete item.
|
||||
public override bool TaxCodeCanBeDeleted (SaTaxCode taxCode)
|
||||
{
|
||||
ClearErrorState();
|
||||
@@ -187,11 +187,11 @@ namespace Sarand.Net.Standard.Dbas.ReferenceData
|
||||
{
|
||||
try
|
||||
{
|
||||
// Retrieve taxCode.
|
||||
// Retrieve item.
|
||||
dbConnection.Open();
|
||||
TaxCode_Db dbTaxCode = new TaxCode_Db(DbInfo);
|
||||
dbTaxCode.PopulateFrom(dbCommand, aliasTaxCode, "Id=" + taxCode.Id.ToString());
|
||||
// Delete taxCode.
|
||||
// Delete item.
|
||||
dbCommand.CommandType = System.Data.CommandType.Text;
|
||||
dbCommand.CommandText = "DELETE FROM " + ReferenceDataConsole.TableName_TaxCode + " WHERE Id=" + SysId.ToString(taxCode.Id) + ";";
|
||||
dbCommand.ExecuteNonQuery();
|
||||
|
||||
Reference in New Issue
Block a user