| | |
| | | (searchEntity.Comments == "" ? true : s.Comments.Contains(searchEntity.Comments)) && |
| | | (searchEntity.RecStatus == "" ? s.RecStatus == "A" : s.RecStatus == searchEntity.RecStatus) |
| | | ).ToList(); |
| | | if (searchEntity.totalrows == 0) |
| | | { |
| | | //if (searchEntity.totalrows == 0) |
| | | //{ |
| | | //获取总数 |
| | | searchEntity.totalrows = listCode.Count; |
| | | } |
| | | //} |
| | | var list = listCode.Skip((searchEntity.page - 1) * searchEntity.rows).Take(searchEntity.rows).ToList(); |
| | | var listSysCode = new List<SysCodeEntity>(); |
| | | if (list.Count > 0) |
| | |
| | | select a |
| | | ).OrderBy(x=>x.Sort).ToList(); |
| | | |
| | | if (searchEntity.totalrows == 0) |
| | | { |
| | | //if (searchEntity.totalrows == 0) |
| | | //{ |
| | | //获取总数 |
| | | searchEntity.totalrows = listCode.Count; |
| | | } |
| | | //} |
| | | var list = listCode.Skip((searchEntity.page - 1) * searchEntity.rows).Take(searchEntity.rows).ToList(); |
| | | var listSysCode = new List<SysCodeDtlEntity>(); |
| | | |