12345678910111213141516171819202122232425262728293031323334 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Linq.Expressions;
- using System.Text;
- using Bowin.Common.Linq.Entity;
- using EMISOnline.ViewModel.SystemView;
- using EMISOnline.DataLogic.SystemDAL;
- using EMISOnline.Entities;
- using EMISOnline.ViewModel;
- namespace EMISOnline.CommonLogic.SystemServices
- {
- public class RoleServices
- {
- public RoleDAL RoleDAL { get; set; }
- public Bowin.Common.Linq.Entity.IGridResultSet<RoleView> GetRoleViewList(int pageIndex, int pageSize)
- {
- Expression<Func<Sys_Role, bool>> exp = (x => x.RecordStatus > (int)SYS_STATUS.UNUSABLE);
- return RoleDAL.GetRoleView(exp).OrderByDescending(x => x.IsSystemRole).ThenBy(x => x.RoleName)
- .ToGridResultSet<RoleView>(pageIndex, pageSize);
- }
- public IList<RoleView> GetRoleViewList()
- {
- Expression<Func<Sys_Role, bool>> exp = (x => x.RecordStatus > (int)SYS_STATUS.UNUSABLE);
- return RoleDAL.GetRoleView(exp).OrderByDescending(x => x.IsSystemRole).ThenBy(x => x.RoleName)
- .ToList();
- }
- }
- }
|