Beispiel #1
0
        private void LoadPhanQuyenTheoTaiKhoan(int _taikhoanId)
        {
            try
            {
                gridControlChucNang.DataSource = null;
                gridControlBaoCao.DataSource   = null;
                this.lstPQ_TK_ChucNang         = new List <PhanQuyenTaiKhoan_PlusDTO>();
                this.lstPQ_TK_BaoCao           = new List <PhanQuyenTaiKhoan_PlusDTO>();

                List <PhanQuyenTaiKhoan_PlusDTO> _lstPQ_TK_All = PhanQuyenTaiKhoanLogic.SelectKieuPhanQuyen(_taikhoanId);
                this.lstPQ_TK_ChucNang         = _lstPQ_TK_All.Where(o => o.LoaiChucNangId != 3).ToList();
                gridControlChucNang.DataSource = this.lstPQ_TK_ChucNang;

                this.lstPQ_TK_BaoCao         = _lstPQ_TK_All.Where(o => o.LoaiChucNangId == 3).ToList();
                gridControlBaoCao.DataSource = this.lstPQ_TK_BaoCao;
            }
            catch (Exception ex)
            {
                O2S_Common.Logging.LogSystem.Warn(ex);
            }
        }