Merge branch 'main' of http://student.git.athene.tech/Ismailov_Rovshan/CourseWork_FurnitureFactory
This commit is contained in:
commit
3cc19144c6
@ -14,7 +14,6 @@ namespace FurnitureFactoryBusinessLogic.OfficePackage.Implements
|
||||
{
|
||||
CreatePdf(info);
|
||||
CreateParagraph(new PdfParagraph { Text = info.Title, Style = "NormalTitle", ParagraphAlignment = PdfParagraphAlignmentType.Center });
|
||||
CreateParagraph(new PdfParagraph { Text = $"с {info.DateFrom.ToShortDateString()} по {info.DateTo.ToShortDateString()}", Style = "Normal", ParagraphAlignment = PdfParagraphAlignmentType.Center });
|
||||
|
||||
CreateTable(new List<string> { "2cm", "3cm", "6cm", "3cm", "3cm", "6cm", "6cm" });
|
||||
|
||||
|
@ -1,18 +0,0 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using FurnitureFactoryBusinessLogic.OfficePackage.HelperEnums;
|
||||
|
||||
namespace FurnitureFactoryBusinessLogic.OfficePackage.HelperEnums
|
||||
{
|
||||
internal class PdfRowParameters
|
||||
{
|
||||
public List<string> Texts { get; set; } = new();
|
||||
|
||||
public string Style { get; set; } = string.Empty;
|
||||
|
||||
public PdfParagraphAlignmentType ParagraphAlignment { get; set; }
|
||||
}
|
||||
}
|
@ -1,13 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
using System.Text;
|
||||
using System.Threading.Tasks;
|
||||
using FurnitureContracts.ViewModel;
|
||||
using FurnitureFactoryDataModels.Models;
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.ComponentModel;
|
||||
using FurnitureContracts.ViewModel;
|
||||
|
||||
|
||||
namespace FurnitureFactoryBusinessLogic.OfficePackage.HelperModels
|
||||
{
|
||||
|
@ -6,7 +6,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace FurnitureFactoryBusinessLogic.OfficePackage.HelperEnums
|
||||
{
|
||||
public class ExcelMergeParameters
|
||||
public enum ExcelMergeParameters
|
||||
{
|
||||
public string CellFromName { get; set; } = string.Empty;
|
||||
|
||||
|
@ -1,16 +1,16 @@
|
||||
using FurnitureFactoryBusinessLogic.OfficePackage.HelperEnums;
|
||||
using FurnitureFactoryBusinessLogic.OfficePackage.HelperModels;
|
||||
using static System.Net.Mime.MediaTypeNames;
|
||||
using DocumentFormat.OpenXml;
|
||||
using DocumentFormat.OpenXml.Office2010.Excel;
|
||||
using DocumentFormat.OpenXml.Office2013.Excel;
|
||||
using DocumentFormat.OpenXml.Packaging;
|
||||
using DocumentFormat.OpenXml.Spreadsheet;
|
||||
using MediaTypeNames = System.Net.Mime.MediaTypeNames;
|
||||
|
||||
|
||||
namespace FurnitureFactoryBusinessLogic.OfficePackage.Implements
|
||||
{
|
||||
public class SaveToExcelManager
|
||||
public class SaveToExcelManager : AbstractSaveToExcelManager
|
||||
{
|
||||
private SpreadsheetDocument? _spreadsheetDocument;
|
||||
|
||||
@ -161,7 +161,6 @@ namespace FurnitureFactoryBusinessLogic.OfficePackage.Implements
|
||||
|
||||
CreateStyles(workbookpart);
|
||||
|
||||
|
||||
_shareStringPart = _spreadsheetDocument.WorkbookPart!.GetPartsOfType<SharedStringTablePart>().Any()
|
||||
? _spreadsheetDocument.WorkbookPart.GetPartsOfType<SharedStringTablePart>().First()
|
||||
: _spreadsheetDocument.WorkbookPart.AddNewPart<SharedStringTablePart>();
|
||||
|
@ -9,14 +9,13 @@ using System.Threading.Tasks;
|
||||
using FurnitureFactoryBusinessLogic.OfficePackage.HelperModels;
|
||||
using static System.Net.Mime.MediaTypeNames;
|
||||
using DocumentFormat.OpenXml;
|
||||
using DocumentFormat.OpenXml.Office2010.Excel;
|
||||
using DocumentFormat.OpenXml.Office2013.Excel;
|
||||
using DocumentFormat.OpenXml.Packaging;
|
||||
using DocumentFormat.OpenXml.Spreadsheet;
|
||||
using MigraDoc.DocumentObjectModel.Tables;
|
||||
|
||||
|
||||
namespace FurnitureFactoryBusinessLogic.OfficePackage.Implements
|
||||
{
|
||||
public class SaveToPdfManager
|
||||
public class SaveToPdfManager : AbstractSaveToPdfManager
|
||||
{
|
||||
private Document? _document;
|
||||
|
||||
|
@ -11,7 +11,7 @@ using System.Threading.Tasks;
|
||||
|
||||
namespace FurnitureFactoryBusinessLogic.OfficePackage.Implements
|
||||
{
|
||||
public class SaveToWordManager
|
||||
public class SaveToWordManager : AbstractSaveToWordManager
|
||||
{
|
||||
private WordprocessingDocument? _wordDocument;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user