Ejemplo n.º 1
0
 private void btnNhap_LuuNhanVien_Click(object sender, EventArgs e)
 {
     if (NhanVienBUL.Them(lstNhanVienImport) == true)
     {
         MessageBox.Show("Lưu thành công!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
     }
     else
     {
         MessageBox.Show("Lưu thất bại!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
Ejemplo n.º 2
0
        private void btnThem_Click(object sender, EventArgs e)
        {
            NhanVienDTO NhanVienCanThem = getInfoNhanVien();

            NhanVienCanThem = NhanVienBUL.Them(NhanVienCanThem);
            if (NhanVienCanThem != null)
            {
                lstNhanVien.Add(NhanVienCanThem);
                LoadNhanVien(1);
                MessageBox.Show("Thêm nhân viên thành công", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Information);
            }
            else
            {
                MessageBox.Show("Thêm nhân viên thất bại", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Error);
            }
        }