Fix 0/00000001
This commit is contained in:
parent
c66b4bc56b
commit
84895f8374
@ -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++;
|
||||
|
@ -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
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user