// Token: 0x0600031F RID: 799 RVA: 0x00020D18 File Offset: 0x0001EF18
        private void saveBtn_Click(object sender, EventArgs e)
        {
            if (this.staffIdTB.Text.Trim() == "")
            {
                WMMessageBox.Show(this, "请输入员工ID!");
                return;
            }
            this.db.AddParameter("staffId", this.staffIdTB.Text.Trim());
            if (this.db.ExecuteRow("SELECT * FROM staffTable WHERE staffId=@staffId") == null)
            {
                WMMessageBox.Show(this, "员工ID不存在!");
                return;
            }
            List <PermissionItemEntity> list = new List <PermissionItemEntity>();

            foreach (object obj in this.selectListBox.Items)
            {
                list.Add((PermissionItemEntity)obj);
            }
            this.db.AddParameter("permissions", string.Concat(AllPermissionItemsEntity.getUInt64Permission(list)));
            this.db.AddParameter("staffId", this.staffIdTB.Text.Trim());
            this.db.ExecuteNonQuery("UPDATE staffTable SET permissions=@permissions WHERE staffId=@staffId");
        }
        // Token: 0x06000317 RID: 791 RVA: 0x00020A8C File Offset: 0x0001EC8C
        private void queryBtn_Click(object sender, EventArgs e)
        {
            if (this.staffIdTB.Text.Trim() == "")
            {
                WMMessageBox.Show(this, "请输入员工ID!");
                return;
            }
            this.db.AddParameter("staffId", this.staffIdTB.Text.Trim());
            DataRow dataRow = this.db.ExecuteRow("SELECT * FROM staffTable WHERE staffId=@staffId");

            if (dataRow == null)
            {
                WMMessageBox.Show(this, "员工ID不存在!");
                return;
            }
            string text = dataRow["staffName"].ToString();

            this.staffNameTB.Text = text;
            this.selectListBox.Items.Clear();
            ulong permissions = ConvertUtils.ToUInt64(dataRow["permissions"].ToString());
            List <PermissionItemEntity> currentPermissionItems = AllPermissionItemsEntity.getCurrentPermissionItems(permissions);

            this.selectListBox.Items.AddRange(currentPermissionItems.ToArray());
        }
 // Token: 0x06000315 RID: 789 RVA: 0x00020985 File Offset: 0x0001EB85
 public PermissionManagerTabpage()
 {
     this.InitializeComponent();
     this.initAllPermissionsList(AllPermissionItemsEntity.getAllList());
     this.initDGV();
 }
 // Token: 0x0600031D RID: 797 RVA: 0x00020CAE File Offset: 0x0001EEAE
 private void addAllBtn_Click(object sender, EventArgs e)
 {
     this.selectListBox.Items.Clear();
     this.selectListBox.Items.AddRange(AllPermissionItemsEntity.getAllList().ToArray());
 }