Beispiel #1
0
        private void btnSelect_Click(object sender, EventArgs e)
        {
            if (!this.CheckInput())
            {
                return;
            }
            this.SelectedId       = ((DataRow)this.tvOrganize.SelectedNode.Tag)[PiOrganizeTable.FieldId].ToString();
            this.SelectedFullName = this.tvOrganize.SelectedNode.Text;

            // 检查移动的有效性
            if (this.CheckMove && !this.CheckInputMove())
            {
                return;
            }
            if (this.OnButtonConfirmClick != null)
            {
                if (!this.OnButtonConfirmClick(this.SelectedId))
                {
                    return;
                }
                this.DialogResult = DialogResult.OK;
                this.Close();
                // 调用FrmOrganizeAdmin的窗体加载事件(gwb)
                parentForm = new FrmOrganizeAdmin();
                parentForm.FormOnLoad();
            }
            else
            {
                this.DialogResult = DialogResult.OK;
                this.Close();
            }
        }
Beispiel #2
0
 public FrmOrganizeSelect(FrmOrganizeAdmin parent)
 {
     PermissionScopeCode = string.Empty;
     SelectedId          = string.Empty;
     SelectedFullName    = string.Empty;
     OpenId      = string.Empty;
     AllowNull   = false;
     MultiSelect = false;
     CheckMove   = false;
     parentForm  = parent;
 }