Exemplo n.º 1
0
        private void ResponderBuscarItensParaListagemSimples()
        {
            var lRequest = new ConsultarEntidadeCadastroRequest <EmailDisparadoPeriodoInfo>()
            {
                IdUsuarioLogado = base.UsuarioLogado.Id, DescricaoUsuarioLogado = base.UsuarioLogado.Nome
            };
            var lResponse = new ConsultarEntidadeCadastroResponse <EmailDisparadoPeriodoInfo>();

            try
            {
                EmailDisparadoPeriodoInfo lInfo = new EmailDisparadoPeriodoInfo()
                {
                    DtDe                = this.GetDataInicial,
                    DtAte               = this.GetDataFinal.AddDays(1D),
                    ETipoEmailDisparo   = this.GetTipoEmail,
                    DsEmailDestinatario = this.GetEmailDestinatario,
                    TipoPessoa          = this.GetTipoPessoa,
                    IdCliente           = this.GetCodCliente,
                    DsCpfCnpj           = this.GetCpfCnpj
                };

                lRequest.EntidadeCadastro = lInfo;

                lResponse = this.ServicoPersistenciaCadastro.ConsultarEntidadeCadastro <EmailDisparadoPeriodoInfo>(lRequest);

                if (MensagemResponseStatusEnum.OK.Equals(lResponse.StatusResposta))
                {
                    if (lResponse.Resultado.Count > 0)
                    {
                        IEnumerable <TransporteRelatorio_008> lLista = from EmailDisparadoPeriodoInfo i in lResponse.Resultado select new TransporteRelatorio_008(i);

                        if (lLista.Count() >= gTamanhoDaParte)
                        {
                            this.ListaDeResultados = lLista;

                            this.rptRelatorio.DataSource = BuscarParte(1);

                            rowLinhaCarregandoMais.Visible = true;
                        }
                        else
                        {
                            this.rptRelatorio.DataSource = lLista;
                        }

                        this.rptRelatorio.DataBind();

                        rowLinhaDeNenhumItem.Visible = false;
                    }
                    else
                    {
                        rowLinhaDeNenhumItem.Visible = true;
                    }
                }
            }
            catch (Exception exBusca)
            {
                throw exBusca;
            }
        }
Exemplo n.º 2
0
 public TransporteRelatorio_008(EmailDisparadoPeriodoInfo pInfo)
 {
     this.Nome                = pInfo.DsNome.DBToString();
     this.Bovespa             = pInfo.CdCodigo;
     this.CpfCnpj             = pInfo.DsCpfCnpj.ToCpfCnpjString();
     this.Email               = pInfo.DsEmailDestinatario;
     this.DataDeEnvio         = pInfo.DtEnvio.ToString("dd/MM/yyyy HH:mm:ss");
     this.DsEmailRemetente    = pInfo.DsEmailRemetente;
     this.DsEmailDestinatario = pInfo.DsEmailDestinatario;
     this.Assunto             = pInfo.DsAssuntoEmail;
     this.Perfil              = pInfo.DsPerfil.DBToString();
 }