private void frmQuyDinh_Load(object sender, EventArgs e)
 {
     try
     {
         //load danh sach
         this.lstQuyDinh = QuyDinhLogic.SelectTheoCoSo();
         gridControlCauHinh.DataSource = this.lstQuyDinh;
     }
     catch (Exception ex)
     {
         O2S_Common.Logging.LogSystem.Warn(ex);
     }
 }
 private void btnLuuQuyDinh_Click(object sender, EventArgs e)
 {
     try
     {
         if (QuyDinhLogic.UpdateAll(this.lstQuyDinh))
         {
             O2S_Common.Utilities.ThongBao.frmThongBao frmthongbao = new O2S_Common.Utilities.ThongBao.frmThongBao(Base.ThongBaoLable.CAP_NHAT_THANH_CONG);
             frmthongbao.Show();
             frmQuyDinh_Load(null, null);
         }
         else
         {
             O2S_Common.Utilities.ThongBao.frmThongBao frmthongbao = new O2S_Common.Utilities.ThongBao.frmThongBao(Base.ThongBaoLable.CAP_NHAT_THAT_BAI);
             frmthongbao.Show();
         }
     }
     catch (Exception ex)
     {
         O2S_Common.Logging.LogSystem.Warn(ex);
     }
 }