zhangli hace 3 años
padre
commit
5b526fcdb3
Se han modificado 1 ficheros con 3 adiciones y 2 borrados
  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 Ver fichero

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


Cargando…
Cancelar
Guardar