public TransporteRelatorio_029(LancamentoTEDInfo pInfo) { this.DataMovimento = pInfo.DataMovimento.ToString("dd/MM/yyyy"); this.CodigoCliente = pInfo.CodigoCliente; this.NomeCliente = pInfo.NomeCliente; this.NumeroLancamento = pInfo.NumeroLancamento; this.Descricao = pInfo.Descricao; this.Valor = pInfo.Valor.ToString("N2"); }
private void ResponderBuscarItensParaListagemSimples() { var lRequest = new ConsultarEntidadeCadastroRequest <LancamentoTEDInfo>() { IdUsuarioLogado = base.UsuarioLogado.Id, DescricaoUsuarioLogado = base.UsuarioLogado.Nome }; var lResponse = new ConsultarEntidadeCadastroResponse <LancamentoTEDInfo>(); string lPrefixo = this.PrefixoDaRaiz; try { var lInfo = new LancamentoTEDInfo() { CodigoCliente = this.GetCodCliente, DtDe = this.GetDataInicial, DtAte = this.GetDataFinal.Value.AddDays(1D), }; lRequest.EntidadeCadastro = lInfo; lResponse = this.ServicoPersistenciaCadastro.ConsultarEntidadeCadastro <LancamentoTEDInfo>(lRequest); if (lResponse.StatusResposta == MensagemResponseStatusEnum.OK) { if (lResponse.Resultado.Count > 0) { IEnumerable <TransporteRelatorio_029> lLista = from LancamentoTEDInfo i in lResponse.Resultado select new TransporteRelatorio_029(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; } }