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"); }