|
|
@ -151,8 +151,8 @@ public class DoSwappingState : IState
|
|
|
|
{
|
|
|
|
{
|
|
|
|
// Task<bool> result = TBoxApi.UnLockCarManyTimes(machine.RfidReadModel.VelVin);
|
|
|
|
// Task<bool> result = TBoxApi.UnLockCarManyTimes(machine.RfidReadModel.VelVin);
|
|
|
|
// bool unLock = result.Result;
|
|
|
|
// bool unLock = result.Result;
|
|
|
|
if (unLock)
|
|
|
|
//if (unLock)
|
|
|
|
{
|
|
|
|
//{
|
|
|
|
var startSwapping = PlcApi.StartSwapping(machine.SwapOrderBatteryInfo.InBinInfo.No,
|
|
|
|
var startSwapping = PlcApi.StartSwapping(machine.SwapOrderBatteryInfo.InBinInfo.No,
|
|
|
|
machine.SwapOrderBatteryInfo.UpBinInfo.No);
|
|
|
|
machine.SwapOrderBatteryInfo.UpBinInfo.No);
|
|
|
|
|
|
|
|
|
|
|
@ -175,7 +175,7 @@ public class DoSwappingState : IState
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
// }
|
|
|
|
}, () =>
|
|
|
|
}, () =>
|
|
|
|
{
|
|
|
|
{
|
|
|
|
//SoundClient = AppInfo.Container.Resolve<SoundClient>();
|
|
|
|
//SoundClient = AppInfo.Container.Resolve<SoundClient>();
|
|
|
|