Преглед на файлове

operatorHelper增加grade和major

娄底高职分支
liangkun преди 1 година
родител
ревизия
b55116e0ff
променени са 1 файла, в които са добавени 13 реда и са изтрити 0 реда
  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 Целия файл

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


Зареждане…
Отказ
Запис