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

            _xfmStepAdd.Added += new xfmStepAdd.AddedEventHander(this.frm_Added);
            _xfmStepAdd.ShowDialog();
        }