用户文件权限管理
Inheritance: System.Windows.Forms.Form
Exemplo n.º 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();
     }
 }
Exemplo n.º 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();
     }
 }
Exemplo n.º 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();
     }
 }
Exemplo n.º 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();

            }
        }