Пример #1
0
        private void NewConsulta_Click(object sender, EventArgs e)
        {
            try
            {
                ModeloCita usuario   = new ModeloCita();
                var        resultado = usuario.BusquedadCitasEnPacientes(Convert.ToInt32(SearchExp.Text), FechaCitaBusquedad());
                if (resultado == false)
                {
                    ModeloCita d1 = new ModeloCita("Cita Comun", FechaCitaInsertar(), CacheDeUsuario.NonbreUsuario, 5, Convert.ToInt32(SearchExp.Text));
                    d1.Cita();
                }
            }
            catch (Exception) {
                msjError("Ingrese un Dui Correctamente");
            }


            if (SearchExp.Text == "Buscar" || acceso == false)
            {
                msjError("Ingrese un Dui");
                SearchExp.Focus();
            }
            else
            {
                if (registros == true)
                {
                    CacheDiagnostico.id = 0;
                }
                AbrirFormularioHijoPaciente(new FrmExpediente());
            }
        }