|
|
@ -43,6 +43,8 @@ public class SwapDoneState : IState
|
|
|
|
_CommonMgr.UpdateAmtOrder(machine);
|
|
|
|
_CommonMgr.UpdateAmtOrder(machine);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Task.Run(() =>
|
|
|
|
|
|
|
|
{
|
|
|
|
//新增换电成功上报云平台数据
|
|
|
|
//新增换电成功上报云平台数据
|
|
|
|
_CommonMgr.InsertCloudReportForSwapSuccess(machine);
|
|
|
|
_CommonMgr.InsertCloudReportForSwapSuccess(machine);
|
|
|
|
//换电成功关于bininfo表的更新
|
|
|
|
//换电成功关于bininfo表的更新
|
|
|
@ -50,6 +52,7 @@ public class SwapDoneState : IState
|
|
|
|
|
|
|
|
|
|
|
|
//可人工确认换电成功标识
|
|
|
|
//可人工确认换电成功标识
|
|
|
|
machine.PlcSwapFlag = true;
|
|
|
|
machine.PlcSwapFlag = true;
|
|
|
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
|
|
if (machine.SwapStatus == (int)InfoEnum.SwapOrderResult.Success)
|
|
|
|
if (machine.SwapStatus == (int)InfoEnum.SwapOrderResult.Success)
|
|
|
|
{
|
|
|
|
{
|
|
|
@ -87,7 +90,7 @@ public class SwapDoneState : IState
|
|
|
|
/// <returns></returns>
|
|
|
|
/// <returns></returns>
|
|
|
|
public InvokeStatus LockCar(SwappingStateMachine machine)
|
|
|
|
public InvokeStatus LockCar(SwappingStateMachine machine)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return Invoker.Invoke("LockCar", 500, 100, machine.IsCanceled,machine.IsManualSwapSucc,
|
|
|
|
return Invoker.Invoke("LockCar", 500, 100, machine.IsCanceled, machine.IsManualSwapSucc,
|
|
|
|
() => machine.VelLockFlag, () =>
|
|
|
|
() => machine.VelLockFlag, () =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Task<bool> result = TBoxApi.LockCarManyTimes(machine.RfidReadModel.VelVin);
|
|
|
|
Task<bool> result = TBoxApi.LockCarManyTimes(machine.RfidReadModel.VelVin);
|
|
|
@ -128,7 +131,7 @@ public class SwapDoneState : IState
|
|
|
|
|
|
|
|
|
|
|
|
public InvokeStatus ExistRadar(SwappingStateMachine machine)
|
|
|
|
public InvokeStatus ExistRadar(SwappingStateMachine machine)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return Invoker.Invoke("wait exist radar", 1000, 5, machine.IsCanceled,machine.IsManualSwapSucc,
|
|
|
|
return Invoker.Invoke("wait exist radar", 1000, 5, machine.IsCanceled, machine.IsManualSwapSucc,
|
|
|
|
() => machine.RadarOutFlag, () =>
|
|
|
|
() => machine.RadarOutFlag, () =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
if (PlcApi.ExitRadar())
|
|
|
|
if (PlcApi.ExitRadar())
|
|
|
|