1.2.11.6
This commit is contained in:
@@ -18,7 +18,7 @@ namespace Saxonite.Net.Standard.Base.App
|
||||
//-------------------------------------------------------------------
|
||||
public static class Version
|
||||
{
|
||||
private static String version { get; } = "1.2.11.5";
|
||||
private static String version { get; } = "1.2.11.6";
|
||||
// Retrieve version.
|
||||
public static String GetFullVersion () { return version; }
|
||||
public static String GetAppVersion ()
|
||||
|
||||
@@ -50,6 +50,23 @@ namespace Saxonite.Net.Standard.Base.App
|
||||
Admin = 900,
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
public enum Environment
|
||||
{
|
||||
Development = 0,
|
||||
Staging = 50,
|
||||
Production = 90,
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
public enum InstanceType
|
||||
{
|
||||
Prod,
|
||||
UAT,
|
||||
QC,
|
||||
Dev
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
public enum Database
|
||||
{
|
||||
@@ -59,15 +76,6 @@ namespace Saxonite.Net.Standard.Base.App
|
||||
Support = 90,
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
public enum InstanceType
|
||||
{
|
||||
Production,
|
||||
UAT,
|
||||
QC,
|
||||
Dev
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
/// <summary>Yes or No option.</summary>
|
||||
public enum YesNo
|
||||
|
||||
@@ -35,8 +35,8 @@ namespace Saxonite.Net.Standard.Base.App
|
||||
public abstract IDatabaseInfo CreateDbInfo(SaxSessionContext sessionContext, Sax.Database databaseType);
|
||||
// Application instance.
|
||||
public abstract Sax.InstanceType InstanceType { get; }
|
||||
public bool IsLiveHost() { return InstanceType == Sax.InstanceType.Production; }
|
||||
public bool IsTestHost() { return InstanceType != Sax.InstanceType.Production; }
|
||||
public bool IsLiveHost() { return InstanceType == Sax.InstanceType.Prod; }
|
||||
public bool IsTestHost() { return InstanceType != Sax.InstanceType.Prod; }
|
||||
public bool IsDevHost() { return InstanceType == Sax.InstanceType.Dev; }
|
||||
public abstract String EnvironmentName { get; }
|
||||
// Email configuration.
|
||||
|
||||
@@ -7,6 +7,7 @@ using System.Collections.Generic;
|
||||
using System.Text;
|
||||
using Saxonite.Net.Standard.Base.Mgr.Support;
|
||||
using Saxonite.Net.Standard.Base.Mgr.Reference;
|
||||
using Sarand.Net.Standard.Base.Utils;
|
||||
|
||||
namespace Saxonite.Net.Standard.Base.App
|
||||
{
|
||||
@@ -22,6 +23,16 @@ namespace Saxonite.Net.Standard.Base.App
|
||||
{
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Environment.
|
||||
//-------------------------------------------------------------------
|
||||
public static Sax.Environment GetEnvironment()
|
||||
{
|
||||
if (ComputerName.ContainsCI("Sarand"))
|
||||
return Sax.Environment.Development;
|
||||
return Sax.Environment.Production;
|
||||
}
|
||||
|
||||
//-------------------------------------------------------------------
|
||||
// Business components.
|
||||
//-------------------------------------------------------------------
|
||||
|
||||
@@ -27,6 +27,8 @@ namespace Saxonite.Net.Standard.Base.Bus.Reference
|
||||
EntCountryCode,
|
||||
CountryName,
|
||||
// Associated data.
|
||||
ProvinceCount_All,
|
||||
ProvinceCount_Active,
|
||||
// Common.
|
||||
Notes,
|
||||
Flags,
|
||||
@@ -201,6 +203,10 @@ namespace Saxonite.Net.Standard.Base.Bus.Reference
|
||||
public String CountryCodeFull { get; set; }
|
||||
public String CountryNameFull { get; set; }
|
||||
public String CountryNamePartial { get; set; }
|
||||
// Flags.
|
||||
public FlagState PriorityFlagState { get; set; } = FlagState.Either;
|
||||
// Associated data.
|
||||
public BoolState HasProvinces { get; set; } = BoolState.Either;
|
||||
// Common properties.
|
||||
public String NotesPartial { get; set; }
|
||||
public StatusCat StatusCat { get; set; } = StatusCat.ActiveOnly;
|
||||
|
||||
@@ -373,6 +373,11 @@ namespace Saxonite.Net.Standard.Base.Bus.Reference
|
||||
public String CourseFilter { get; set; }
|
||||
public String CourseNameFull { get; set; }
|
||||
public String CourseNamePartial { get; set; }
|
||||
public BoolState HasMarkersData { get; set; } = BoolState.Either;
|
||||
// Flags.
|
||||
public FlagState PriorityFlagState { get; set; } = FlagState.Either;
|
||||
// Associated data.
|
||||
public BoolState HasMarkers { get; set; } = BoolState.Either;
|
||||
// Common properties.
|
||||
public String NotesPartial { get; set; }
|
||||
public StatusCat StatusCat { get; set; } = StatusCat.ActiveOnly;
|
||||
|
||||
@@ -216,6 +216,10 @@ namespace Saxonite.Net.Standard.Base.Bus.Reference
|
||||
public String ProvinceCodeFull { get; set; }
|
||||
public String ProvinceNameFull { get; set; }
|
||||
public String ProvinceNamePartial { get; set; }
|
||||
// Flags.
|
||||
public FlagState PriorityFlagState { get; set; } = FlagState.Either;
|
||||
// Associated data.
|
||||
public BoolState HasFacilities { get; set; } = BoolState.Either;
|
||||
// Common properties.
|
||||
public String NotesPartial { get; set; }
|
||||
public StatusCat StatusCat { get; set; } = StatusCat.ActiveOnly;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
{
|
||||
"AppConfigs": {
|
||||
"SAX-Prod": {
|
||||
"Environments": [ "Production" ],
|
||||
"Instance": "",
|
||||
"Environments": [ "Production", "Demo", "Staging" ],
|
||||
"Instance": "Demo",
|
||||
"URLs": {
|
||||
"Online": {
|
||||
"Root": "https://sportierre.com/"
|
||||
@@ -62,13 +62,13 @@
|
||||
},
|
||||
"Variants": [
|
||||
{
|
||||
"ApplicationRootFolder": "C:\\Sarand\\Saxonite\\Demo",
|
||||
"Instance": "Demo",
|
||||
"ApplicationRootFolder": "C:\\Sarand\\Saxonite\\Prod",
|
||||
"Instance": "Prod",
|
||||
"Documents": {
|
||||
"RootFolder": "C:\\Sarand\\Saxonite\\Demo\\Docs"
|
||||
"RootFolder": "C:\\Sarand\\Saxonite\\Prod\\Docs"
|
||||
},
|
||||
"Logging": {
|
||||
"RootFolder": "C:\\Sarand\\Saxonite\\Demo\\Logs"
|
||||
"RootFolder": "C:\\Sarand\\Saxonite\\Prod\\Logs"
|
||||
}
|
||||
}
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user