DD.WellWorkover.Cloud/AsbCloudInfrastructure/Services/DailyReport/DailyReportBlocks/SaubBlock.cs
IvanovEugeniy e16df1f705 изменение моделей Dto
внесение корректировок в сервис DailyReport
Убраны лишние комментарии и лишний код :
-из классов создающих блоки отчета
-из метода MakerExcel
Добавлен блок Dimensionless
2022-06-30 16:01:46 +05:00

61 lines
1.6 KiB
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using AsbCloudApp.Data.DailyReport;
using ClosedXML.Excel;
namespace AsbCloudInfrastructure.Services.DailyReport.DailyReportBlocks
{
internal class SaubBlock : BlockAbstract
{
private readonly DailyReportSaubDto blockDto;
public CellAddress AddressBhaWithFormula { get; }
public CellAddress[] AddressPeriodTableDataArray { get; }
/// <summary>
/// Значение нижняя правая ячейка блока
/// </summary>
public override CellAddress AddressBlockBegin { get; }
/// <summary>
/// Значение нижняя правая ячейка блока
/// </summary>
public override CellAddress AddressBlockEnd { get; }
public SaubBlock(CellAddress addressBlockBegin, DailyReportSaubDto blockDto)
{
AddressBlockBegin = addressBlockBegin.Copy();
this.blockDto = blockDto;
AddressBhaWithFormula = addressBlockBegin + (0, 0);
//AddressExampleData1 = addressBlockBegin + (5, 0);
//AddressBlockEnd = AddressesExampleDataArray.Last();
}
public override void Draw(IXLWorksheet sheet)
{
//sheet.Range(AddressBhaDescription, AddressBhaDescription + (0, 7))
// ._SetValue($"{blockDto.BHADescription}");
// sheet._Range(AddressExampleData1, AddressExampleData1 + (0, 4))
// ._SetValue(blockDto.BottomholeDepth); // для примера с будущей формулой
}
}
}