forked from ddrilling/AsbCloudServer
19 lines
484 B
C#
19 lines
484 B
C#
using System;
|
|
using AsbCloudApp.Data.ProcessMapPlan;
|
|
using AsbCloudInfrastructure.Services.Parser;
|
|
|
|
namespace AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
|
|
|
|
public abstract class ProcessMapPlanParser<TDto> : ParserExcelService<TDto>
|
|
where TDto : ProcessMapPlanBaseDto
|
|
{
|
|
protected override int HeaderRowsCount => 2;
|
|
|
|
protected static int? GetIdMode(string? modeName) =>
|
|
modeName?.Trim().ToLower() switch
|
|
{
|
|
"ротор" => 1,
|
|
"слайд" => 2,
|
|
_ => null
|
|
};
|
|
} |