BusinessMgr 3.0.0.1

This commit is contained in:
Andy Howard
2025-02-08 16:41:25 +00:00
parent 1692179120
commit c84980672b
101 changed files with 1397 additions and 907 deletions
@@ -383,7 +383,7 @@ namespace Sarand.Net.Standard.Base.ReferenceData
//-------------------------------------------------------------------
// Reserved words.
private static readonly List<String> reservedWords = new List<String>()
private static readonly HashSet<String> reservedWords = new HashSet<String>()
{
"ADD",
"ALL",
@@ -86,7 +86,7 @@ namespace Sarand.Net.Standard.Base.ReferenceData
public virtual bool CurrencyCanBeDeleted (SaCurrency currency)
{
ClearErrorState();
if (currency == null) return SetErrorState("Item not specified");
if (currency == null) return SetErrorState(Msg_ItemNotSpecified);
if (currency.HasDependentCurrencies()) return SetErrorState("Has dependent currencies");
return true;
}
@@ -75,7 +75,7 @@ namespace Sarand.Net.Standard.Base.ReferenceData
public virtual bool LanguageCanBeDeleted (SaLanguage language)
{
ClearErrorState();
if (language == null) return SetErrorState("Item not specified");
if (language == null) return SetErrorState(Msg_ItemNotSpecified);
if (language.HasDependentLanguages()) return SetErrorState("Has dependent languages");
return true;
}
@@ -97,7 +97,7 @@ namespace Sarand.Net.Standard.Base.ReferenceData
public virtual bool RegionCanBeDeleted (SaRegion region)
{
ClearErrorState();
if (region == null) return SetErrorState("Item not specified");
if (region == null) return SetErrorState(Msg_ItemNotSpecified);
if (region.HasDependentRegions()) return SetErrorState("Has dependent regions");
if (region.HasDependentCurrencies()) return SetErrorState("Has dependent currencies");
if (region.HasDependentTaxCodes()) return SetErrorState("Has dependent tax codes");