3.0.0.5 Portal Security, Commodity, Code Types, Codes.
This commit is contained in:
@@ -144,12 +144,12 @@ namespace Sarand.BusinessMgr.Net.Core.Web.App
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Code descriptions.
|
||||
// System Codes.
|
||||
//-------------------------------------------------------------------
|
||||
private class CodeCache
|
||||
{
|
||||
public Dictionary<Sbm.SystemCode, List<TypeCodeDesc>> codes { get; } = new Dictionary<Sbm.SystemCode, List<TypeCodeDesc>>();
|
||||
public List<TypeCodeDesc> GetCodesOfType(Sbm.SystemCode codeType)
|
||||
public List<TypeCodeDesc> GetSystemCodes(Sbm.SystemCode codeType)
|
||||
{
|
||||
if (!codes.ContainsKey(codeType))
|
||||
codes.Add(codeType, SbmSystem.GetSystemCodes(codeType));
|
||||
@@ -170,7 +170,7 @@ namespace Sarand.BusinessMgr.Net.Core.Web.App
|
||||
{
|
||||
if ((int)affiliateType < 1) return "";
|
||||
// ToDo Affiliate Type localisation.
|
||||
List<TypeCodeDesc> affiliateTypeCodes = systemCodes.GetCodesOfType(Sbm.SystemCode.AffiliateType);
|
||||
List<TypeCodeDesc> affiliateTypeCodes = systemCodes.GetSystemCodes(Sbm.SystemCode.AffiliateType);
|
||||
return affiliateTypeCodes.GetDescForType(affiliateType, affiliateTypeCodes.GetCodeForType(affiliateType));
|
||||
}
|
||||
|
||||
@@ -179,7 +179,7 @@ namespace Sarand.BusinessMgr.Net.Core.Web.App
|
||||
{
|
||||
if ((int)associationType < 1) return "";
|
||||
// ToDo Association Type localisation.
|
||||
List<TypeCodeDesc> associationTypeCodes = systemCodes.GetCodesOfType(Sbm.SystemCode.AssociationType);
|
||||
List<TypeCodeDesc> associationTypeCodes = systemCodes.GetSystemCodes(Sbm.SystemCode.AssociationType);
|
||||
return associationTypeCodes.GetDescForType(associationType, associationTypeCodes.GetCodeForType(associationType));
|
||||
}
|
||||
|
||||
@@ -188,7 +188,7 @@ namespace Sarand.BusinessMgr.Net.Core.Web.App
|
||||
{
|
||||
if ((int)assetType < 1) return "";
|
||||
// ToDo Asset Type localisation.
|
||||
List<TypeCodeDesc> assetTypeCodes = systemCodes.GetCodesOfType(Sbm.SystemCode.AssetType);
|
||||
List<TypeCodeDesc> assetTypeCodes = systemCodes.GetSystemCodes(Sbm.SystemCode.AssetType);
|
||||
return assetTypeCodes.GetDescForType(assetType, assetTypeCodes.GetCodeForType(assetType));
|
||||
}
|
||||
|
||||
@@ -197,7 +197,7 @@ namespace Sarand.BusinessMgr.Net.Core.Web.App
|
||||
{
|
||||
if ((int)transactionType < 1) return "";
|
||||
// ToDo Transaction Type localisation.
|
||||
List<TypeCodeDesc> transactionTypeCodes = systemCodes.GetCodesOfType(Sbm.SystemCode.TransactionType);
|
||||
List<TypeCodeDesc> transactionTypeCodes = systemCodes.GetSystemCodes(Sbm.SystemCode.TransactionType);
|
||||
return transactionTypeCodes.GetDescForType(transactionType, transactionTypeCodes.GetCodeForType(transactionType));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user