Fix 0/00000001

This commit is contained in:
Игорь Гордеев 2024-05-30 16:46:54 +04:00
parent c66b4bc56b
commit 84895f8374
2 changed files with 5 additions and 10 deletions

View File

@ -31,18 +31,18 @@ namespace ElectronicsShopBusinessLogic.OfficePackage
{
ColumnName = "A",
RowIndex = rowIndex,
Text = pc.ProductName,
Text = pc.ProductList.ToString(),
StyleInfo = ExcelStyleInfoType.Text
});
rowIndex++;
foreach (var (product , Count) in pc.ProdictList)
foreach (var (product , Count) in pc.ProductList)
{
InsertCellInWorksheet(new ExcelCellParameters
{
ColumnName = "B",
RowIndex = rowIndex,
Text = Ingredient,
Text = product.ToString(),
StyleInfo = ExcelStyleInfoType.TextWithBroder
});
@ -68,7 +68,7 @@ namespace ElectronicsShopBusinessLogic.OfficePackage
{
ColumnName = "C",
RowIndex = rowIndex,
Text = pc.TotalCount.ToString(),
Text = pc.ClientID.ToString(),//Тут в исходние был счётчик, ClientID как заглушка от ошибки
StyleInfo = ExcelStyleInfoType.Text
});
rowIndex++;

View File

@ -5,12 +5,7 @@ using DocumentFormat.OpenXml.Packaging;
using DocumentFormat.OpenXml.Spreadsheet;
using ElectronicsShopBusinessLogic.OfficePackage.HelperEnums;
using ElectronicsShopBusinessLogic.OfficePackage.HelperModels;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using static System.Net.Mime.MediaTypeNames;
namespace ElectronicsShopBusinessLogic.OfficePackage.Implements
{