예제 #1
0
 private void thêmTTTVToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (UserProfile.permission == 1)
     {
         ThongTin_TuyenDung thoiViecForm = new ThongTin_TuyenDung(nhanVienServices, thongTinServices, "Thôi Việc");
         thoiViecForm.ShowDialog(this);
     }
     else
     {
         MessageBox.Show("Bạn Không Có Quyền Sử Dụng Chức Năng Này", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
예제 #2
0
 private void thêmTTĐĐToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (UserProfile.permission == 1)
     {
         try
         {
             ThongTin_TuyenDung dieuDongForm = new ThongTin_TuyenDung(nhanVienServices, thongTinServices, "Điều Động");
             dieuDongForm.ShowDialog(this);
         }
         catch (Exception ex)
         {
             MessageBox.Show("Lỗi: " + ex);
         }
     }
     else
     {
         MessageBox.Show("Bạn Không Có Quyền Sử Dụng Chức Năng Này", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }