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 GetRoleViewList(int pageIndex, int pageSize) { Expression> exp = (x => x.RecordStatus > (int)SYS_STATUS.UNUSABLE); return RoleDAL.GetRoleView(exp).OrderByDescending(x => x.IsSystemRole).ThenBy(x => x.RoleName) .ToGridResultSet(pageIndex, pageSize); } public IList GetRoleViewList() { Expression> exp = (x => x.RecordStatus > (int)SYS_STATUS.UNUSABLE); return RoleDAL.GetRoleView(exp).OrderByDescending(x => x.IsSystemRole).ThenBy(x => x.RoleName) .ToList(); } } }