Browse Source

金隅分支
zhangli 3 years ago
parent
commit
5b526fcdb3
1 changed files with 3 additions and 2 deletions
  1. +3
    -2
      Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AssetsInfoItemController.cs

+ 3
- 2
Learun.Framework.Ultimate V7/Learun.Application.Web/Areas/AssetManagementSystem/Controllers/Ass_AssetsInfoItemController.cs View File

@@ -23,6 +23,7 @@ namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers
private DataItemIBLL dataItemIBLL = new DataItemBLL();
private DataSourceIBLL dataSourceIBLL = new DataSourceBLL();
private DepartmentIBLL departmentIBLL = new DepartmentBLL();
private UserIBLL userIBLL = new UserBLL();

#region 视图功能

@@ -116,6 +117,7 @@ namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers
var dataItem_sldw = dataItemIBLL.GetDetailList("sldw");
var dataItem_AssState = dataItemIBLL.GetDetailList("AssState");
var departmentList = departmentIBLL.GetAllList();
var userList = userIBLL.GetAllList();
var dataSourceEntity = dataSourceIBLL.GetEntityByCode("BaseUser");
for (int i = 0; i < exportTable.Rows.Count; i++)
{
@@ -148,8 +150,7 @@ namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers
var AIUsePeople = exportTable.Rows[i]["AIUsePeople"];
if (AIUsePeople != null && !string.IsNullOrEmpty(AIUsePeople.ToString()))
{
exportTable.Rows[i]["AIUsePeople"] = dataSourceIBLL.GetDataTable(dataSourceEntity,
"t.f_userid='" + AIUsePeople.ToString() + "'");
exportTable.Rows[i]["AIUsePeople"] = userList.Where(x=>x.F_UserId== AIUsePeople.ToString()).FirstOrDefault()?.F_RealName;
}
}


Loading…
Cancel
Save