|
|
@@ -1761,7 +1761,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services |
|
|
|
: await _db.Queryable<BPA_GoodsInfo>().Where(t => exportDto.Ids.Contains(t.Id)).ToListAsync(); |
|
|
|
var goodsAttributeList = await _db.Queryable<BPA_GoodsAttribute>().ToListAsync(); |
|
|
|
var goodsAttributeValueList = await _db.Queryable<BPA_GoodsAttributeValue>().Where(t => goodsAttributeList.Select(a => a.Id).Contains(t.GoodsAttributeId)).OrderBy(a => a.Sort).ToListAsync(); |
|
|
|
var actionList = await _db.Queryable<BPA_GoodsTechnologyAction>().Where(t => t.DeviceId == exportDto.DeviceId).ToListAsync(); |
|
|
|
var goodsTechnologyActionList = await _db.Queryable<BPA_GoodsTechnologyAction>().Where(t => t.DeviceId == exportDto.DeviceId).ToListAsync(); |
|
|
|
IWorkbook workbook = new XSSFWorkbook(); |
|
|
|
ICellStyle style = workbook.CreateCellStyle(); |
|
|
|
style.FillForegroundColor = IndexedColors.Grey25Percent.Index; |
|
|
@@ -1794,7 +1794,7 @@ namespace BPA.SAAS.Manage.Application.DataBase.Services |
|
|
|
headerRow.GetCell(2).CellStyle = style; |
|
|
|
headerRow.GetCell(3).CellStyle = style; |
|
|
|
headerRow.GetCell(4).CellStyle = style; |
|
|
|
actionList = actionList.Where(t => t.GoodsId == good.Id).OrderBy(a => a.GoodsAttributeId).OrderBy(a => a.Order).ToList(); |
|
|
|
var actionList = goodsTechnologyActionList.Where(t => t.GoodsId == good.Id).OrderBy(a => a.GoodsAttributeId).OrderBy(a => a.Order).ToList(); |
|
|
|
var k = 1; |
|
|
|
for (int i = 0; i < actionList.Count; i++) |
|
|
|
{ |
|
|
|