Ejemplo n.º 1
0
        public static void ConfigureSettings()
        {
#if HOME
            //
            //FEMI-PC\SQLEXPRESS
            if (Configuration2.getSetting("DBServerName") == string.Empty)
            {
                Configuration2.writeSetting("DBServerName", @"FEMMY-HP\SQLEXPRESS", false);
            }
            if (Configuration2.getSetting("DBName") == string.Empty)
            {
                Configuration2.writeSetting("DBName", "TaxSmartSuiteRevised", false);
            }
            if (Configuration2.getSetting("DBUsername") == string.Empty)
            {
                Configuration2.writeSetting("DBUsername", "sa", false);
            }
            if (Configuration2.getSetting("DBPassword") == string.Empty)
            {
                Configuration2.writeSetting("DBPassword", "bond", true);
            }
            if (Configuration2.getSetting("EncryptionKey") == string.Empty)
            {
                Configuration2.writeSetting("EncryptionKey", "ReemsonlineKeyPass7676777", false);
            }
#else
            if (Configuration2.getSetting("ServerName") == string.Empty)
            {
                Configuration2.writeSetting("ServerName", @"Server", false);
            }
            if (Configuration2.getSetting("DatabaseName") == string.Empty)
            {
                Configuration2.writeSetting("DatabaseName", "TaxSmartSuiteRevised", false);
            }
            if (Configuration2.getSetting("Username") == string.Empty)
            {
                Configuration2.writeSetting("Username", "sa", false);
            }
            var password = EncryptionConfiguration.EncryptString("1964", "moses");
            if (Configuration2.getSetting("Password") == string.Empty)
            {
                Configuration2.writeSetting("Password", password, false);
            }
            if (Configuration2.getSetting("EncryptionKey") == string.Empty)
            {
                Configuration2.writeSetting("EncryptionKey", "ReemsonlineKeyPass7676777", false);
            }
#endif
            Program.ServerName = Configuration2.getSetting("ServerName");
        }
Ejemplo n.º 2
0
        public static void ConfigureSettings()
        {
            //TaxSmartSuiteRevised_Oyo
#if HOME
            if (Configuration2.getSetting("DBServerName") == string.Empty)
            {
                Configuration2.writeSetting("DBServerName", @"OLUWAFEMI-PC\SQLEXPRESS", false);
            }
            if (Configuration2.getSetting("DBName") == string.Empty)
            {
                Configuration2.writeSetting("DBName", "TaxSmartSuiteRevised_Oyo", false);
            }
            if (Configuration2.getSetting("DBUsername") == string.Empty)
            {
                Configuration2.writeSetting("DBUsername", "sa", false);
            }
            if (Configuration2.getSetting("DBPassword") == string.Empty)
            {
                Configuration2.writeSetting("DBPassword", "bond", true);
            }
            if (Configuration2.getSetting("EncryptionKey") == string.Empty)
            {
                Configuration2.writeSetting("EncryptionKey", "ReemsonlineKeyPass7676777", false);
            }
#else
            if (Configuration2.getSetting("DBServerName") == string.Empty)
            {
                Configuration2.writeSetting("DBServerName", @"station1-PC", false);
            }
            if (Configuration2.getSetting("DBName") == string.Empty)
            {
                Configuration2.writeSetting("DBName", "TaxSmartSuiteRevised_oyo", false);
            }
            if (Configuration2.getSetting("DBUsername") == string.Empty)
            {
                Configuration2.writeSetting("DBUsername", "sa", false);
            }
            if (Configuration2.getSetting("DBPassword") == string.Empty)
            {
                Configuration2.writeSetting("DBPassword", "", false);
            }
            if (Configuration2.getSetting("EncryptionKey") == string.Empty)
            {
                Configuration2.writeSetting("EncryptionKey", "ReemsonlineKeyPass7676777", false);
            }
#endif
            //Program.ServerName = Configuration2.getSetting("DBServerName");
            //Configuration.writeSetting("ConStr", BuildSQLConnectionString, false);
            //Common.EncryptionKey = Configuration.getSetting("EncryptionKey");
        }
