|
|
@ -19,19 +19,21 @@ public class MesFunctionResetCellContextService extends BaseSwsService implement
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private IMesProductionProcessContextStepService productionProcessContextStepService;
|
|
|
|
private IMesProductionProcessContextStepService productionProcessContextStepService;
|
|
|
|
|
|
|
|
|
|
|
|
@Autowired
|
|
|
|
@Autowired
|
|
|
|
private IMesProductionDispatchContextStepService productionDispatchContextStepService;
|
|
|
|
private IMesProductionDispatchContextStepService productionDispatchContextStepService;
|
|
|
|
|
|
|
|
|
|
|
|
@Override
|
|
|
|
@Override
|
|
|
|
public boolean doFunction(StationRequestBean reqBean, StationResultBean resultBean, ButtonDynamicModel buttonDynamicModel) {
|
|
|
|
public boolean doFunction(StationRequestBean reqBean, StationResultBean resultBean, ButtonDynamicModel buttonDynamicModel) {
|
|
|
|
|
|
|
|
|
|
|
|
productionProcessContextStepService.doFlushProductionDispatchContext(reqBean);
|
|
|
|
//清除上下文中的所有基础数据
|
|
|
|
|
|
|
|
productionProcessContextStepService.doFlushProductionProcessContext(reqBean);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//清除上下文中的所有业务数据
|
|
|
|
productionDispatchContextStepService.doFlushProductionDispatchContext(reqBean);
|
|
|
|
productionDispatchContextStepService.doFlushProductionDispatchContext(reqBean);
|
|
|
|
|
|
|
|
|
|
|
|
//TODO 清除工位队列LOCK, 工位状态对象, 流程数据等信息
|
|
|
|
//TODO 清除工位队列LOCK, 工位状态对象, 流程数据等信息
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
this.sendMessage(reqBean, resultBean.writeDbLog(), String.format("生产线[%s]工位[%s]%s成功!",
|
|
|
|
this.sendMessage(reqBean, resultBean.writeDbLog(), String.format("生产线[%s]工位[%s]%s成功!",
|
|
|
|
reqBean.getWorkCenterCode(), reqBean.getWorkCellCode(), buttonDynamicModel.getButtonName()), MesPcnEnumUtil.STATION_BUSI_TYPE.MESSAGE, MesPcnEnumUtil.STATION_DATA_TYPE.TEXT);
|
|
|
|
reqBean.getWorkCenterCode(), reqBean.getWorkCellCode(), buttonDynamicModel.getButtonName()), MesPcnEnumUtil.STATION_BUSI_TYPE.MESSAGE, MesPcnEnumUtil.STATION_DATA_TYPE.TEXT);
|
|
|
|
|
|
|
|
|
|
|
|