2022-06-29 13:04:30 +05:00
|
|
|
|
using System;
|
2022-06-30 16:01:46 +05:00
|
|
|
|
using AsbCloudApp.Data.DailyReport;
|
2022-06-29 13:04:30 +05:00
|
|
|
|
using ClosedXML.Excel;
|
|
|
|
|
|
|
|
|
|
namespace AsbCloudInfrastructure.Services.DailyReport.DailyReportBlocks
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
internal class SaubBlock : BlockAbstract
|
|
|
|
|
{
|
|
|
|
|
private readonly DailyReportSaubDto blockDto;
|
|
|
|
|
|
2022-06-30 16:01:46 +05:00
|
|
|
|
public CellAddress AddressBhaWithFormula { get; }
|
2022-06-29 13:04:30 +05:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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;
|
2022-06-30 16:01:46 +05:00
|
|
|
|
AddressBhaWithFormula = addressBlockBegin + (0, 0);
|
2022-06-29 13:04:30 +05:00
|
|
|
|
|
|
|
|
|
//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); // для примера с будущей формулой
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|