|
|
@@ -6,6 +6,7 @@ using Learun.Cache.Factory; |
|
|
|
using System; |
|
|
|
using System.Collections.Generic; |
|
|
|
using System.Web; |
|
|
|
using Learun.Application.TwoDevelopment.EducationalAdministration; |
|
|
|
|
|
|
|
namespace Learun.Util.Operat |
|
|
|
{ |
|
|
@@ -24,6 +25,8 @@ namespace Learun.Util.Operat |
|
|
|
|
|
|
|
private CompanyIBLL companyIBLL = new CompanyBLL(); |
|
|
|
private DepartmentIBLL departmentIBLL = new DepartmentBLL(); |
|
|
|
private StuInfoBasicIBLL stuInfoBasicIBLL = new StuInfoBasicBLL(); |
|
|
|
CdMajorIBLL majorIbll = new CdMajorBLL(); |
|
|
|
|
|
|
|
|
|
|
|
#endregion |
|
|
@@ -359,6 +362,16 @@ namespace Learun.Util.Operat |
|
|
|
userInfo.postIds = userRelationIBLL.GetObjectIds(userEntity.F_UserId, 2); |
|
|
|
userInfo.companyIds = companyIBLL.GetSubNodes(userEntity.F_CompanyId); |
|
|
|
userInfo.departmentIds = departmentIBLL.GetSubNodes(userEntity.F_CompanyId, userEntity.F_DepartmentId); |
|
|
|
var studententity = stuInfoBasicIBLL.GetStuInfoBasicEntityByStuNo(userEntity.F_Account); |
|
|
|
if (studententity != null) |
|
|
|
{ |
|
|
|
userInfo.grade = studententity.Grade; |
|
|
|
var majorinfo = majorIbll.GetCdMajorEntityByMajorNo(studententity.MajorNo); |
|
|
|
if (majorinfo != null) |
|
|
|
{ |
|
|
|
userInfo.majorno = majorinfo.ID ?? ""; |
|
|
|
} |
|
|
|
} |
|
|
|
userInfo.loadTime = DateTime.Now; |
|
|
|
if (HttpContext.Current != null) |
|
|
|
{ |
|
|
|