DD.WellWorkover.Cloud/AsbCloudInfrastructure/Services/ExcelServices/Templates/WellOperations/WellOperationPlanTemplate.cs

26 lines
1.0 KiB
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using AsbCloudApp.Data.WellOperation;
namespace AsbCloudInfrastructure.Services.ExcelServices.Templates.WellOperations;
public class WellOperationPlanTemplate : ITemplateParameters
{
public string SheetName => "План";
public int HeaderRowsCount => 1;
public string FileName => "WellOperationPlanTemplate.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)) }
};
}