private void linkLabel11_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            PersonalConsulta c = new PersonalConsulta();

            c.ShowDialog();
            if (c.DialogResult == DialogResult.OK)
            {
                this.txtREGLAB_PERSONAENTRADA.Text = c.pers_id.ToString();
                this.lblPERS_NOMBRE.Text = c.pers_nombre;
            }
        }
Esempio n. 2
0
 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 lblResponsableRecogedor_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            PersonalConsulta c = new PersonalConsulta();
            if (txtREGLAB_EMPRESARECOGIDA.Text == "0")
            {
                c.ShowDialog();
                if (c.DialogResult == DialogResult.OK)
                {
                    this.txtRECOGEDOR_PERS_ID.Text = c.pers_id.ToString();
                    this.txtREGLAB_RECOGEDOR.Text = c.pers_nombre;

                }
            }
            else
            {
                InterlocutoresConsulta2 i2 = new InterlocutoresConsulta2();
                i2.clie_id = Utilidades.UtilsTipos.toInt(lblCLIE_ID.Text);
                i2.ShowDialog();
                if (i2.DialogResult == DialogResult.OK)
                {
                    txtREGLAB_RECOGEDOR.Text = i2.nombre;
                    txtRECOGEDOR_PERS_ID.Text = "";
                }
            }
        }