люблю пустые классы - в них нет ошибок (накидала оформления для отчетов, надобавляла пустых классов)

This commit is contained in:
sofiaivv 2024-05-26 06:21:51 +04:00
parent 11db469329
commit 2bb0a0ae39
29 changed files with 309 additions and 5 deletions

View File

@ -20,7 +20,7 @@ namespace LawCompanyBusinessLogic.BusinessLogics
private readonly AbstractSaveToWordGuarantor _saveToWord;
private readonly AbstractSaveToPdfGuarantor _saveToPdf;
public ReportLogicOrganiser(IVisitStorage visitStorage, IClientStorage clientStorage, ICaseStorage caseStorage,
public ReportLogicGuarantor(IVisitStorage visitStorage, IClientStorage clientStorage, ICaseStorage caseStorage,
IConsultationStorage consultationStorage, IHearingStorage hearingStorage,
AbstractSaveToExcelGuarantor saveToExcel, AbstractSaveToWordGuarantor saveToWord, AbstractSaveToPdfGuarantor saveToPdf)
{

View File

@ -15,8 +15,4 @@
<ProjectReference Include="..\LawCompanyDataModels\LawCompanyDataModels.csproj" />
</ItemGroup>
<ItemGroup>
<Folder Include="OfficePackage\" />
</ItemGroup>
</Project>

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawCompanyBusinessLogic.OfficePackage
{
internal class AbstractSaveToExcelExecutor
{
}
}

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawCompanyBusinessLogic.OfficePackage
{
internal class AbstractSaveToExcelGuarantor
{
}
}

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawCompanyBusinessLogic.OfficePackage
{
internal class AbstractSaveToPdfExecutor
{
}
}

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawCompanyBusinessLogic.OfficePackage
{
internal class AbstractSaveToPdfGuarantor
{
}
}

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawCompanyBusinessLogic.OfficePackage
{
internal class AbstractSaveToWordExecutor
{
}
}

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawCompanyBusinessLogic.OfficePackage
{
internal class AbstractSaveToWordGuarantor
{
}
}

View File

@ -0,0 +1,9 @@
namespace LawCompanyBusinessLogic.OfficePackage.HelperEnums
{
public enum ExcelStyleInfoType
{
Title,
Text,
TextWithBroder
}
}

View File

@ -0,0 +1,9 @@
namespace LawCompanyBusinessLogic.OfficePackage.HelperEnums
{
public enum PdfParagraphAlignmentType
{
Center,
Left,
Rigth
}
}

View File

@ -0,0 +1,8 @@
namespace LawCompanyBusinessLogic.OfficePackage.HelperEnums
{
public enum WordJustificationType
{
Center,
Both
}
}

View File

@ -0,0 +1,13 @@
using LawCompanyBusinessLogic.OfficePackage.HelperEnums;
namespace LawCompanyBusinessLogic.OfficePackage.HelperModels
{
public class ExcelCellParameters
{
public string ColumnName { get; set; } = string.Empty;
public uint RowIndex { get; set; }
public string Text { get; set; } = string.Empty;
public string CellReference => $"{ColumnName}{RowIndex}";
public ExcelStyleInfoType StyleInfo { get; set; }
}
}

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawCompanyBusinessLogic.OfficePackage.HelperModels
{
internal class ExcelInfoExecutor
{
}
}

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawCompanyBusinessLogic.OfficePackage.HelperModels
{
internal class ExcelInfoGuarantor
{
}
}

View File

@ -0,0 +1,9 @@
namespace LawCompanyBusinessLogic.OfficePackage.HelperModels
{
public class ExcelMergeParameters
{
public string CellFromName { get; set; } = string.Empty;
public string CellToName { get; set; } = string.Empty;
public string Merge => $"{CellFromName}:{CellToName}";
}
}

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawCompanyBusinessLogic.OfficePackage.HelperModels
{
internal class PdfInfoExecutor
{
}
}

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawCompanyBusinessLogic.OfficePackage.HelperModels
{
internal class PdfInfoGuarantor
{
}
}

View File

@ -0,0 +1,11 @@
using LawCompanyBusinessLogic.OfficePackage.HelperEnums;
namespace LawCompanyBusinessLogic.OfficePackage.HelperModels
{
public class PdfParagraph
{
public string Text { get; set; } = string.Empty;
public string Style { get; set; } = string.Empty;
public PdfParagraphAlignmentType ParagraphAlignment { get; set; }
}
}

View File

@ -0,0 +1,11 @@
using LawCompanyBusinessLogic.OfficePackage.HelperEnums;
namespace LawCompanyBusinessLogic.OfficePackage.HelperModels
{
public class PdfRowParameters
{
public List<string> Texts { get; set; } = new();
public string Style { get; set; } = string.Empty;
public PdfParagraphAlignmentType ParagraphAlignment { get; set; }
}
}

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawCompanyBusinessLogic.OfficePackage.HelperModels
{
internal class WordInfoExecutor
{
}
}

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawCompanyBusinessLogic.OfficePackage.HelperModels
{
internal class WordInfoGuarantor
{
}
}

View File

@ -0,0 +1,10 @@
using LawCompanyBusinessLogic.OfficePackage.HelperModels;
namespace LawCompanyBusinessLogic.OfficePackage.HelperModels
{
public class WordParagraph
{
public List<(string, WordTextProperties)> Texts { get; set; } = new();
public WordTextProperties? TextProperties { get; set; }
}
}

View File

@ -0,0 +1,11 @@
using LawCompanyBusinessLogic.OfficePackage.HelperEnums;
namespace LawCompanyBusinessLogic.OfficePackage.HelperModels
{
public class WordTextProperties
{
public string Size { get; set; } = string.Empty;
public bool Bold { get; set; }
public WordJustificationType JustificationType { get; set; }
}
}

View File

@ -0,0 +1,13 @@

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawCompanyBusinessLogic.OfficePackage.Implements
{
internal class SaveToExcelExecutor
{
}
}

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawCompanyBusinessLogic.OfficePackage.Implements
{
internal class SaveToExcelGuarantor
{
}
}

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawCompanyBusinessLogic.OfficePackage.Implements
{
internal class SaveToPdfExecutor
{
}
}

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawCompanyBusinessLogic.OfficePackage.Implements
{
internal class SaveToPdfGuarantor
{
}
}

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawCompanyBusinessLogic.OfficePackage.Implements
{
internal class SaveToWordExecutor
{
}
}

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace LawCompanyBusinessLogic.OfficePackage.Implements
{
internal class SaveToWordGuarantor
{
}
}