예제 #1
0
        private void demiçãoToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDemRH t1 = new frmDemRH();

            t1.Show();
            this.Show();
        }
예제 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            try
            {
                Demitir dm = new Demitir();

                DTOUser user = lstAtivos.SelectedItem as DTOUser;

                dm.DemitirFuncionario(txtNome.Text, txtSetor.Text, txtCausa.Text, dtpDia.Value, this.IdUser);
                if (dm.Clear == true)
                {
                    frmDemRH dmi = new frmDemRH();
                    dmi.Show();
                    this.Close();
                }
            }
            catch (Exception)
            {
                MessageBox.Show("OCORREU UM PROBLEMA!ESTÁ TUDO PREENCHIDO?", "TOPMOVIE - ERROR", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }
예제 #3
0
        private void dEMISSÃOToolStripMenuItem_Click(object sender, EventArgs e)
        {
            frmDemRH dem = new frmDemRH();

            dem.Show();
        }