Beispiel #1
0
 void IConsulta.CobrarConsulta(Usuario usuario, string intIdPessoa, int intTipoConsulta, int idHistoricoLogin)
 {
     try
     {
         object obj2 = "INTOUCH..[BIINTOUCH.COBRARCONSULTA] @ID_CLIENTE = " + usuario.IdCliente.ToString();
         DbIntouch.ExecuteNonQuery(string.Concat(new object[] { obj2, ", @ID_LOGIN="******", @ID_UNIT='", intIdPessoa, "' , @TIPO_CONSULTA=", intTipoConsulta, ",@ID_HISTORICO_LOGIN=", idHistoricoLogin }));
     }
     catch (Exception exception)
     {
         throw new Exception(exception.Message);
     }
 }
Beispiel #2
0
        void IPessoaRestrita.InserirInformacoesPessoa(PessoaRestrita pessoaRestrita)
        {
            StringBuilder builder = new StringBuilder();

            try
            {
                builder.Append("[BIINTOUCH.INSERE_PESSOAS_RESTRITAS] ");
                builder.Append("@NOMEART ='" + pessoaRestrita._nomeArtistico + "', ");
                builder.Append("@NOME = '" + pessoaRestrita._nome + "',");
                builder.Append("@CPF = '" + pessoaRestrita._cpf + "',");
                builder.Append("@DATANASCIMENTO ='" + pessoaRestrita._dataNasc + "', ");
                builder.Append("@IDADE = '" + pessoaRestrita._idade + "', ");
                builder.Append("@ESTADO ='" + pessoaRestrita._uf + "', ");
                builder.Append("@CIDADE ='" + pessoaRestrita._cidade + "'");
                DbIntouch.ExecuteNonQuery(builder.ToString());
            }
            catch (Exception)
            {
            }
        }
        void IAgendamentoRelatorio.Inserir(AgendamentoRelatorio agendamento)
        {
            StringBuilder builder = new StringBuilder();

            builder.Append(" [BIINTOUCH.CRIAR_AGENDAMENTORELATORIO] ");
            builder.Append("    " + agendamento._idClienteSolicitante.ToString());
            builder.Append("    ,'" + agendamento._loginSolicitante + "'");
            builder.Append("    ,'" + agendamento._dtInicio + "'");
            builder.Append("    ,'" + agendamento._dtFim + "'");
            builder.Append("    ,'" + agendamento._nomeCliente + "'");
            builder.Append("    ,'" + agendamento._nomeUsuario + "'");
            builder.Append("    ,'" + agendamento._tipo + "'");
            builder.Append("    ,'" + agendamento._opcoesUsuario + "'");
            builder.Append("    ,'" + agendamento._comando + "'");
            builder.Append("    ,'" + agendamento._comando2 + "'");
            builder.Append("    ,'" + agendamento._relatorio + "'");
            builder.Append("    ,'" + DateTime.Now.ToString("yyyy-MM-dd HH:MM:ss") + "'");
            builder.Append("    ," + Convert.ToInt32(agendamento._fgRelatorioDetalhado).ToString());
            builder.Append("    ," + Convert.ToInt32(agendamento._fgOk).ToString());
            DbIntouch.ExecuteNonQuery(builder.ToString());
        }
Beispiel #4
0
        DataTable IConsulta.CarregaEmpresasLigadas(string idUnitPj, Usuario usuario, int idHistoricoLogin)
        {
            DataTable table = new DataTable();
            string    cmd   = "[BIINTOUCH.CARREGAEMPRESASLIGADAS] @ID_UNIT_PJ=" + idUnitPj;
            object    obj2  = "INTOUCH..[BIINTOUCH.COBRARCONSULTA] @ID_CLIENTE = " + usuario.IdCliente.ToString();
            string    str2  = string.Concat(new object[] { obj2, ", @ID_LOGIN="******", @ID_UNIT='", idUnitPj, "' , @TIPO_CONSULTA=3,@ID_HISTORICO_LOGIN=", idHistoricoLogin });

            try
            {
                table = DbIntouch.ExecuteDataTable(cmd);
                if (table != null)
                {
                    DbIntouch.ExecuteNonQuery(str2);
                }
            }
            catch (Exception exception)
            {
                throw new Exception(exception.Message);
            }
            return(table);
        }
Beispiel #5
0
        string ICampanhaAtualizeSuaSorte.PontuarCampanha(string CPFParticipante, EnumTipoInformacao enumTipoInformacao, int identificadorInformacao)
        {
            string str = string.Empty;

            try
            {
                string        str2    = this.ExecuteScalar("[PR_GET_RASPADINHA]  ");
                StringBuilder builder = new StringBuilder();
                builder.Append("[BIINTOUCH.INSERIR_PONTOS_CAMPANHA_ATUALIZE_SUA_SORTE] ");
                builder.Append("@CPF_PARTICIPANTE='" + CPFParticipante + "',");
                builder.Append("@ID_TIPO_INFORMACAO=" + ((int)enumTipoInformacao) + ",");
                builder.Append("@IDENTIFICADOR_INFORMACAO=" + identificadorInformacao + ",");
                builder.Append("@CODIGO_RASPADINHA='" + str2 + "'");
                DbIntouch.ExecuteNonQuery(builder.ToString());
                str = DbIntouch.ExecuteScalar("[BIINTOUCH.GET_QTD_PONTOS_CAMPANHA_ATUALIZE_SUA_SORTE] @CPF_PARTICIPANTE = '" + CPFParticipante + "'");
            }
            catch (Exception)
            {
            }
            return(str);
        }