Проработка для слайда

This commit is contained in:
Olga Nemt 2024-06-30 00:10:40 +05:00
parent fa16335b68
commit bb155aa87d
12 changed files with 213 additions and 401 deletions

View File

@ -1,209 +0,0 @@
using System.ComponentModel.DataAnnotations;
namespace AsbCloudApp.Data.ProcessMaps;
/// <summary>
/// РТК план проработка для слайда
/// </summary>
public class ProcessMapPlanOperationReamingSlideDto : ProcessMapPlanBaseDto
{
/// <summary>
/// Максимальное давление, атм
/// </summary>
[Range(0.0, 400.0, ErrorMessage = "Максимальное давление, атм., должно быть в пределах от 0 до 400")]
public double MaxPressure { get; set; }
/// <summary>
/// Перепад давления, атм.
/// </summary>
[Range(0.0, 60.0, ErrorMessage = "Перепад давления, атм., должно быть в пределах от 0 до 60")]
public double DifferentialPressure { get; set; }
/// <summary>
/// Уставки, т., затяжка
/// </summary>
[Range(0.0, 20.0, ErrorMessage = "Уставки, т., затяжка, должно быть в пределах от 0 до 20")]
public double SetpointsTight { get; set; }
/// <summary>
/// Уставки, т., посадка
/// </summary>
[Range(0.0, 20.0, ErrorMessage = "Уставки, т., посадка, должно быть в пределах от 0 до 20")]
public double SetpointsSlackingOff { get; set; }
/// <summary>
/// Максимально допустимый момент, кН*м.
/// </summary>
[Range(0.0, 35.0, ErrorMessage = "Максимально допустимый момент, кН*м., должно быть в пределах от 0 до 35")]
public double MaxTorque { get; set; }
/// <summary>
/// Проработка 1, Количество повторений, шт.
/// </summary>
[Range(0.0, 99.0, ErrorMessage = "Проработка 1, Количество повторений, шт., должно быть в пределах от 0 до 99")]
public double Reaming1NumberOfRepetitions { get; set; }
/// <summary>
/// Проработка 1, Скорость, м/ч., Вверх
/// </summary>
[Range(0.0, 999.0, ErrorMessage = "Проработка 1, Скорость, м/ч., Вверх, должно быть в пределах от 0 до 999")]
public double Reaming1ROPUp { get; set; }
/// <summary>
/// Проработка 1, Скорость, м/ч., Вниз
/// </summary>
[Range(0.0, 999.0, ErrorMessage = "Проработка 1, Скорость, м/ч., Вниз, должно быть в пределах от 0 до 999")]
public double Reaming1ROPDown { get; set; }
/// <summary>
/// Проработка 1, Обороты, об/мин., Вверх
/// </summary>
[Range(0.0, 270.0, ErrorMessage = "Проработка 1, Обороты, об/мин., Вверх, должно быть в пределах от 0 до 270")]
public double Reaming1RPMUp { get; set; }
/// <summary>
/// Проработка 1, Обороты, об/мин., Вниз
/// </summary>
[Range(0.0, 270.0, ErrorMessage = "Проработка 1, Обороты, об/мин., Вниз, должно быть в пределах от 0 до 270")]
public double Reaming1RPMDown { get; set; }
/// <summary>
/// Проработка 1, Расход, л/с., Вверх
/// </summary>
[Range(0.0, 100.0, ErrorMessage = "Проработка 1, Расход, л/с., Вверх, должно быть в пределах от 0 до 100")]
public double Reaming1FlowRateUp { get; set; }
/// <summary>
/// Проработка 1, Расход, л/с., Вниз
/// </summary>
[Range(0.0, 100.0, ErrorMessage = "Проработка 1, Расход, л/с., Вниз, должно быть в пределах от 0 до 100")]
public double Reaming1FlowRateDown { get; set; }
/// <summary>
/// Проработка 1, Интервал проработки, м.
/// </summary>
[Range(0.0, 30.0, ErrorMessage = "Проработка 1, Интервал проработки, м., должно быть в пределах от 0 до 30")]
public double Reaming1Interval { get; set; }
/// <summary>
/// Остановка над забоем, м.
/// </summary>
[Range(0.0, 10.0, ErrorMessage = "Остановка над забоем, м., должно быть в пределах от 0 до 10")]
public double Reaming1StopPointOffBottom { get; set; }
/// <summary>
/// Проработка 2, Количество повторений, шт.
/// </summary>
[Range(0.0, 99.0, ErrorMessage = "Проработка 2, Количество повторений, шт., должно быть в пределах от 0 до 99")]
public double Reaming2NumberOfRepetitions { get; set; }
/// <summary>
/// Проработка 2, Скорость, м/ч., Вверх
/// </summary>
[Range(0.0, 999.0, ErrorMessage = "Проработка 2, Скорость, м/ч., Вверх, должно быть в пределах от 0 до 999")]
public double Reaming2ROPUp { get; set; }
/// <summary>
/// Проработка 2, Скорость, м/ч., Вниз
/// </summary>
[Range(0.0, 999.0, ErrorMessage = "Проработка 2, Скорость, м/ч., Вниз, должно быть в пределах от 0 до 999")]
public double Reaming2ROPDown { get; set; }
/// <summary>
/// Проработка 2, Обороты, об/мин., Вверх
/// </summary>
[Range(0.0, 270.0, ErrorMessage = "Проработка 2, Обороты, об/мин., Вверх, должно быть в пределах от 0 до 270")]
public double Reaming2RPMUp { get; set; }
/// <summary>
/// Проработка 2, Обороты, об/мин., Вниз
/// </summary>
[Range(0.0, 270.0, ErrorMessage = "Проработка 2, Обороты, об/мин., Вниз, должно быть в пределах от 0 до 270")]
public double Reaming2RPMDown { get; set; }
/// <summary>
/// Проработка 2, Расход, л/с., Вверх
/// </summary>
[Range(0.0, 100.0, ErrorMessage = "Проработка 2, Расход, л/с., Вверх, должно быть в пределах от 0 до 100")]
public double Reaming2FlowRateUp { get; set; }
/// <summary>
/// Проработка 2, Расход, л/с., Вниз
/// </summary>
[Range(0.0, 100.0, ErrorMessage = "Проработка 2, Расход, л/с., Вниз, должно быть в пределах от 0 до 100")]
public double Reaming2FlowRateDown { get; set; }
/// <summary>
/// Проработка 2, Интервал проработки, м.
/// </summary>
[Range(0.0, 30.0, ErrorMessage = "Проработка 2, Интервал проработки, м., должно быть в пределах от 0 до 30")]
public double Reaming2Interval { get; set; }
/// <summary>
/// Остановка над забоем, м.
/// </summary>
[Range(0.0, 10.0, ErrorMessage = "Остановка над забоем, м., должно быть в пределах от 0 до 10")]
public double Reaming2StopPointOffBottom { get; set; }
/// <summary>
/// Проработка 3, Количество повторений, шт.
/// </summary>
[Range(0.0, 99.0, ErrorMessage = "Проработка 3, Количество повторений, шт., должно быть в пределах от 0 до 99")]
public double Reaming3NumberOfRepetitions { get; set; }
/// <summary>
/// Проработка 3, Скорость, м/ч., Вверх
/// </summary>
[Range(0.0, 999.0, ErrorMessage = "Проработка 3, Скорость, м/ч., Вверх, должно быть в пределах от 0 до 999")]
public double Reaming3ROPUp { get; set; }
/// <summary>
/// Проработка 3, Скорость, м/ч., Вниз
/// </summary>
[Range(0.0, 999.0, ErrorMessage = "Проработка 3, Скорость, м/ч., Вниз, должно быть в пределах от 0 до 999")]
public double Reaming3ROPDown { get; set; }
/// <summary>
/// Проработка 3, Обороты, об/мин., Вверх
/// </summary>
[Range(0.0, 270.0, ErrorMessage = "Проработка 3, Обороты, об/мин., Вверх, должно быть в пределах от 0 до 270")]
public double Reaming3RPMUp { get; set; }
/// <summary>
/// Проработка 3, Обороты, об/мин., Вниз
/// </summary>
[Range(0.0, 270.0, ErrorMessage = "Проработка 3, Обороты, об/мин., Вниз, должно быть в пределах от 0 до 270")]
public double Reaming3RPMDown { get; set; }
/// <summary>
/// Проработка 3, Расход, л/с., Вверх
/// </summary>
[Range(0.0, 100.0, ErrorMessage = "Проработка 3, Расход, л/с., Вверх, должно быть в пределах от 0 до 100")]
public double Reaming3FlowRateUp { get; set; }
/// <summary>
/// Проработка 3, Расход, л/с., Вниз
/// </summary>
[Range(0.0, 100.0, ErrorMessage = "Проработка 3, Расход, л/с., Вниз, должно быть в пределах от 0 до 100")]
public double Reaming3FlowRateDown { get; set; }
/// <summary>
/// Проработка 3, Интервал проработки, м.
/// </summary>
[Range(0.0, 30.0, ErrorMessage = "Проработка 3, Интервал проработки, м., должно быть в пределах от 0 до 30")]
public double Reaming3Interval { get; set; }
/// <summary>
/// Остановка над забоем, м.
/// </summary>
[Range(0.0, 10.0, ErrorMessage = "Остановка над забоем, м., должно быть в пределах от 0 до 10")]
public double Reaming3StopPointOffBottom { get; set; }
/// <summary>
/// Примечание
/// </summary>
[StringLength(1024, ErrorMessage = "Примечание, должно быть не более 1024 символов")]
public string Note { get; set; } = string.Empty;
}

