My report is printed but the details section is printed 2 times!!! See the attachs.
My BO:
Code: Select all
namespace GestorWebNet.Models.View.Financeiro.Caixa
{
public class HistoricoAberturaFechamentoVisualizarView
{
public HistoricoAberturaFechamentoVisualizarView()
{
Lancamentos = new List<HistoricoAberturaFechamentoVisualizarLancamentosView>();
Cartoes = new List<HistoricoAberturaFechamentoVisualizarCartaoView>();
Cheques = new List<HistoricoAberturaFechamentoVisualizarChequesView>();
}
public int Codigo { get; set; }
public string Caixa { get; set; }
public DateTime DataAbertura { get; set; }
public decimal ValorAbertura { get; set; }
public DateTime? DataFechamento { get; set; }
public decimal ValorFechamento { get; set; }
public string ObsAbertura { get; set; }
public string ObsFechamento { get; set; }
public string UsuarioAbertura { get; set; }
public string UsuarioFechamento { get; set; }
public bool AberturaAutomatica { get; set; }
public bool FechamentoAutomatico { get; set; }
public decimal ValorSangria { get; set; }
public decimal ValorSuprimento { get; set; }
public List<HistoricoAberturaFechamentoVisualizarLancamentosView> Lancamentos { get; set; }
public List<HistoricoAberturaFechamentoVisualizarCartaoView> Cartoes { get; set; }
public List<HistoricoAberturaFechamentoVisualizarChequesView> Cheques { get; set; }
}
public class HistoricoAberturaFechamentoVisualizarLancamentosView
{
public int Codigo { get; set; }
public decimal ValorEntrada { get; set; }
public decimal ValorSaida { get; set; }
public decimal SaldoAtual { get; set; }
public string Descricao { get; set; }
public DateTime Data { get; set; }
}
public class HistoricoAberturaFechamentoVisualizarCartaoView
{
public int PedidoBalcao { get; set; }
public decimal Valor { get; set; }
public string Administradora { get; set; }
public string Descricao { get; set; }
public string CreditoDebito { get; set; }
}
public class HistoricoAberturaFechamentoVisualizarChequesView
{
public int Codigo { get; set; }
public string Banco { get; set; }
public string Agencia { get; set; }
public string Conta { get; set; }
public string NumeroCheque { get; set; }
[DisplayFormat(DataFormatString="{0:dd/MM/yyyy}")]
public DateTime DataCheque { get; set; }
public decimal Valor { get; set; }
public int PedidoBalcao { get; set; }
public string Descricao { get; set; }
}
}
I did a small test. If I inset the Cartoes data, the sections are printed 3 times! What I'm doing wrong?
Data to be printed: