private void AbrirPersonalConsulta2() { PersonalConsulta c = new PersonalConsulta(); c.ShowDialog(); if (c.DialogResult == DialogResult.OK) { this.txtPERS_ID1.Text = c.pers_id.ToString(); this.lblPERS_NOMBRE1.Text = c.pers_nombre; c.Dispose(); } }
private void lblResponsableMuestreo_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { PersonalConsulta c; if (txtREGLAB_EMPRESAMUESTREO.Text == "0") { c = new PersonalConsulta(); c.ShowDialog(); if (c.DialogResult == DialogResult.OK) { this.txtMUESTREADOR_PERS_ID.Text = c.pers_id.ToString(); this.txtREGLAB_MUESTREADOR.Text = c.pers_nombre; c.Dispose(); if (txtREGLAB_EMPRESARECOGIDA.Text == "0") { txtRECOGEDOR_PERS_ID.Text = txtMUESTREADOR_PERS_ID.Text; txtREGLAB_RECOGEDOR.Text = txtREGLAB_MUESTREADOR.Text; } } } else { InterlocutoresConsulta2 i2 = new InterlocutoresConsulta2(); i2.clie_id = Utilidades.UtilsTipos.toInt(lblCLIE_ID.Text); i2.ShowDialog(); if (i2.DialogResult == DialogResult.OK) { txtREGLAB_MUESTREADOR.Text = i2.nombre; txtMUESTREADOR_PERS_ID.Text = ""; } } }