|
|
@ -54,13 +54,9 @@ public class CommonMgr
|
|
|
|
machine.StepModel[stepModel.StepNo.ToString()] = stepModel;
|
|
|
|
machine.StepModel[stepModel.StepNo.ToString()] = stepModel;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if (machine.SwapOrder != null)
|
|
|
|
_swapOrderStepService.InsertSwapStepForSwapMain(step, machine.StepSort++, machine.SwapOrder!.Sn,
|
|
|
|
{
|
|
|
|
|
|
|
|
if (!string.IsNullOrEmpty(machine.SwapOrder.Sn))
|
|
|
|
|
|
|
|
_swapOrderStepService.InsertSwapStepForSwapMain(step, machine.StepSort++, machine.SwapOrder.Sn,
|
|
|
|
|
|
|
|
desc, param, type);
|
|
|
|
desc, param, type);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -194,6 +190,7 @@ public class CommonMgr
|
|
|
|
{
|
|
|
|
{
|
|
|
|
return orderBatteryInfo;
|
|
|
|
return orderBatteryInfo;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
//手动选包
|
|
|
|
//手动选包
|
|
|
|
ManualSelectPack(machine, orderBatteryInfo);
|
|
|
|
ManualSelectPack(machine, orderBatteryInfo);
|
|
|
|
|
|
|
|
|
|
|
@ -292,12 +289,11 @@ public class CommonMgr
|
|
|
|
public void InBin(SwapOrderBatteryInfo orderBatteryInfo, SwappingStateMachine machine)
|
|
|
|
public void InBin(SwapOrderBatteryInfo orderBatteryInfo, SwappingStateMachine machine)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
orderBatteryInfo.CanSwap = InfoEnum.SelectBinStatusInfo.WaitSelectDownBin;
|
|
|
|
orderBatteryInfo.CanSwap = InfoEnum.SelectBinStatusInfo.WaitSelectDownBin;
|
|
|
|
SelectPackDto selectPackDto= _binInfoRepository.SelectPackInBin();
|
|
|
|
SelectPackDto selectPackDto = _binInfoRepository.SelectPackInBin();
|
|
|
|
|
|
|
|
|
|
|
|
orderBatteryInfo.CanDownBin = selectPackDto.CanSwapBinInfo;
|
|
|
|
orderBatteryInfo.CanDownBin = selectPackDto.CanSwapBinInfo;
|
|
|
|
orderBatteryInfo.InBinInfo = selectPackDto.BinInfo;
|
|
|
|
orderBatteryInfo.InBinInfo = selectPackDto.BinInfo;
|
|
|
|
orderBatteryInfo.CanSwap = selectPackDto.Info;
|
|
|
|
orderBatteryInfo.CanSwap = selectPackDto.Info;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -328,9 +324,8 @@ public class CommonMgr
|
|
|
|
|
|
|
|
|
|
|
|
if (binInfo != null)
|
|
|
|
if (binInfo != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
orderBatteryInfo.CanSwap =InfoEnum.SelectBinStatusInfo.WaitSelectDownBin;
|
|
|
|
orderBatteryInfo.CanSwap = InfoEnum.SelectBinStatusInfo.WaitSelectDownBin;
|
|
|
|
orderBatteryInfo.UpBinInfo = binInfo;
|
|
|
|
orderBatteryInfo.UpBinInfo = binInfo;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
@ -341,12 +336,10 @@ public class CommonMgr
|
|
|
|
|
|
|
|
|
|
|
|
if (binInfo != null)
|
|
|
|
if (binInfo != null)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
orderBatteryInfo.CanSwap =InfoEnum.SelectBinStatusInfo.Success;
|
|
|
|
orderBatteryInfo.CanSwap = InfoEnum.SelectBinStatusInfo.Success;
|
|
|
|
orderBatteryInfo.InBinInfo = binInfo;
|
|
|
|
orderBatteryInfo.InBinInfo = binInfo;
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
/// <summary>
|
|
|
@ -418,7 +411,7 @@ public class CommonMgr
|
|
|
|
i => new BinInfo()
|
|
|
|
i => new BinInfo()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
BatteryEnterSeq = inBinInfo.BatteryEnterSeq,
|
|
|
|
BatteryEnterSeq = inBinInfo.BatteryEnterSeq,
|
|
|
|
InTime=inBinInfo.InTime
|
|
|
|
InTime = inBinInfo.InTime
|
|
|
|
},
|
|
|
|
},
|
|
|
|
it => it.Id == inBinInfo.Id);
|
|
|
|
it => it.Id == inBinInfo.Id);
|
|
|
|
var upBinInfo = machineSwapOrderBatteryInfo.UpBinInfo;
|
|
|
|
var upBinInfo = machineSwapOrderBatteryInfo.UpBinInfo;
|
|
|
@ -429,11 +422,10 @@ public class CommonMgr
|
|
|
|
i => new BinInfo()
|
|
|
|
i => new BinInfo()
|
|
|
|
{
|
|
|
|
{
|
|
|
|
Soc = -1,
|
|
|
|
Soc = -1,
|
|
|
|
Soe= -1,
|
|
|
|
Soe = -1,
|
|
|
|
BatteryNo="-1"
|
|
|
|
BatteryNo = "-1"
|
|
|
|
},
|
|
|
|
},
|
|
|
|
it => it.Id == upBinInfo.Id);
|
|
|
|
it => it.Id == upBinInfo.Id);
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|