|
|
@ -4,6 +4,7 @@ import a8k.controler.extapi.pagecontrol.ExtApiTabConfig; |
|
|
|
import a8k.controler.extapi.utils.ExtApiFn; |
|
|
|
import a8k.controler.extapi.utils.ExtApiTab; |
|
|
|
import a8k.service.appctrl.action.base.A8kStepAction; |
|
|
|
import a8k.service.appstate.type.MainFlowCtrlState; |
|
|
|
import a8k.service.appstate.type.TubeHolder; |
|
|
|
import a8k.type.ConsumableGroup; |
|
|
|
import a8k.type.checkpoint.CheckResult; |
|
|
@ -88,22 +89,13 @@ public class AppDeviceCtrlService { |
|
|
|
+++++++++++++++++++++++++++++++++++++++++++++++++++++++++++*/ |
|
|
|
|
|
|
|
@ExtApiFn(name = "获取设备工作状态", group = "设备状态") |
|
|
|
public ObjectNode getDeviceWorkState() { |
|
|
|
ObjectMapper mapper = new ObjectMapper(); |
|
|
|
ObjectNode json = new ObjectNode(mapper.getNodeFactory()); |
|
|
|
json.put("mainFlowCtrlState", mapper.valueToTree(gstate.mainFlowCtrlState)); |
|
|
|
json.put("globalWorkState", mapper.valueToTree(gstate.getWorkState())); |
|
|
|
return json; |
|
|
|
public MainFlowCtrlState getDeviceWorkState() { |
|
|
|
return gstate.mainFlowCtrlState; |
|
|
|
} |
|
|
|
|
|
|
|
@ExtApiFn(name = "设备是否正在切换状态中", group = "设备状态") |
|
|
|
public Boolean deviceWorkStateIsChanging() { |
|
|
|
A8kWorkState workState = gstate.getWorkState(); |
|
|
|
A8kWorkState sampleScanServiceWorkState = gstate.mainFlowCtrlState.workState; |
|
|
|
if (!workState.equals(sampleScanServiceWorkState)) { |
|
|
|
return true; |
|
|
|
} |
|
|
|
return false; |
|
|
|
return gstate.mainFlowCtrlState.isPending(); |
|
|
|
} |
|
|
|
|
|
|
|
@ExtApiFn(name = "获取运行步骤状态", group = "设备状态") |
|
|
|