>public class MiddlewareBase > { > public Request CurrentRequest; > public LocalIni iniFile; > > private Database _database; > public Database database > { > get { return _database; } > set { _database = value; } > } > internal String CurrentSalespoint { get; private set; } > internal String CurrentOperator { get; private set; } > internal Int16 nPrefsSiteNo { get; set; } > internal Int16 nClientNumber { get; set; } > > public static readonly DateTime DTSqlMinDate = DateTime.Parse("1900-01-01"); > > public static readonly String ServerName = "SalesEZ"; //"Siriusware.Middleware"; // used to be SalesEZ > public static readonly String GenericOperator = "SEZDTL"; // used in lcDTL in ValidatePass2 > > public MiddlewareBase() > { > iniFile = new LocalIni(); > }>
> this.nPrefsSiteNo = (Int16)database.GetPreferenceInt("prefs", "site_no");>
>public class MiddlewareBase > { > public Request CurrentRequest; > public readonly LocalIni iniFile = new LocalIni(); // here > > private Database _database; > public Database database > { > get { return _database; } > set { _database = value; } > } > internal String CurrentSalespoint { get; private set; } > internal String CurrentOperator { get; private set; } > internal Int16 nPrefsSiteNo { get; set; } > internal Int16 nClientNumber { get; set; } > > public static readonly DateTime DTSqlMinDate = DateTime.Parse("1900-01-01"); > > public static readonly String ServerName = "SalesEZ"; //"Siriusware.Middleware"; // used to be SalesEZ > public static readonly String GenericOperator = "SEZDTL"; // used in lcDTL in ValidatePass2 > > // public MiddlewareBase() > // { > // iniFile = new LocalIni(); > // }>
>public class MiddlewareBase > { > public Request CurrentRequest; > public readonly LocalIni iniFile = new LocalIni(); // here > > private Database _database; > public Database database > { > get { return _database; } > private set { _database = value; nPrefsSiteNo = (Int16)database.GetPreferenceInt("prefs", "site_no"); } > } > internal String CurrentSalespoint { get; private set; } > internal String CurrentOperator { get; private set; } > internal Int16 nPrefsSiteNo { get; set; } > internal Int16 nClientNumber { get; set; } > > public static readonly DateTime DTSqlMinDate = DateTime.Parse("1900-01-01"); > > public static readonly String ServerName = "SalesEZ"; //"Siriusware.Middleware"; // used to be SalesEZ > public static readonly String GenericOperator = "SEZDTL"; // used in lcDTL in ValidatePass2 > > public MiddlewareBase( Database database) > { this.database = database; > }>