|
|
@ -1,21 +1,22 @@ |
|
|
|
package a8k.service.apps.appctrl.mainflowctrl.action; |
|
|
|
package a8k.service.app.appctrl.mainflowctrl.action; |
|
|
|
|
|
|
|
import a8k.service.db.type.A8kProjectInfo; |
|
|
|
import a8k.utils.AppExceptionBuilder; |
|
|
|
import a8k.hardware.type.a8kcanprotocol.A8kEcode; |
|
|
|
import a8k.service.apps.appctrl.mainflowctrl.CondtionMgrService; |
|
|
|
import a8k.service.apps.appdata.AppProjInfoMgrService; |
|
|
|
import a8k.service.apps.appctrl.mainflowctrl.base.A8kActionStepType; |
|
|
|
import a8k.service.apps.appctrl.mainflowctrl.base.A8kStepAction; |
|
|
|
import a8k.service.apps.appstate.*; |
|
|
|
import a8k.service.apps.appstate.resource.A8kPublicResourceType; |
|
|
|
import a8k.service.apps.appstate.type.MainFlowCtrlState; |
|
|
|
import a8k.service.apps.appstate.type.Tube; |
|
|
|
import a8k.service.app.appctrl.mainflowctrl.CondtionMgrService; |
|
|
|
import a8k.service.app.appdata.AppProjInfoMgrService; |
|
|
|
import a8k.service.app.appctrl.mainflowctrl.base.A8kActionStepType; |
|
|
|
import a8k.service.app.appctrl.mainflowctrl.base.A8kStepAction; |
|
|
|
import a8k.service.app.appstate.*; |
|
|
|
import a8k.service.app.appstate.resource.A8kPublicResourceType; |
|
|
|
import a8k.service.app.appstate.type.MainFlowCtrlState; |
|
|
|
import a8k.service.app.appstate.type.Tube; |
|
|
|
import a8k.type.Consumable; |
|
|
|
import a8k.type.IncubatorPos; |
|
|
|
import a8k.type.TipPos; |
|
|
|
import a8k.type.exception.AppException; |
|
|
|
import a8k.type.projecttype.A8kReactionFlowType; |
|
|
|
import a8k.type.projecttype.a8kidcard.A8kIdCardInfo; |
|
|
|
import a8k.service.db.type.a8kidcard.zenum.A8kReactionFlowType; |
|
|
|
import a8k.service.db.type.A8kIdCardInfo; |
|
|
|
import jakarta.annotation.PostConstruct; |
|
|
|
import jakarta.annotation.Resource; |
|
|
|
import org.slf4j.Logger; |
|
|
@ -41,19 +42,19 @@ public class SEQ3_APPLAY_RESOURCE extends A8kStepAction { |
|
|
|
} |
|
|
|
|
|
|
|
@Resource |
|
|
|
GStateService gstate; |
|
|
|
GStateService gstate; |
|
|
|
@Resource |
|
|
|
ConsumablesMgrService consumablesMgrService; //耗材管理 |
|
|
|
ConsumablesMgrService consumablesMgrService; //耗材管理 |
|
|
|
@Resource |
|
|
|
AppExceptionBuilder ebuilder; //异常构造器 |
|
|
|
AppExceptionBuilder ebuilder; //异常构造器 |
|
|
|
@Resource |
|
|
|
IncubationPlateMgrService incubationPlateMgrService; //孵育盘管理 |
|
|
|
IncubationPlateMgrService incubationPlateMgrService; //孵育盘管理 |
|
|
|
@Resource |
|
|
|
AppProjInfoMgrService appProjInfoMgrService; //项目信息管理 |
|
|
|
AppProjInfoMgrService appProjInfoMgrService; //项目信息管理 |
|
|
|
@Resource |
|
|
|
TubeStateMgrService tubeStateMgrService; |
|
|
|
TubeStateMgrService tubeStateMgrService; |
|
|
|
@Resource |
|
|
|
CondtionMgrService cms; |
|
|
|
CondtionMgrService cms; |
|
|
|
|
|
|
|
|
|
|
|
MainFlowCtrlState state; |
|
|
@ -104,10 +105,17 @@ public class SEQ3_APPLAY_RESOURCE extends A8kStepAction { |
|
|
|
assert idcardInfo != null; |
|
|
|
a8kIdCardInfo.add(idcardInfo); |
|
|
|
} |
|
|
|
|
|
|
|
List<A8kProjectInfo> projInfos = new ArrayList<>(); |
|
|
|
for (Consumable consumable : consumables) { |
|
|
|
A8kProjectInfo projInfo = appProjInfoMgrService.getProjInfoByProjIndex(consumable.projIndex); |
|
|
|
assert projInfo != null; |
|
|
|
projInfos.add(projInfo); |
|
|
|
} |
|
|
|
//申请tip头 |
|
|
|
List<List<TipPos>> tipPos = new ArrayList<>(); |
|
|
|
for (int i = 0; i < projs.size(); i++) { |
|
|
|
List<TipPos> tips = consumablesMgrService.takeTip(a8kIdCardInfo.get(i).reactionFlowType); |
|
|
|
List<TipPos> tips = consumablesMgrService.takeTip(projInfos.get(i).reactionFlowType); |
|
|
|
assert tips != null; |
|
|
|
tipPos.add(tips); |
|
|
|
} |