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 FormAgregar() { InitializeComponent(); _donantes = new DonantesBL(); listaDonantesBindingSource.DataSource = _donantes.ObtenerDonantes(); }
public void CargarDatos(DonantesBL donantesBL, GeneroBL generoBL, TipodeSangreBL tipodeSangre) { listadeDonantesBindingSource.DataSource = donantesBL.ListadeDonantes; listaDeGenerosBindingSource.DataSource = generoBL.ListaDeGeneros; listadeSangreBindingSource.DataSource = tipodeSangre.ListadeSangre; }
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(); }
public DonantesSanos() { InitializeComponent(); _donantesBL = new DonantesBL(); _tipodeSangreBL = new TipodeSangreBL(); _generoBL = new GeneroBL(); listadeDonantesBindingSource.DataSource = _donantesBL.ListadeDonantes; listaDonantesSanosBindingSource.DataSource = _donantesBL.ListaDonantesSanos; listadeSangreBindingSource.DataSource = _tipodeSangreBL.ListadeSangre; listaDeGenerosBindingSource.DataSource = _generoBL.ListaDeGeneros; }
public FormFactura() { InitializeComponent(); _facturaBL = new FacturaBL(); listaFacturasBindingSource.DataSource = _facturaBL.ObtenerFacturas(); _clientesBL = new ClientesBL(); listaClientesBindingSource.DataSource = _clientesBL.ObtenerClientes(); _donantesBL = new DonantesBL(); listaDonantesBindingSource.DataSource = _donantesBL.ObtenerDonantes(); }
public FormDonantes() { InitializeComponent(); _donantes = new DonantesBL(); listaDonantesBindingSource.DataSource = _donantes.ObtenerDonantes(); _categorias = new CategoriasBL(); listaCategoriasBindingSource.DataSource = _categorias.ObtenerCategorias(); _tipos = new TiposBL(); listaTiposBindingSource.DataSource = _tipos.ObtenerTipos(); }
public void CargarDatos(ComprobanteBL comprobanteBL, DonantesBL donantesBL, TipodeSangreBL tipodeSangreBL) { _comprobanteBL = comprobanteBL; listadeComprobantesBindingSource.DataSource = comprobanteBL.ListadeComprobantes; listadeDonantesBindingSource.DataSource = donantesBL.ListadeDonantes; listadeSangreBindingSource.DataSource = tipodeSangreBL.ListadeSangre; }
public FormReporteDonantes() { InitializeComponent(); var _donantesBL = new DonantesBL(); var bidingSource = new BindingSource(); bidingSource.DataSource = _donantesBL.ObtenerDonantes(); var reporte = new ReporteDonantes(); reporte.SetDataSource(bidingSource); crystalReportViewer1.ReportSource = reporte; crystalReportViewer1.RefreshReport(); }