Exemplo n.º 1
0
        public void SaveData()
        {
            ClaseEnfermeria Pediatria = new ClaseEnfermeria
            {
                NMB              = TxtID.Text,
                Fecha            = dateTimePicker2.Value.Date,
                PZImcEdad        = TxtIMCEdadWho2007Z.Text,
                PZTallaEdad      = TxtTallaEdadWho2007Z.Text,
                PZPesoEdad       = TxtPesoEdadWho2007Z.Text,
                PZPesoEdad2006   = TxtZPesoEdad.Text,
                PZTallaEdad2006  = TxtZTallaEdad.Text,
                PZPesoTalla      = TxtZPesoTalla.Text,
                IMCPZ            = TxtZIMC.Text,
                IMC              = TxtIMCCalculado.Text,
                Urgencias        = ComboUrgencias.Text,
                Referido         = ComboReferido.Text,
                Diagnostico      = TxtDiagnostico.Text,
                DiagnosticoTalla = TxtDiagnosticoTalla.Text,
            };
            EvolutivoPediatria Cita = new EvolutivoPediatria();

            Cita.GetCita(Pediatria);
            Cita.ShowDialog(this);
            // _LogicLayer.InsertCitaPediatria(Pediatria);
        }
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            DataGridViewLinkCell cell = (DataGridViewLinkCell)dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex];

            if (cell.Value.ToString() == "Ver") // Si se selecciona el hipervinculo "confirmar"
            {
                EvolutivoPediatria Evolutivo = new EvolutivoPediatria();
                Evolutivo.Data(new ClaseEnfermeria
                {
                    Antecedentes = dataGridView1.Rows[e.RowIndex].Cells[17].Value.ToString(),
                    Patologia    = dataGridView1.Rows[e.RowIndex].Cells[18].Value.ToString(),
                    Observacion  = dataGridView1.Rows[e.RowIndex].Cells[16].Value.ToString(),
                });
                Evolutivo.HideButton();
                Evolutivo.ShowDialog(this);
            }
            else if (cell.Value.ToString() == "Productos") // Si se selecciona el hipervinculo "confirmar"
            {
                EntregaOrdenes VerOrdenes = new EntregaOrdenes();
                VerOrdenes.GetHistorial(new DataAlmacen
                {
                    IdNMB = dataGridView1.Rows[e.RowIndex].Cells[23].Value.ToString(),
                    Fecha = (DateTime)dataGridView1.Rows[e.RowIndex].Cells[0].Value,
                });
                VerOrdenes.ShowDialog(this);
            }
        }
Exemplo n.º 3
0
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            DataGridViewLinkCell cell = (DataGridViewLinkCell)dataGridView1.Rows[e.RowIndex].Cells[e.ColumnIndex];

            if (cell.Value.ToString() == "Ver") // Si se selecciona el hipervinculo "confirmar"
            {
                EvolutivoPediatria Evolutivo = new EvolutivoPediatria();
                Evolutivo.Data(new ClaseEnfermeria
                {
                    Antecedentes = dataGridView1.Rows[e.RowIndex].Cells[17].Value.ToString(),
                    Patologia    = dataGridView1.Rows[e.RowIndex].Cells[18].Value.ToString(),
                    Observacion  = dataGridView1.Rows[e.RowIndex].Cells[16].Value.ToString(),
                });
                Evolutivo.HideButton();
                Evolutivo.ShowDialog(this);
            }
        }