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