private void btnLuu_Click(object sender, EventArgs e)
        {
            SplashScreenManager.ShowForm(this, typeof(WaitForm), true, true, false);
            SplashScreenManager.Default.SetWaitFormCaption("Chờ tí nhé.....");
            Position po = new Position();

            po = _postion;
            po.PositionName = txtChucVu.Text;
            Department dep = new Department();

            dep = _department;
            dep.DepartmentName = txtPhongBan.Text;
            departmentServices.updateDepartment(dep);
            positionServices.updatePosition(po);
            SplashScreenManager.CloseForm();
            XtraMessageBox.Show("Sửa thành công !!!");

            this.Close();
        }
        private void btnLuu_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
        {
            SplashScreenManager.ShowForm(this, typeof(WaitForm), true, true, false);
            SplashScreenManager.Default.SetWaitFormCaption("Chờ tí nhé.....");

            Employee emp = new Employee();

            emp             = _employee;
            emp.FullName    = FullNameTextEdit.Text;
            emp.FirstName   = FirstNameTextEdit.Text;
            emp.LastName    = LastNameTextEdit.Text;
            emp.BirthDate   = BirthDateDateEdit.DateTime;
            emp.Address     = AddressTextEdit.Text;
            emp.Ward        = WardTextEdit.Text;
            emp.District    = DistrictTextEdit.Text;
            emp.City        = CityTextEdit.Text;
            emp.PhoneNumber = PhoneNumberTextEdit.Text;
            emp.Email       = EmailTextEdit.Text;
            emp.Status      = StatusTextEdit.Text;
            emp.HireDate    = HireDateDateEdit.DateTime;
            Position po = new Position();

            po = _position;
            po.PositionName = PositionNameDepartmentNameCheckComboBoxEdit.Text;
            Department dep = new Department();

            dep = _deparment;
            dep.DepartmentName = DepartmentNameCheckComboBoxEdit.Text;
            Account ac = new Account();

            ac        = _account;
            ac.Role   = RoleComboBoxEdit.SelectedItem.ToString();
            emp.Image = ImageByArray;
            employeeService.updateEmployee(emp);
            accountServices.updateAccount(ac);
            positionServices.updatePosition(po);
            departmentServices.updateDepartment(dep);

            SplashScreenManager.CloseForm();
            XtraMessageBox.Show("Sửa thành công !!!");
            this.Close();
        }