private void Update_DaoTao()
        {
            Class.QuaTrinh_DaoTao dtao = new Class.QuaTrinh_DaoTao();
            dtao.TrainingID   = txtTrainingID.Text;
            dtao.EmployeeCode = Class.App._manv;
            dtao.TrainingName = txtTrainingName.Text;
            dtao.Reason       = txtReason.Text;
            dtao.Form         = txtForm.Text;
            dtao.Time         = txtTime.Text;
            dtao.BeginDate    = dateBeginDate.DateTime;
            dtao.DecideNumber = txtDecideNumber.Text;
            dtao.Date         = dateDate.DateTime;
            dtao.Person       = txtPerson.Text;

            if (txtTrainingID.Enabled == true)
            {
                if (dtao.Insert())
                {
                    Class.App.SaveSuccessfully();
                }
                else
                {
                    Class.App.SaveNotSuccessfully();
                }
            }
            else
            {
                if (dtao.Update())
                {
                    Class.App.SaveSuccessfully();
                }
                else
                {
                    Class.App.SaveNotSuccessfully();
                }
            }
            Loadquatrinhdaotaocuatungnhanvien();
        }
 public void Loadquatrinhdaotaocuatungnhanvien()
 {
     Class.QuaTrinh_DaoTao qtdt = new Class.QuaTrinh_DaoTao();
     gridItem.DataSource = qtdt.CT_PROCESS_TRAINING_GetListByEmployee();
     gridItemDetail.OptionsView.ColumnAutoWidth = false;
 }