Пример #1
0
        protected override string uc_Update()
        {
            string str;

            if (MyRule.Get(MyLogin.RoleId, "bbiNationality") != "OK")
            {
                str = "";
            }
            else if (MyRule.AllowEdit)
            {
                //   SYS_LOG.Insert("Danh Mục Quốc Tịch", "Cập Nhật", this.txtID.Text);
                base.SetWaitDialogCaption("Đang cập nhật dữ liệu...");
                DIC_NATIONALITY dICNATIONALITY = new DIC_NATIONALITY(this.txtID.Text, this.txtNAME.Text, this.txtDescription.Text, this.chxUse.Checked);
                string          str1           = dICNATIONALITY.Update();
                if (str1 == "OK")
                {
                    this.RaiseSuccessEventHander(dICNATIONALITY);
                }
                if (str1 != "OK")
                {
                    XtraMessageBox.Show(str1, "Cảnh Báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                }
                this.DoHide();
                str = str1;
            }
            else
            {
                MyRule.Notify();
                str = "";
            }
            return(str);
        }