示例#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();
        }
示例#2
0
        public Menu()
        {
            InitializeComponent();


            _donantesBL     = new DonantesBL();
            _tipodeSangreBL = new TipodeSangreBL();
            _generoBL       = new GeneroBL();
            _comprobanteBL  = new ComprobanteBL();
            _usuarioBL      = new UsuarioBL();
        }
示例#3
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();
            _comprobanteBL  = new ComprobanteBL();
        }
示例#4
0
        public void CargarDatos(ComprobanteBL comprobanteBL, DonantesBL donantesBL,
                                TipodeSangreBL tipodeSangreBL)
        {
            _comprobanteBL = comprobanteBL;

            listadeComprobantesBindingSource.DataSource =
                comprobanteBL.ListadeComprobantes;

            listadeDonantesBindingSource.DataSource =
                donantesBL.ListadeDonantes;

            listadeSangreBindingSource.DataSource =
                tipodeSangreBL.ListadeSangre;
        }