Exemple #1
0
 public override void Change()
 {
     if (MyRule.IsAccess("bbiDepartment"))
     {
         DIC_RATE dICRATE             = new DIC_RATE();
         object   focusedRowCellValue = this.gbList.GetFocusedRowCellValue("RateCode");
         if (focusedRowCellValue != null)
         {
             base.SetWaitDialogCaption("Đang kiểm tra dữ liệu....");
             if (!(dICRATE.Get(focusedRowCellValue.ToString()) != "OK"))
             {
                 this.DoHide();
                 xfmRateAdd _xfmRateAdd = new xfmRateAdd(Actions.Update, dICRATE);
                 _xfmRateAdd.Updated += new xfmRateAdd.UpdatedEventHander(this.frm_Updated);
                 _xfmRateAdd.Added   += new xfmRateAdd.AddedEventHander(this.frm_Added);
                 _xfmRateAdd.ShowDialog();
             }
             else
             {
                 this.DoHide();
                 XtraMessageBox.Show("Dữ liệu không tồn tại", "Thông Báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
             }
         }
     }
 }
Exemple #2
0
        protected override void Add()
        {
            xfmRateAdd _xfmRateAdd = new xfmRateAdd(Actions.Add);

            _xfmRateAdd.Added += new xfmRateAdd.AddedEventHander(this.frm_Added);
            _xfmRateAdd.ShowDialog();
        }