Example #1
0
        private void ResponderBuscarItensParaListagemSimples()
        {
            var lRequest = new ConsultarEntidadeCadastroRequest <ClienteInativoInfo>()
            {
                IdUsuarioLogado = base.UsuarioLogado.Id, DescricaoUsuarioLogado = base.UsuarioLogado.Nome
            };
            var lResponse = new ConsultarEntidadeCadastroResponse <ClienteInativoInfo>();

            try
            {
                ClienteInativoInfo lInfo = new ClienteInativoInfo()
                {
                    IdAssessor = GetAssessor, DsCpfCnpj = GetCpfCnpj, TipoPessoa = GetTipoPessoa
                };

                lRequest.EntidadeCadastro = lInfo;

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

                if (lResponse.StatusResposta == MensagemResponseStatusEnum.OK)
                {
                    if (lResponse.Resultado.Count > 0)
                    {
                        IEnumerable <TransporteRelatorio_010> lLista = from ClienteInativoInfo i in lResponse.Resultado select new TransporteRelatorio_010(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;
            }
        }
Example #2
0
 public TransporteRelatorio_010(ClienteInativoInfo pInfo)
 {
     this.Id             = pInfo.IdCliente.DBToString();
     this.Nome           = pInfo.DsNomeCliente.DBToString();
     this.CpfCnpj        = pInfo.DsCpfCnpj.DBToString();
     this.TipoDePessoa   = pInfo.TipoPessoa.DBToString();
     this.DataDeCadastro = pInfo.DtCadastro.ToString("dd/MM/yyyy");
     this.Email          = pInfo.DsEmail.DBToString();
     this.Assessor       = pInfo.IdAssessor.DBToString();
     this.Conta          = pInfo.CdConta.DBToString();
     this.TipoConta      = pInfo.DsConta.DBToString();
 }