Package ke.go.moh.oec.reception.data

Examples of ke.go.moh.oec.reception.data.ImagedFingerprint


                missingFingerprintImage = ImageIO.read(new File(filePath));
            } catch (IOException ex) {
                Logger.getLogger(Session.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        return new ImagedFingerprint(missingFingerprintImage, true);
    }
View Full Code Here


                refusedFingerprintImage = ImageIO.read(new File(filePath));
            } catch (IOException ex) {
                Logger.getLogger(Session.class.getName()).log(Level.SEVERE, null, ex);
            }
        }
        return new ImagedFingerprint(refusedFingerprintImage, true);
    }
View Full Code Here

            fingerPrint.setFingerprintType(Fingerprint.Type.rightRingFinger);
        } else if (leftRingRadioButton.isSelected()) {
            fingerPrint.setFingerprintType(Fingerprint.Type.leftRingFinger);
        }
        fingerPrint.setTechnologyType(TechnologyType.griauleTemplate);
        ImagedFingerprint imagedFingerprint = new ImagedFingerprint(fingerPrint, fingerprintImagePanel.getImage(), qualityTextField.getText(), false);
        if (fingerprintManager != null && fingerprintManager.getData() != null) {
            fingerPrint.setTemplate(fingerprintManager.getData());
        } else {
            return;
        }
        if (!imagedFingerprintCache.contains(imagedFingerprint)) {
            imagedFingerprintCache.add(imagedFingerprint);
        } else {
            ImagedFingerprint oldImagedFingerprint = imagedFingerprintCache.get(imagedFingerprintCache.indexOf(imagedFingerprint));
            if (showConfirmMessage("A print has already been taken from the finger you just"
                    + " took. Would you like to overwite it?", this)) {
                imagedFingerprintCache.remove(oldImagedFingerprint);
                imagedFingerprintCache.add(imagedFingerprint);
                if (session.getImagedFingerprintList().contains(oldImagedFingerprint)) {
                    session.getImagedFingerprintList().remove(oldImagedFingerprint);
                }
                showImage(imagedFingerprint.getImage(), true);
                showQuality(imagedFingerprint.getQuality());
            } else {
                showImage(oldImagedFingerprint.getImage(), true);
                showQuality(oldImagedFingerprint.getQuality());
            }
        }
    }
View Full Code Here

        } else if (rightRingRadioButton.isSelected()) {
            fingerprint.setFingerprintType(Fingerprint.Type.rightRingFinger);
        } else if (leftRingRadioButton.isSelected()) {
            fingerprint.setFingerprintType(Fingerprint.Type.leftRingFinger);
        }
        ImagedFingerprint dummy = new ImagedFingerprint(fingerprint);
        if (imagedFingerprintList.contains(dummy)) {
            ImagedFingerprint imagedFingerprint = imagedFingerprintList.get(imagedFingerprintList.indexOf(dummy));
            showImage(imagedFingerprint.getImage(), true);
            showQuality(imagedFingerprint.getQuality());
        } else {
            if (imagedFingerprintCache.contains(dummy)) {
                ImagedFingerprint imagedFingerprint = imagedFingerprintCache.get(imagedFingerprintCache.indexOf(dummy));
                showImage(imagedFingerprint.getImage(), true);
                showQuality(imagedFingerprint.getQuality());
            } else {
                showImage(missingFingerprint.getImage(), true);
                showQuality("");
            }
        }
