Beispiel #1
0
        public RentaCrear()
        {
            InitializeComponent();
            _procesoRenta            = new ProcesoRentaService();
            _clienteService          = new ClienteService();
            _context                 = new ApplicationDbContext();
            _vehiculoService         = new VehiculoService();
            _estatusRentaService     = new EstatusRentaService();
            lblRentaFechaActual.Text = today.ToString("dd/MM/yyyy");
            lblRentaEmpleado.Text    = InicioSesion.ConectedUser;

            int DiasRentar = Convert.ToInt32(txtRentaDias.Value);
            var devolucion = DateTime.Today.AddDays(DiasRentar);

            lblRentaFechaDevolucion.Text = devolucion.ToString("dd/MM/yyyy");
        }
Beispiel #2
0
 public Consultar()
 {
     InitializeComponent();
     _procesoRentaService = new ProcesoRentaService();
 }
Beispiel #3
0
 public RentaLista()
 {
     InitializeComponent();
     _procesoRentaService = new ProcesoRentaService();
     _context             = new ApplicationDbContext();
 }