Exemplo n.º 1
0
 private void boton_checkOut_Click(object sender, EventArgs e)
 {
     if (comboBxNombre.Text == "")
     {
         //Condicion
         MessageBox.Show("Necesita seleccionar un nombre.");
     }
     else
     {
         //Hacer CheckOut - Salida
         ConexionRecepcionista.checkOut(comboBxNombre, txtBox_celular, txtBox_email, txtBox_habitacion, txtBox_entrada, txtBox_salida, 2);
     }
 }
Exemplo n.º 2
0
        private void btn_confirmar_Click(object sender, EventArgs e)
        {
            //Fecha Hoy
            DateTime fecha = DateTime.Now;

            fecha = fecha.Date;

            DateTime fechaR = DateTime.Parse(txtBox_entrada.Text);

            bool fechaCorrecta = System.DateTime.Equals(fecha, fechaR);


            if (comboBxNombre.Text == "")
            {
                //Condicion
                MessageBox.Show("Necesita seleccionar un nombre.");
            }
            else
            {
                if (fechaCorrecta && txtBox_habitacion.Text != "")
                {
                    ConexionRecepcionista.checkOut(comboBxNombre, txtBox_celular, txtBox_email, txtBox_habitacion, txtBox_entrada, txtBox_salida, 2);
                    ConexionRecepcionista.checkOut(comboBxNombre, txtBox_celular, txtBox_email, txtBox_habitacion, txtBox_entrada, txtBox_salida, 3);
                    MessageBox.Show("Salida de cliente confirmada, habitación liberada.");
                }
                else
                {
                    if (txtBox_habitacion.Text == "")
                    {
                        MessageBox.Show("Debe seleccionar un cliente y dar clic en Revisar Información.");
                    }

                    else
                    {
                        MessageBox.Show("Fecha de Check-Out incorrecta");
                    }
                }
            }
        }
Exemplo n.º 3
0
 private void btn_revisar_Click(object sender, EventArgs e)
 {
     ConexionRecepcionista.checkOut(comboBxNombre, txtBox_celular, txtBox_email, txtBox_habitacion, txtBox_entrada, txtBox_salida, 1);
 }
Exemplo n.º 4
0
 private void CheckOt_Load(object sender, EventArgs e)
 {
     ConexionRecepcionista.checkOut(comboBxNombre, txtBox_celular, txtBox_email, txtBox_habitacion, txtBox_entrada, txtBox_salida, 0);
 }