private void btnANPAgregar_Click(object sender, EventArgs e) { var controladorGenerales2 = new ControladorGenerales2(); controladorGenerales2.AgregarAntecedentesNoPatologicos(txtEjercicio.Text, txtDuracion.Text, txtFrecuencia.Text, txtAlcohol.Text, txtTabaco.Text, txtToxicomanias.Text, id); if (controladorGenerales2.error != "") { MessageBox.Show(controladorGenerales2.error); } else { MessageBox.Show("Datos agregados exitosamente"); } }
private void btnAFModificar_Click(object sender, EventArgs e) { var controladorGenerales2 = new ControladorGenerales2(); controladorGenerales2.ModificarAntecedentesFamiliares(txtDiabetes.Text, txtCancer.Text, txtObesidad.Text, txtHipertension.Text, txtEnfTir.Text, txtHiperlipidemias.Text, txtOtra.Text, id); if (controladorGenerales2.error != "") { MessageBox.Show(controladorGenerales2.error); } else { MessageBox.Show("Datos modificados exitosamente"); } }
private void btnIBModificar_Click(object sender, EventArgs e) { var controladorGenerales2 = new ControladorGenerales2(); controladorGenerales2.ModificarIndicadoresBioquimicos(txtTrigliceridos.Text, txtHemoglobina.Text, txtColesterol.Text, txtGlucosa.Text, txtCreatinina.Text, txtNitrogenoUreico.Text, id); if (controladorGenerales2.error != "") { MessageBox.Show(controladorGenerales2.error); } else { MessageBox.Show("Datos modificados exitosamente"); } }
private void Generales2_Load(object sender, EventArgs e) { var controladorGenerales2 = new ControladorGenerales2(); txtDiabetes.Text = controladorGenerales2.ObtenerTexto(id, "diabetes", "DATOSGNANTEPATO"); txtCancer.Text = controladorGenerales2.ObtenerTexto(id, "cancer", "DATOSGNANTEPATO"); txtObesidad.Text = controladorGenerales2.ObtenerTexto(id, "obesidad", "DATOSGNANTEPATO"); txtHipertension.Text = controladorGenerales2.ObtenerTexto(id, "hipertension", "DATOSGNANTEPATO"); txtEnfTir.Text = controladorGenerales2.ObtenerTexto(id, "enfermedadesTir", "DATOSGNANTEPATO"); txtHiperlipidemias.Text = controladorGenerales2.ObtenerTexto(id, "hiperlipidemias", "DATOSGNANTEPATO"); txtOtra.Text = controladorGenerales2.ObtenerTexto(id, "otra", "DATOSGNANTEPATO"); txtEjercicio.Text = controladorGenerales2.ObtenerTexto(id, "ejercicio", "DATOSGNANTENOPATO"); txtDuracion.Text = controladorGenerales2.ObtenerTexto(id, "duracion", "DATOSGNANTENOPATO"); txtFrecuencia.Text = controladorGenerales2.ObtenerTexto(id, "frecuencia", "DATOSGNANTENOPATO"); txtAlcohol.Text = controladorGenerales2.ObtenerTexto(id, "alcohol", "DATOSGNANTENOPATO"); txtTabaco.Text = controladorGenerales2.ObtenerTexto(id, "tabaco", "DATOSGNANTENOPATO"); txtToxicomanias.Text = controladorGenerales2.ObtenerTexto(id, "toxicomanias", "DATOSGNANTENOPATO"); txtTrigliceridos.Text = controladorGenerales2.ObtenerTexto(id, "trigliceridos", "DATOSGNINDBIO"); txtHemoglobina.Text = controladorGenerales2.ObtenerTexto(id, "hemoglobina", "DATOSGNINDBIO"); txtColesterol.Text = controladorGenerales2.ObtenerTexto(id, "colesterol", "DATOSGNINDBIO"); txtGlucosa.Text = controladorGenerales2.ObtenerTexto(id, "glucosa", "DATOSGNINDBIO"); txtCreatinina.Text = controladorGenerales2.ObtenerTexto(id, "creatinina", "DATOSGNINDBIO"); txtNitrogenoUreico.Text = controladorGenerales2.ObtenerTexto(id, "nitUreico", "DATOSGNINDBIO"); }