Beispiel #1
0
        private void btnSelect_Click(object sender, EventArgs e)
        {
            if (!this.CheckInput())
            {
                return;
            }
            this.SelectedId       = ((DataRow)this.tvItems.SelectedNode.Tag)[CiItemsTable.FieldId].ToString();
            this.SelectedFullName = this.tvItems.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 FrmItemsAdmin();
                parentForm.FormOnLoad();
            }
            else
            {
                this.DialogResult = DialogResult.OK;
                this.Close();
            }
        }
Beispiel #2
0
 public FrmItemsSelect(FrmItemsAdmin parent)
 {
     PermissionScopeCode = string.Empty;
     SelectedId          = string.Empty;
     SelectedFullName    = string.Empty;
     OpenId      = string.Empty;
     AllowNull   = false;
     MultiSelect = false;
     CheckMove   = false;
     parentForm  = parent;
 }