Exemple #1
0
 public FrmOrdenReparaciones(ENT.Orden orden)
 {
     InitializeComponent();
     EntOrdenServicio = new ENT.OrdenServicio();
     EntVehiculo      = new ENT.Vehiculo();
     EntOrden         = new ENT.Orden();
     EntRepuesto      = new ENT.RepuestoVehiculo();
     EntOrdenRepuesto = new ENT.OrdenRepuesto();
     EntEmpleado      = new ENT.Empleado();
     EntServicio      = new ENT.Servicio();
     BllVehiculo      = new BLL.Vehiculo();
     BllEmpleado      = new BLL.Empleado();
     BllOrden         = new BLL.Orden();
     BllRepesto       = new BLL.Repuesto();
     BllServicio      = new BLL.Servicio();
     BllOrdenRepuesto = new BLL.OrdenRepuesto();
     BllOrdenServicio = new BLL.OrdenServicio();
     repuestos        = new List <ENT.RepuestoVehiculo>();
     servicios        = new List <ENT.Servicio>();
     ordenRepuestos   = new List <ENT.OrdenRepuesto>();
     ordenServicios   = new List <ENT.OrdenServicio>();
     vehiculos        = new List <ENT.Vehiculo>();
     empleados        = new List <ENT.Empleado>();
     ordenes          = new List <ENT.Orden>();
     this.EntOrden    = orden;
     llenarComboEncargado();
     llenarComboVehiculo();
     cargarComponentesOrden(orden);
     cargarRepuestosOrden();
     cargarServicioOrden();
 }
Exemple #2
0
 public FrmOrdenReparaciones()
 {
     InitializeComponent();
     EntVehiculo            = new ENT.Vehiculo();
     EntOrdenServicio       = new ENT.OrdenServicio();
     EntOrden               = new ENT.Orden();
     EntRepuesto            = new ENT.RepuestoVehiculo();
     EntOrdenRepuesto       = new ENT.OrdenRepuesto();
     EntEmpleado            = new ENT.Empleado();
     EntServicio            = new ENT.Servicio();
     BllVehiculo            = new BLL.Vehiculo();
     BllEmpleado            = new BLL.Empleado();
     BllOrden               = new BLL.Orden();
     BllRepesto             = new BLL.Repuesto();
     BllServicio            = new BLL.Servicio();
     BllOrdenRepuesto       = new BLL.OrdenRepuesto();
     BllOrdenServicio       = new BLL.OrdenServicio();
     repuestos              = new List <ENT.RepuestoVehiculo>();
     servicios              = new List <ENT.Servicio>();
     ordenRepuestos         = new List <ENT.OrdenRepuesto>();
     ordenServicios         = new List <ENT.OrdenServicio>();
     vehiculos              = new List <ENT.Vehiculo>();
     empleados              = new List <ENT.Empleado>();
     vehiculos              = new List <ENT.Vehiculo>();
     ordenes                = new List <ENT.Orden>();
     cbEstado.Enabled       = false;
     tabComponentes.Enabled = false;
     llenarComboEncargado();
     llenarComboVehiculo();
 }
Exemple #3
0
 private void limpiarDatosRepuesto()
 {
     cargarRepuestosOrden();
     npQuitarRepuesto.Value  = 1;
     npRepuestoAgregar.Value = 1;
     txtRepuestoUno.Text     = "";
     txtQuitar.Text          = "";
     EntRepuesto             = new ENT.RepuestoVehiculo();
     EntOrdenRepuesto        = new ENT.OrdenRepuesto();
 }
Exemple #4
0
 //Metodo limpia los componentes de las identidades
 private void limpiarDatos()
 {
     cbEncargado.SelectedIndex = -1;
     cbEstado.SelectedIndex    = -1;
     cbVehiculo.SelectedIndex  = -1;
     EntOrdenRepuesto          = new ENT.OrdenRepuesto();
     EntRepuesto              = new ENT.RepuestoVehiculo();
     EntEmpleado              = new ENT.Empleado();
     dtIngreso.Value          = DateTime.Today;
     dtFechaSalida.Value      = DateTime.Today;
     txtFechaFacturacion.Text = "";
 }
Exemple #5
0
 public FrmRepuestos()
 {
     InitializeComponent();
     marcas      = new List <ENT.MarcaVehiculo>();
     repuestos   = new List <ENT.RepuestoVehiculo>();
     marcasTemp  = new List <MarcaVehiculo>();
     EntRepuesto = new ENT.RepuestoVehiculo();
     EntMarca    = new ENT.MarcaVehiculo();
     BllRepuesto = new BLL.Repuesto();
     BllMarca    = new BLL.Marca();
     llenarComboMarca();
 }
Exemple #6
0
 //Metodo limpia todos los componetes
 //y variables utilizados
 private void limpiarDatos()
 {
     txtPrecio.Text   = "";
     txtImpuesto.Text = "";
     txtPrecio.Text   = "";
     txtRepuesto.Text = "";
     txtMensaje.Text  = "";
     txtMarca.Text    = "";
     npAnno.Value     = 2000;
     EntRepuesto      = new RepuestoVehiculo();
     EntMarca         = new MarcaVehiculo();
 }
Exemple #7
0
 public OrdenRepuesto(int id, int cantidad, double totalRepuestos, Orden orden, Empleado empleado, RepuestoVehiculo repuesto)
 {
     this.id             = id;
     this.cantidad       = cantidad;
     this.totalRepuestos = totalRepuestos;
     this.Orden          = orden;
     this.Empleado       = empleado;
     this.Repuesto1      = repuesto;
 }