| | |
| | | |
| | | |
| | | query = query.OrderByDescending(x => x.Modifytime).ToList(); |
| | | if (searchEntity.totalrows == 0) |
| | | //if (searchEntity.totalrows == 0) |
| | | searchEntity.totalrows = query.Count(); |
| | | var rolelist = query.Skip((searchEntity.page - 1) * searchEntity.rows).Take(searchEntity.rows).ToList(); |
| | | list = _mapper.Map<List<PltPageDTO>>(rolelist); |
| | |
| | | PageSuperior = page.PageSuperior, |
| | | PageIco = page.PageIco ?? "", //fa fa-angle-right |
| | | OpenType = page.OpenType ?? 0, |
| | | PageMethod = page.PageMethod, |
| | | }; |
| | | entityList = adminList.ToList(); |
| | | } |
| | |
| | | PageID = page.Id, |
| | | SystemID = page.SystemId, |
| | | PageName = page.PageName, |
| | | PageShortcut = page.PageShortcut, |
| | | DisplaySeq = page.DisplaySeq ?? 0, |
| | | PagePath = page.PagePath, |
| | | PageType = page.PageType, |
| | | PageSuperior = page.PageSuperior, |
| | | PageIco = page.PageIco ?? "", //fa fa-angle-right |
| | | OpenType = page.OpenType ?? 0, |
| | | PageMethod = page.PageMethod, |
| | | }; |
| | | entityList = list.ToList().Distinct(new PageEntityIdComparer()).ToList(); |
| | | } |