Exemple #1
0
        private void buscaremp()
        {
            FrmConsEmpleados frm = new FrmConsEmpleados();

            frm.ShowDialog();
            if (!String.IsNullOrEmpty(Ctool.vretorno))
            {
                txtidencargado.Text  = Ctool.vretorno.Trim();
                txtnomencargado.Text = Ctool.nomentidades("V_EMPLEADOS", $"idcompania = {Ctool.cia} and id = {txtidencargado.Text.Trim()}");
                Ctool.vretorno       = String.Empty;
            }
        }
        private void buscaremp()
        {
            FrmConsEmpleados frm = new FrmConsEmpleados();

            frm.ShowDialog();
            if (!String.IsNullOrEmpty(Ctool.vretorno))
            {
                txtidemp.Text = Ctool.vretorno.Trim();
                llenaremp();
                Ctool.vretorno = String.Empty;
            }
        }
 private void txtcod_KeyDown(object sender, KeyEventArgs e)
 {
     if (e.KeyCode == Keys.F5)
     {
         FrmConsEmpleados frm = new FrmConsEmpleados();
         frm.ShowDialog();
         if (!string.IsNullOrEmpty(Ctool.vretorno))
         {
             txtcod.Text = Ctool.vretorno;
             llenarcampos();
             Ctool.vretorno = string.Empty;
         }
     }
 }