|
|
@ -1,11 +1,15 @@
|
|
|
|
using Autofac;
|
|
|
|
using Autofac;
|
|
|
|
|
|
|
|
using AutoMapper;
|
|
|
|
using Entity.Attr;
|
|
|
|
using Entity.Attr;
|
|
|
|
using Entity.Constant;
|
|
|
|
using Entity.Constant;
|
|
|
|
|
|
|
|
using Entity.DbModel.Station;
|
|
|
|
using HybirdFrameworkCore.Autofac;
|
|
|
|
using HybirdFrameworkCore.Autofac;
|
|
|
|
using HybirdFrameworkCore.Configuration;
|
|
|
|
using HybirdFrameworkCore.Configuration;
|
|
|
|
using log4net;
|
|
|
|
using log4net;
|
|
|
|
|
|
|
|
using Repository.Station;
|
|
|
|
using Service.Charger.Client;
|
|
|
|
using Service.Charger.Client;
|
|
|
|
using Service.Execute.Api;
|
|
|
|
using Service.Execute.Api;
|
|
|
|
|
|
|
|
using Service.Execute.Model;
|
|
|
|
using Service.Execute.Model.Tbox;
|
|
|
|
using Service.Execute.Model.Tbox;
|
|
|
|
using Service.Execute.SwapException;
|
|
|
|
using Service.Execute.SwapException;
|
|
|
|
using Service.Execute.Utils;
|
|
|
|
using Service.Execute.Utils;
|
|
|
@ -21,7 +25,7 @@ public class DoSwappingState : IState
|
|
|
|
private readonly ILog _log = LogManager.GetLogger(typeof(DoSwappingState));
|
|
|
|
private readonly ILog _log = LogManager.GetLogger(typeof(DoSwappingState));
|
|
|
|
private readonly CommonMgr _CommonMgr = AppInfo.Container.Resolve<CommonMgr>();
|
|
|
|
private readonly CommonMgr _CommonMgr = AppInfo.Container.Resolve<CommonMgr>();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public BinInfoRepository _binInfoRepository { get; set; }
|
|
|
|
|
|
|
|
|
|
|
|
public static SoundClient? SoundClient { get; set; }
|
|
|
|
public static SoundClient? SoundClient { get; set; }
|
|
|
|
|
|
|
|
|
|
|
@ -89,6 +93,8 @@ public class DoSwappingState : IState
|
|
|
|
return SwappingStateMachine.ReturnWithInvokeErr(adjustCarByRadar, ExceptionReason.None);
|
|
|
|
return SwappingStateMachine.ReturnWithInvokeErr(adjustCarByRadar, ExceptionReason.None);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
return new StateResult()
|
|
|
|
return new StateResult()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
SwappingState = SwappingState.SwapDone
|
|
|
|
SwappingState = SwappingState.SwapDone
|
|
|
@ -96,6 +102,10 @@ public class DoSwappingState : IState
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
|
/// 控制雷达启停
|
|
|
|
/// 控制雷达启停
|
|
|
|
/// </summary>
|
|
|
|
/// </summary>
|
|
|
@ -361,7 +371,7 @@ public class DoSwappingState : IState
|
|
|
|
//SoundClient.SoundPlay(AppSettingsHelper.GetContent("SoundAddr", "Address19"));
|
|
|
|
//SoundClient.SoundPlay(AppSettingsHelper.GetContent("SoundAddr", "Address19"));
|
|
|
|
if (v==0)
|
|
|
|
if (v==0)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
SoundClient.SoundPlay(SoundEnum.music59);
|
|
|
|
SoundClient.SoundPlay(SoundEnum.music77);
|
|
|
|
v = 1;
|
|
|
|
v = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|