forked from ddrilling/AsbCloudServer
Степанов Дмитрий
ff02a29115
1. Добавил парсинг Газпромовских файлов 2. Сделал рефакторинг существующего импорта
21 lines
581 B
C#
21 lines
581 B
C#
using System.IO;
|
|
using System.Linq;
|
|
using System.Reflection;
|
|
using AsbCloudApp.Services.WellOperationImport;
|
|
|
|
namespace AsbCloudInfrastructure.Services.WellOperationImport;
|
|
|
|
public class WellOperationImportTemplateService : IWellOperationImportTemplateService
|
|
{
|
|
public Stream GetExcelTemplateStream()
|
|
{
|
|
var resourceName = Assembly.GetExecutingAssembly()
|
|
.GetManifestResourceNames()
|
|
.FirstOrDefault(n => n.EndsWith("WellOperationImportTemplate.xlsx"))!;
|
|
|
|
var stream = Assembly.GetExecutingAssembly()
|
|
.GetManifestResourceStream(resourceName)!;
|
|
|
|
return stream;
|
|
}
|
|
} |