|
|
@@ -24,6 +24,7 @@ namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers |
|
|
|
private DataSourceIBLL dataSourceIBLL = new DataSourceBLL(); |
|
|
|
private DepartmentIBLL departmentIBLL = new DepartmentBLL(); |
|
|
|
private UserIBLL userIBLL = new UserBLL(); |
|
|
|
private Ass_AssetsTypeIBLL ass_AssetsTypeIBLL = new Ass_AssetsTypeBLL(); |
|
|
|
|
|
|
|
#region 视图功能 |
|
|
|
|
|
|
@@ -118,6 +119,7 @@ namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers |
|
|
|
var dataItem_AssState = dataItemIBLL.GetDetailList("AssState"); |
|
|
|
var departmentList = departmentIBLL.GetAllList(); |
|
|
|
var userList = userIBLL.GetAllList(); |
|
|
|
var ass_AssetsTypeList = ass_AssetsTypeIBLL.GetAllList(); |
|
|
|
var dataSourceEntity = dataSourceIBLL.GetEntityByCode("BaseUser"); |
|
|
|
for (int i = 0; i < exportTable.Rows.Count; i++) |
|
|
|
{ |
|
|
@@ -152,6 +154,11 @@ namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers |
|
|
|
{ |
|
|
|
exportTable.Rows[i]["AIUsePeople"] = userList.Where(x=>x.F_UserId== AIUsePeople.ToString()).FirstOrDefault()?.F_RealName; |
|
|
|
} |
|
|
|
var AIASSClass = exportTable.Rows[i]["AIASSClass"]; |
|
|
|
if (AIASSClass != null && !string.IsNullOrEmpty(AIASSClass.ToString())) |
|
|
|
{ |
|
|
|
exportTable.Rows[i]["AIASSClass"] = ass_AssetsTypeList.Where(x => x.ATId == AIASSClass.ToString()).FirstOrDefault()?.AName; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
departmentList = null; |
|
|
@@ -171,6 +178,7 @@ namespace Learun.Application.Web.Areas.AssetManagementSystem.Controllers |
|
|
|
excelconfig.ColumnEntity.Add(new ColumnModel() { Column = "rarea", ExcelColumn = "房间面积" }); |
|
|
|
excelconfig.ColumnEntity.Add(new ColumnModel() { Column = "renabledname", ExcelColumn = "房间状态" }); |
|
|
|
excelconfig.ColumnEntity.Add(new ColumnModel() { Column = "aiassname", ExcelColumn = "资产名称" }); |
|
|
|
excelconfig.ColumnEntity.Add(new ColumnModel() { Column = "aiassclass", ExcelColumn = "资产分类" }); |
|
|
|
excelconfig.ColumnEntity.Add(new ColumnModel() { Column = "aispecification", ExcelColumn = "资产品牌" }); |
|
|
|
excelconfig.ColumnEntity.Add(new ColumnModel() { Column = "aispecificationtype", ExcelColumn = "规格型号" }); |
|
|
|
excelconfig.ColumnEntity.Add(new ColumnModel() { Column = "aiunits", ExcelColumn = "计量单位" }); |
|
|
|