HelperEnums&HelperModels

This commit is contained in:
RavilGismatullin 2024-08-12 18:10:41 +04:00
parent 86804b33aa
commit ea69b16468
10 changed files with 129 additions and 0 deletions

View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceSourceBusinessLogic.OfficePackage.HelperEnums {
public enum ExcelStyleInfoType {
Title,
Text,
TextWithBorder
}
}

View File

@ -0,0 +1,13 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceSourceBusinessLogic.OfficePackage.HelperEnums {
public enum PdfParagraphAlignmentType {
Center,
Left,
Right,
}
}

View File

@ -0,0 +1,12 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceSourceBusinessLogic.OfficePackage.HelperEnums {
public enum WordJustificationType {
Center,
Both
}
}

View File

@ -0,0 +1,20 @@
using ServiceSourceBusinessLogic.OfficePackage.HelperEnums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceSourceBusinessLogic.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,15 @@
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceSourceBusinessLogic.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,14 @@
using ServiceSourceBusinessLogic.OfficePackage.HelperEnums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceSourceBusinessLogic.OfficePackage.HelperModels {
public class PdfParagraph {
public string Text { get; set; } = string.Empty;
public string Style { get; set; } = string.Empty;
public PdfParagraphAlignmentType alignmentType { get; set; }
}
}

View File

@ -0,0 +1,14 @@
using ServiceSourceBusinessLogic.OfficePackage.HelperEnums;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ServiceSourceBusinessLogic.OfficePackage.HelperModels {
public class PdfRowParameters {
public List<string> Text { get; set; } = new();
public string Style { get; set; } = string.Empty;
public PdfParagraphAlignmentType alignmentType { 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 ServiceSourceBusinessLogic.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 ServiceSourceBusinessLogic.OfficePackage.HelperEnums;
namespace ServiceSourceBusinessLogic.OfficePackage.HelperModels {
public class WordTextProperties {
public string Size { get; set; } = string.Empty;
public bool Bold { get; set; }
public WordJustificationType JustificationType { get; set; }
}
}

View File

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