View File

@ -0,0 +1,21 @@
using System.ComponentModel.DataAnnotations;
namespace AsbCloudApp.Data.ProcessMaps;
/// <summary>
/// РТК план выключение насоса
/// </summary>
public class ProcessMapPlanSwitchingOffThePumpDto : ProcessMapPlanBaseDto
{
/// <summary>
/// Продолжительность, сек.
/// </summary>
[Range(0.0, 1800.0, ErrorMessage = "Продолжительность, сек., должно быть в пределах от 0 до 1800")]
public double Duration { get; set; }
/// <summary>
/// Лимит остаточного давления, атм.
/// </summary>
[Range(0.0, 100.0, ErrorMessage = "Лимит остаточного давления, атм., должно быть в пределах от 0 до 100")]
public double ResidualPressureLimit { get; set; }
}

View File

@ -23,7 +23,7 @@ namespace AsbCloudDb.Model
public virtual DbSet<ProcessMapPlanSlide> ProcessMapPlanSlide => Set<ProcessMapPlanSlide>();
public virtual DbSet<ProcessMapPlanReam> ProcessMapPlanReams => Set<ProcessMapPlanReam>();
public virtual DbSet<ProcessMapPlanOperationReamingRotor> ProcessMapPlanOperationReamingRotor => Set<ProcessMapPlanOperationReamingRotor>();
public virtual DbSet<ProcessMapPlanOperationReamingSlide> ProcessMapPlanOperationReamingSlide => Set<ProcessMapPlanOperationReamingSlide>();
public virtual DbSet<ProcessMapPlanReamingSlide> ProcessMapPlanOperationReamingSlide => Set<ProcessMapPlanReamingSlide>();
public virtual DbSet<ProcessMapPlanOperationLoadCapacity> ProcessMapPlanOperationLoadCapacity => Set<ProcessMapPlanOperationLoadCapacity>();
public virtual DbSet<ProcessMapPlanSurvey> ProcessMapPlanSurvey => Set<ProcessMapPlanSurvey>();
public virtual DbSet<ProcessMapPlanOperationPositioningOffTheBottom> ProcessMapPlanOperationPositioningOffTheBottom => Set<ProcessMapPlanOperationPositioningOffTheBottom>();
@ -478,7 +478,7 @@ namespace AsbCloudDb.Model
.WithMany()
.OnDelete(DeleteBehavior.Restrict);
modelBuilder.Entity<ProcessMapPlanOperationReamingSlide>()
modelBuilder.Entity<ProcessMapPlanReamingSlide>()
.HasOne(p => p.Author)
.WithMany()
.OnDelete(DeleteBehavior.Restrict);
@ -578,7 +578,7 @@ namespace AsbCloudDb.Model
.WithMany()
.OnDelete(DeleteBehavior.Restrict);
modelBuilder.Entity<ProcessMapPlanOperationReamingSlide>()
modelBuilder.Entity<ProcessMapPlanReamingSlide>()
.HasOne(p => p.Editor)
.WithMany()
.OnDelete(DeleteBehavior.Restrict);

