/// <summary> /// 获取启用的系统列表 /// </summary> /// <returns></returns> public string PubGetSystemList() { var list = this.BLLProvider.SystemInfoBLL.GetList(t => new { t.ID, t.Name }, t => t.IsEnable); DataTable rltDt = ConvertHelper.ToDataTable(list.Cast <object>().ToArray()); return(ZipHelper.CompressDataTable(rltDt)); }
/// <summary> /// 查询部门下的员工 /// </summary> public string PubGetUserByDeptId(int deptId) { var list = this.BLLProvider.EmployeeBLL.GetList(t => new { t.ID, t.Name }, t => t.DepartmentId == deptId); DataTable rltDt = ConvertHelper.ToDataTable(list.Cast <object>().ToArray()); return(ZipHelper.CompressDataTable(rltDt)); }
/// <summary> /// 系统下所有权限 /// </summary> public string PubGetAllPurview(int systemId) { var list = this.BLLProvider.PurviewInfoBLL.GetList(t => new { t.ID, t.Name, t.ParentId }, t => t.IsEnable && t.SystemId == systemId); DataTable rltDt = ConvertHelper.ToDataTable(list.Cast <object>().ToArray()); return(ZipHelper.CompressDataTable(rltDt)); }
/// <summary> /// 角色成员 /// </summary> /// <param name="xmlCredentials"></param> /// <param name="roleId"></param> /// <returns>用户列表</returns> public string RoleMembers(string xmlCredentials, int roleId) { ClientCredentials objCredentials = xmlCredentials.ToModel<ClientCredentials>(); if (CheckPurview(objCredentials, EModules.PurviewMng, EFunctions.RolePurviewMng, EActions.Vie) != 1) throw new Exception(String.Format("Service Method:{0} Access Error", base.GetActionName())); DataTable rltDt = this.BLLProvider.RolePurviewBLL.RoleMembers(roleId); return ZipHelper.CompressDataTable(rltDt); }
public string MenuGetList(string xmlCredentials, int systemId, int parentId) { ClientCredentials objCredentials = xmlCredentials.ToModel <ClientCredentials>(); if (CheckPurview(objCredentials, EModules.PurviewMng, EFunctions.MenuMng, EActions.Vie) != 1) { throw new Exception(String.Format("Service Method:{0} Access Error", base.GetActionName())); } DataTable dtRlt = this.BLLProvider.MenuInfoBLL.GetList(objCredentials.UserId, objCredentials.UserName, systemId, parentId); return(ZipHelper.CompressDataTable(dtRlt)); }
public string UserGetPurviewList(string xmlCredentials, int systemId, int roleId, int userId) { ClientCredentials objCredentials = xmlCredentials.ToModel <ClientCredentials>(); if (CheckPurview(objCredentials, EModules.SystemApply, EFunctions.UserPurviewMng, EActions.Vie) != 1) { throw new Exception(String.Format("Service Method:{0} Access Error", base.GetActionName())); } DataTable rltDt = this.BLLProvider.UserPurviewBLL.GetList(objCredentials.UserId, objCredentials.UserName, systemId, roleId, userId); return(ZipHelper.CompressDataTable(rltDt)); }
public string PurviewGetActionList(string xmlCredentials, int systemId, int moduleId, int functionId, string actionName, string actionCode, int isEnable, int pageIndex, int pageSize, out int count) { ClientCredentials objCredentials = xmlCredentials.ToModel <ClientCredentials>(); if (CheckPurview(objCredentials, EModules.SystemApply, EFunctions.PurviewMng, EActions.Vie) != 1) { throw new Exception(String.Format("Service Method:{0} Access Error", base.GetActionName())); } DataTable dtRlt = this.BLLProvider.PurviewInfoBLL.GetActionList(objCredentials.UserId, objCredentials.UserName, systemId, moduleId, functionId, actionName, actionCode, isEnable, pageIndex, pageSize, out count); return(ZipHelper.CompressDataTable(dtRlt)); }
public string EmployeeGetList(string xmlCredentials, int category, int orgaId, int searchType, string keyWord, int pageIndex, int pageSize, out int count) { ClientCredentials objCredentials = xmlCredentials.ToModel <ClientCredentials>(); if (CheckPurview(objCredentials, EModules.PurviewMng, EFunctions.EmployeeMng, EActions.Vie) != 1) { throw new Exception(String.Format("Service Method:{0} Access Error", base.GetActionName())); } DataTable rltDt = this.BLLProvider.EmployeeBLL.GetList(objCredentials.UserId, objCredentials.UserName, (EOrgaCategory)category, orgaId, searchType, keyWord, pageIndex, pageSize, out count); return(ZipHelper.CompressDataTable(rltDt)); }
public string SysLogGetList(string xmlCredentials, DateTime startDate, DateTime endDate, int operationType, string moduleName, string account, int pageIndex, int pageSize, out int count) { ClientCredentials objCredentials = xmlCredentials.ToModel <ClientCredentials>(); if (CheckPurview(objCredentials, EModules.SystemMng, EFunctions.SysLogMng, EActions.Vie) != 1) { throw new Exception(String.Format("Service Method:{0} Access Error", base.GetActionName())); } DataTable dtRlt = this.BLLProvider.SysLogBLL.GetList(objCredentials.UserId, objCredentials.UserName, startDate, endDate, (EOperationType)operationType, moduleName, account, pageIndex, pageSize, out count); return(ZipHelper.CompressDataTable(dtRlt)); }
public string OrganGetList(string xmlCredentials) { ClientCredentials objCredentials = xmlCredentials.ToModel <ClientCredentials>(); if (CheckPurview(objCredentials, EModules.PurviewApply, EFunctions.OrganMng, EActions.Vie) != 1) { throw new Exception(String.Format("Service Method:{0} Access Error", base.GetActionName())); } DataTable dtRlt = this.BLLProvider.OrganizationBLL.GetList(objCredentials.UserId, objCredentials.UserName); return(ZipHelper.CompressDataTable(dtRlt)); }
public string UserGetList(string xmlCredentials, int searchType, string keyWord, int isEnable, int pageIndex, int pageSize, out int count) { ClientCredentials objCredentials = xmlCredentials.ToModel <ClientCredentials>(); if (CheckPurview(objCredentials, EModules.SystemApply, EFunctions.UserMng, EActions.Vie) != 1) { throw new Exception(String.Format("Service Method:{0} Access Error", base.GetActionName())); } DataTable rltDt = this.BLLProvider.UserInfoBLL.GetList(objCredentials.UserId, objCredentials.UserName, searchType, keyWord, isEnable, pageIndex, pageSize, out count); return(ZipHelper.CompressDataTable(rltDt)); }
/// <summary> /// 缓存列表 /// </summary> /// <param name="xmlCredentials"></param> /// <param name="keyWord"></param> /// <param name="pageSize"></param> /// <param name="pageIndex"></param> /// <param name="total"></param> /// <returns></returns> public string GetCacheKeyList(string xmlCredentials, string keyWord, int pageSize, int pageIndex, out int count) { if (CheckPurview(xmlCredentials, EModules.SystemApply, EFunctions.CacheMng, EActions.Vie) != 1) { throw new Exception(String.Format("Service Method:{0} Access Error", base.GetActionName())); } List <string> lstKey = CacheHelper.GetCacheKeyList(pageIndex, pageSize, out count, keyWord).OrderBy(t => t).ToList(); DataTable tbRlt = new DataTable(); tbRlt.Columns.Add("Key"); foreach (string key in lstKey) { DataRow row = tbRlt.NewRow(); row["Key"] = key; tbRlt.Rows.Add(row); } return(ZipHelper.CompressDataTable(tbRlt)); }
/// <summary> /// 用户权限列表 /// </summary> public string PubGetUserPurviewList(int systemId, int roleId, int userId) { DataTable rltDt = this.BLLProvider.UserPurviewBLL.GetUserPurview(systemId, roleId, userId); return(ZipHelper.CompressDataTable(rltDt)); }
public string LogGetUserMenuList(int systemId, int roleId, int userId) { DataTable rltDt = this.BLLProvider.UserInfoBLL.GetUserMenu(systemId, roleId, userId); return(ZipHelper.CompressDataTable(rltDt)); }