forked from ddrilling/AsbCloudServer
61 lines
1.6 KiB
C#
61 lines
1.6 KiB
C#
|
using System;
|
|||
|
using AsbCloudApp.Data.DailyReportModel;
|
|||
|
using ClosedXML.Excel;
|
|||
|
|
|||
|
namespace AsbCloudInfrastructure.Services.DailyReport.DailyReportBlocks
|
|||
|
{
|
|||
|
|
|||
|
internal class DimensionlessBlock : BlockAbstract
|
|||
|
{
|
|||
|
private readonly DailyReportDimensionlessDto blockDto;
|
|||
|
|
|||
|
public CellAddress AddressBhaDescription { get; }
|
|||
|
|
|||
|
|
|||
|
public CellAddress[] AddressPeriodTableDataArray { get; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Значение нижняя правая ячейка блока
|
|||
|
/// </summary>
|
|||
|
public override CellAddress AddressBlockBegin { get; }
|
|||
|
|
|||
|
/// <summary>
|
|||
|
/// Значение нижняя правая ячейка блока
|
|||
|
/// </summary>
|
|||
|
public override CellAddress AddressBlockEnd { get; }
|
|||
|
|
|||
|
public DimensionlessBlock(CellAddress addressBlockBegin, DailyReportDimensionlessDto blockDto)
|
|||
|
{
|
|||
|
AddressBlockBegin = addressBlockBegin.Copy();
|
|||
|
this.blockDto = blockDto;
|
|||
|
AddressBhaDescription = 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); // для примера с будущей формулой
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
}
|
|||
|
|