示例#1
0
        public void ViewModules()
        {
            ModulesBSO modulesBSO = new ModulesBSO();
            DataTable table = modulesBSO.MixModules();
            DataView dataView = new DataView(table);
            // dataView.RowFilter = "Modules_Url <> 'listmodules' and Modules_Url <> 'editmodules' ";
            dataView.RowFilter = "Modules_Url not in ('listmodules','editmodules')";
            DataTable dataTable = dataView.ToTable();
            commonBSO commonBSO = new commonBSO();
            commonBSO.FillToCheckBoxList(chklist, dataTable, "Modules_Name", "Modules_Url");


        }
示例#2
0
        public void ViewPermission()
        {
            PermissionBSO permissionBSO = new PermissionBSO();
            DataTable table = permissionBSO.GetPermissionAll();
            DataView dataView = new DataView(table);
            dataView.Sort = "PermissionID ASC";
            DataTable dataTable = dataView.ToTable();
            commonBSO commonBSO = new commonBSO();
            commonBSO.FillToCheckBoxList(chklist, dataTable, "PermissionName", "Value");


        }