private void llDetIni_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { string gIdent = this.GetType().FullName + " " + System.Reflection.MethodBase.GetCurrentMethod().Name; GloblaVar.TIPO_CONSULTA = "DETALLISTAS"; frmCONSULTA frmC = new frmCONSULTA(); if (frmC.ShowDialog() == DialogResult.OK) { tDetIni.Text = GloblaVar.Cod_Buscado; lDetIni.Text = GloblaVar.Nom_Buscado; } }
} // private void llProvIni_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) private void llProvFin_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { string gIdent = this.GetType().FullName + " " + System.Reflection.MethodBase.GetCurrentMethod().Name; GloblaVar.TIPO_CONSULTA = "PROVEEDORES"; frmCONSULTA frmC = new frmCONSULTA(); //frmC.Show(); if (frmC.ShowDialog() == DialogResult.OK) { tProvFin.Text = GloblaVar.Cod_Buscado; lProvFin.Text = GloblaVar.Nom_Buscado; } //if (frmC.ShowDialog == DialogResult.OK) } //private void llProvFin_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
private void btnBuscarArt4_Click(object sender, EventArgs e) { string gIdent = this.GetType().FullName + " " + System.Reflection.MethodBase.GetCurrentMethod().Name; try { GloblaVar.TIPO_CONSULTA = "ARTICULOS"; frmCONSULTA frmC = new frmCONSULTA(); //frmC.Show(); if (frmC.ShowDialog() == DialogResult.OK) { tbArtCod4.Text = GloblaVar.Cod_Buscado; tbArtDes4.Text = GloblaVar.Nom_Buscado; } } catch (Exception ex) { MessageBox.Show(ex.ToString()); GloblaVar.gUTIL.ATraza(gIdent + ex.ToString()); } }
private void btnProvBuscar_Click(object sender, EventArgs e) { string gIdent = this.GetType().FullName + " " + System.Reflection.MethodBase.GetCurrentMethod().Name; try { GloblaVar.TIPO_CONSULTA = "PROVEEDORES"; frmCONSULTA frmC = new frmCONSULTA(); if (frmC.ShowDialog() == System.Windows.Forms.DialogResult.OK) { tbProCod.Text = GloblaVar.Cod_Buscado; tbProNom.Text = GloblaVar.Nom_Buscado; } } catch (Exception ex) { MessageBox.Show(ex.ToString()); GloblaVar.gUTIL.ATraza(gIdent + ex.ToString()); } }