forked from ddrilling/AsbCloudServer
Переименован флаг подсистемы в DetectedOperation
This commit is contained in:
parent
72ec8c69d3
commit
f300974b1d
@ -95,7 +95,7 @@ namespace AsbCloudDb.Model
|
||||
/// <summary>
|
||||
/// Спин-мастер
|
||||
/// </summary>
|
||||
AutoSpin = 1 << 7,
|
||||
AutoSpinMaster = 1 << 7,
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
|
@ -152,7 +152,7 @@ public class DetectedOperationExportService
|
||||
{
|
||||
var idCategory = current.IdCategory;
|
||||
if (idCategory == WellOperationCategory.IdSlide
|
||||
&& current.HasSubsystemFlag(DetectedOperation.EnabledSubsystemsFlags.AutoSpin))
|
||||
&& current.HasSubsystemFlag(DetectedOperation.EnabledSubsystemsFlags.AutoSpinMaster))
|
||||
return "Бурение в слайде с осцилляцией";
|
||||
|
||||
var category = wellOperationCategories.FirstOrDefault(o => o.Id == current.IdCategory);
|
||||
|
@ -163,7 +163,7 @@ namespace AsbCloudInfrastructure.Services.DetectOperations.Detectors
|
||||
if(extraData.TryGetValue(DetectorDrilling.ExtraDataKeyHasOscillation, out var hasOscillation)
|
||||
&& hasOscillation is true)
|
||||
{
|
||||
enabledSubsystems |= (int)DetectedOperation.EnabledSubsystemsFlags.AutoSpin;
|
||||
enabledSubsystems |= (int)DetectedOperation.EnabledSubsystemsFlags.AutoSpinMaster;
|
||||
|
||||
return enabledSubsystems;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user