Ejemplo n.º 3
0
        /// <summary>
        /// Load Application Settings
        /// </summary>
        public static void ConfigureSettings()
        {
#if HOME
            if (Configuration2.getSetting("DBServerName") == string.Empty)
            {
                Configuration2.writeSetting("DBServerName", @"MOSES-ICMA\SQLEXPRESS2008", false);
            }
            if (Configuration2.getSetting("DBName") == string.Empty)
            {
                Configuration2.writeSetting("DBName", "TaxSmartSuiteRevised", false);
            }
            if (Configuration2.getSetting("DBUsername") == string.Empty)
            {
                Configuration2.writeSetting("DBUsername", "sa", false);
            }
            if (Configuration2.getSetting("DBPassword") == string.Empty)
            {
                Configuration2.writeSetting("DBPassword", "moses", true);
            }
            if (Configuration2.getSetting("EncryptionKey") == string.Empty)
            {
                Configuration2.writeSetting("EncryptionKey", "ReemsonlineKeyPass7676777", false);
            }
#else
            if (Configuration2.getSetting("DBServerName") == string.Empty)
            {
                Configuration2.writeSetting("DBServerName", @"Server", false);
            }
            if (Configuration2.getSetting("DBName") == string.Empty)
            {
                Configuration2.writeSetting("DBName", "TaxSmartSuiteRevised", false);
            }
            if (Configuration2.getSetting("DBUsername") == string.Empty)
            {
                Configuration2.writeSetting("DBUsername", "sa", false);
            }
            if (Configuration2.getSetting("DBPassword") == string.Empty)
            {
                Configuration2.writeSetting("DBPassword", "icma", true);
            }
            if (Configuration2.getSetting("EncryptionKey") == string.Empty)
            {
                Configuration2.writeSetting("EncryptionKey", "ReemsonlineKeyPass7676777", false);
            }
#endif
            Program.ServerName = Configuration2.getSetting("DBServerName");
            //Configuration.writeSetting("ConStr", BuildSQLConnectionString, false);
            //Common.EncryptionKey = Configuration.getSetting("EncryptionKey");
        }
Ejemplo n.º 4
0
        public static void ConfigureSettings()
        {
#if HOME
            //
            //FEMI-PC\SQLEXPRESS
            if (Configuration2.getSetting("DBServerName") == string.Empty)
            {
                Configuration2.writeSetting("DBServerName", @"OLUWAFEMI-PC\SQLEXPRESS", false);
            }
            if (Configuration2.getSetting("DBName") == string.Empty)
            {
                Configuration2.writeSetting("DBName", "TaxSmartSuiteRevised", false);
            }
            if (Configuration2.getSetting("DBUsername") == string.Empty)
            {
                Configuration2.writeSetting("DBUsername", "sa", false);
            }
            if (Configuration2.getSetting("DBPassword") == string.Empty)
            {
                Configuration2.writeSetting("DBPassword", "bond", true);
            }
            if (Configuration2.getSetting("EncryptionKey") == string.Empty)
            {
                Configuration2.writeSetting("EncryptionKey", "ReemsonlineKeyPass7676777", false);
            }
#else
            if (Configuration2.getSetting("DBServerName") == string.Empty)
            {
                Configuration2.writeSetting("DBServerName", @"Server", false);
            }
            if (Configuration2.getSetting("DBName") == string.Empty)
            {
                Configuration2.writeSetting("DBName", "TaxSmartSuiteRevised", false);
            }
            if (Configuration2.getSetting("DBUsername") == string.Empty)
            {
                Configuration2.writeSetting("DBUsername", "sa", false);
            }
            if (Configuration2.getSetting("DBPassword") == string.Empty)
            {
                Configuration2.writeSetting("DBPassword", "icma", true);
            }
            if (Configuration2.getSetting("EncryptionKey") == string.Empty)
            {
                Configuration2.writeSetting("EncryptionKey", "ReemsonlineKeyPass7676777", false);
            }
#endif
        }