|
|
@ -17,30 +17,19 @@ import a8k.extui.mgr.ExtApiPageMgr; |
|
|
|
import a8k.app.teststate.TestStateMgrService; |
|
|
|
import jakarta.annotation.PostConstruct; |
|
|
|
import jakarta.annotation.Resource; |
|
|
|
import lombok.RequiredArgsConstructor; |
|
|
|
import lombok.extern.slf4j.Slf4j; |
|
|
|
import org.springframework.stereotype.Component; |
|
|
|
|
|
|
|
@Component |
|
|
|
@RequiredArgsConstructor |
|
|
|
@Slf4j |
|
|
|
public class UsrOperationSimulationPage { |
|
|
|
@Resource |
|
|
|
ConsumablesMgrService consumablesMgrService; |
|
|
|
|
|
|
|
@Resource |
|
|
|
AppConsumablesScanService appConsumablesScanService; |
|
|
|
|
|
|
|
@Resource |
|
|
|
ProjIdCardInfoMgrService projIdCardInfoMgrService; |
|
|
|
|
|
|
|
@Resource |
|
|
|
GStateMgrService gstate; |
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
ProjInfoMgrService projInfoMgrService; |
|
|
|
@Resource |
|
|
|
ExtApiPageMgr extApiPageMgr; |
|
|
|
|
|
|
|
@Resource |
|
|
|
TestStateMgrService testStateMgrService; |
|
|
|
private final GStateMgrService gstate; |
|
|
|
private final ExtApiPageMgr extApiPageMgr; |
|
|
|
private final TestStateMgrService testStateMgrService; |
|
|
|
private final ProjIdCardInfoMgrService projIdCardInfoMgrService; |
|
|
|
|
|
|
|
|
|
|
|
// |
|
|
@ -51,6 +40,31 @@ public class UsrOperationSimulationPage { |
|
|
|
testStateMgrService.putVirtualConsumable(group.off, lotid); |
|
|
|
} |
|
|
|
|
|
|
|
public void putInVirtualConsumableSmart() throws AppException { |
|
|
|
gstate.checkIfIsInVirtualMode(); |
|
|
|
|
|
|
|
ProjExtInfoCard hsCrpInfoCard = ProjExtInfoCardFactory.buildProjExtInfoCard(1, "CA00001"); |
|
|
|
ProjExtInfoCard PCTInfoCard = ProjExtInfoCardFactory.buildProjExtInfoCard(2, "PC00001");// |
|
|
|
ProjExtInfoCard TSHInfoCard = ProjExtInfoCardFactory.buildProjExtInfoCard(3, "TS00001");// |
|
|
|
ProjExtInfoCard PLInfoCard = ProjExtInfoCardFactory.buildProjExtInfoCard(4, "PL00001");// |
|
|
|
ProjExtInfoCard T3InfoCard = ProjExtInfoCardFactory.buildProjExtInfoCard(5, "T300001");// |
|
|
|
ProjExtInfoCard T4InfoCard = ProjExtInfoCardFactory.buildProjExtInfoCard(6, "T400001");// |
|
|
|
|
|
|
|
projIdCardInfoMgrService.saveProjExtInfoCard(hsCrpInfoCard); |
|
|
|
projIdCardInfoMgrService.saveProjExtInfoCard(PCTInfoCard); |
|
|
|
projIdCardInfoMgrService.saveProjExtInfoCard(TSHInfoCard); |
|
|
|
projIdCardInfoMgrService.saveProjExtInfoCard(PLInfoCard); |
|
|
|
projIdCardInfoMgrService.saveProjExtInfoCard(T3InfoCard); |
|
|
|
projIdCardInfoMgrService.saveProjExtInfoCard(T4InfoCard); |
|
|
|
|
|
|
|
testStateMgrService.putVirtualConsumable(ConsumableGroup.CG1.off, hsCrpInfoCard.lotId); |
|
|
|
testStateMgrService.putVirtualConsumable(ConsumableGroup.CG2.off, PCTInfoCard.lotId); |
|
|
|
testStateMgrService.putVirtualConsumable(ConsumableGroup.CG3.off, TSHInfoCard.lotId); |
|
|
|
testStateMgrService.putVirtualConsumable(ConsumableGroup.CG4.off, PLInfoCard.lotId); |
|
|
|
testStateMgrService.putVirtualConsumable(ConsumableGroup.CG5.off, T3InfoCard.lotId); |
|
|
|
testStateMgrService.putVirtualConsumable(ConsumableGroup.CG6.off, T4InfoCard.lotId); |
|
|
|
} |
|
|
|
|
|
|
|
public void takeAwayVirtualConsumable() throws AppException { |
|
|
|
gstate.checkIfIsInVirtualMode(); |
|
|
|
testStateMgrService.takeAwayVirtualConsumable(0); |
|
|
@ -108,11 +122,14 @@ public class UsrOperationSimulationPage { |
|
|
|
page.newGroup("耗材操作行为"); |
|
|
|
page.addFunction("放入虚拟耗材", this::putInVirtualConsumable); |
|
|
|
page.addFunction("拿走虚拟耗材", this::takeAwayVirtualConsumable); |
|
|
|
page.addFunction("放入虚拟耗材(智能)", this::putInVirtualConsumableSmart); |
|
|
|
|
|
|
|
|
|
|
|
page.newGroup("ID卡"); |
|
|
|
page.addFunction("插入ID卡", this::insertVirtualIdCard); |
|
|
|
page.addFunction("拔出ID卡", this::removeVirtualIdCard); |
|
|
|
|
|
|
|
|
|
|
|
page.newGroup("样本模拟操作"); |
|
|
|
page.addFunction("放入一个全血高试管架", this::putInVirtualBloodTubeHolder); |
|
|
|
|
|
|
|