View Full Code Here

            return;
        } else {
            showWarningMessage("Unknown Quality fingerprint captured. Please try for higher quality.", quickSearchFingerprintImagePanel);
            return;
        }
        ImagedFingerprint rightIndex = quickSearchManager.getRightIndex();
        ImagedFingerprint leftIndex = quickSearchManager.getLeftIndex();
        byte[] rightIndexTemplate = rightIndex.getFingerprint().getTemplate();
        byte[] leftIndexTemplate = leftIndex.getFingerprint().getTemplate();
        if (rightIndexTemplate != null && leftIndexTemplate != null) {
            showWarningMessage("No more than two fingerprints are allowed on the quick search"
                    + " page. Please clear or reset to retake.", quickSearchFingerprintImagePanel);
            return;
        } else {
View Full Code Here

        }
    }

    private void carryQuickPrintsOver(List<ImagedFingerprint> quickImagedFingerprintList) {
        List<ImagedFingerprint> imagedFingerprintList = new ArrayList<ImagedFingerprint>();
        ImagedFingerprint rightIndex = quickImagedFingerprintList.get(0);
        if (rightIndex.getFingerprint().getTemplate() != null) {
            imagedFingerprintList.add(rightIndex);
        }
        ImagedFingerprint leftIndex = quickImagedFingerprintList.get(1);
        if (leftIndex.getFingerprint().getTemplate() != null) {
            imagedFingerprintList.add(leftIndex);
        }
        mainViewHelper.getSession().getImagedFingerprintList().clear();
        mainViewHelper.getSession().getImagedFingerprintList().addAll(imagedFingerprintList);
    }
View Full Code Here

                showWarningMessage(ex.getMessage(), basicSearchButton, basicSearchClinicIdTextField);
                return new SearchProcessResult(SearchProcessResult.Type.ABORT, null);
            }
            personWrapper.setClinicName(basicSearchClinicNameTextField.getText());
            personWrapper.setAliveStatus(Person.AliveStatus.yes);
            ImagedFingerprint imagedFingerprint = mainViewHelper.getActiveImagedFingerprint();
            personWrapper.addFingerprint(imagedFingerprint);
            return mainViewHelper.findPerson(Server.MPI_LPI);
        }
View Full Code Here

            toggleSessionStarterButtons();
            startUnspecifiedClientSession();
            PersonWrapper quickSearchPersonWrapper = mainViewHelper.getSession().getSearchPersonWrapper();
            quickSearchPersonWrapper.setAliveStatus(Person.AliveStatus.yes);

            ImagedFingerprint ifp = null;
            ImagedFingerprint rightIndex = quickSearchManager.getRightIndex();
            ImagedFingerprint leftIndex = quickSearchManager.getLeftIndex();
            byte[] rightIndexTemplate = rightIndex.getFingerprint().getTemplate();
            byte[] leftIndexTemplate = leftIndex.getFingerprint().getTemplate();
            if (rightIndexTemplate == null && leftIndexTemplate == null) {
                ifp = rightIndex;
            } else {
                if (rightIndexTemplate == null && leftIndexTemplate != null) {
                    ifp = rightIndex;
View Full Code Here

            Fingerprint fp1 = new Fingerprint();
            fp1.setFingerprintType(Fingerprint.Type.rightIndexFinger);
            fp1.setTechnologyType(Fingerprint.TechnologyType.griauleTemplate);
            fp1.setTemplate(null);
            ImagedFingerprint ifp1 = new ImagedFingerprint(fp1, mainViewHelper.getMissingFingerprint().getImage(), quickSearchQualityTextField.getText());
            imagedFingerprintList.add(ifp1);

            Fingerprint fp2 = new Fingerprint();
            fp2.setFingerprintType(Fingerprint.Type.leftIndexFinger);
            fp2.setTechnologyType(Fingerprint.TechnologyType.griauleTemplate);
            fp2.setTemplate(null);
            ImagedFingerprint ifp2 = new ImagedFingerprint(fp2, mainViewHelper.getMissingFingerprint().getImage(), quickSearchQualityTextField.getText());
            imagedFingerprintList.add(ifp2);
        }
View Full Code Here

        private ImagedFingerprint getLeftIndex() {
            return imagedFingerprintList.get(1);
        }

        private void clearRightIndex() {
            ImagedFingerprint ifp = imagedFingerprintList.get(0);
            ifp.getFingerprint().setTemplate(null);
            ifp.setSent(false);
            ifp.setImage(mainViewHelper.getMissingFingerprint().getImage());
            toggleQuickSearchButtons();
        }
View Full Code Here

TOP

Related Classes of ke.go.moh.oec.reception.data.ImagedFingerprint

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.