|
|
@@ -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; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|