Beispiel #1
0
        //ClientesBL _clientes;

        public FormEntregas()
        {
            InitializeComponent();

            _entregas = new EntregasBL();
            listaEntregasBindingSource.DataSource = _entregas.ObtenerEntregas();
        }
Beispiel #2
0
 public FormFactura()
 {
     InitializeComponent();
     _facturaBL = new FacturaBL();
     listaFacturasBindingSource.DataSource = _facturaBL.ObtenerFacturas();
     _clientesBL = new ClienteBL();
     listadeClientesBindingSource.DataSource = _clientesBL.ObtenerClientes();
     _entregasBL = new EntregasBL();
     listaEntregasBindingSource.DataSource = _entregasBL.ObtenerEntregas();
 }
Beispiel #3
0
        public FormEnvio()
        {
            InitializeComponent();

            _entregas = new EntregasBL();
            listaEntregasBindingSource.DataSource = _entregas.ObtenerEntregas();


            _clienteBL = new ClienteBL();
            listadeClientesBindingSource.DataSource = _clienteBL.ObtenerClientes();


            _tipoPaquete = new TiposBL();
            listaPaquetesBindingSource.DataSource = _tipoPaquete.ObtenerPaquete();

            _formadePagos = new TiposBL();
            listaPagosBindingSource.DataSource = _formadePagos.ObtenerFormasPago();

            _estadoDePago = new TiposBL();
            listaDeEstadoDePagoBindingSource.DataSource = _estadoDePago.ObtenerEstadoDePago();

            _status = new TiposBL();
            listaStatusBindingSource.DataSource = _status.ObtenerStatus();
        }
Beispiel #4
0
        public FormReporteEntregas()
        {
            InitializeComponent();

            var _entregaBL    = new EntregasBL();
            var _remitente    = new ClienteBL();
            var _estadoDePago = new TiposBL();
            var _status       = new TiposBL();


            var bindingSource = new BindingSource();

            bindingSource.DataSource = _entregaBL.ObtenerEntregas();

            var bindingSource2 = new BindingSource();

            bindingSource2.DataSource = _remitente.ObtenerClientes();

            var bindingSource3 = new BindingSource();

            bindingSource3.DataSource = _estadoDePago.ObtenerEstadoDePago();

            var bindingSource4 = new BindingSource();

            bindingSource4.DataSource = _status.ObtenerStatus();

            var reporte = new ReporteEntregas();

            reporte.Database.Tables["Entrega"].SetDataSource(bindingSource);
            reporte.Database.Tables["Clientes"].SetDataSource(bindingSource2);
            reporte.Database.Tables["Estado"].SetDataSource(bindingSource3);
            reporte.Database.Tables["Estatus"].SetDataSource(bindingSource4);

            crystalReportViewer1.ReportSource = reporte;
            crystalReportViewer1.RefreshReport();
        }