Exemplo n.º 1
0
        public void Inicializar(bool FecharAutomaticamenteConexao)
        {
            CarregarPropriedadesAcesso();
            this.objFuncoesBanco = ObjetoFuncoesBanco.CriaInstancia(MS_DRIVER);
            this.objFuncoesBanco.SetObjetoTabelas(this);
            this.MantemConexaoAberta = (!FecharAutomaticamenteConexao);
            ConfigurarConectarBase(MS_SERVERNAME, MS_DATABASENAME,
                                   this.MantemConexaoAberta);

            if (objHlpDbFuncoes == null)
            {
                objHlpDbFuncoes = new HlpDbFuncoes(this);
            }

            this.RamoAtividade = objHlpDbFuncoes.qrySeekValue(
                "ARQSISTE", "CD_RA", "(NM_ARQUIVO = 'ACESSO')");
            this.CodigoCliente = objHlpDbFuncoes.fMemoStr("0016");
        }
Exemplo n.º 2
0
        public static FuncoesEspecificasBanco CriaInstancia(string sTipoBanco)
        {
            FuncoesEspecificasBanco objFuncoes = null;

            switch (sTipoBanco)
            {
            case "INTRBASE":
                objFuncoes = new FuncoesFirebird();
                break;

            case "MSSQL":
                //objFuncoes = new FuncoesSql();
                break;

            case "ORACLE":
                // objFuncoes = new FuncoesOracle();
                break;
            }
            return(objFuncoes);
        }
Exemplo n.º 3
0
        public void Inicializar(bool FecharAutomaticamenteConexao)
        {
            CarregarPropriedadesAcesso();
            this.objFuncoesBanco = ObjetoFuncoesBanco.CriaInstancia(MS_DRIVER);
            this.objFuncoesBanco.SetObjetoTabelas(this);
            this.MantemConexaoAberta = (!FecharAutomaticamenteConexao);
            ConfigurarConectarBase(MS_SERVERNAME, MS_DATABASENAME,
                this.MantemConexaoAberta);

            if (objHlpDbFuncoes == null)
                objHlpDbFuncoes = new HlpDbFuncoes(this);

            this.RamoAtividade = objHlpDbFuncoes.qrySeekValue(
                "ARQSISTE", "CD_RA", "(NM_ARQUIVO = 'ACESSO')");
            this.CodigoCliente = objHlpDbFuncoes.fMemoStr("0016");
        }