Search in sources :

Example 1 with SecurPharmHUAttributesScannerResult

use of de.metas.vertical.pharma.securpharm.service.SecurPharmHUAttributesScannerResult in project metasfresh-webui-api by metasfresh.

the class WEBUI_M_HU_SecurPharmScan method doIt.

@Override
protected String doIt() {
    final SecurPharmHUAttributesScanner scanner = securPharmService.newHUScanner();
    final SecurPharmHUAttributesScannerResult result = scanner.scanAndUpdateHUAttributes(getDataMatrix(), getSelectedHuId());
    // 
    // Update view
    final HUEditorView view = getView();
    if (result.getExtractedCUId() != null) {
        view.addHUId(result.getExtractedCUId());
    }
    view.invalidateAll();
    return result.getResultMessageAndCode();
}
Also used : SecurPharmHUAttributesScannerResult(de.metas.vertical.pharma.securpharm.service.SecurPharmHUAttributesScannerResult) HUEditorView(de.metas.ui.web.handlingunits.HUEditorView) SecurPharmHUAttributesScanner(de.metas.vertical.pharma.securpharm.service.SecurPharmHUAttributesScanner)

Aggregations

HUEditorView (de.metas.ui.web.handlingunits.HUEditorView)1 SecurPharmHUAttributesScanner (de.metas.vertical.pharma.securpharm.service.SecurPharmHUAttributesScanner)1 SecurPharmHUAttributesScannerResult (de.metas.vertical.pharma.securpharm.service.SecurPharmHUAttributesScannerResult)1