Пример #1
0
        private void btnSelectDuty_Click(object sender, EventArgs e)
        {
            FrmRoleSelect frmRoleSelect = new FrmRoleSelect("Duty")
            {
                MultiSelect             = false,
                PermissionItemScopeCode = this.PermissionItemScopeCode
            };

            if (frmRoleSelect.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                tbxOpr6.Text = frmRoleSelect.SelectedFullName;
                OperContent  = frmRoleSelect.SelectedId;
            }

            //FrmSelectArch tmpFrmSelectArch = new FrmSelectArch(WorkConst.ARCHITECTURE_DUTY);
            //tmpFrmSelectArch.ShowDialog();
            //DialogResult dlr = tmpFrmSelectArch.DialogResult;
            //if (dlr == DialogResult.OK && tmpFrmSelectArch.tvArch.SelectedNode != null)
            //{
            //    tbxOpr6.Text = tmpFrmSelectArch.tvArch.SelectedNode.Text;
            //    OperContent = (tmpFrmSelectArch.tvArch.SelectedNode as BaseTemplateTreeNode).NodeId;
            //}
        }
Пример #2
0
        private void btnSelectRole_Click(object sender, EventArgs e)
        {
            FrmRoleSelect frmRoleSelect = new FrmRoleSelect
            {
                MultiSelect             = false,
                PermissionItemScopeCode = this.PermissionItemScopeCode
            };

            if (frmRoleSelect.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                tbxOpr5.Text = frmRoleSelect.SelectedFullName;
                OperContent  = frmRoleSelect.SelectedId;
            }

            //FrmSelectGroup tmpFrmSelectGroup = new FrmSelectGroup();
            //tmpFrmSelectGroup.ShowDialog();
            //DialogResult dlr = tmpFrmSelectGroup.DialogResult;
            //if (dlr == DialogResult.OK && tmpFrmSelectGroup.lvGroup.SelectedItems.Count>0)
            //{
            //    tbxOpr5.Text = tmpFrmSelectGroup.lvGroup.SelectedItems[0].Text;
            //    OperContent = tmpFrmSelectGroup.lvGroup.SelectedItems[0].SubItems[1].Text;
            //}
        }