forked from ddrilling/AsbCloudServer
16645d053a
1. Изменено апи 2. Добавлен парсер для ГГД 3. Добавлен ссервис экспорта ГГД
26 lines
1.0 KiB
C#
26 lines
1.0 KiB
C#
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)) }
|
|
};
|
|
} |