Esempio n. 1
0
        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();
        }
Esempio n. 2
0
        public FormAgregar()
        {
            InitializeComponent();

            _donantes = new DonantesBL();
            listaDonantesBindingSource.DataSource = _donantes.ObtenerDonantes();
        }
Esempio n. 3
0
        public void CargarDatos(DonantesBL donantesBL, GeneroBL generoBL, TipodeSangreBL tipodeSangre)
        {
            listadeDonantesBindingSource.DataSource =
                donantesBL.ListadeDonantes;

            listaDeGenerosBindingSource.DataSource =
                generoBL.ListaDeGeneros;

            listadeSangreBindingSource.DataSource =
                tipodeSangre.ListadeSangre;
        }
Esempio n. 4
0
        public Menu()
        {
            InitializeComponent();


            _donantesBL     = new DonantesBL();
            _tipodeSangreBL = new TipodeSangreBL();
            _generoBL       = new GeneroBL();
            _comprobanteBL  = new ComprobanteBL();
            _usuarioBL      = new UsuarioBL();
        }
Esempio n. 5
0
        public Menu()
        {
            InitializeComponent();
            Bitmap img = new Bitmap(Application.StartupPath + @"\img\Fondo3.jpg");

            this.BackgroundImage = img;

            _donantesBL     = new DonantesBL();
            _tipodeSangreBL = new TipodeSangreBL();
            _generoBL       = new GeneroBL();
        }
Esempio n. 6
0
        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;
        }
Esempio n. 7
0
        public FormFactura()
        {
            InitializeComponent();

            _facturaBL = new FacturaBL();
            listaFacturasBindingSource.DataSource = _facturaBL.ObtenerFacturas();

            _clientesBL = new ClientesBL();
            listaClientesBindingSource.DataSource = _clientesBL.ObtenerClientes();

            _donantesBL = new DonantesBL();
            listaDonantesBindingSource.DataSource = _donantesBL.ObtenerDonantes();
        }
Esempio n. 8
0
        public FormDonantes()
        {
            InitializeComponent();

            _donantes = new DonantesBL();
            listaDonantesBindingSource.DataSource = _donantes.ObtenerDonantes();

            _categorias = new CategoriasBL();
            listaCategoriasBindingSource.DataSource = _categorias.ObtenerCategorias();

            _tipos = new TiposBL();
            listaTiposBindingSource.DataSource = _tipos.ObtenerTipos();
        }
Esempio n. 9
0
        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();
        }