Пример #1
0
        private void txtBuscarFactura_TextChanged(object sender, EventArgs e)
        {
            _vehiculos = new VehiculosBL();
            var textoABuscar = txtBuscarVehiculoModelo.Text;

            listaVehiculosBindingSource.DataSource =
                _vehiculos.ObtenerVehiculos(textoABuscar);
        }
Пример #2
0
        private void toolStripButton1_Click(object sender, EventArgs e)
        {
            if (idTextBox.Text != "")
            {
                var vehiculoId = Convert.ToInt32(idTextBox.Text);
                _vehiculos.RefrescarDatos(vehiculoId);

                listaVehiculosBindingSource.ResetBindings(false);
            }
            _vehiculos = new VehiculosBL();
            listaVehiculosBindingSource.DataSource = _vehiculos.ObtenerVehiculos();
        }
Пример #3
0
        private void btnBuscar_Click(object sender, EventArgs e)
        {
            _VehiculosBL = new VehiculosBL();
            var textoABuscar = txtBuscarVehiculo.Text;

            bindingsource.DataSource =
                _VehiculosBL.ObtenerVehiculos(textoABuscar);

            reporte.SetDataSource(bindingsource);
            crystalReportViewer1.ReportSource = reporte;
            crystalReportViewer1.RefreshReport();
        }
Пример #4
0
        //internal static formMenu mdiParent;

        public FormFactura()
        {
            InitializeComponent();

            List <TextBox> BuscarTlist = new List <TextBox>();
            List <string>  BuscarSlist = new List <String>();

            BuscarTlist.Add(txtBuscarFactura);
            BuscarSlist.Add("Buscar número de factura");
            SetCueBanner(ref BuscarTlist, BuscarSlist);

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

            _clienteBL = new ClientesBL();
            listaClientesBindingSource1.DataSource = _clienteBL.ObtenerClientes();

            _vehiculoBL = new VehiculosBL();
            listaVehiculosBindingSource.DataSource = _vehiculoBL.ObtenerVehiculos();
        }
Пример #5
0
        public FormReporteVehiculos()
        {
            InitializeComponent();

            List <TextBox> BuscarTlist = new List <TextBox>();
            List <string>  BuscarSlist = new List <String>();

            BuscarTlist.Add(txtBuscarVehiculo);
            BuscarSlist.Add("Filtrar por modelo de vehículo");
            SetCueBanner(ref BuscarTlist, BuscarSlist);

            _VehiculosBL             = new VehiculosBL();
            bindingsource            = new BindingSource();
            bindingsource.DataSource = _VehiculosBL.ObtenerVehiculos();

            reporte = new ReporteVehiculos();
            reporte.SetDataSource(bindingsource);

            crystalReportViewer1.ReportSource = reporte;
            crystalReportViewer1.RefreshReport();
        }
Пример #6
0
        public formVehiculos()
        {
            InitializeComponent();
            List <TextBox> BuscarTlist = new List <TextBox>();
            List <string>  BuscarSlist = new List <String>();

            BuscarTlist.Add(txtBuscarVehiculoModelo);
            BuscarSlist.Add("Buscar vehiculo por modelo");
            SetCueBanner(ref BuscarTlist, BuscarSlist);

            _vehiculos = new VehiculosBL();
            listaVehiculosBindingSource.DataSource = _vehiculos.ObtenerVehiculos();

            _tiposBL = new TipoBL();
            listaTiposBindingSource.DataSource = _tiposBL.ObtenerTipos();

            _combustiblesBL = new CombustibleBL();
            listaCombustiblesBindingSource.DataSource = _combustiblesBL.ObtenerCombustibles();

            _transmisionesBL = new TransmisionBL();
            listaTransmisionesBindingSource.DataSource = _transmisionesBL.ObtenerTransmisiones();
        }
Пример #7
0
 public formVehiculos()
 {
     InitializeComponent();
     _vehiculos = new VehiculosBL();
     listaVehiculosBindingSource.DataSource = _vehiculos.ObtenerVehiculos();
 }