用户文件权限管理
Inheritance: System.Windows.Forms.Form
Example #1
0
 private void btnGroupAuth_Click(object sender, EventArgs e)
 {
     if (this.dgvRoles.CurrentRow == null)
     {
         MessageBox.Show("请选择需要设定的群组信息!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         return;
     }
     else
     {
         UserFileAuthFrm frm = new UserFileAuthFrm();
         frm.UserRole       = this.dgvRoles.CurrentRow.Cells["NAME1"].Value.ToString();
         frm.AuthObjectType = DataType.AuthObjectType.UserRole;
         frm.ShowDialog();
     }
 }
Example #2
0
 private void btnSet_Click(object sender, EventArgs e)
 {
     if (this.dGVUsers.CurrentRow == null)
     {
         MessageBox.Show("请选择需要设定的群组信息!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         return;
     }
     else
     {
         UserFileAuthFrm frm = new UserFileAuthFrm();
         frm.UserAccount    = this.dGVUsers.CurrentRow.Cells["LOGINID"].Value.ToString();
         frm.AuthObjectType = DataType.AuthObjectType.SingleUser;
         frm.ShowDialog();
     }
 }
Example #3
0
 private void btnGroupAuth_Click(object sender, EventArgs e)
 {
     if (this.dgvRoles.CurrentRow == null)
     {
         MessageBox.Show("请选择需要设定的群组信息!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
         return;
     }
     else
     {
         UserFileAuthFrm frm = new UserFileAuthFrm();
         frm.UserRole = this.dgvRoles.CurrentRow.Cells["NAME1"].Value.ToString();
         frm.AuthObjectType = DataType.AuthObjectType.UserRole;
         frm.ShowDialog();
     }
 }
Example #4
0
        private void btnSet_Click(object sender, EventArgs e)
        {
            if (this.dGVUsers.CurrentRow == null)
            {
                MessageBox.Show("请选择需要设定的群组信息!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                return;
            }
            else
            {
                UserFileAuthFrm frm = new UserFileAuthFrm();
                frm.UserAccount = this.dGVUsers.CurrentRow.Cells["LOGINID"].Value.ToString();
                frm.AuthObjectType = DataType.AuthObjectType.SingleUser;
                frm.ShowDialog();

            }
        }