protected override string uc_Save()
        {
            string str;

            if (MyRule.Get(MyLogin.RoleId, "bbiSubsidiary") != "OK")
            {
                str = "";
            }
            else if (!MyRule.AllowAdd)
            {
                MyRule.Notify();
                str = "";
            }
            else if (MyLogin.Level <= 0)
            {
                //   SYS_LOG.Insert("Danh Sách Công Ty Con", "Thêm", this.txtID.Text);
                base.SetWaitDialogCaption("Đang lưu dữ liệu...");
                Cursor.Current = Cursors.WaitCursor;
                HRM_SUBSIDIARY hRMSUBSIDIARY = this.InitClass();
                string         str1          = hRMSUBSIDIARY.Insert();
                if (str1 == "OK")
                {
                    this.RaiseSuccessEventHander(hRMSUBSIDIARY);
                }
                Cursor.Current = Cursors.Default;
                this.DoHide();
                if (str1 != "OK")
                {
                    XtraMessageBox.Show(str1, "Cảnh Báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                }
                //    str1 = hRMSUBSIDIARY.Update(this.txtID.Text, this.imgPhoto.Image);
                if (str1 != "OK")
                {
                    this.DoHide();
                }
                this.DoHide();
                str = str1;
            }
            else
            {
                XtraMessageBox.Show("Cấp độ quản lý của bạn không được phép thêm chi nhánh!", "Cảnh Báo", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                str = "";
            }
            return(str);
        }