private void boton_checkIn_Click(object sender, EventArgs e) { ConexionRecepcionista.checkIn(comboBxNombre, txtBox_celular, txtBox_email, txtBox_habitacion, 3, txtBoxF); DateTime hoy = DateTime.Now; hoy = hoy.Date; DateTime fechaR = DateTime.Parse(txtBoxF.Text); bool fechaCorrecta = System.DateTime.Equals(hoy, fechaR); if (comboBxNombre.Text == "") { //Condicion MessageBox.Show("Necesita seleccionar un nombre."); } else { if (fechaCorrecta) { //MessageBox.Show("Fecha de Check-In correcta"); ConexionRecepcionista.checkIn(comboBxNombre, txtBox_celular, txtBox_email, txtBox_habitacion, 2, txtBoxF); MessageBox.Show("Entrada de cliente confirmada."); } else { MessageBox.Show("Fecha de Check-In incorrecta"); } } }
private void boton_datos_Click(object sender, EventArgs e) { if (comboBxNombre.Text == "") { //Condicion MessageBox.Show("Necesita seleccionar un nombre."); } else { //Traer Datos ConexionRecepcionista.checkIn(comboBxNombre, txtBox_celular, txtBox_email, txtBox_habitacion, 1, txtBoxF); } }
private void boton_checkIn_Click(object sender, EventArgs e) { if (comboBxNombre.Text == "") { //Condicion MessageBox.Show("Necesita seleccionar un nombre."); } else { //Realizar CheckIn ConexionRecepcionista.checkIn(comboBxNombre, txtBox_celular, txtBox_email, txtBox_habitacion, 2); MessageBox.Show("Entrada de cliente confirmada."); } }
private void CheckIn_Load(object sender, EventArgs e) { //Traer nombre ConexionRecepcionista.checkIn(comboBxNombre, txtBox_celular, txtBox_email, txtBox_habitacion, 0, txtBoxF); }