Browse Source

OperatorHelper 增加grade,major

塔里木分支
fzp 1 year ago
parent
commit
7843244576
2 changed files with 16 additions and 0 deletions
  1. +3
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util.Operat/Learun.Util.Operat.csproj
  2. +13
    -0
      Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util.Operat/OperatorHelper.cs

+ 3
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util.Operat/Learun.Util.Operat.csproj View File

@@ -39,6 +39,9 @@
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<ItemGroup>
<Reference Include="Learun.Application.TwoDevelopment">
<HintPath>..\..\..\Learun.Application.Website\Bin\Learun.Application.TwoDevelopment.dll</HintPath>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Web" />


+ 13
- 0
Learun.Framework.Ultimate V7/Learun.Framework.Module/Learun.Util/Learun.Util.Operat/OperatorHelper.cs View File

@@ -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
@@ -335,6 +338,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)
{


Loading…
Cancel
Save