Beispiel #1
0
 public LogCancelaciones( int Codigo_Devolucion, DateTime Fecha_Devolucion, Pasaje pasaje )
 {
     this.Codigo_Devolucion = Codigo_Devolucion;
     this.Fecha_Devolucion = Fecha_Devolucion;
     // this.pasaje = pasaje;
     this.Motivo = Motivo;
 }
Beispiel #2
0
 private void button3_Click(object sender, EventArgs e)
 {
     if (butacas.SelectedRows.Count != 0)
     {
         butaca = Convert.ToInt32( butacas.SelectedRows[0].Cells[0].Value ) ;
         pasaje = ( Pasaje ) new CargarDatos().ShowDialog(codViaje, fechaSalida , butaca, -1);
         this.Close();
     }
 }
 public void cancelarPasaje( Pasaje pasaje, DateTime fecha, string motivo )
 {
     DBAdapter.executeProcedure("Cancelar_Pasajes",
         fecha,
         pasaje.viaje.aeronave.Cod_Aeronave,
         pasaje.viaje.rutaAerea.Cod_Ruta,
         motivo
     );
 }
Beispiel #4
0
 public LogPasajes( int idLog, Pasaje pasaje, DateTime fechaCompra )
 {
     this.idLog = idLog;
     this.pasaje = pasaje;
     this.fechaCompra = fechaCompra;
 }
Beispiel #5
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (Validacion.validarInputs(this.Controls) &&
         Validacion.soloLetras(this.Apellido, Apellido.Name) &&
         Validacion.soloNumeros(this.dni, dni.Name) &&
         Validacion.soloLetras(this.Nombre, Nombre.Name) &&
         Validacion.soloNumeros(this.Telefono, Telefono.Name) &&
         Validacion.emailValido( this.Mail )
         // && Validacion.fechaMenorAlDiaDeHoy( fecha, "Fecha de Nacimiento" )
         // validar butaca y encomienda ?
         )
         {
             if ( cl == null ) cl = new Cliente(
                 Convert.ToInt32( dni.Text ),
                 Nombre.Text,
                 Apellido.Text,
                 Direccion.Text,
                 Convert.ToInt32( Telefono.Text ),
                 Mail.Text,
                 Convert.ToDateTime( fecha.Value ),
                 0 );
             if (butaca != -1)
             {
                 pasaje = new Pasaje(
                     codViaje,
                     fechaSalida,
                     new ViajesRepository().getViaje(codViaje),
                     butaca,
                     cl,
                     0 // Precio
                 );
             }
             if (kgs != -1)
             {
                 encomienda = new Domain.Encomienda(kgs, codViaje, cl);
             }
             this.Close();
         }
 }