예제 #1
0
 public EditarMarca(int MarcaID)
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     CargarEstados();
     CargarMarca(MarcaID);
 }
예제 #2
0
 public EditarEmpleado(int EmpleadoID)
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     CargarTandas();
     CargarEmpleado(EmpleadoID);
 }
 public EditarTipoCombustible(int TipoCombustibleID)
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     CargarEstados();
     CargarTipo(TipoCombustibleID);
 }
예제 #4
0
 public NuevoCliente()
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     CargarEstados();
     CargarTiposPersona();
 }
 public EditarTipoVehiculo(int TipoVehiculoID)
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     CargarEstados();
     CargarTipo(TipoVehiculoID);
 }
예제 #6
0
 public EditarCliente(int ClienteID)
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     CargarEstados();
     CargarTiposPersona();
     CargarCliente(ClienteID);
 }
예제 #7
0
        public ClientesMain()
        {
            RentaDto ds = new RentaDto();

            dbContext = RentCarContext.Create();
            InitializeComponent();
            Display();
        }
예제 #8
0
 public ReportesMain()
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     CargarTiposVehiculo();
     CargarClientes();
     CargarEmpleados();
     LoadReport();
 }
예제 #9
0
 public NuevoVehiculo()
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     CargarEstados();
     CargarMarcas();
     CargarModelos();
     CargarTiposVehiculo();
     CargarTiposCombustible();
 }
예제 #10
0
 public EditarVehiculo(int VehiculoID)
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     CargarEstados();
     CargarMarcas();
     CargarModelos();
     CargarTiposVehiculo();
     CargarTiposCombustible();
     CargarVehiculo(VehiculoID);
 }
예제 #11
0
        public NuevaDevolucion(int RentaID)
        {
            dbContext = RentCarContext.Create();
            InitializeComponent();

            Devolucion = dbContext.Rentas_Devoluciones
                         .Include(r => r.Estado)
                         .Include(r => r.Cliente)
                         .Include(r => r.Vehiculo)
                         /*.Include(r => r.Inspeccion)*/
                         .Include(r => r.Empleado)
                         .AsNoTracking()
                         .FirstOrDefault(r => r.ID == RentaID);

            ValidarRentado();
            Display();
        }
예제 #12
0
        public NuevaInspeccion(int?clienteID = null, int?vehiculoID = null, int?empleadoID = null)
        {
            dbContext = RentCarContext.Create();
            InitializeComponent();
            CargarCombustibles();

            if (clienteID != null)
            {
                this.Cliente    = dbContext.Clientes.FirstOrDefault(c => c.ID == clienteID.Value);
                txtCliente.Text = $"{Cliente.ID} - {Cliente.Nombre}";
            }

            if (vehiculoID != null)
            {
                this.Vehiculo    = dbContext.Vehiculos.FirstOrDefault(v => v.ID == vehiculoID.Value);
                txtVehiculo.Text = $"{Vehiculo.Marca} {Vehiculo.Modelo} ({Vehiculo.NumPlaca})";
            }

            if (empleadoID != null)
            {
                this.Empleado    = dbContext.Empleados.FirstOrDefault(e => e.ID == empleadoID.Value);
                txtEmpleado.Text = $"{Empleado.ID} - {Empleado.Nombre} {Empleado.Apellido}";
            }
        }
 public NuevoTipoCombustible()
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
 }
예제 #14
0
 public EmpleadosMain()
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     Display();
 }
예제 #15
0
 public InspeccionesMain()
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     Display();
 }
예제 #16
0
 public Login()
 {
     InitializeComponent();
     dbContext = RentCarContext.Create();
     manager   = new UserManager <Usuario>(new UserStore <Usuario>(dbContext));
 }
예제 #17
0
 public DetalleCliente(int ClienteID)
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     CargarCliente(ClienteID);
 }
예제 #18
0
 public SelectorEmpleado()
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     Display();
 }
예제 #19
0
 public DetalleModelo(int ModeloID)
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     CargarModelo(ModeloID);
 }
예제 #20
0
 public NuevaMarca()
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
 }
예제 #21
0
 public VehiculosMain()
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     Display();
 }
예제 #22
0
 public NuevoModelo()
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     CargarMarcas();
 }
 public NuevoTipoVehiculo()
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
 }
예제 #24
0
 public DetalleVehiculo(int VehiculoID)
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     CargarVehiculo(VehiculoID);
 }
예제 #25
0
 public TiposDeVehiculo()
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     Display();
 }
예제 #26
0
 public DetalleEmpleado(int EmpleadoID)
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     CargarEmpleado(EmpleadoID);
 }
 public TiposCombustibleMain()
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     Display();
 }
예제 #28
0
 public SelectorInspeccion()
 {
     dbContext = RentCarContext.Create();
     InitializeComponent();
     Display();
 }