コード例 #1
0
        private void generarFacturarToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Hide();
            Generar_factura a = new Generar_factura();

            a.Show();
            Base_de_datos.paca = 0;
            Base_de_datos.nombrePacientes.Clear();
            Base_de_datos.cantidadPacientes.Clear();
        }
コード例 #2
0
        private void button5_Click(object sender, EventArgs e)
        {
            if (!string.IsNullOrEmpty(txtriesgo.Text) == false)
            {
                MessageBox.Show("Llene todos los campos obligatorios");
                return;
            }
            string h;

            h = txtriesgo.SelectedItem.ToString();
            int B;

            B = Base_de_datos.Buscar_codigo_nivel(txtriesgo.SelectedItem.ToString());
            Base_de_datos.Actualizar_Riesgo(B, txtcita.Text);
            Base_de_datos.cita = txtcita.Text;
            Generar_factura a = new Generar_factura();

            a.ShowDialog();
        }
コード例 #3
0
 private void dgvcitas_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dgvcitas.DataSource != null)
     {
         if (Base_de_datos.decis == 1)
         {
             int i = dgvcitas.CurrentRow.Index;
             Base_de_datos.cita = dgvcitas[0, i].Value.ToString();
             DialogResult       = DialogResult.OK;
             this.Close();
         }
         else if (Base_de_datos.decis == 2)
         {
             int i = dgvcitas.CurrentRow.Index;
             Base_de_datos.cita = dgvcitas[0, i].Value.ToString();
             this.Hide();
             Generar_factura b = new Generar_factura();
             b.Show();
         }
         else if (Base_de_datos.decis == 3)
         {
             int val;
             int i = dgvcitas.CurrentRow.Index;
             Base_de_datos.cita = dgvcitas[0, i].Value.ToString();
             val = Base_de_datos.Validar_cita(Base_de_datos.cita);
             if (val == 1)
             {
                 Diagnostico c = new Diagnostico();
                 c.ShowDialog();
             }
             else
             {
                 Base_de_datos.Extraer_diagnostico(Base_de_datos.cita);
                 Mostrar_Diagnostico d = new Mostrar_Diagnostico();
                 d.ShowDialog();
             }
         }
     }
 }