Bladeren bron

operatorHelper增加grade和major

娄底高职分支
liangkun 1 jaar geleden
bovenliggende
commit
b55116e0ff
1 gewijzigde bestanden met toevoegingen van 13 en 0 verwijderingen
  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 Bestand weergeven

@@ -6,6 +6,7 @@ using Learun.Cache.Factory;
using System; using System;
using System.Collections.Generic; using System.Collections.Generic;
using System.Web; using System.Web;
using Learun.Application.TwoDevelopment.EducationalAdministration;


namespace Learun.Util.Operat namespace Learun.Util.Operat
{ {
@@ -24,6 +25,8 @@ namespace Learun.Util.Operat


private CompanyIBLL companyIBLL = new CompanyBLL(); private CompanyIBLL companyIBLL = new CompanyBLL();
private DepartmentIBLL departmentIBLL = new DepartmentBLL(); private DepartmentIBLL departmentIBLL = new DepartmentBLL();
private StuInfoBasicIBLL stuInfoBasicIBLL = new StuInfoBasicBLL();
CdMajorIBLL majorIbll = new CdMajorBLL();




#endregion #endregion
@@ -359,6 +362,16 @@ namespace Learun.Util.Operat
userInfo.postIds = userRelationIBLL.GetObjectIds(userEntity.F_UserId, 2); userInfo.postIds = userRelationIBLL.GetObjectIds(userEntity.F_UserId, 2);
userInfo.companyIds = companyIBLL.GetSubNodes(userEntity.F_CompanyId); userInfo.companyIds = companyIBLL.GetSubNodes(userEntity.F_CompanyId);
userInfo.departmentIds = departmentIBLL.GetSubNodes(userEntity.F_CompanyId, userEntity.F_DepartmentId); 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; userInfo.loadTime = DateTime.Now;
if (HttpContext.Current != null) if (HttpContext.Current != null)
{ {


||||||
x
 
000:0
Laden…
Annuleren
Opslaan