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