Exemple #1
0
        public Util()
        {
            if (ConfigurationManager.AppSettings["WMS_BD"] == "ORACLE")
            {
                objDATA = new WMSData.Oracle();
                PKG_NAME = "SYS.PKG_Cadastrar.";
                SQL = false;
            }
            else if (ConfigurationManager.AppSettings["WMS_BD"] == "SQL")
                objDATA = new WMSData.SQL();

            // Recupera a string de Conexão
            objDATA.CONNECTION_STRING = ConfigurationManager.ConnectionStrings["WMS_CONNECTION"].ConnectionString;
        }
Exemple #2
0
        public Util()
        {
            if (ConfigurationManager.AppSettings["WMS_BD"] == "ORACLE")
            {
                objDATA  = new WMSData.Oracle();
                PKG_NAME = "SYS.PKG_Cadastrar.";
                SQL      = false;
            }
            else if (ConfigurationManager.AppSettings["WMS_BD"] == "SQL")
            {
                objDATA = new WMSData.SQL();
            }

            // Recupera a string de Conexão
            objDATA.CONNECTION_STRING = ConfigurationManager.ConnectionStrings["WMS_CONNECTION"].ConnectionString;
        }