View File

@ -84,7 +84,7 @@ namespace AsbCloudDb.Model
DbSet<ProcessMapPlanRotor> ProcessMapPlanRotor { get; }
DbSet<ProcessMapPlanSlide> ProcessMapPlanSlide { get; }
DbSet<ProcessMapPlanOperationReamingRotor> ProcessMapPlanOperationReamingRotor { get; }
DbSet<ProcessMapPlanOperationReamingSlide> ProcessMapPlanOperationReamingSlide { get; }
DbSet<ProcessMapPlanReamingSlide> ProcessMapPlanOperationReamingSlide { get; }
DbSet<ProcessMapPlanOperationLoadCapacity> ProcessMapPlanOperationLoadCapacity { get; }
DbSet<ProcessMapPlanSurvey> ProcessMapPlanSurvey { get; }
DbSet<ProcessMapPlanOperationPositioningOffTheBottom> ProcessMapPlanOperationPositioningOffTheBottom { get; }

View File

@ -5,58 +5,58 @@ using Microsoft.EntityFrameworkCore;
namespace AsbCloudDb.Model.ProcessMaps;
[Table("t_process_map_plan_operation_reaming_slide"), Comment("РТК проработка слайд")]
public class ProcessMapPlanOperationReamingSlide : ProcessMapPlanBase
[Table("t_process_map_plan_reaming_slide"), Comment("РТК проработка слайд")]
public class ProcessMapPlanReamingSlide : ProcessMapPlanBase
{
[Column("max_pressure"), Comment("Максимальное давление, атм")]
[Column("pressure_max"), Comment("Максимально допустимое давление, атм.")]
[Range(0.0, 400.0)]
[Required]
public double MaxPressure { get; set; }
public double PressureMax { get; set; }
[Column("differential_pressure"), Comment("Перепад давления, атм.")]
[Column("differential_pressure"), Comment("Перепад давления уставка, атм.")]
[Range(0.0, 60.0)]
[Required]
public double DifferentialPressure { get; set; }
[Column("setpoints_tight"), Comment("Уставки, т., затяжка")]
[Column("tight"), Comment("Затяжка, т.")]
[Range(0.0, 20.0)]
[Required]
public double SetpointsTight { get; set; }
public double Tight { get; set; }
[Column("setpoints_slacking_off"), Comment("Уставки, т., посадка")]
[Column("slacking_off"), Comment("Посадка, т.")]
[Range(0.0, 20.0)]
[Required]
public double SetpointsSlackingOff { get; set; }
public double SlackingOff { get; set; }
[Column("max_torque"), Comment("Максимально допустимый момент, кН*м.")]
[Column("torque_max"), Comment("Максимально допустимый момент, кН*м.")]
[Range(0.0, 35.0)]
[Required]
public double MaxTorque { get; set; }
public double TorqueMax { get; set; }
[Column("reaming1_number_of_repetitions"), Comment("Проработка 1, Количество повторений, шт.")]
[Column("reaming1_repetitions_count"), Comment("Проработка 1. Количество повторений, шт.")]
[Range(0.0, 99.0)]
[Required]
public double Reaming1NumberOfRepetitions { get; set; }
public double Reaming1RepetitionsCount { get; set; }
[Column("reaming1_rop_up"), Comment("Проработка 1, Скорость, м/ч., Вверх")]
[Column("reaming1_rop_up"), Comment("Проработка 1. Скорость вверх, м/ч.")]
[Range(0.0, 999.0)]
[Required]
public double Reaming1ROPUp { get; set; }
public double Reaming1RopUp { get; set; }
[Column("reaming1_rop_down"), Comment("Проработка 1, Скорость, м/ч., Вниз")]
[Column("reaming1_rop_down"), Comment("Проработка 1. Скорость вниз, м/ч.")]
[Range(0.0, 999.0)]
[Required]
public double Reaming1ROPDown { get; set; }
public double Reaming1RopDown { get; set; }
[Column("reaming1_rpm_up"), Comment("Проработка 1, Обороты, об/мин., Вверх")]
[Range(0.0, 270.0)]
[Required]
public double Reaming1RPMUp { get; set; }
public double Reaming1RpmUp { get; set; }
[Column("reaming1_rpm_down"), Comment("Проработка 1, Обороты, об/мин., Вниз")]
[Range(0.0, 270.0)]
[Required]
public double Reaming1RPMDown { get; set; }
public double Reaming1RpmDown { get; set; }
[Column("reaming1_flow_rate_up"), Comment("Проработка 1, Расход, л/с., Вверх")]
[Range(0.0, 100.0)]
@ -78,25 +78,25 @@ public class ProcessMapPlanOperationReamingSlide : ProcessMapPlanBase
[Required]
public double Reaming1StopPointOffBottom { get; set; }
[Column("reaming2_number_of_ repetitions"), Comment("Проработка 2, Количество повторений, шт.")]
[Column("reaming2_repetitions_count"), Comment("Проработка 2, Количество повторений, шт.")]
[Range(0.0, 99.0)]
public double Reaming2NumberOfRepetitions { get; set; }
public double Reaming2RepetitionsCount { get; set; }
[Column("reaming2_rop_up"), Comment("Проработка 2, Скорость, м/ч., Вверх")]
[Range(0.0, 999.0)]
public double Reaming2ROPUp { get; set; }
public double Reaming2RopUp { get; set; }
[Column("reaming2_rop_down"), Comment("Проработка 2, Скорость, м/ч., Вниз")]
[Range(0.0, 999.0)]
public double Reaming2ROPDown { get; set; }
public double Reaming2RopDown { get; set; }
[Column("reaming2_rpm_up"), Comment("Проработка 2, Обороты, об/мин., Вверх")]
[Range(0.0, 270.0)]
public double Reaming2RPMUp { get; set; }
public double Reaming2RpmUp { get; set; }
[Column("reaming2_rpm_down"), Comment("Проработка 2, Обороты, об/мин., Вниз")]
[Range(0.0, 270.0)]
public double Reaming2RPMDown { get; set; }
public double Reaming2RpmDown { get; set; }
[Column("reaming2_flow_rate_up"), Comment("Проработка 2, Расход, л/с., Вверх")]
[Range(0.0, 100.0)]
@ -114,25 +114,25 @@ public class ProcessMapPlanOperationReamingSlide : ProcessMapPlanBase
[Range(0.0, 10.0)]
public double Reaming2StopPointOffBottom { get; set; }
[Column("reaming3_number_of_ repetitions"), Comment("Проработка 3, Количество повторений, шт.")]
[Column("reaming3_repetitions_count"), Comment("Проработка 3, Количество повторений, шт.")]
[Range(0.0, 99.0)]
public double Reaming3NumberOfRepetitions { get; set; }
public double Reaming3RepetitionsCount { get; set; }
[Column("reaming3_rop_up"), Comment("Проработка 3, Скорость, м/ч., Вверх")]
[Range(0.0, 999.0)]
public double Reaming3ROPUp { get; set; }
public double Reaming3RopUp { get; set; }
[Column("reaming3_rop_down"), Comment("Проработка 3, Скорость, м/ч., Вниз")]
[Range(0.0, 999.0)]
public double Reaming3ROPDown { get; set; }
public double Reaming3RopDown { get; set; }
[Column("reaming3_rpm_up"), Comment("Проработка 3, Обороты, об/мин., Вверх")]
[Range(0.0, 270.0)]
public double Reaming3RPMUp { get; set; }
public double Reaming3RpmUp { get; set; }
[Column("reaming3_rpm_down"), Comment("Проработка 3, Обороты, об/мин., Вниз")]
[Range(0.0, 270.0)]
public double Reaming3RPMDown { get; set; }
public double Reaming3RpmDown { get; set; }
[Column("reaming3_flow_rate_up"), Comment("Проработка 3, Расход, л/с., Вверх")]
[Range(0.0, 100.0)]
@ -154,5 +154,5 @@ public class ProcessMapPlanOperationReamingSlide : ProcessMapPlanBase
public string Note { get; set; } = string.Empty;
[ForeignKey(nameof(IdPrevious))]
public virtual ProcessMapPlanOperationReamingSlide? Previous { get; set; }
public virtual ProcessMapPlanReamingSlide? Previous { get; set; }
}

