3.0.1.9 Portal styling. Interfaces controller/model.
This commit is contained in:
@@ -13,7 +13,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
//-------------------------------------------------------------------
|
||||
public static class Version
|
||||
{
|
||||
private static String version { get; } = "3.0.1.8";
|
||||
private static String version { get; } = "3.0.1.9";
|
||||
// Retrieve version.
|
||||
public static String GetFullVersion() { return version; }
|
||||
public static String GetAppVersion()
|
||||
@@ -44,6 +44,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// 3.0.1.6 05-May-25 Addresses.
|
||||
// 3.0.1.7 21-Oct-25 Business object disposability.
|
||||
// 3.0.1.8 26-Oct-25 Control repository status check on update.
|
||||
// 3.0.1.9 30-Oct-25 Portal styling.
|
||||
//-------------------------------------------------------------------
|
||||
// 3.0.0 Jul-2021 Initial demo test version.
|
||||
// 02-Feb-25 Initial live deployment.
|
||||
|
||||
@@ -762,7 +762,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
/// <summary>
|
||||
/// CodeType fixed enumerated values.
|
||||
/// </summary>
|
||||
public enum SystemCode
|
||||
public enum ApplicationCode
|
||||
{
|
||||
ItemType,
|
||||
ItemDataType,
|
||||
|
||||
@@ -6,7 +6,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Code generated by Sarand Database Utilities Tue 11-Feb-2025 12:43:45
|
||||
// Code generated by Sarand Database Utilities Thu 30-Oct-2025 11:27:05
|
||||
//---------------------------------------------------------------------------
|
||||
namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
{
|
||||
@@ -74,7 +74,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Column identifiers.
|
||||
public enum ColumnIdx
|
||||
{
|
||||
Unknown = 0,
|
||||
Unknown = 0,
|
||||
Address_Id,
|
||||
Address_ItemType,
|
||||
Address_ItemId,
|
||||
@@ -446,10 +446,10 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
InterfaceDataItem_ItemId,
|
||||
InterfaceDataItem_ProcessStatus,
|
||||
InterfaceDataItem_ProcessStatusBy,
|
||||
InterfaceDataItem_ProcessStatusOn,
|
||||
InterfaceDataItem_ProcessStatusAt,
|
||||
InterfaceDataItem_ItemStatus,
|
||||
InterfaceDataItem_ItemStatusBy,
|
||||
InterfaceDataItem_ItemStatusOn,
|
||||
InterfaceDataItem_ItemStatusAt,
|
||||
InterfaceDataItem_Notes,
|
||||
InterfaceDataItem_Flags,
|
||||
InterfaceDataItem_CreateOn,
|
||||
@@ -463,10 +463,8 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
InterfaceProcess_Direction,
|
||||
InterfaceProcess_ProcRef,
|
||||
InterfaceProcess_ProcSeq,
|
||||
InterfaceProcess_ProcDate,
|
||||
InterfaceProcess_ProcTime,
|
||||
InterfaceProcess_BatchDate,
|
||||
InterfaceProcess_BatchTime,
|
||||
InterfaceProcess_ProcessAt,
|
||||
InterfaceProcess_BatchAt,
|
||||
InterfaceProcess_ElapseSecs,
|
||||
InterfaceProcess_ItemCount,
|
||||
InterfaceProcess_Flags,
|
||||
@@ -1272,11 +1270,11 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
private static readonly int tableCount = 51;
|
||||
private static readonly int columnCount = 1192;
|
||||
private static readonly int columnCount = 1190;
|
||||
public static ulong MaxTextLen { get; private set; }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Retrieve Table details (eg. name: 'Company').
|
||||
// Retrieve Table details.
|
||||
public static int GetTableCount ()
|
||||
{
|
||||
return tableCount;
|
||||
@@ -1334,8 +1332,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
String tableName = StringUtil.EmptyOnNull(tableAlias);
|
||||
if (tableName.IsEmpty()) tableName = GetTableName(GetTableForColumn(column));
|
||||
columnName = tableName + (tableName.Length > 0 ? "." : "") + columnName;
|
||||
if (braces)
|
||||
columnName = "(" + columnName + ")";
|
||||
if (braces) columnName = $"({columnName})";
|
||||
}
|
||||
return columnName;
|
||||
}
|
||||
@@ -1368,11 +1365,11 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
case DbReservedWordDelim.None:
|
||||
break;
|
||||
case DbReservedWordDelim.DoubleQuotes:
|
||||
word = "\"" + word + "\"";
|
||||
word = $"\"{word}\"";
|
||||
break;
|
||||
case DbReservedWordDelim.SquareBrackets:
|
||||
default:
|
||||
word = "[" + word + "]";
|
||||
word = $"[{word}]";
|
||||
break;
|
||||
}
|
||||
return word;
|
||||
@@ -1898,10 +1895,10 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
new ColumnDfn(12,"ItemId",4,4,false,10),
|
||||
new ColumnDfn(12,"ProcessStatus",0,-9,false,3),
|
||||
new ColumnDfn(12,"ProcessStatusBy",4,4,false,10),
|
||||
new ColumnDfn(12,"ProcessStatusOn",4,4,false,10),
|
||||
new ColumnDfn(12,"ProcessStatusAt",9,93,false,23),
|
||||
new ColumnDfn(12,"ItemStatus",0,-9,false,3),
|
||||
new ColumnDfn(12,"ItemStatusBy",4,4,false,10),
|
||||
new ColumnDfn(12,"ItemStatusOn",4,4,false,10),
|
||||
new ColumnDfn(12,"ItemStatusAt",9,93,false,23),
|
||||
new ColumnDfn(12,"Notes",0,-9,false,255),
|
||||
new ColumnDfn(12,"Flags",3,5,false,5),
|
||||
new ColumnDfn(12,"CreateOn",9,93,false,23),
|
||||
@@ -1915,10 +1912,8 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
new ColumnDfn(13,"Direction",3,5,false,5),
|
||||
new ColumnDfn(13,"ProcRef",0,-9,false,32),
|
||||
new ColumnDfn(13,"ProcSeq",4,4,false,10),
|
||||
new ColumnDfn(13,"ProcDate",4,4,false,10),
|
||||
new ColumnDfn(13,"ProcTime",4,4,false,10),
|
||||
new ColumnDfn(13,"BatchDate",4,4,false,10),
|
||||
new ColumnDfn(13,"BatchTime",4,4,false,10),
|
||||
new ColumnDfn(13,"ProcessAt",9,93,false,23),
|
||||
new ColumnDfn(13,"BatchAt",9,93,false,23),
|
||||
new ColumnDfn(13,"ElapseSecs",4,4,false,10),
|
||||
new ColumnDfn(13,"ItemCount",4,4,false,10),
|
||||
new ColumnDfn(13,"Flags",3,5,false,5),
|
||||
@@ -2725,80 +2720,80 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Reserved words.
|
||||
private static readonly HashSet<String> reservedWords = new HashSet<String>()
|
||||
{
|
||||
"ADD",
|
||||
"ALL",
|
||||
"ALTER",
|
||||
"AND",
|
||||
"ANY",
|
||||
"AS",
|
||||
"ASC",
|
||||
"AVG",
|
||||
"BEGIN",
|
||||
"BETWEEN",
|
||||
"BY",
|
||||
"CASE",
|
||||
"CAST",
|
||||
"COLUMN",
|
||||
"COMMIT",
|
||||
"CONSTRAINT",
|
||||
"CONVERT",
|
||||
"COUNT",
|
||||
"CREATE",
|
||||
"CURRENCY",
|
||||
"DEFAULT",
|
||||
"DELETE",
|
||||
"DESC",
|
||||
"DISTINCT",
|
||||
"DROP",
|
||||
"ELSE",
|
||||
"END",
|
||||
"EXECUTE",
|
||||
"EXISTS",
|
||||
"FALSE",
|
||||
"FROM",
|
||||
"GRANT",
|
||||
"GROUP",
|
||||
"HAVING",
|
||||
"IN",
|
||||
"INDEX",
|
||||
"INNER",
|
||||
"INSERT",
|
||||
"INTO",
|
||||
"IS",
|
||||
"JOIN",
|
||||
"KEY",
|
||||
"LEFT",
|
||||
"LIKE",
|
||||
"MAX",
|
||||
"MIN",
|
||||
"NOT",
|
||||
"NULL",
|
||||
"ON",
|
||||
"OR",
|
||||
"ORDER",
|
||||
"OUTER",
|
||||
"OUTPUT",
|
||||
"PRIMARY",
|
||||
"PROCEDURE",
|
||||
"REVOKE",
|
||||
"ROLLBACK",
|
||||
"ROWCOUNT",
|
||||
"SELECT",
|
||||
"SET",
|
||||
"SQL",
|
||||
"SUM",
|
||||
"TABLE",
|
||||
"THEN",
|
||||
"TRANSACTION",
|
||||
"TRUE",
|
||||
"UNION",
|
||||
"UNIQUE",
|
||||
"UPDATE",
|
||||
"USER",
|
||||
"VALUES",
|
||||
"VIEW",
|
||||
"WHEN",
|
||||
"WHERE",
|
||||
"ADD",
|
||||
"ALL",
|
||||
"ALTER",
|
||||
"AND",
|
||||
"ANY",
|
||||
"AS",
|
||||
"ASC",
|
||||
"AVG",
|
||||
"BEGIN",
|
||||
"BETWEEN",
|
||||
"BY",
|
||||
"CASE",
|
||||
"CAST",
|
||||
"COLUMN",
|
||||
"COMMIT",
|
||||
"CONSTRAINT",
|
||||
"CONVERT",
|
||||
"COUNT",
|
||||
"CREATE",
|
||||
"CURRENCY",
|
||||
"DEFAULT",
|
||||
"DELETE",
|
||||
"DESC",
|
||||
"DISTINCT",
|
||||
"DROP",
|
||||
"ELSE",
|
||||
"END",
|
||||
"EXECUTE",
|
||||
"EXISTS",
|
||||
"FALSE",
|
||||
"FROM",
|
||||
"GRANT",
|
||||
"GROUP",
|
||||
"HAVING",
|
||||
"IN",
|
||||
"INDEX",
|
||||
"INNER",
|
||||
"INSERT",
|
||||
"INTO",
|
||||
"IS",
|
||||
"JOIN",
|
||||
"KEY",
|
||||
"LEFT",
|
||||
"LIKE",
|
||||
"MAX",
|
||||
"MIN",
|
||||
"NOT",
|
||||
"NULL",
|
||||
"ON",
|
||||
"OR",
|
||||
"ORDER",
|
||||
"OUTER",
|
||||
"OUTPUT",
|
||||
"PRIMARY",
|
||||
"PROCEDURE",
|
||||
"REVOKE",
|
||||
"ROLLBACK",
|
||||
"ROWCOUNT",
|
||||
"SELECT",
|
||||
"SET",
|
||||
"SQL",
|
||||
"SUM",
|
||||
"TABLE",
|
||||
"THEN",
|
||||
"TRANSACTION",
|
||||
"TRUE",
|
||||
"UNION",
|
||||
"UNIQUE",
|
||||
"UPDATE",
|
||||
"USER",
|
||||
"VALUES",
|
||||
"VIEW",
|
||||
"WHEN",
|
||||
"WHERE"
|
||||
};
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
@@ -6,7 +6,7 @@ using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
//---------------------------------------------------------------------------
|
||||
// Code generated by Sarand Database Utilities Thu 13-Feb-2025 11:12:01
|
||||
// Code generated by Sarand Database Utilities Thu 30-Oct-2025 11:25:21
|
||||
//---------------------------------------------------------------------------
|
||||
namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
{
|
||||
@@ -28,7 +28,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Column identifiers.
|
||||
public enum ColumnIdx
|
||||
{
|
||||
Unknown = 0,
|
||||
Unknown = 0,
|
||||
AccountRegistration_Id,
|
||||
AccountRegistration_EmailAddress,
|
||||
AccountRegistration_FirstName,
|
||||
@@ -131,7 +131,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
public static ulong MaxTextLen { get; private set; }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Retrieve Table details (eg. name: 'Company').
|
||||
// Retrieve Table details.
|
||||
public static int GetTableCount ()
|
||||
{
|
||||
return tableCount;
|
||||
@@ -189,8 +189,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
String tableName = StringUtil.EmptyOnNull(tableAlias);
|
||||
if (tableName.IsEmpty()) tableName = GetTableName(GetTableForColumn(column));
|
||||
columnName = tableName + (tableName.Length > 0 ? "." : "") + columnName;
|
||||
if (braces)
|
||||
columnName = "(" + columnName + ")";
|
||||
if (braces) columnName = $"({columnName})";
|
||||
}
|
||||
return columnName;
|
||||
}
|
||||
@@ -223,11 +222,11 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
case DbReservedWordDelim.None:
|
||||
break;
|
||||
case DbReservedWordDelim.DoubleQuotes:
|
||||
word = "\"" + word + "\"";
|
||||
word = $"\"{word}\"";
|
||||
break;
|
||||
case DbReservedWordDelim.SquareBrackets:
|
||||
default:
|
||||
word = "[" + word + "]";
|
||||
word = $"[{word}]";
|
||||
break;
|
||||
}
|
||||
return word;
|
||||
@@ -435,80 +434,80 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Reserved words.
|
||||
private static readonly HashSet<String> reservedWords = new HashSet<String>()
|
||||
{
|
||||
"ADD",
|
||||
"ALL",
|
||||
"ALTER",
|
||||
"AND",
|
||||
"ANY",
|
||||
"AS",
|
||||
"ASC",
|
||||
"AVG",
|
||||
"BEGIN",
|
||||
"BETWEEN",
|
||||
"BY",
|
||||
"CASE",
|
||||
"CAST",
|
||||
"COLUMN",
|
||||
"COMMIT",
|
||||
"CONSTRAINT",
|
||||
"CONVERT",
|
||||
"COUNT",
|
||||
"CREATE",
|
||||
"CURRENCY",
|
||||
"DEFAULT",
|
||||
"DELETE",
|
||||
"DESC",
|
||||
"DISTINCT",
|
||||
"DROP",
|
||||
"ELSE",
|
||||
"END",
|
||||
"EXECUTE",
|
||||
"EXISTS",
|
||||
"FALSE",
|
||||
"FROM",
|
||||
"GRANT",
|
||||
"GROUP",
|
||||
"HAVING",
|
||||
"IN",
|
||||
"INDEX",
|
||||
"INNER",
|
||||
"INSERT",
|
||||
"INTO",
|
||||
"IS",
|
||||
"JOIN",
|
||||
"KEY",
|
||||
"LEFT",
|
||||
"LIKE",
|
||||
"MAX",
|
||||
"MIN",
|
||||
"NOT",
|
||||
"NULL",
|
||||
"ON",
|
||||
"OR",
|
||||
"ORDER",
|
||||
"OUTER",
|
||||
"OUTPUT",
|
||||
"PRIMARY",
|
||||
"PROCEDURE",
|
||||
"REVOKE",
|
||||
"ROLLBACK",
|
||||
"ROWCOUNT",
|
||||
"SELECT",
|
||||
"SET",
|
||||
"SQL",
|
||||
"SUM",
|
||||
"TABLE",
|
||||
"THEN",
|
||||
"TRANSACTION",
|
||||
"TRUE",
|
||||
"UNION",
|
||||
"UNIQUE",
|
||||
"UPDATE",
|
||||
"USER",
|
||||
"VALUES",
|
||||
"VIEW",
|
||||
"WHEN",
|
||||
"WHERE",
|
||||
"ADD",
|
||||
"ALL",
|
||||
"ALTER",
|
||||
"AND",
|
||||
"ANY",
|
||||
"AS",
|
||||
"ASC",
|
||||
"AVG",
|
||||
"BEGIN",
|
||||
"BETWEEN",
|
||||
"BY",
|
||||
"CASE",
|
||||
"CAST",
|
||||
"COLUMN",
|
||||
"COMMIT",
|
||||
"CONSTRAINT",
|
||||
"CONVERT",
|
||||
"COUNT",
|
||||
"CREATE",
|
||||
"CURRENCY",
|
||||
"DEFAULT",
|
||||
"DELETE",
|
||||
"DESC",
|
||||
"DISTINCT",
|
||||
"DROP",
|
||||
"ELSE",
|
||||
"END",
|
||||
"EXECUTE",
|
||||
"EXISTS",
|
||||
"FALSE",
|
||||
"FROM",
|
||||
"GRANT",
|
||||
"GROUP",
|
||||
"HAVING",
|
||||
"IN",
|
||||
"INDEX",
|
||||
"INNER",
|
||||
"INSERT",
|
||||
"INTO",
|
||||
"IS",
|
||||
"JOIN",
|
||||
"KEY",
|
||||
"LEFT",
|
||||
"LIKE",
|
||||
"MAX",
|
||||
"MIN",
|
||||
"NOT",
|
||||
"NULL",
|
||||
"ON",
|
||||
"OR",
|
||||
"ORDER",
|
||||
"OUTER",
|
||||
"OUTPUT",
|
||||
"PRIMARY",
|
||||
"PROCEDURE",
|
||||
"REVOKE",
|
||||
"ROLLBACK",
|
||||
"ROWCOUNT",
|
||||
"SELECT",
|
||||
"SET",
|
||||
"SQL",
|
||||
"SUM",
|
||||
"TABLE",
|
||||
"THEN",
|
||||
"TRANSACTION",
|
||||
"TRUE",
|
||||
"UNION",
|
||||
"UNIQUE",
|
||||
"UPDATE",
|
||||
"USER",
|
||||
"VALUES",
|
||||
"VIEW",
|
||||
"WHEN",
|
||||
"WHERE"
|
||||
};
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
@@ -93,6 +93,9 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
public SbmEmailConsole emailConsole;
|
||||
}
|
||||
public Consoles con { get; } = new Consoles();
|
||||
// System and Application codes.
|
||||
public Dictionary<SaSysCodeType, List<TypeCodeDesc>> systemCodeCache { get; } = new Dictionary<SaSysCodeType, List<TypeCodeDesc>>();
|
||||
public Dictionary<Sbm.ApplicationCode, List<TypeCodeDesc>> applicationCodeCache = new Dictionary<Sbm.ApplicationCode, List<TypeCodeDesc>>();
|
||||
// Configurations.
|
||||
public SbmStockControlConfig stockControlConfig { get; set; }
|
||||
public SbmRequirementCostingConfig requirementCostingConfig { get; set; }
|
||||
@@ -203,41 +206,51 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// System codes.
|
||||
private Dictionary<Sbm.SystemCode, List<TypeCodeDesc>> systemCodeCache = new Dictionary<Sbm.SystemCode, List<TypeCodeDesc>>();
|
||||
public List<TypeCodeDesc> GetSystemCodes(Sbm.SystemCode systemCode)
|
||||
public List<TypeCodeDesc> GetSystemCodes(SaSysCodeType systemCode)
|
||||
{
|
||||
if (!systemCodeCache.ContainsKey(systemCode))
|
||||
if (!mbr.systemCodeCache.ContainsKey(systemCode))
|
||||
mbr.systemCodeCache[systemCode] = SacsSystem.GetCodesOfType(systemCode);
|
||||
return new List<TypeCodeDesc>(mbr.systemCodeCache.GetValueOrDefault(systemCode, new List<TypeCodeDesc>()));
|
||||
}
|
||||
public List<TypeCodeDesc> MessageLevelCodes { get { return GetSystemCodes(SaSysCodeType.MessageLevel); } }
|
||||
public List<TypeCodeDesc> InterfaceCategoryCodes { get { return GetSystemCodes(SaSysCodeType.InterfaceCategory); } }
|
||||
public List<TypeCodeDesc> InterfaceProcessDirectionCodes { get { return GetSystemCodes(SaSysCodeType.InterfaceProcessDirection); } }
|
||||
|
||||
// Application codes.
|
||||
public List<TypeCodeDesc> GetApplicationCodes(Sbm.ApplicationCode applicationCode)
|
||||
{
|
||||
if (!mbr.applicationCodeCache.ContainsKey(applicationCode))
|
||||
{
|
||||
List<TypeCodeDesc> codes = new List<TypeCodeDesc>();
|
||||
foreach (TypeCodeDesc code in SbmSystem.GetSystemCodes(systemCode))
|
||||
foreach (TypeCodeDesc code in SbmSystem.GetSystemCodes(applicationCode))
|
||||
{
|
||||
switch (systemCode)
|
||||
switch (applicationCode)
|
||||
{
|
||||
case Sbm.SystemCode.AffiliateType:
|
||||
case Sbm.ApplicationCode.AffiliateType:
|
||||
if (!SessionConsole.AllowAffiliateType((Sbm.AffiliateType)code.Type)) continue;
|
||||
break;
|
||||
case Sbm.SystemCode.AssociationType:
|
||||
case Sbm.ApplicationCode.AssociationType:
|
||||
if (!SessionConsole.AllowAssociationType((Sbm.AssociationType)code.Type)) continue;
|
||||
break;
|
||||
case Sbm.SystemCode.TransactionType:
|
||||
case Sbm.ApplicationCode.TransactionType:
|
||||
if (!SessionConsole.AllowTransactionType((Sbm.TransactionType)code.Type)) continue;
|
||||
break;
|
||||
case Sbm.SystemCode.CommodityType:
|
||||
case Sbm.ApplicationCode.CommodityType:
|
||||
if (code.Type == (int)Sbm.CommodityType.Asset && (!SessionConsole.AllowOption(Sbm.ConfigOption.Assets) || !AssetMgr.AssetDatabaseIsValid())) continue;
|
||||
break;
|
||||
case Sbm.SystemCode.ProcessCategory:
|
||||
case Sbm.ApplicationCode.ProcessCategory:
|
||||
if (code.Type == (int)Sbm.ProcessCategory.Commodity && !SessionConsole.AllowOption(Sbm.ConfigOption.Commodities)) continue;
|
||||
if (code.Type == (int)Sbm.ProcessCategory.Asset && (!SessionConsole.AllowOption(Sbm.ConfigOption.Assets) || !AssetMgr.AssetDatabaseIsValid())) continue;
|
||||
break;
|
||||
case Sbm.SystemCode.FinancialType:
|
||||
case Sbm.ApplicationCode.FinancialType:
|
||||
if ((code.Type == (int)Sbm.FinancialType.CommoditySupply || code.Type == (int)Sbm.FinancialType.CommoditySales) && !SessionConsole.AllowOption(Sbm.ConfigOption.Commodities)) continue;
|
||||
break;
|
||||
case Sbm.SystemCode.InterfaceType_Website:
|
||||
case Sbm.ApplicationCode.InterfaceType_Website:
|
||||
if (code.Type == (int)Sbm.InterfaceType_Website.WebStore && !SessionConsole.AllowInterface(SaInterfaceCategory.Website, (short)code.Type)) continue;
|
||||
if (code.Type == (int)Sbm.InterfaceType_Website.JoomlaVirtueMart && !SessionConsole.AllowInterface(SaInterfaceCategory.Website, (short)code.Type)) continue;
|
||||
if (code.Type == (int)Sbm.InterfaceType_Website.MiMoWeb && !SessionConsole.AllowInterface(SaInterfaceCategory.Website, (short)code.Type)) continue;
|
||||
break;
|
||||
case Sbm.SystemCode.InterfaceType_System:
|
||||
case Sbm.ApplicationCode.InterfaceType_System:
|
||||
if (code.Type == (int)Sbm.InterfaceType_System.MSOutlook && !SessionConsole.AllowInterface(SaInterfaceCategory.System, (short)code.Type)) continue;
|
||||
if (code.Type == (int)Sbm.InterfaceType_System.PostcodeAnywhere && !SessionConsole.AllowInterface(SaInterfaceCategory.System, (short)code.Type)) continue;
|
||||
if (code.Type == (int)Sbm.InterfaceType_System.Bac && !SessionConsole.AllowInterface(SaInterfaceCategory.System, (short)code.Type)) continue;
|
||||
@@ -248,35 +261,35 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
if (code.Type == (int)Sbm.InterfaceType_System.Cadix_OrderSpreadsheet_Argos && !SessionConsole.AllowInterface(SaInterfaceCategory.System, (short)code.Type)) continue;
|
||||
if (code.Type == (int)Sbm.InterfaceType_System.Cadix_OrderSpreadsheet_Homebase && !SessionConsole.AllowInterface(SaInterfaceCategory.System, (short)code.Type)) continue;
|
||||
break;
|
||||
case Sbm.SystemCode.OrgOption_PeriodDays:
|
||||
case Sbm.ApplicationCode.OrgOption_PeriodDays:
|
||||
if (code.Type == (int)Sbm.OrgOption_PeriodDays.UpdateClosedTransaction_DispatchDetails && !SessionConsole.AllowOption(Sbm.ConfigOption.DeliveryPlanning)) continue;
|
||||
if (code.Type == (int)Sbm.OrgOption_PeriodDays.UpdateStockLevelsInPast && !SessionConsole.AllowInterface(SaInterfaceCategory.System, (short)code.Type)) continue;
|
||||
break;
|
||||
case Sbm.SystemCode.OrgOption_PeriodWeeks:
|
||||
case Sbm.ApplicationCode.OrgOption_PeriodWeeks:
|
||||
if (code.Type == (int)Sbm.OrgOption_PeriodWeeks.Timesheets && !SessionConsole.AllowOption(Sbm.ConfigOption.TimeRecording)) continue;
|
||||
if (code.Type == (int)Sbm.OrgOption_PeriodWeeks.UpdateTimeRecords_Control && !SessionConsole.AllowOption(Sbm.ConfigOption.TimeRecording)) continue;
|
||||
if (code.Type == (int)Sbm.OrgOption_PeriodWeeks.ImminentStockDue && !SessionConsole.GetOwnerOption_AllowOption(Sbm.OrgOption_AllowOption.ImminentStock)) continue;
|
||||
break;
|
||||
case Sbm.SystemCode.OrgOption_Caption:
|
||||
case Sbm.ApplicationCode.OrgOption_Caption:
|
||||
if (!SessionConsole.AllowTransactionType(Sbm.OrgOptionToTransType((Sbm.OrgOption_Caption)code.Type))) continue;
|
||||
break;
|
||||
}
|
||||
codes.Add(code);
|
||||
}
|
||||
systemCodeCache.Add(systemCode, codes);
|
||||
mbr.applicationCodeCache.Add(applicationCode, codes);
|
||||
}
|
||||
return new List<TypeCodeDesc>(systemCodeCache.GetValueOrDefault(systemCode, new List<TypeCodeDesc>()));
|
||||
return new List<TypeCodeDesc>(mbr.applicationCodeCache.GetValueOrDefault(applicationCode, new List<TypeCodeDesc>()));
|
||||
}
|
||||
// Selection of specific system code types.
|
||||
public List<TypeCodeDesc> ItemTypeCodes { get { return GetSystemCodes(Sbm.SystemCode.ItemType); } }
|
||||
public List<TypeCodeDesc> AffiliateTypeCodes { get { return GetSystemCodes(Sbm.SystemCode.AffiliateType); } }
|
||||
public List<TypeCodeDesc> AddressTypeCodes { get { return GetSystemCodes(Sbm.SystemCode.AddressType); } }
|
||||
public List<TypeCodeDesc> AssociationTypeCodes { get { return GetSystemCodes(Sbm.SystemCode.AssociationType); } }
|
||||
public List<TypeCodeDesc> CommodityTypeCodes { get { return GetSystemCodes(Sbm.SystemCode.CommodityType); } }
|
||||
public List<TypeCodeDesc> AssetTypeCodes { get { return GetSystemCodes(Sbm.SystemCode.AssetType); } }
|
||||
public List<TypeCodeDesc> VehicleTypeCodes { get { return GetSystemCodes(Sbm.SystemCode.VehicleType); } }
|
||||
public List<TypeCodeDesc> TransactionTypeCodes { get { return GetSystemCodes(Sbm.SystemCode.TransactionType); } }
|
||||
public List<TypeCodeDesc> RequirementTypeCodes { get { return GetSystemCodes(Sbm.SystemCode.RequirementType); } }
|
||||
public List<TypeCodeDesc> ItemTypeCodes { get { return GetApplicationCodes(Sbm.ApplicationCode.ItemType); } }
|
||||
public List<TypeCodeDesc> AffiliateTypeCodes { get { return GetApplicationCodes(Sbm.ApplicationCode.AffiliateType); } }
|
||||
public List<TypeCodeDesc> AddressTypeCodes { get { return GetApplicationCodes(Sbm.ApplicationCode.AddressType); } }
|
||||
public List<TypeCodeDesc> AssociationTypeCodes { get { return GetApplicationCodes(Sbm.ApplicationCode.AssociationType); } }
|
||||
public List<TypeCodeDesc> CommodityTypeCodes { get { return GetApplicationCodes(Sbm.ApplicationCode.CommodityType); } }
|
||||
public List<TypeCodeDesc> AssetTypeCodes { get { return GetApplicationCodes(Sbm.ApplicationCode.AssetType); } }
|
||||
public List<TypeCodeDesc> VehicleTypeCodes { get { return GetApplicationCodes(Sbm.ApplicationCode.VehicleType); } }
|
||||
public List<TypeCodeDesc> TransactionTypeCodes { get { return GetApplicationCodes(Sbm.ApplicationCode.TransactionType); } }
|
||||
public List<TypeCodeDesc> RequirementTypeCodes { get { return GetApplicationCodes(Sbm.ApplicationCode.RequirementType); } }
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Code types.
|
||||
|
||||
@@ -48,7 +48,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Organisation configuration.
|
||||
public String GetOrganisationOption(Sbm.OrganisationOption option, String context)
|
||||
{
|
||||
if (assocOptions == null) assocOptions = SbmSystem.GetSystemCodes(Sbm.SystemCode.AssociationOption);
|
||||
if (assocOptions == null) assocOptions = SbmSystem.GetSystemCodes(Sbm.ApplicationCode.AssociationOption);
|
||||
String optionName = assocOptions.GetCodeForType(option);
|
||||
return GetOrganisationOption(optionName, context);
|
||||
}
|
||||
@@ -59,33 +59,33 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
}
|
||||
public String GetOwnerOption_Value(Sbm.OrgOption_Value value)
|
||||
{
|
||||
if (contextValues == null) contextValues = SbmSystem.GetSystemCodes(Sbm.SystemCode.OrgOption_Value);
|
||||
if (contextValues == null) contextValues = SbmSystem.GetSystemCodes(Sbm.ApplicationCode.OrgOption_Value);
|
||||
String context = contextValues.GetCodeForType(value);
|
||||
return GetOrganisationOption(Sbm.OrganisationOption.Value, context).Trim();
|
||||
}
|
||||
public String GetOwnerOption_Folder(Sbm.OrgOption_Folder folder)
|
||||
{
|
||||
if (contextFolders == null) contextFolders = SbmSystem.GetSystemCodes(Sbm.SystemCode.OrgOption_Folder);
|
||||
if (contextFolders == null) contextFolders = SbmSystem.GetSystemCodes(Sbm.ApplicationCode.OrgOption_Folder);
|
||||
String context = contextFolders.GetCodeForType(folder);
|
||||
return GetOrganisationOption(Sbm.OrganisationOption.Folder, context).Trim();
|
||||
}
|
||||
public bool GetOwnerOption_AllowOption(Sbm.OrgOption_AllowOption option)
|
||||
{
|
||||
if (contextAllowOptions == null) contextAllowOptions = SbmSystem.GetSystemCodes(Sbm.SystemCode.OrgOption_AllowOption);
|
||||
if (contextAllowOptions == null) contextAllowOptions = SbmSystem.GetSystemCodes(Sbm.ApplicationCode.OrgOption_AllowOption);
|
||||
String context = contextAllowOptions.GetCodeForType(option);
|
||||
String value = GetOrganisationOption(Sbm.OrganisationOption.AllowOption, context).Trim();
|
||||
return StringUtil.ToBool(value);
|
||||
}
|
||||
public String GetOwnerOption_Caption(Sbm.OrgOption_Caption caption, String defaultValue)
|
||||
{
|
||||
if (contextCaptions == null) contextCaptions = SbmSystem.GetSystemCodes(Sbm.SystemCode.OrgOption_Caption);
|
||||
if (contextCaptions == null) contextCaptions = SbmSystem.GetSystemCodes(Sbm.ApplicationCode.OrgOption_Caption);
|
||||
String context = contextCaptions.GetCodeForType(caption);
|
||||
String value = GetOrganisationOption(Sbm.OrganisationOption.Caption, context).Trim();
|
||||
return (!value.IsEmpty() ? value : defaultValue);
|
||||
}
|
||||
public bool GetOwnerOption_ShowField(SbmDbDfn.ColumnIdx column)
|
||||
{
|
||||
if (contextShowFields == null) contextShowFields = SbmSystem.GetSystemCodes(Sbm.SystemCode.OrgOption_ShowField);
|
||||
if (contextShowFields == null) contextShowFields = SbmSystem.GetSystemCodes(Sbm.ApplicationCode.OrgOption_ShowField);
|
||||
String context = contextShowFields.GetCodeForType(column);
|
||||
if (context.IsEmpty()) return true; // Automatically show fields that are not in the 'Show Field' list.
|
||||
String value = GetOrganisationOption(Sbm.OrganisationOption.ShowField, context).Trim();
|
||||
@@ -93,21 +93,21 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
}
|
||||
public bool GetOwnerOption_ShowColumn(Sbm.OrgOption_ShowColumn column)
|
||||
{
|
||||
if (contextShowColumns == null) contextShowColumns = SbmSystem.GetSystemCodes(Sbm.SystemCode.OrgOption_ShowColumn);
|
||||
if (contextShowColumns == null) contextShowColumns = SbmSystem.GetSystemCodes(Sbm.ApplicationCode.OrgOption_ShowColumn);
|
||||
String context = contextShowColumns.GetCodeForType(column);
|
||||
String value = GetOrganisationOption(Sbm.OrganisationOption.ShowColumn, context).Trim();
|
||||
return StringUtil.ToBool(value);
|
||||
}
|
||||
public String GetOwnerOption_FieldLabel(SbmDbDfn.ColumnIdx column, String defautValue)
|
||||
{
|
||||
if (contextFieldLabels == null) contextFieldLabels = SbmSystem.GetSystemCodes(Sbm.SystemCode.OrgOption_FieldLabel);
|
||||
if (contextFieldLabels == null) contextFieldLabels = SbmSystem.GetSystemCodes(Sbm.ApplicationCode.OrgOption_FieldLabel);
|
||||
String context = contextFieldLabels.GetCodeForType(column);
|
||||
String value = GetOrganisationOption(Sbm.OrganisationOption.FieldLabel, context).Trim();
|
||||
return (!value.IsEmpty() ? value : defautValue); // Return default if no label defined.
|
||||
}
|
||||
public int GetOwnerOption_Minutes(Sbm.OrgOption_Minutes limit, int defautValue)
|
||||
{
|
||||
if (contextMinutes == null) contextMinutes = SbmSystem.GetSystemCodes(Sbm.SystemCode.OrgOption_Minutes);
|
||||
if (contextMinutes == null) contextMinutes = SbmSystem.GetSystemCodes(Sbm.ApplicationCode.OrgOption_Minutes);
|
||||
String context = contextMinutes.GetCodeForType(limit);
|
||||
String value = GetOrganisationOption(Sbm.OrganisationOption.Minutes, context).Trim();
|
||||
if (!value.IsEmpty())
|
||||
@@ -120,7 +120,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
}
|
||||
public int GetOwnerOption_UpdateLimit(Sbm.OrgOption_PeriodDays limit, int defautValue)
|
||||
{
|
||||
if (contextPeriodDays == null) contextPeriodDays = SbmSystem.GetSystemCodes(Sbm.SystemCode.OrgOption_PeriodDays);
|
||||
if (contextPeriodDays == null) contextPeriodDays = SbmSystem.GetSystemCodes(Sbm.ApplicationCode.OrgOption_PeriodDays);
|
||||
String context = contextPeriodDays.GetCodeForType(limit);
|
||||
String value = GetOrganisationOption(Sbm.OrganisationOption.PeriodDays, context).Trim();
|
||||
if (!value.IsEmpty())
|
||||
@@ -133,7 +133,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
}
|
||||
public int GetOwnerOption_UpdateLimit(Sbm.OrgOption_PeriodWeeks limit, int defautValue)
|
||||
{
|
||||
if (contextPeriodWeeks == null) contextPeriodWeeks = SbmSystem.GetSystemCodes(Sbm.SystemCode.OrgOption_PeriodWeeks);
|
||||
if (contextPeriodWeeks == null) contextPeriodWeeks = SbmSystem.GetSystemCodes(Sbm.ApplicationCode.OrgOption_PeriodWeeks);
|
||||
String context = contextPeriodWeeks.GetCodeForType(limit);
|
||||
String value = GetOrganisationOption(Sbm.OrganisationOption.PeriodWeeks, context).Trim();
|
||||
if (!value.IsEmpty())
|
||||
@@ -146,7 +146,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
}
|
||||
public int GetOwnerOption_NumericDecimals(Sbm.OrgOption_NumericDecimals decimals, int defautValue = 2)
|
||||
{
|
||||
if (contextNumericDecimals == null) contextNumericDecimals = SbmSystem.GetSystemCodes(Sbm.SystemCode.OrgOption_NumericDecimals);
|
||||
if (contextNumericDecimals == null) contextNumericDecimals = SbmSystem.GetSystemCodes(Sbm.ApplicationCode.OrgOption_NumericDecimals);
|
||||
String context = contextNumericDecimals.GetCodeForType(decimals);
|
||||
String value = GetOrganisationOption(Sbm.OrganisationOption.NumericDecimals, context).Trim();
|
||||
int iNumDecimals = defautValue;
|
||||
@@ -157,8 +157,8 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
}
|
||||
public Sbm.CommodityType GetOwnerOption_CommodityType(Sbm.OrgOption_CommodityType commodityType)
|
||||
{
|
||||
if (contextCommodityTypes == null) contextCommodityTypes = SbmSystem.GetSystemCodes(Sbm.SystemCode.OrgOption_CommodityType);
|
||||
if (commodityTypes == null) commodityTypes = SbmSystem.GetSystemCodes(Sbm.SystemCode.CommodityType);
|
||||
if (contextCommodityTypes == null) contextCommodityTypes = SbmSystem.GetSystemCodes(Sbm.ApplicationCode.OrgOption_CommodityType);
|
||||
if (commodityTypes == null) commodityTypes = SbmSystem.GetSystemCodes(Sbm.ApplicationCode.CommodityType);
|
||||
String context = contextCommodityTypes.GetCodeForType(commodityType);
|
||||
String value = GetOrganisationOption(Sbm.OrganisationOption.CommodityType, context).Trim();
|
||||
Sbm.CommodityType eCmdType = (Sbm.CommodityType)commodityTypes.GetTypeForCode(value);
|
||||
@@ -166,7 +166,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
}
|
||||
public SysId GetOwnerOption_StockLocation(Sbm.OrgOption_StockLocation stockLocation)
|
||||
{
|
||||
if (contextSalesLocations == null) contextSalesLocations = SbmSystem.GetSystemCodes(Sbm.SystemCode.OrgOption_StockLocation);
|
||||
if (contextSalesLocations == null) contextSalesLocations = SbmSystem.GetSystemCodes(Sbm.ApplicationCode.OrgOption_StockLocation);
|
||||
String context = contextSalesLocations.GetCodeForType(stockLocation);
|
||||
String value = GetOrganisationOption(Sbm.OrganisationOption.SalesLocation, context).Trim();
|
||||
SysId idLoc = new SysId();
|
||||
|
||||
@@ -17,7 +17,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// System code types.
|
||||
private static Dictionary<Sbm.SystemCode, List<TypeCodeDesc>> systemCodes = new Dictionary<Sbm.SystemCode, List<TypeCodeDesc>>();
|
||||
private static Dictionary<Sbm.ApplicationCode, List<TypeCodeDesc>> systemCodes = new Dictionary<Sbm.ApplicationCode, List<TypeCodeDesc>>();
|
||||
// Code types.
|
||||
private static List<TypeCodeDesc> codeTypes = new List<TypeCodeDesc>();
|
||||
|
||||
@@ -97,7 +97,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
//---------------------------------------------------------------
|
||||
// I t e m T y p e
|
||||
//---------------------------------------------------------------
|
||||
systemCodes[Sbm.SystemCode.ItemType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.ItemType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.ItemType.SecItem, "SecItm", "Securty Item"),
|
||||
new TypeCodeDesc((int)Sbm.ItemType.Currency, "Currency", "Currency"),
|
||||
@@ -139,7 +139,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Contacts.
|
||||
|
||||
// Affiliate Type.
|
||||
systemCodes[Sbm.SystemCode.AffiliateType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.AffiliateType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.AffiliateType.Individual, "IND", "Individual"),
|
||||
new TypeCodeDesc((int)Sbm.AffiliateType.Commercial, "COM", "Commercial"),
|
||||
@@ -151,7 +151,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Address Type.
|
||||
systemCodes[Sbm.SystemCode.AddressType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.AddressType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.AddressType.Office, "OFF", "Office"),
|
||||
new TypeCodeDesc((int)Sbm.AddressType.Registered, "REG", "Registered"),
|
||||
@@ -161,7 +161,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Association Type.
|
||||
systemCodes[Sbm.SystemCode.AssociationType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.AssociationType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.AssociationType.Internal, "INT", "Internal"),
|
||||
new TypeCodeDesc((int)Sbm.AssociationType.Customer, "CUS", "Customer"),
|
||||
@@ -174,7 +174,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// System Account Type.
|
||||
systemCodes[Sbm.SystemCode.SystemAccountType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.SystemAccountType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.SystemAccountType.Customer, "CUST", "Customer")
|
||||
};
|
||||
@@ -183,7 +183,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Transactions.
|
||||
|
||||
// Transaction types.
|
||||
systemCodes[Sbm.SystemCode.TransactionType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.TransactionType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int) Sbm.TransactionType.Project, "PRO", "Project"),
|
||||
new TypeCodeDesc((int)Sbm.TransactionType.SalesLead, "SLD", "Sales Lead"),
|
||||
@@ -204,7 +204,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Transaction StatusCat.
|
||||
systemCodes[Sbm.SystemCode.TransactionStatusCat] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.TransactionStatusCat] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)SbmTransaction.StatusCat.Pending, "PEN", "Pending"),
|
||||
new TypeCodeDesc((int)SbmTransaction.StatusCat.Open, "OPE", "Open"),
|
||||
@@ -212,28 +212,28 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Requirement Type.
|
||||
systemCodes[Sbm.SystemCode.RequirementType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.RequirementType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.RequirementType.Detail, "DET", "Detail"),
|
||||
new TypeCodeDesc((int)Sbm.RequirementType.Job, "JOB", "Job"),
|
||||
};
|
||||
|
||||
// TaskCodeType.
|
||||
systemCodes[Sbm.SystemCode.TaskCodeType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.TaskCodeType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.TaskCodeType.Project, "PRO", "Project code"),
|
||||
new TypeCodeDesc((int)Sbm.TaskCodeType.Job, "JOB", "Job number"),
|
||||
};
|
||||
|
||||
// Requirement StatusCat.
|
||||
systemCodes[Sbm.SystemCode.RequirementStatusCat] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.RequirementStatusCat] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)SbmRequirement.StatusCat.Open, "OPE", "Open"),
|
||||
new TypeCodeDesc((int)SbmRequirement.StatusCat.Closed, "CLO", "Closed"),
|
||||
};
|
||||
|
||||
// ConstituentType.
|
||||
systemCodes[Sbm.SystemCode.ConstituentType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.ConstituentType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.ConstituentType.TimeRecord, "TIM", "Time record"),
|
||||
new TypeCodeDesc((int)Sbm.ConstituentType.Event, "EVT", "Event"),
|
||||
@@ -244,7 +244,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Constituent StatusCat.
|
||||
systemCodes[Sbm.SystemCode.ConstituentStatusCat] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.ConstituentStatusCat] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)SbmConstituent.StatusCat.Open, "OPE", "Open"),
|
||||
new TypeCodeDesc((int)SbmConstituent.StatusCat.Closed, "CLO", "Closed"),
|
||||
@@ -254,13 +254,13 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Miscellaneous.
|
||||
|
||||
// ItemLinkData.
|
||||
systemCodes[Sbm.SystemCode.ItemLinkData] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.ItemLinkData] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.ItemLinkData.Requirement_AssocItem_PurchaseCostProportion, "PurchaseCostProportion", "Purchase cost proportion")
|
||||
};
|
||||
|
||||
// Sys Param Category.
|
||||
systemCodes[Sbm.SystemCode.SysParamCategory] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.SysParamCategory] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.StockLevelSource.Manual, "MAN", "Manual"),
|
||||
new TypeCodeDesc((int)Sbm.SysParamCategory.Security, "SEC", "Security parameter"),
|
||||
@@ -271,7 +271,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Commodities.
|
||||
|
||||
// Commodity Type.
|
||||
systemCodes[Sbm.SystemCode.CommodityType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.CommodityType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.CommodityType.Stock, "STK", "Stock"),
|
||||
new TypeCodeDesc((int)Sbm.CommodityType.NonStock, "NST", "Non-stock"),
|
||||
@@ -280,14 +280,14 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Commodity Status Cat. - Any' value is included in list to support organisation item options and commodity panel filter.
|
||||
systemCodes[Sbm.SystemCode.CommodityStatusCat] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.CommodityStatusCat] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)SbmCommodity.StatusCat.Any, "ANY", "<Any>"),
|
||||
new TypeCodeDesc((int)SbmCommodity.StatusCat.Current, "CUR", "Current")
|
||||
};
|
||||
|
||||
// Portfolio Item Type.
|
||||
systemCodes[Sbm.SystemCode.PortfolioItemType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.PortfolioItemType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.PortfolioItemType.Portfolio, "PORT", "Portfolio"),
|
||||
new TypeCodeDesc((int)Sbm.PortfolioItemType.Category, "CAT", "Category"),
|
||||
@@ -295,13 +295,13 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Container Category.
|
||||
systemCodes[Sbm.SystemCode.ContainerCategory] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.ContainerCategory] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.ContainerCategory.Stock, "STOCK", "Stock")
|
||||
};
|
||||
|
||||
// Container Type.
|
||||
systemCodes[Sbm.SystemCode.ContainerType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.ContainerType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.ContainerType.Vehicle, "VEHICLE", "Vehicle"),
|
||||
new TypeCodeDesc((int)Sbm.ContainerType.Truck, "TRUCK", "Truck"),
|
||||
@@ -316,13 +316,13 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Stock.
|
||||
|
||||
// Location Category.
|
||||
systemCodes[Sbm.SystemCode.LocationCategory] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.LocationCategory] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.LocationCategory.Stock, "STOCK", "Stock")
|
||||
};
|
||||
|
||||
// Location Filter.
|
||||
systemCodes[Sbm.SystemCode.LocationFilter] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.LocationFilter] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.LocationFilter.Sales, "SALESLOC", "Sales locations"),
|
||||
new TypeCodeDesc((int)Sbm.LocationFilter.Calc, "CALCLOC", "Calculated locations"),
|
||||
@@ -330,7 +330,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Movement Type.
|
||||
systemCodes[Sbm.SystemCode.MovementType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.MovementType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.MovementType.StockTransfer, "STKTRA", "Stock transfer"),
|
||||
new TypeCodeDesc((int)Sbm.MovementType.SalesAllocation, "SALALL", "Sales allocation"),
|
||||
@@ -338,7 +338,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Stock Level Type.
|
||||
systemCodes[Sbm.SystemCode.StockLevelType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.StockLevelType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.StockLevelType.CurrentLevel, "CUR", "Current level"),
|
||||
new TypeCodeDesc((int)Sbm.StockLevelType.StockTake, "STK", "Stock take"),
|
||||
@@ -346,7 +346,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Stock Level Source.
|
||||
systemCodes[Sbm.SystemCode.StockLevelSource] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.StockLevelSource] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.StockLevelSource.Manual, "MAN", "Manual"),
|
||||
new TypeCodeDesc((int)Sbm.StockLevelSource.System, "SYS", "System"),
|
||||
@@ -357,14 +357,14 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Processes.
|
||||
|
||||
// Process Category.
|
||||
systemCodes[Sbm.SystemCode.ProcessCategory] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.ProcessCategory] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.ProcessCategory.Commodity, "CMD", "Commodity"),
|
||||
new TypeCodeDesc((int)Sbm.ProcessCategory.Asset, "ASSET", "Asset")
|
||||
};
|
||||
|
||||
// Process Type.
|
||||
systemCodes[Sbm.SystemCode.ProcessType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.ProcessType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.ProcessType.Preparation, "PREP", "Preparation"),
|
||||
new TypeCodeDesc((int)Sbm.ProcessType.Production, "PROD", "Production"),
|
||||
@@ -373,7 +373,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Payment Type.
|
||||
systemCodes[Sbm.SystemCode.PaymentType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.PaymentType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.PaymentType.Finance, "FINANCE", "Finance"),
|
||||
new TypeCodeDesc((int)Sbm.PaymentType.Cash, "CASH", "Cash"),
|
||||
@@ -386,7 +386,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Assets.
|
||||
|
||||
// Asset Type.
|
||||
systemCodes[Sbm.SystemCode.AssetType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.AssetType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.AssetType.General, "GEN", "General"),
|
||||
new TypeCodeDesc((int)Sbm.AssetType.Furniture, "FUR", "Furniture"),
|
||||
@@ -395,7 +395,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Asset Income Type.
|
||||
systemCodes[Sbm.SystemCode.AssetIncomeType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.AssetIncomeType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.AssetIncomeType.Sale, "SALE", "Sale"),
|
||||
new TypeCodeDesc((int)Sbm.AssetIncomeType.Rental, "RENTAL", "Rental")
|
||||
@@ -405,7 +405,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Vehicles.
|
||||
|
||||
// Vehicle Type.
|
||||
systemCodes[Sbm.SystemCode.VehicleType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.VehicleType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.VehicleType.Car, "CAR", "Car"),
|
||||
new TypeCodeDesc((int)Sbm.VehicleType.Minibus, "MINIBUS", "Minibus"),
|
||||
@@ -415,7 +415,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Vehicle Event Type.
|
||||
systemCodes[Sbm.SystemCode.VehicleEventType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.VehicleEventType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.VehicleEventType.Odometer, "ODO", "Odometer"),
|
||||
new TypeCodeDesc((int)Sbm.VehicleEventType.Service, "SRV", "Service"),
|
||||
@@ -425,7 +425,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Vehicle Feature Source.
|
||||
systemCodes[Sbm.SystemCode.VehicleFeatureSource] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.VehicleFeatureSource] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.VehicleFeatureSource.Manual, "MAN", "Manual"),
|
||||
new TypeCodeDesc((int)Sbm.VehicleFeatureSource.HPI, "HPI", "HPI"),
|
||||
@@ -435,7 +435,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Vehicle Feature Type.
|
||||
systemCodes[Sbm.SystemCode.VehicleFeatureType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.VehicleFeatureType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.VehicleFeatureType.Make, "MAKE", "Make"),
|
||||
new TypeCodeDesc((int)Sbm.VehicleFeatureType.Model, "MODEL", "Model"),
|
||||
@@ -458,7 +458,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Vehicle Option Type.
|
||||
systemCodes[Sbm.SystemCode.VehicleOptionType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.VehicleOptionType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.VehicleOptionType.Trim, "TRIM", "Trim"),
|
||||
new TypeCodeDesc((int)Sbm.VehicleOptionType.Ventilation, "VENTILATION", "Ventilation"),
|
||||
@@ -468,14 +468,14 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Vehicle Trans Type.
|
||||
systemCodes[Sbm.SystemCode.VehicleTransType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.VehicleTransType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.VehicleTransType.Manual, "MANUAL", "Manual"),
|
||||
new TypeCodeDesc((int)Sbm.VehicleTransType.Automatic, "AUTO", "Automatic")
|
||||
};
|
||||
|
||||
// Fuel Type.
|
||||
systemCodes[Sbm.SystemCode.FuelType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.FuelType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.VehicleFuelType.Petrol, "PETROL", "Petrol"),
|
||||
new TypeCodeDesc((int)Sbm.VehicleFuelType.Diesel, "DIESEL", "Diesel"),
|
||||
@@ -485,14 +485,14 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Odometer Units.
|
||||
systemCodes[Sbm.SystemCode.OdometerUnits] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.OdometerUnits] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.VehicleOdometerUnits.Mile, "MILE", "Miles"),
|
||||
new TypeCodeDesc((int)Sbm.VehicleOdometerUnits.Kilometre, "KM", "Kilometres")
|
||||
};
|
||||
|
||||
// Discount Type.
|
||||
systemCodes[Sbm.SystemCode.DiscountType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.DiscountType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.DiscountType.NoDiscount, "NoDisc", "No Discount"),
|
||||
new TypeCodeDesc((int)Sbm.DiscountType.ValueDiscount, "ValDisc", "Value discount"),
|
||||
@@ -504,7 +504,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Discount Markup.
|
||||
systemCodes[Sbm.SystemCode.DiscountMarkup] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.DiscountMarkup] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.DiscountMarkup.Discount, "DISC", "Discount"),
|
||||
new TypeCodeDesc((int)Sbm.DiscountMarkup.Markup, "MARK", "Markup")
|
||||
@@ -514,16 +514,16 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Reference.
|
||||
|
||||
// Region Type.
|
||||
systemCodes[Sbm.SystemCode.RegionType] = new List<TypeCodeDesc>(SaReferenceDataConsole.GetReferenceDataCodes(ReferenceDataSystemCode.RegionType));
|
||||
systemCodes[Sbm.ApplicationCode.RegionType] = new List<TypeCodeDesc>(SaReferenceDataConsole.GetReferenceDataCodes(ReferenceDataSystemCode.RegionType));
|
||||
|
||||
// Unit Measure Category.
|
||||
systemCodes[Sbm.SystemCode.UnitMeasureCategory] = new List<TypeCodeDesc>(SaReferenceDataConsole.GetReferenceDataCodes(ReferenceDataSystemCode.UnitMeasureCategory));
|
||||
systemCodes[Sbm.ApplicationCode.UnitMeasureCategory] = new List<TypeCodeDesc>(SaReferenceDataConsole.GetReferenceDataCodes(ReferenceDataSystemCode.UnitMeasureCategory));
|
||||
|
||||
// Unit Measure Type.
|
||||
systemCodes[Sbm.SystemCode.UnitMeasureType] = new List<TypeCodeDesc>(SaReferenceDataConsole.GetReferenceDataCodes(ReferenceDataSystemCode.UnitMeasureType));
|
||||
systemCodes[Sbm.ApplicationCode.UnitMeasureType] = new List<TypeCodeDesc>(SaReferenceDataConsole.GetReferenceDataCodes(ReferenceDataSystemCode.UnitMeasureType));
|
||||
|
||||
// Financial Type.
|
||||
systemCodes[Sbm.SystemCode.FinancialType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.FinancialType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.FinancialType.CommoditySupply, "CmdSup", "Commodity supply"),
|
||||
new TypeCodeDesc((int)Sbm.FinancialType.CommoditySales, "CmdSal", "Commodity sales")
|
||||
@@ -533,7 +533,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Pricing.
|
||||
|
||||
// Price Type.
|
||||
systemCodes[Sbm.SystemCode.PriceType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.PriceType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.PriceType.Customer, "P", "Customer"),
|
||||
new TypeCodeDesc((int)Sbm.PriceType.Supplier, "U", "Supplier"),
|
||||
@@ -541,7 +541,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Price Calc Method.
|
||||
systemCodes[Sbm.SystemCode.PriceCalcMethod] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.PriceCalcMethod] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.PriceCalcMethod.Fixed, "Fixed", "Fixed"),
|
||||
new TypeCodeDesc((int)Sbm.PriceCalcMethod.Standard, "Standard", "Standard"),
|
||||
@@ -564,7 +564,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Application configuration.
|
||||
|
||||
// Association Tab.
|
||||
systemCodes[Sbm.SystemCode.AssociationTab] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.AssociationTab] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.AssociationTab.Details, "Details", "Details"),
|
||||
new TypeCodeDesc((int)Sbm.AssociationTab.Order, "Order", "Order"),
|
||||
@@ -579,7 +579,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Interfaces.
|
||||
|
||||
// Interface types - Website.
|
||||
systemCodes[Sbm.SystemCode.InterfaceType_Website] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.InterfaceType_Website] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.InterfaceType_Website.WebStore, "WebStore", "WebStore"),
|
||||
new TypeCodeDesc((int)Sbm.InterfaceType_Website.JoomlaVirtueMart, "JoomlaVM", "Joomla VirtueMart"),
|
||||
@@ -587,14 +587,14 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Interface types - Accounts.
|
||||
systemCodes[Sbm.SystemCode.InterfaceType_Accounts] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.InterfaceType_Accounts] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.InterfaceType_Accounts.SageLine50, "SageLine50", "Sage Line 50"),
|
||||
new TypeCodeDesc((int)Sbm.InterfaceType_Accounts.QuickBooks, "QBooks", "QuickBooks")
|
||||
};
|
||||
|
||||
// Interface types - System.
|
||||
systemCodes[Sbm.SystemCode.InterfaceType_System] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.InterfaceType_System] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.InterfaceType_System.MSOutlook, "MSOutlook", "MS Outlook"),
|
||||
new TypeCodeDesc((int)Sbm.InterfaceType_System.PostcodeAnywhere, "POSTCODEANYWHERE", "Postcode Anywhere"),
|
||||
@@ -609,7 +609,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Interface types - File.
|
||||
systemCodes[Sbm.SystemCode.InterfaceType_File] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.InterfaceType_File] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.InterfaceType_File.TransactionImport, "SalesOrderImport", "Transaction import"),
|
||||
new TypeCodeDesc((int)Sbm.InterfaceType_File.TransactionExport, "SalesOrderExport", "Transaction export"),
|
||||
@@ -627,7 +627,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// InterfaceDataType.
|
||||
systemCodes[Sbm.SystemCode.InterfaceDataType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.InterfaceDataType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.InterfaceDataType.Contact, "CONTACT", "Contact"),
|
||||
new TypeCodeDesc((int)Sbm.InterfaceDataType.Association, "ASSOCIATION", "Association"),
|
||||
@@ -665,7 +665,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Associated data.
|
||||
|
||||
// Item Data Type.
|
||||
systemCodes[Sbm.SystemCode.ItemDataType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.ItemDataType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.ItemDataType.Vehicle_HpiResponse, "HPI", "HPI response"),
|
||||
new TypeCodeDesc((int)Sbm.ItemDataType.Transaction_VehicleFilter, "VehicleFilter", "Vehicle filter"),
|
||||
@@ -682,7 +682,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Organisation configuration.
|
||||
|
||||
// Organisation Option - Value.
|
||||
systemCodes[Sbm.SystemCode.OrgOption_Value] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.OrgOption_Value] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_Value.MaxTransactionsQueriedForEmptyFilter, "MaxTransEmptyFilter", "Maximum transactions queried for empty filter"),
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_Value.AlternativePromotionText, "AltPromotionText", "To be used when no promotion specified"),
|
||||
@@ -697,14 +697,14 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Organisation Option - Folder.
|
||||
systemCodes[Sbm.SystemCode.OrgOption_Folder] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.OrgOption_Folder] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_Folder.CommodityImage, "CmdImage", "Commodity image"),
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_Folder.CommodityBarcodeImage, "CmdBarcodeImage", "Commodity barcode image")
|
||||
};
|
||||
|
||||
// Organisation Option - Allow Option.
|
||||
systemCodes[Sbm.SystemCode.OrgOption_AllowOption] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.OrgOption_AllowOption] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.UpdateAssociationCode, "UpdAssocCode", "Update association code"),
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_AllowOption.CustomerAccountDetails, "CustAccntDet", "Customer account details"),
|
||||
@@ -738,7 +738,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Organisation Option - Caption
|
||||
systemCodes[Sbm.SystemCode.OrgOption_Caption] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.OrgOption_Caption] = new List<TypeCodeDesc>()
|
||||
{
|
||||
// Transaction type captions.
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_Caption.TransType_Project, "Project", "Transaction type - Project"),
|
||||
@@ -777,7 +777,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Organisation Option - Show Column.
|
||||
systemCodes[Sbm.SystemCode.OrgOption_ShowColumn] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.OrgOption_ShowColumn] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.Association_AnnualSalesTarget, "Association:AnnualSalesTarget", "Association: Annual sales target"),
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_ShowColumn.Association_Trans_LastSaleRaised, "Association:Trans:LastSaleRaised", "Association: Last SO raised"),
|
||||
@@ -807,7 +807,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Organisation Option - Show Field.
|
||||
systemCodes[Sbm.SystemCode.OrgOption_ShowField] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.OrgOption_ShowField] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_ShowField.Association_AnnualSalesTarget, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Association_AnnualSalesTarget, null, false), "Association: Annual sales target"),
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_ShowField.Address_LastVisitOn, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Address_LastVisitOn, null, false), "Address: Last visit date"),
|
||||
@@ -830,7 +830,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Organisation Option - Field Label.
|
||||
systemCodes[Sbm.SystemCode.OrgOption_FieldLabel] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.OrgOption_FieldLabel] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Commodity_CatalogRef, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_CatalogRef, null, false), "Commodity: Catalog reference"),
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_FieldLabel.Commodity_Dimensions, SbmDbDfn.GetColumnNameQual(SbmDbDfn.ColumnIdx.Commodity_Dimensions, null, false), "Commodity: Dimensions"),
|
||||
@@ -865,14 +865,14 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Organisation Option - Transaction Creation Status.
|
||||
systemCodes[Sbm.SystemCode.OrgOption_TransactionCreationStatus] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.OrgOption_TransactionCreationStatus] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_TransCreateStatus.ProformaSalesOrder, "ProFromaSalOrd", "Proforma SO creation status", "Default: 'Preparation'"),
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_TransCreateStatus.SalesOrder, "SalesOrder", "SO creation status", "Default. 'In progress'")
|
||||
};
|
||||
|
||||
// Organisation Option - Container Status Caption.
|
||||
systemCodes[Sbm.SystemCode.OrgOption_ContainerStatusCaption] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.OrgOption_ContainerStatusCaption] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_StatusContainer.Provisional, SacsSystem.GetStatusCode(SaStatus.Provisional), "Provisional"),
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_StatusContainer.Awaiting, SacsSystem.GetStatusCode(SaStatus.Awaiting), "Awaiting"),
|
||||
@@ -882,13 +882,13 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Organisation Option - Minutes.
|
||||
systemCodes[Sbm.SystemCode.OrgOption_Minutes] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.OrgOption_Minutes] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_Minutes.AutoSaveTransaction, "MinsAutoSaveTrans", "Auto save transactions (minutes)", "")
|
||||
};
|
||||
|
||||
// Organisation Option - Period Days.
|
||||
systemCodes[Sbm.SystemCode.OrgOption_PeriodDays] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.OrgOption_PeriodDays] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_PeriodDays.TransactionDatesInFuture, "TransDatesInFut", "Days in future that transaction dates can be set", ""),
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_PeriodDays.UpdateClosedTransaction, "UpdClosedTrans", "Grace period (days) for updating closed transactions", "Period after transaction closure during which updates are allowed (0-30 days)"),
|
||||
@@ -897,7 +897,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Organisation Option - Period Weeks.
|
||||
systemCodes[Sbm.SystemCode.OrgOption_PeriodWeeks] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.OrgOption_PeriodWeeks] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_PeriodWeeks.Timesheets, "Timesheets", "Weeks of timesheets to list (default 8)"),
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_PeriodWeeks.UpdateTimeRecords_Control, "UpdTimeRecsCtrl", "Weeks in past for admin user to update time records (default 2)"),
|
||||
@@ -905,7 +905,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Organisation Option - Numeric Decimals.
|
||||
systemCodes[Sbm.SystemCode.OrgOption_NumericDecimals] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.OrgOption_NumericDecimals] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_NumericDecimals.OrderQuantity, "OrdQty", "Order quantity"),
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_NumericDecimals.CommodityWeight, "CmdWeight", "Commodity weight"),
|
||||
@@ -915,13 +915,13 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// Organisation Option - Commodity Type.
|
||||
systemCodes[Sbm.SystemCode.OrgOption_CommodityType] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.OrgOption_CommodityType] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_CommodityType.CommodityCreationDefault, "CmdCreateDflt", "Commodity creation default")
|
||||
};
|
||||
|
||||
// Organisation Option - Stock Location.
|
||||
systemCodes[Sbm.SystemCode.OrgOption_StockLocation] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.OrgOption_StockLocation] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_StockLocation.SalesOrderDefault, "SalOrdDflt", "Sales order default"),
|
||||
new TypeCodeDesc((int)Sbm.OrgOption_StockLocation.PurchaseOrderDefault, "PurOrdDflt", "Purchase order default"),
|
||||
@@ -932,7 +932,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Association organisation options.
|
||||
|
||||
// AssociationOrgOption.
|
||||
systemCodes[Sbm.SystemCode.AssociationOption] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.AssociationOption] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.OrganisationOption.Value, "Value", "Value"),
|
||||
new TypeCodeDesc((int)Sbm.OrganisationOption.Folder, "Folder", "Folder"),
|
||||
@@ -956,7 +956,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// System User options.
|
||||
|
||||
// SystemUserOption.
|
||||
systemCodes[Sbm.SystemCode.SystemUserOption] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.SystemUserOption] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.SystemUserOption.Right, "SecRight", "Security Right")
|
||||
};
|
||||
@@ -965,7 +965,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Interface options.
|
||||
|
||||
// InterfaceOption.
|
||||
systemCodes[Sbm.SystemCode.InterfaceOption] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.InterfaceOption] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.InterfaceOption.Value, "Value", "Value"),
|
||||
new TypeCodeDesc((int)Sbm.InterfaceOption.Flag, "Flag", "Flag"),
|
||||
@@ -1006,7 +1006,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Generic item options.
|
||||
|
||||
// OrgOption_TaxCodeColumn. // eg. for Sage and other system interfaces.
|
||||
systemCodes[Sbm.SystemCode.OrgOption_TaxCodeColumn] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.OrgOption_TaxCodeColumn] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)SaTaxCodeColumn.Code, SbmDbDfn.GetColumnName(SbmDbDfn.ColumnIdx.TaxCode_Code), "Code"),
|
||||
new TypeCodeDesc((int)SaTaxCodeColumn.CodeAlt1, SbmDbDfn.GetColumnName(SbmDbDfn.ColumnIdx.TaxCode_CodeAlt1), "Alternative code 1"),
|
||||
@@ -1017,14 +1017,14 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Website interface configuration.
|
||||
|
||||
// InterfaceOption_WebFlag.
|
||||
systemCodes[Sbm.SystemCode.InterfaceOption_WebFlag] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.InterfaceOption_WebFlag] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.SystemInterface_Website_Flag.IncludeImminentStock, "IncImminStock", "Include imminent stock in current level"),
|
||||
new TypeCodeDesc((int)Sbm.SystemInterface_Website_Flag.AllowZeroOrderItemAmount, "AllowZeroOrdItmAmt", "Allow zero order item amount")
|
||||
};
|
||||
|
||||
// InterfaceOption_WebUploadData.
|
||||
systemCodes[Sbm.SystemCode.InterfaceOption_WebUploadData] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.InterfaceOption_WebUploadData] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.WebUploadData.Portfolio, "Portfolio", "Portfolio"),
|
||||
new TypeCodeDesc((int)Sbm.WebUploadData.StockLevels, "StockLevels", "Stock Levels"),
|
||||
@@ -1033,7 +1033,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
//InterfaceOption_WebUploadMethod.
|
||||
systemCodes[Sbm.SystemCode.InterfaceOption_WebUploadMethod] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.InterfaceOption_WebUploadMethod] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.WebUploadMethod.None, "None", "None"),
|
||||
new TypeCodeDesc((int)Sbm.WebUploadMethod.Ftp, "FTP", "FTP"),
|
||||
@@ -1041,13 +1041,13 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// InterfaceOption_WebDownloadData.
|
||||
systemCodes[Sbm.SystemCode.InterfaceOption_WebDownloadData] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.InterfaceOption_WebDownloadData] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.WebDownloadData.Orders, "Orders", "Orders")
|
||||
};
|
||||
|
||||
//InterfaceOption_WebDownloadMethod.
|
||||
systemCodes[Sbm.SystemCode.InterfaceOption_WebDownloadMethod] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.InterfaceOption_WebDownloadMethod] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.WebDownloadMethod.None, "None", "None"),
|
||||
new TypeCodeDesc((int)Sbm.WebDownloadMethod.Ftp, "FTP", "FTP"),
|
||||
@@ -1058,7 +1058,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
// Generic File Interface options.
|
||||
|
||||
// File Interface - Row Column values.
|
||||
systemCodes[Sbm.SystemCode.FileInterface_RowColValue] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.FileInterface_RowColValue] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.FileInterface_RowColValue.Row, "Row", "Row"),
|
||||
new TypeCodeDesc((int)Sbm.FileInterface_RowColValue.Col, "Col", "Column"),
|
||||
@@ -1066,7 +1066,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
};
|
||||
|
||||
// File Interface - Mode.
|
||||
systemCodes[Sbm.SystemCode.FileInterface_Mode] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.FileInterface_Mode] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.FileInterface_Mode.Csv, "CSV", "Comma separated file (csv)", ""),
|
||||
new TypeCodeDesc((int)Sbm.FileInterface_Mode.MsExcel, "MSExcel", "MS Excel workbook", "")
|
||||
@@ -1074,7 +1074,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
|
||||
//---------------------------------------------------------------
|
||||
// System User configuration.
|
||||
systemCodes[Sbm.SystemCode.OrgOption_SystemUserRight] = new List<TypeCodeDesc>()
|
||||
systemCodes[Sbm.ApplicationCode.OrgOption_SystemUserRight] = new List<TypeCodeDesc>()
|
||||
{
|
||||
new TypeCodeDesc((int)Sbm.SystemUserRight.AllAccounts, "AllAccounts", "All accounts"),
|
||||
new TypeCodeDesc((int)Sbm.SystemUserRight.Admin, "Admin", "Admin"),
|
||||
|
||||
@@ -1,5 +1,4 @@
|
||||
using Sarand.BusinessMgr.Net.Standard.Base.Consoles;
|
||||
using Sarand.BusinessMgr.Net.Standard.Base.Core;
|
||||
using Sarand.BusinessMgr.Net.Standard.Base.Mgr;
|
||||
using Sarand.BusinessMgr.Net.Standard.Base.Mgr.Control;
|
||||
using Sarand.Net.Standard.Base.App;
|
||||
@@ -16,7 +15,6 @@ using Sarand.Net.Standard.Base.UpdateLog;
|
||||
using Sarand.Net.Standard.Base.Utils;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
{
|
||||
@@ -25,10 +23,12 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
{
|
||||
//-------------------------------------------------------------------
|
||||
// Data members.
|
||||
|
||||
private static short assetCommodityTypeAllowed = -1;
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Extended logging options.
|
||||
|
||||
public enum ExtendedLogginOption
|
||||
{
|
||||
SecurityProfile,
|
||||
@@ -44,6 +44,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Construction - use derived objects.
|
||||
|
||||
protected SbmSystem(PropertySet properties)
|
||||
{
|
||||
// Configure extended logging.
|
||||
@@ -52,6 +53,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Application definitions.
|
||||
|
||||
public static Sbm.SessionConfig GetSessionConfigType(String consoleProperty)
|
||||
{
|
||||
if (consoleProperty.ContainsCI("Sarand"))
|
||||
@@ -85,19 +87,19 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// S y s t e m C o d e s
|
||||
//-------------------------------------------------------------------
|
||||
public static List<TypeCodeDesc> GetSystemCodes(Sbm.SystemCode systemCode)
|
||||
// Application codes.
|
||||
|
||||
public static List<TypeCodeDesc> GetSystemCodes(Sbm.ApplicationCode applicationCode)
|
||||
{
|
||||
List<TypeCodeDesc> codes = systemCodes.GetValueOrDefault(systemCode);
|
||||
List<TypeCodeDesc> codes = systemCodes.GetValueOrDefault(applicationCode);
|
||||
if (codes == null)
|
||||
SaLogger.Warn($"{SysUtil.Fn} Unrecognised system code type: {systemCode}.");
|
||||
SaLogger.Warn($"{SysUtil.Fn} Unrecognised system code type: {applicationCode}.");
|
||||
return codes;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// D a t a M a n a g e r s
|
||||
//-------------------------------------------------------------------
|
||||
// Data Managers.
|
||||
|
||||
public abstract SbmAccountMgr CreateAccountMgr(SbmInternals internals);
|
||||
public abstract SbmAssetMgr CreateAssetMgr(SbmInternals internals);
|
||||
public abstract SbmCommodityMgr CreateCommodityMgr(SbmInternals internals);
|
||||
@@ -113,6 +115,7 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Consoles.
|
||||
|
||||
public abstract SbmSessionConsole CreateSessionConsole(SbmInternals internals);
|
||||
public abstract SaDiaryConsole CreateDiaryConsole(SbmInternals internals);
|
||||
public abstract SaSecurityConsole CreateSecurityConsole(SbmInternals internals);
|
||||
@@ -126,8 +129,8 @@ namespace Sarand.BusinessMgr.Net.Standard.Base.App
|
||||
public abstract SbmEmailConsole CreateEmailConsole(SbmEmailConfig emailConfig);
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// A p p l i c a t i o n P r o p e r t i e s
|
||||
//-------------------------------------------------------------------
|
||||
// Application Properties.
|
||||
|
||||
public bool IsExtendedLogging(ExtendedLogginOption extendedLoggingOption)
|
||||
{
|
||||
if (extendedLoggingOptions == null) return false;
|
||||
|
||||
Reference in New Issue
Block a user