protected override void reloadDataGridView() { var actionTable = BllACLAction.GetActions(); baseBindingSource.DataSource = actionTable; baseDataGridView.DataSource = baseBindingSource; }
protected override void DeleteCurrentRow() { if (baseDataGridView.SelectedCells[1].Value.ToString() == "root") { MessageBox.Show("root用户不能删除!!"); } else { BllACLAction.DelCell((long)baseDataGridView.SelectedCells[0].Value); } }
private void FrmACLAction_Load(object sender, EventArgs e) { splitContainer1.Panel1Collapsed = true; string s = Tag.ToString().Split('.')[1]; DataTable dataTable = BllACLAction.GetActions(long.Parse(s)); CreateActionButtons(); this.AsmName = "XSolo.ModuleActions"; IdNameInTable = "Id"; reloadDataGridView(); baseDataGridView.Columns["Id"].Visible = false; }
private void FrmACLModule_Load(object sender, EventArgs e) { string s = Tag.ToString().Split('.')[1]; DataTable dataTable = BllACLAction.GetActions(); CreateActionButtons(ref dataTable); this.AsmName = "TDAccessControl"; SItemId = "Id"; FormTreeRootName = "所有窗体类型"; IsTree = true; this.baseTreeView.Nodes.Clear(); reloadDataGridView(); this.CreateTree(ref myTable); baseDataGridView.Columns[SItemId].Visible = false; baseDataGridView.Columns["父窗体"].Visible = false; }
protected override void InitData() { ActionTable = UserStatics.GetUserActions(ModuleId); TableForLoad = BllACLAction.GetTable(); }