|
@ -2,7 +2,6 @@ package a8k.extui.page.debug; |
|
|
|
|
|
|
|
|
import a8k.app.a8ktype.device.ConsumableGroup; |
|
|
import a8k.app.a8ktype.device.ConsumableGroup; |
|
|
import a8k.app.a8ktype.device.TipGroup; |
|
|
import a8k.app.a8ktype.device.TipGroup; |
|
|
import a8k.app.a8ktype.device.TipPos; |
|
|
|
|
|
import a8k.app.a8ktype.device.consumables.LarBottleGroup; |
|
|
import a8k.app.a8ktype.device.consumables.LarBottleGroup; |
|
|
import a8k.app.a8ktype.device.consumables.LittBottleGroup; |
|
|
import a8k.app.a8ktype.device.consumables.LittBottleGroup; |
|
|
import a8k.app.a8ktype.device.consumables.ReactionPlateGroup; |
|
|
import a8k.app.a8ktype.device.consumables.ReactionPlateGroup; |
|
@ -14,12 +13,12 @@ import a8k.app.a8ktype.type.ConsumablesScanReport; |
|
|
import a8k.app.a8ktype.type.ConsumablesScanResultPacket; |
|
|
import a8k.app.a8ktype.type.ConsumablesScanResultPacket; |
|
|
import a8k.app.dao.db.type.ProjExtInfoCard; |
|
|
import a8k.app.dao.db.type.ProjExtInfoCard; |
|
|
import a8k.app.hardware.type.a8kcanprotocol.A8kEcode; |
|
|
import a8k.app.hardware.type.a8kcanprotocol.A8kEcode; |
|
|
|
|
|
import a8k.app.service.data.ProjIdCardInfoMgrService; |
|
|
import a8k.app.service.data.ProjInfoMgrService; |
|
|
import a8k.app.service.data.ProjInfoMgrService; |
|
|
import a8k.app.service.mainctrl.AppConsumablesScanService; |
|
|
import a8k.app.service.mainctrl.AppConsumablesScanService; |
|
|
import a8k.app.service.statemgr.ConsumablesMgrService; |
|
|
import a8k.app.service.statemgr.ConsumablesMgrService; |
|
|
import a8k.app.utils.ProjBuildinInfo; |
|
|
import a8k.app.utils.ProjBuildinInfo; |
|
|
import a8k.extui.mgr.ExtApiPageMgr; |
|
|
import a8k.extui.mgr.ExtApiPageMgr; |
|
|
import a8k.extui.page.data.ProjInfoMgrPage; |
|
|
|
|
|
import a8k.extui.type.ExtApiStatu; |
|
|
import a8k.extui.type.ExtApiStatu; |
|
|
import jakarta.annotation.PostConstruct; |
|
|
import jakarta.annotation.PostConstruct; |
|
|
import jakarta.annotation.Resource; |
|
|
import jakarta.annotation.Resource; |
|
@ -33,6 +32,9 @@ public class P02ConsumablesMgrDebugPage { |
|
|
@Resource |
|
|
@Resource |
|
|
AppConsumablesScanService appConsumablesScanService; |
|
|
AppConsumablesScanService appConsumablesScanService; |
|
|
|
|
|
|
|
|
|
|
|
@Resource |
|
|
|
|
|
ProjIdCardInfoMgrService projIdCardInfoMgrService; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
@ExtApiStatu(name = "", group = "耗材-反应板状态1", minWidth = "16%", order = 1) |
|
|
@ExtApiStatu(name = "", group = "耗材-反应板状态1", minWidth = "16%", order = 1) |
|
|
public ReactionPlateGroup getReactionPlateGroupState0() { |
|
|
public ReactionPlateGroup getReactionPlateGroupState0() { |
|
@ -169,23 +171,32 @@ public class P02ConsumablesMgrDebugPage { |
|
|
consumablesMgrService.setCounsumableNum(group, num); |
|
|
consumablesMgrService.setCounsumableNum(group, num); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public void loadFakeConsumables(ConsumableGroup group, Integer projId) throws AppException { |
|
|
|
|
|
ProjBuildinInfo projBuildinInfo = projInfoMgrService.getProjBuildInInfo(projId); |
|
|
|
|
|
String fakeLotId = String.format("%s000000", projBuildinInfo.projBaseInfo.projShortName); |
|
|
|
|
|
ProjExtInfoCard projExtInfoCard = projInfoMgrService.getProjExtInfoCard(fakeLotId); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void loadConsumablesManual(ConsumableGroup group, String lotid) throws AppException { |
|
|
|
|
|
ProjExtInfoCard projExtInfoCard = projInfoMgrService.getProjExtInfoCard(lotid); |
|
|
if (projExtInfoCard == null) { |
|
|
if (projExtInfoCard == null) { |
|
|
throw AppException.of(A8kEcode.CODEERROR, "项目卡信息不存在"); |
|
|
throw AppException.of(A8kEcode.CODEERROR, "项目卡信息不存在"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
ConsumablesScanReport consumablesScanReport = new ConsumablesScanReport(); |
|
|
ConsumablesScanReport consumablesScanReport = new ConsumablesScanReport(); |
|
|
consumablesScanReport.chNum = group.off; |
|
|
consumablesScanReport.chNum = group.off; |
|
|
|
|
|
consumablesScanReport.projId = projExtInfoCard.projId; |
|
|
consumablesScanReport.projName = projExtInfoCard.projName; |
|
|
consumablesScanReport.projName = projExtInfoCard.projName; |
|
|
consumablesScanReport.projShortName = projExtInfoCard.projShortName; |
|
|
consumablesScanReport.projShortName = projExtInfoCard.projShortName; |
|
|
consumablesScanReport.lotId = fakeLotId; |
|
|
|
|
|
|
|
|
consumablesScanReport.lotId = lotid; |
|
|
consumablesScanReport.state = ConsumablesScanReportErrorType.PASS; |
|
|
consumablesScanReport.state = ConsumablesScanReportErrorType.PASS; |
|
|
appConsumablesScanService.loadingConsumablesDirectly(consumablesScanReport); |
|
|
appConsumablesScanService.loadingConsumablesDirectly(consumablesScanReport); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public void loadMountProjIDCardConsumablesManual(ConsumableGroup group) throws AppException { |
|
|
|
|
|
ProjExtInfoCard projExtInfoCard = projIdCardInfoMgrService.getMountedProjInfoCard(); |
|
|
|
|
|
if (projExtInfoCard == null) { |
|
|
|
|
|
throw AppException.of(A8kEcode.CODEERROR, "没有挂载的项目卡信息"); |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
loadConsumablesManual(group, projExtInfoCard.lotId); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
@PostConstruct |
|
|
@PostConstruct |
|
|
public void init() { |
|
|
public void init() { |
|
|
var page = extApiPageMgr.newPage(this); |
|
|
var page = extApiPageMgr.newPage(this); |
|
@ -195,7 +206,8 @@ public class P02ConsumablesMgrDebugPage { |
|
|
page.addFunction("设置Tip数量", this::setTipNum); |
|
|
page.addFunction("设置Tip数量", this::setTipNum); |
|
|
page.addFunction("设置耗材数量", this::setConsumableNum); |
|
|
page.addFunction("设置耗材数量", this::setConsumableNum); |
|
|
page.newGroup("辅助调试"); |
|
|
page.newGroup("辅助调试"); |
|
|
page.addFunction("加载假耗材", this::loadFakeConsumables); |
|
|
|
|
|
|
|
|
page.addFunction("手动加载耗材", this::loadConsumablesManual); |
|
|
|
|
|
page.addFunction("手动加载挂载项目卡耗材", this::loadMountProjIDCardConsumablesManual); |
|
|
|
|
|
|
|
|
extApiPageMgr.addPage(page); |
|
|
extApiPageMgr.addPage(page); |
|
|
|
|
|
|
|
|