private void btContinuar_Click(object sender, EventArgs e)
        {
            try
            {
                if (Convert.ToInt32(this.cbxTurno.SelectedValue) == -1)
                {
                    this.lbMensaje.Text = "Seleccione un Turno.";
                    this.cbxTurno.Focus();
                }
                else if (Convert.ToInt32(this.cbxProcesos.SelectedValue) == -1)
                {
                    this.lbMensaje.Text = "Seleccione un Proceso.";
                    this.cbxProcesos.Focus();
                }
                else if (Convert.ToInt32(this.cbxOpcion.SelectedValue) == -1)
                {
                    this.lbMensaje.Text = "Seleccione una Opción.";
                    this.cbxOpcion.Focus();
                }
                else
                {
                    this.lu.Fecha      = this.dtpFecha.Value;
                    this.lu.CodTurno   = Convert.ToInt32(this.cbxTurno.SelectedValue);
                    this.lu.DesTurno   = this.cbxTurno.Text;
                    this.lu.CodProceso = Convert.ToInt32(this.cbxProcesos.SelectedValue);
                    this.lu.DesProceso = this.cbxProcesos.Text;

                    Form frmObj = null;
                    switch (Convert.ToInt32(this.cbxOpcion.SelectedValue))
                    {
                    case 1:
                        frmObj = new a04_Vaciado01(this.lu);
                        break;

                    case 2:
                        frmObj = new a05_ArmadoCarroSecador(this.lu);
                        break;

                    case 3:
                        frmObj = new a06_EntradaCarroSecador(this.lu);
                        break;
                    }
                    frmObj.Show();
                    this.Close();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
            }
        }
        private void btContinuar_Click(object sender, EventArgs e)
        {
            try
            {
                if (this.lu.Fecha == DateTime.MinValue)
                {
                    this.lbMensaje.Text = "Seleccione Fecha valida";
                    this.dtpFecha.Focus();
                }
                else if (this.lu.CodTurno == -1)
                {
                    this.lbMensaje.Text = "Seleccione Turno";
                    this.cbxTurno.Focus();
                }
                else if (this.lu.CodProceso == -1)
                {
                    this.lbMensaje.Text = "Seleccione Proceso";
                    this.cbxProceso.Focus();
                }
                else if (this.lu.CodPantalla == -1)
                {
                    this.lbMensaje.Text = "Seleccione Opción";
                    this.cbxOpcion.Focus();
                }
                else
                {
                    DataTable dtObj = this.oDA.ObtenerSigCodConfigHandHeld();
                    this.lu.CodConfigHandHeld = Convert.ToInt64(dtObj.Rows[0]["CodConfigHandHeld"]);
                    this.oDA.InsertarConfigHandHeld(this.lu.CodConfigHandHeld,
                                                    this.lu.CodUsuario,
                                                    this.lu.CodEmpleado,
                                                    this.lu.CodSupervisor,
                                                    this.lu.Fecha,
                                                    this.lu.CodTurno,
                                                    this.lu.CodPlanta,
                                                    this.lu.CodProceso);

                    Form frmObj = null;
                    switch (this.lu.CodPantalla)
                    {
                    case 1:
                    case 4:
                    case 5:
                    case 6:
                        frmObj = new a04_CapturaInicial(this.lu);
                        break;

                    case 2:
                        frmObj = new a05_ArmadoCarroSecador(this.lu);
                        break;

                    case 3:
                        frmObj = new a06_EntradaCarroSecador(this.lu);
                        break;
                    }
                    frmObj.Show();
                    this.Close();
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation, MessageBoxDefaultButton.Button1);
            }
        }