View File

@ -153,11 +153,11 @@ namespace AsbCloudInfrastructure
Item = src.Adapt<ProcessMapPlanOperationReamingRotorDto>()
});
TypeAdapterConfig<ChangeLogAbstract, ChangeLogDto<ProcessMapPlanOperationReamingSlideDto>>.NewConfig()
.Include<ProcessMapPlanOperationReamingSlide, ChangeLogDto<ProcessMapPlanOperationReamingSlideDto>>()
.Map(dest => dest, src => new ChangeLogDto<ProcessMapPlanOperationReamingSlideDto>()
TypeAdapterConfig<ChangeLogAbstract, ChangeLogDto<ProcessMapPlanReamingSlideDto>>.NewConfig()
.Include<ProcessMapPlanReamingSlide, ChangeLogDto<ProcessMapPlanReamingSlideDto>>()
.Map(dest => dest, src => new ChangeLogDto<ProcessMapPlanReamingSlideDto>()
{
Item = src.Adapt<ProcessMapPlanOperationReamingSlideDto>()
Item = src.Adapt<ProcessMapPlanReamingSlideDto>()
});
TypeAdapterConfig<ChangeLogAbstract, ChangeLogDto<ProcessMapPlanOperationLoadCapacityDto>>.NewConfig()
@ -430,7 +430,7 @@ namespace AsbCloudInfrastructure
services.AddTransient<ProcessMapPlanSlideParser>();
services.AddTransient<ProcessMapPlanReamParser>();
services.AddTransient<ProcessMapPlanOperationReamingRotorParser>();
services.AddTransient<ProcessMapPlanOperationReamingSlideParser>();
services.AddTransient<ProcessMapPlanReamingSlideParser>();
services.AddTransient<ProcessMapPlanOperationLoadCapacityParser>();
services.AddTransient<ProcessMapPlanSurveyParser>();
services.AddTransient<ProcessMapPlanOperationPositioningOffTheBottomParser>();
@ -456,7 +456,7 @@ namespace AsbCloudInfrastructure
services.AddTransient<ProcessMapPlanSlideExportService>();
services.AddTransient<ProcessMapPlanReamExportService>();
services.AddTransient<ProcessMapPlanOperationReamingRotorExportService>();
services.AddTransient<ProcessMapPlanOperationReamingSlideExportService>();
services.AddTransient<ProcessMapPlanReamingSlideExportService>();
services.AddTransient<ProcessMapPlanOperationLoadCapacityExportService>();
services.AddTransient<ProcessMapPlanSurveyExportService>();
services.AddTransient<ProcessMapPlanOperationPositioningOffTheBottomExportService>();
@ -499,8 +499,8 @@ namespace AsbCloudInfrastructure
ProcessMapPlanBaseRepository<ProcessMapPlanOperationReamingRotor, ProcessMapPlanOperationReamingRotorDto>>();
services.AddTransient<
IChangeLogRepository<ProcessMapPlanOperationReamingSlideDto, ProcessMapPlanBaseRequestWithWell>,
ProcessMapPlanBaseRepository<ProcessMapPlanOperationReamingSlide, ProcessMapPlanOperationReamingSlideDto>>();
IChangeLogRepository<ProcessMapPlanReamingSlideDto, ProcessMapPlanBaseRequestWithWell>,
ProcessMapPlanBaseRepository<ProcessMapPlanReamingSlide, ProcessMapPlanReamingSlideDto>>();
services.AddTransient<
IChangeLogRepository<ProcessMapPlanOperationLoadCapacityDto, ProcessMapPlanBaseRequestWithWell>,
@ -569,7 +569,7 @@ namespace AsbCloudInfrastructure
services.AddTransient<IWellCompositeRepository, WellCompositeRepository<ProcessMapPlanRotorDto>>();
services.AddTransient<IWellCompositeRepository, WellCompositeRepository<ProcessMapPlanSlideDto>>();
services.AddTransient<IWellCompositeRepository, WellCompositeRepository<ProcessMapPlanOperationReamingRotorDto>>();
services.AddTransient<IWellCompositeRepository, WellCompositeRepository<ProcessMapPlanOperationReamingSlideDto>>();
services.AddTransient<IWellCompositeRepository, WellCompositeRepository<ProcessMapPlanReamingSlideDto>>();
services.AddTransient<IWellCompositeRepository, WellCompositeRepository<ProcessMapPlanOperationLoadCapacityDto>>();
services.AddTransient<IWellCompositeRepository, WellCompositeRepository<ProcessMapPlanSurveyDto>>();
services.AddTransient<IWellCompositeRepository, WellCompositeRepository<ProcessMapPlanOperationPositioningOffTheBottomDto>>();

View File

@ -2,13 +2,13 @@ using System.Collections.Generic;
namespace AsbCloudInfrastructure.Services.ExcelServices.Templates.ProcessMapPlanTemplates;
public class ProcessMapPlanOperationReamingSlideTemplate : ITemplateParameters
public class ProcessMapPlanReamingSlideTemplate : ITemplateParameters
{
public string SheetName => "Проработка слайд";
public int HeaderRowsCount => 2;
public string FileName => "ProcessMapPlanOperationReamingSlideTemplate.xlsx";
public string FileName => "ProcessMapPlanReamingSlideTemplate.xlsx";
public IDictionary<string, Cell> Cells => new Dictionary<string, Cell>
{

View File

@ -10,16 +10,16 @@ using System.Threading.Tasks;
namespace AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
public class ProcessMapPlanOperationReamingSlideExportService : ProcessMapPlanExportService<ProcessMapPlanOperationReamingSlideDto>
public class ProcessMapPlanReamingSlideExportService : ProcessMapPlanExportService<ProcessMapPlanReamingSlideDto>
{
public ProcessMapPlanOperationReamingSlideExportService(
IChangeLogRepository<ProcessMapPlanOperationReamingSlideDto, ProcessMapPlanBaseRequestWithWell> processMapPlanRepository,
public ProcessMapPlanReamingSlideExportService(
IChangeLogRepository<ProcessMapPlanReamingSlideDto, ProcessMapPlanBaseRequestWithWell> processMapPlanRepository,
IWellService wellService)
: base(processMapPlanRepository, wellService)
{
}
protected override ITemplateParameters TemplateParameters { get; } = new ProcessMapPlanOperationReamingSlideTemplate();
protected override ITemplateParameters TemplateParameters { get; } = new ProcessMapPlanReamingSlideTemplate();
protected override async Task<string> BuildFileNameAsync(WellRelatedExportRequest options, CancellationToken token)
{

View File

@ -9,16 +9,16 @@ using AsbCloudInfrastructure.Services.ExcelServices.Templates.ProcessMapPlanTemp
namespace AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
public class ProcessMapPlanOperationReamingSlideParser : ProcessMapPlanParser<ProcessMapPlanOperationReamingSlideDto>
public class ProcessMapPlanReamingSlideParser : ProcessMapPlanParser<ProcessMapPlanReamingSlideDto>
{
public ProcessMapPlanOperationReamingSlideParser(IWellOperationRepository wellOperationRepository)
public ProcessMapPlanReamingSlideParser(IWellOperationRepository wellOperationRepository)
: base(wellOperationRepository)
{
}
protected override ITemplateParameters TemplateParameters => new ProcessMapPlanOperationReamingSlideTemplate();
protected override ITemplateParameters TemplateParameters => new ProcessMapPlanReamingSlideTemplate();
protected override ProcessMapPlanOperationReamingSlideDto BuildDto(IDictionary<string, object?> row, int rowNumber)
protected override ProcessMapPlanReamingSlideDto BuildDto(IDictionary<string, object?> row, int rowNumber)
{
var dto = base.BuildDto(row, rowNumber);

View File

@ -0,0 +1,131 @@
using AsbCloudApp.Data.ProcessMaps;
using AsbCloudApp.Repositories;
using AsbCloudApp.Requests;
using AsbCloudApp.Services;
using AsbCloudDb.Model.ProcessMaps;
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
using AsbCloudWebApi.IntegrationTests;
using Microsoft.EntityFrameworkCore;
using Xunit;
namespace AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan.Operations;
/// <summary>
/// РТК план проработка для слайда
/// </summary>
public class ProcessMapPlanReamingSlideControllerTest :
ProcessMapPlanBaseControllerTest<ProcessMapPlanReamingSlide, ProcessMapPlanReamingSlideDto>
{
public ProcessMapPlanReamingSlideControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanOperationReamingSlide")
{
}
private readonly ProcessMapPlanReamingSlideDto dto = new ProcessMapPlanReamingSlideDto()
{
IdWell = 1,
DepthStart = 1,
DepthEnd = 2,
Id = 0,
IdWellSectionType = 1,
SlackingOff = 1,
Reaming3StopPointOffBottom = 2,
Reaming3RopUp = 3,
Reaming3Interval = 4,
Reaming2StopPointOffBottom = 5,
Reaming2RopUp = 6,
Reaming2RepetitionsCount = 7,
Reaming3FlowRateUp = 8,
Reaming2FlowRateUp = 9,
Reaming1StopPointOffBottom = 1,
Reaming1RopUp = 1,
Reaming1Interval = 2,
DifferentialPressure = 3,
PressureMax = 4,
TorqueMax = 5,
Note = "1",
Reaming1FlowRateDown = 6,
Reaming1FlowRateUp = 7,
Reaming1RepetitionsCount = 8,
Reaming1RopDown = 9,
Reaming1RpmDown = 1,
Reaming1RpmUp = 1,
Reaming2FlowRateDown = 2,
Reaming2Interval = 3,
Reaming2RopDown = 3,
Reaming2RpmDown = 4,
Reaming2RpmUp = 5,
Reaming3FlowRateDown = 6,
Reaming3RepetitionsCount = 3,
Reaming3RopDown = 4,
Reaming3RpmDown = 5,
Reaming3RpmUp = 6,
Tight = 1,
};
private readonly ProcessMapPlanReamingSlide entity = new ProcessMapPlanReamingSlide()
{
IdWell = 1,
DepthEnd = 10,
DepthStart = 2,
Id = 0,
IdWellSectionType = 1,
IdAuthor = 1,
IdEditor = 1,
Creation = DateTimeOffset.UtcNow,
SlackingOff = 1,
Reaming3StopPointOffBottom = 2,
Reaming3RopUp = 3,
Reaming3Interval = 4,
Reaming2StopPointOffBottom = 5,
Reaming2RopUp = 6,
Reaming2RepetitionsCount = 7,
Reaming3FlowRateUp = 8,
Reaming2FlowRateUp = 9,
Reaming1StopPointOffBottom = 1,
Reaming1RopUp = 1,
Reaming1Interval = 2,
DifferentialPressure = 3,
PressureMax = 4,
TorqueMax = 5,
Note = "1",
Reaming1FlowRateDown = 6,
Reaming1FlowRateUp = 7,
Reaming1RepetitionsCount = 8,
Reaming1RopDown = 9,
Reaming1RpmDown = 1,
Reaming1RpmUp = 1,
Reaming2FlowRateDown = 2,
Reaming2Interval = 3,
Reaming2RopDown = 3,
Reaming2RpmDown = 4,
Reaming2RpmUp = 5,
Reaming3FlowRateDown = 6,
Reaming3RepetitionsCount = 3,
Reaming3RopDown = 4,
Reaming3RpmDown = 5,
Reaming3RpmUp = 6,
Tight = 1,
};
[Fact]
public async Task Get_actual_returns_success()
{
await Get(entity, dto);
}
protected override ProcessMapPlanReamingSlide GetByNote(DbSet<ProcessMapPlanReamingSlide> dbSet, ProcessMapPlanReamingSlideDto dto)
{
throw new NotImplementedException();
}
protected override ProcessMapPlanReamingSlideDto GetByNote(IEnumerable<ProcessMapPlanReamingSlideDto> dtos, ProcessMapPlanReamingSlideDto dto)
{
throw new NotImplementedException();
}
protected override ProcessMapPlanReamingSlide? GetByWellId()
{
throw new NotImplementedException();
}
}

View File

@ -1,131 +0,0 @@
using AsbCloudApp.Data.ProcessMaps;
using AsbCloudApp.Repositories;
using AsbCloudApp.Requests;
using AsbCloudApp.Services;
using AsbCloudDb.Model.ProcessMaps;
using AsbCloudInfrastructure.Services.ProcessMapPlan.Export;
using AsbCloudInfrastructure.Services.ProcessMapPlan.Parser;
using AsbCloudWebApi.IntegrationTests.Controllers.ProcessMapPlan;
using AsbCloudWebApi.IntegrationTests;
using Microsoft.EntityFrameworkCore;
using Xunit;
namespace AsbCloudWebApi.Controllers.ProcessMaps;
/// <summary>
/// РТК план проработка для слайда
/// </summary>
public class ProcessMapPlanOperationReamingSlideControllerTest :
ProcessMapPlanBaseControllerTest<ProcessMapPlanOperationReamingSlide, ProcessMapPlanOperationReamingSlideDto>
{
public ProcessMapPlanOperationReamingSlideControllerTest(WebAppFactoryFixture factory) : base(factory, "ProcessMapPlanOperationReamingSlide")
{
}
private readonly ProcessMapPlanOperationReamingSlideDto dto = new ProcessMapPlanOperationReamingSlideDto()
{
IdWell = 1,
DepthStart = 1,
DepthEnd = 2,
Id = 0,
IdWellSectionType = 1,
SetpointsSlackingOff = 1,
Reaming3StopPointOffBottom = 2,
Reaming3ROPUp = 3,
Reaming3Interval = 4,
Reaming2StopPointOffBottom = 5,
Reaming2ROPUp = 6,
Reaming2NumberOfRepetitions = 7,
Reaming3FlowRateUp = 8,
Reaming2FlowRateUp = 9,
Reaming1StopPointOffBottom = 1,
Reaming1ROPUp = 1,
Reaming1Interval = 2,
DifferentialPressure = 3,
MaxPressure = 4,
MaxTorque = 5,
Note = "1",
Reaming1FlowRateDown = 6,
Reaming1FlowRateUp = 7,
Reaming1NumberOfRepetitions = 8,
Reaming1ROPDown = 9,
Reaming1RPMDown = 1,
Reaming1RPMUp = 1,
Reaming2FlowRateDown = 2,
Reaming2Interval = 3,
Reaming2ROPDown = 3,
Reaming2RPMDown = 4,
Reaming2RPMUp = 5,
Reaming3FlowRateDown = 6,
Reaming3NumberOfRepetitions = 3,
Reaming3ROPDown = 4,
Reaming3RPMDown = 5,
Reaming3RPMUp = 6,
SetpointsTight = 1,
};
private readonly ProcessMapPlanOperationReamingSlide entity = new ProcessMapPlanOperationReamingSlide()
{
IdWell = 1,
DepthEnd = 10,
DepthStart = 2,
Id = 0,
IdWellSectionType = 1,
IdAuthor = 1,
IdEditor = 1,
Creation = DateTimeOffset.UtcNow,
SetpointsSlackingOff = 1,
Reaming3StopPointOffBottom = 2,
Reaming3ROPUp = 3,
Reaming3Interval = 4,
Reaming2StopPointOffBottom = 5,
Reaming2ROPUp = 6,
Reaming2NumberOfRepetitions = 7,
Reaming3FlowRateUp = 8,
Reaming2FlowRateUp = 9,
Reaming1StopPointOffBottom = 1,
Reaming1ROPUp = 1,
Reaming1Interval = 2,
DifferentialPressure = 3,
MaxPressure = 4,
MaxTorque = 5,
Note = "1",
Reaming1FlowRateDown = 6,
Reaming1FlowRateUp = 7,
Reaming1NumberOfRepetitions = 8,
Reaming1ROPDown = 9,
Reaming1RPMDown = 1,
Reaming1RPMUp = 1,
Reaming2FlowRateDown = 2,
Reaming2Interval = 3,
Reaming2ROPDown = 3,
Reaming2RPMDown = 4,
Reaming2RPMUp = 5,
Reaming3FlowRateDown = 6,
Reaming3NumberOfRepetitions = 3,
Reaming3ROPDown = 4,
Reaming3RPMDown = 5,
Reaming3RPMUp = 6,
SetpointsTight = 1,
};
[Fact]
public async Task Get_actual_returns_success()
{
await Get(entity, dto);
}
protected override ProcessMapPlanOperationReamingSlide GetByNote(DbSet<ProcessMapPlanOperationReamingSlide> dbSet, ProcessMapPlanOperationReamingSlideDto dto)
{
throw new NotImplementedException();
}
protected override ProcessMapPlanOperationReamingSlideDto GetByNote(IEnumerable<ProcessMapPlanOperationReamingSlideDto> dtos, ProcessMapPlanOperationReamingSlideDto dto)
{
throw new NotImplementedException();
}
protected override ProcessMapPlanOperationReamingSlide? GetByWellId()
{
throw new NotImplementedException();
}
}

View File

@ -11,15 +11,15 @@ namespace AsbCloudWebApi.Controllers.ProcessMaps;
/// <summary>
/// РТК план проработка для слайда
/// </summary>
public class ProcessMapPlanOperationReamingSlideController :
ProcessMapPlanBaseController<ProcessMapPlanOperationReamingSlide, ProcessMapPlanOperationReamingSlideDto>
public class ProcessMapPlanReamingSlideController :
ProcessMapPlanBaseController<ProcessMapPlanReamingSlide, ProcessMapPlanReamingSlideDto>
{
public ProcessMapPlanOperationReamingSlideController(
IChangeLogRepository<ProcessMapPlanOperationReamingSlideDto, ProcessMapPlanBaseRequestWithWell> repository,
public ProcessMapPlanReamingSlideController(
IChangeLogRepository<ProcessMapPlanReamingSlideDto, ProcessMapPlanBaseRequestWithWell> repository,
IWellService wellService,
ProcessMapPlanOperationReamingSlideParser parserService,
ProcessMapPlanReamingSlideParser parserService,
ITelemetryService telemetryService,
ProcessMapPlanOperationReamingSlideExportService processMapPlanExportService)
ProcessMapPlanReamingSlideExportService processMapPlanExportService)
: base(repository, wellService, parserService, processMapPlanExportService, telemetryService)
{
}