Пример #1
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;
 }
Пример #2
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);
        }
Пример #3
0
 public InformacaoCurso(EnumTipoInformacao _TipoInformacao, int _IdCurso, string _ConteudoInformacao)
 {
     this.TipoInformacao     = _TipoInformacao;
     this.IdCurso            = _IdCurso;
     this.ConteudoInformacao = _ConteudoInformacao;
 }
 public InformacaoDocumento(EnumTipoInformacao _TipoInformacao, int _IdDocumento, string _ConteudoInformacao)
 {
     this.TipoInformacao     = _TipoInformacao;
     this.IdDocumento        = _IdDocumento;
     this.ConteudoInformacao = _ConteudoInformacao;
 }