Bläddra i källkod

operatorHelper增加grade和major

娄底高职分支
liangkun 1 år sedan
förälder
incheckning
b55116e0ff
1 ändrade filer med 13 tillägg och 0 borttagningar
  1. +13
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util.Operat/OperatorHelper.cs

+ 13
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util.Operat/OperatorHelper.cs Visa fil

@@ -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)
{


Laddar…
Avbryt
Spara