protected void btnAddGiamKhao_Click(object sender, DirectEventArgs e)
 {
     try
     {
         HoiDongTuyenDungController control = new HoiDongTuyenDungController();
         DAL.HoiDongTuyenDung       hd      = new HoiDongTuyenDung();
         hd.CreatedBy   = CurrentUser.ID;
         hd.CreatedDate = DateTime.Now;
         hd.Note        = txtNoteHoiDong.Text;
         hd.PlanID      = int.Parse("0" + hdfRecordID.Text);
         hd.PrKeyHoSo   = decimal.Parse("0" + hdfGiamKhao.Text);
         hd.VongThi     = int.Parse("0" + txt_VongCham.Text);
         if (e.ExtraParams["type"] == "edit")
         {
             hd.ID = int.Parse("0" + hdfCouncilRecruitment.Text);
             control.Update(hd);
             //Dialog.ShowNotification(CommonMessage.INSERT_SUCCESSFULLY);
             wdHoiDong.Hide();
         }
         else
         {
             control.Insert(hd);
             //Dialog.ShowNotification(CommonMessage.INSERT_SUCCESSFULLY);
             if (e.ExtraParams["Close"] == "true")
             {
                 wdHoiDong.Hide();
             }
         }
         RM.RegisterClientScriptBlock("resetWdHoiDong", "resetWdHoiDong();");
         grpCouncilRecruitment.Reload();
     }
     catch (Exception ex)
     {
         Dialog.ShowError("Lỗi xảy ra " + ex.Message);
     }
 }