# Conflicts:
#	PARR.TemplateDistributor/TemplateDistributor.cs
This commit is contained in:
Mikhail Kuznetsov
2024-07-05 15:21:06 +10:00
28 changed files with 462 additions and 81 deletions

View File

@@ -69,15 +69,15 @@ namespace PARR.DAL.Models
public required string Solution { get; set; }
/// <summary>
/// Время последнего запуска скрипта/генерации наряда
/// </summary>
public DateTimeOffset? LastRun { get; set; }
///// <summary>
///// Время последнего запуска скрипта/генерации наряда
///// </summary>
//public DateTimeOffset? LastRun { get; set; }
/// <summary>
/// Время следующего запуска скрипта/генерации наряда
/// </summary>
public DateTimeOffset NextRun { get; set; }
///// <summary>
///// Время следующего запуска скрипта/генерации наряда
///// </summary>
//public DateTimeOffset NextRun { get; set; }
/// <summary>
/// Включить автораспределение
@@ -89,7 +89,6 @@ namespace PARR.DAL.Models
/// </summary>
public DateTimeOffset ReferenceDate { get; set; }
/// <summary>
/// Выполняет агент
/// </summary>

View File

@@ -82,6 +82,7 @@ namespace PARR.DAL
services.AddTransient<IEsppSchTypeScheduleService, EsppSchTypeScheduleService>();
services.AddTransient<IWeekendDayService, WeekendDayService>();
services.AddTransient<IDistributionPeriodService, DistributionPeriodService>();
services.AddTransient<IEsppSchTypeValueService, EsppSchTypeValueService>();
// TransformServices
services.AddTransient<IEsppScheduleTransformService, EsppScheduleTransformService>();

View File

@@ -0,0 +1,23 @@
using Microsoft.EntityFrameworkCore;
using Microsoft.Extensions.Logging;
using PARR.DAL.Context;
using PARR.DAL.Models;
using PARR.DAL.Services.Abstracts;
using PARR.DAL.Services.Interfaces;
namespace PARR.DAL.Services.Implementations
{
internal class EsppSchTypeValueService : BaseService<EsppSchTypeValue>, IEsppSchTypeValueService
{
private readonly DataContext dataContext;
protected override DbSet<EsppSchTypeValue> EntitySet => dataContext.EsppSchTypeValues;
protected override DataContext EntitiContext => dataContext;
public EsppSchTypeValueService(DataContext dataContext, ILogger<EsppSchTypeValueService> logger): base(logger)
{
this.dataContext = dataContext;
}
}
}

View File

@@ -0,0 +1,9 @@
using PARR.DAL.Models;
using PARR.DAL.Services.Interfaces.Base;
namespace PARR.DAL.Services.Interfaces
{
public interface IEsppSchTypeValueService : IBaseService<EsppSchTypeValue>
{
}
}