Esempio n. 1
0
        protected override void reloadDataGridView()
        {
            var actionTable = BllACLAction.GetActions();

            baseBindingSource.DataSource = actionTable;
            baseDataGridView.DataSource  = baseBindingSource;
        }
Esempio n. 2
0
 protected override void DeleteCurrentRow()
 {
     if (baseDataGridView.SelectedCells[1].Value.ToString() == "root")
     {
         MessageBox.Show("root用户不能删除!!");
     }
     else
     {
         BllACLAction.DelCell((long)baseDataGridView.SelectedCells[0].Value);
     }
 }
Esempio n. 3
0
        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;
        }
Esempio n. 4
0
        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;
        }
Esempio n. 5
0
 protected override void InitData()
 {
     ActionTable  = UserStatics.GetUserActions(ModuleId);
     TableForLoad = BllACLAction.GetTable();
 }