public void CargarDatos(ComprobanteBL comprobanteBL, DonantesBL donantesBL) { var bindingSource = new BindingSource(); bindingSource.DataSource = from c in comprobanteBL.ListadeComprobantes select new { Id = c.Id, Fecha = c.Fecha, Donantes = donantesBL .ListadeDonantes .FirstOrDefault(r => r.Id == c.DonantesId).Nombre, Subtotal = c.Subtotal, Impuesto = c.Impuesto, Total = c.Total, Activo = c.Activo }; var reporte = new RepordeComprobante(); reporte.SetDataSource(bindingSource); crystalReportViewer1.ReportSource = reporte; crystalReportViewer1.RefreshReport(); }
public Menu() { InitializeComponent(); _donantesBL = new DonantesBL(); _tipodeSangreBL = new TipodeSangreBL(); _generoBL = new GeneroBL(); _comprobanteBL = new ComprobanteBL(); _usuarioBL = new UsuarioBL(); }
public Menu() { InitializeComponent(); Bitmap img = new Bitmap(Application.StartupPath + @"\img\Fondo3.jpg"); this.BackgroundImage = img; _donantesBL = new DonantesBL(); _tipodeSangreBL = new TipodeSangreBL(); _generoBL = new GeneroBL(); _comprobanteBL = new ComprobanteBL(); }
public void CargarDatos(ComprobanteBL comprobanteBL, DonantesBL donantesBL, TipodeSangreBL tipodeSangreBL) { _comprobanteBL = comprobanteBL; listadeComprobantesBindingSource.DataSource = comprobanteBL.ListadeComprobantes; listadeDonantesBindingSource.DataSource = donantesBL.ListadeDonantes; listadeSangreBindingSource.DataSource = tipodeSangreBL.ListadeSangre; }