Esempio n. 1
0
 public FrmTipo()
 {
     EntTipo        = new ENT.TipoVehiculo();
     BllTipo        = new BLL.Tipo();
     tiposVehiculos = new List <ENT.TipoVehiculo>();
     InitializeComponent();
 }
Esempio n. 2
0
 //Metodo limpia los componentes utilizados en el frame
 private void limpiarDatos()
 {
     txtMensaje.Text           = "";
     txtCantidadRegistros.Text = "";
     txtTipo.Text = "";
     EntTipo      = new ENT.TipoVehiculo();
 }
Esempio n. 3
0
 //Metodo selecciona el combo tipo de vehículo
 private void seleccionComboTipo()
 {
     if (cbTipo.SelectedIndex != -1)
     {
         int          selectedIndex = cbTipo.SelectedIndex;
         TipoVehiculo selectedItem  = (TipoVehiculo)cbTipo.SelectedItem;
         EntTipo = new TipoVehiculo();
         EntTipo = new TipoVehiculo(selectedItem.Id, selectedItem.Tipo);
     }
 }
Esempio n. 4
0
 public frmEdicionVehiculo()
 {
     EntVehiculo = new ENT.Vehiculo();
     EntMarca    = new ENT.MarcaVehiculo();
     EntTipo     = new ENT.TipoVehiculo();
     EntCliente  = new ENT.Cliente();
     BLLVehiculo = new BLL.Vehiculo();
     BllMarca    = new BLL.Marca();
     BllClinete  = new BLL.Cliente();
     BllTipo     = new BLL.Tipo();
     vehiculos   = new List <ENT.Vehiculo>();
     marcas      = new List <MarcaVehiculo>();
     tipos       = new List <TipoVehiculo>();
     clientes    = new List <ENT.Cliente>();
     InitializeComponent();
     llenarComboMarca();
     llenarComboTipo();
     llenarComboCliente();
 }
Esempio n. 5
0
 //Metodo limpia todos los datos de las variables
 //utilizadas
 private void limpiarDatos()
 {
     EntCliente                      = new ENT.Cliente();
     EntMarca                        = new ENT.MarcaVehiculo();
     EntTipo                         = new ENT.TipoVehiculo();
     EntVehiculo                     = new ENT.Vehiculo();
     txtPlacaa.Text                  = "";
     nubAnno.Value                   = 0;
     nubMotor.Value                  = 0;
     nudCilindraje.Value             = 0;
     nubChazis.Value                 = 0;
     cbCliente.SelectedIndex         = -1;
     cbMarca.SelectedIndex           = -1;
     cbTipo.SelectedIndex            = -1;
     cbTipoCombustible.SelectedIndex = -1;
     txtTarea.Text                   = "";
     txtCantidad.Text                = "";
     txtBuscar.Text                  = "";
     txtPlacaa.Text                  = "";
     vehiculos.Clear();
     this.grdVehiculos.DataSource = null;
 }
Esempio n. 6
0
 public Vehiculo(int id, string placa, int anno, int cilindraje, int numeroMotor, int numeroChazis, string tipoCombustible, string estado, MarcaVehiculo marca, Cliente cliente, TipoVehiculo tipo)
 {
     this.id              = id;
     this.placa           = placa;
     this.anno            = anno;
     this.cilindraje      = cilindraje;
     this.numeroMotor     = numeroMotor;
     this.numeroChazis    = numeroChazis;
     this.tipoCombustible = tipoCombustible;
     this.estado          = estado;
     this.marca           = marca;
     this.cliente         = cliente;
     this.tipo            = tipo;
 }