forked from ddrilling/AsbCloudServer
26 lines
1.1 KiB
C#
26 lines
1.1 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using AsbCloudApp.Data.WellOperation;
|
|
|
|
namespace AsbCloudInfrastructure.Services.ExcelServices.Templates.WellOperations;
|
|
|
|
public class WellOperationFactTemplate : ITemplateParameters
|
|
{
|
|
public string SheetName => "Факт";
|
|
|
|
public int HeaderRowsCount => 1;
|
|
|
|
public string FileName => "WellOperationFactTemplate.xlsx";
|
|
|
|
public IDictionary<string, Cell> Cells => new Dictionary<string, Cell>
|
|
{
|
|
{ nameof(WellOperationDto.WellSectionTypeCaption), new Cell(1, typeof(string)) },
|
|
{ nameof(WellOperationDto.OperationCategoryName), new Cell(2, typeof(string)) },
|
|
{ nameof(WellOperationDto.CategoryInfo), new Cell(3, typeof(string)) },
|
|
{ nameof(WellOperationDto.DepthStart), new Cell(4, typeof(double)) },
|
|
{ nameof(WellOperationDto.DepthEnd), new Cell(5, typeof(double)) },
|
|
{ nameof(WellOperationDto.DateStart), new Cell(6, typeof(DateTime)) },
|
|
{ nameof(WellOperationDto.DurationHours), new Cell(7, typeof(double)) },
|
|
{ nameof(WellOperationDto.Comment), new Cell(8, typeof(string)) }
|
|
};
|
|
} |