Package clips.delegate.client

Examples of clips.delegate.client.ClientDocumentData


    public CertTagPacientDocPlaceDate(CertificateLocal certificateLocal, ReportParam reportParam, DiseaseLocal diseaseLocal) throws ClipsException {
        super(certificateLocal, reportParam, diseaseLocal);
        if (certificateLocal.isNewlyCreated()) {
            ClientLocal clientLocal = certificateLocal.getClientLocal();
            ClientDocumentData doc = clientLocal.getClientDocument();
            if (doc != null) {
                String str = "";
                if (doc.getGivenPlace() != null && doc.getGivenPlace().getID() != 0) {
                    str += doc.getGivenPlace().getTitle();
                }
                if (doc.getDate() != null) {
                    str += " " + Converter.dateToString(doc.getDate());
                }
                setText(str, true);
            }
        }
    }
View Full Code Here


    public CertTagPacientDocSeries(CertificateLocal certificateLocal, ReportParam reportParam, DiseaseLocal diseaseLocal) throws ClipsException {
        super(certificateLocal, reportParam, diseaseLocal);
        if (certificateLocal.isNewlyCreated()) {
            ClientLocal clientLocal = certificateLocal.getClientLocal();
            ClientDocumentData doc = clientLocal.getClientDocument();
            if (doc != null) {
                setText(doc.getSeries() != null ? doc.getSeries() : "", true);
            }
        }
    }
View Full Code Here

    public CertTagPacientDocNumber(CertificateLocal certificateLocal, ReportParam reportParam, DiseaseLocal diseaseLocal) throws ClipsException {
        super(certificateLocal, reportParam, diseaseLocal);
        if (certificateLocal.isNewlyCreated()) {
            ClientLocal clientLocal = certificateLocal.getClientLocal();
            ClientDocumentData doc = clientLocal.getClientDocument();
            if (doc != null) {
                setText(doc.getNumber() != null ? doc.getNumber() : "", true);
            }
        }
    }
View Full Code Here

        ClientLocal representative = null;
        if (client.getPolisOMS().getNumber().equals(Polis.FICTIVE_POLIS_NUMBER)) {
            representative = client.getRepresentative();
        }

        ClientDocumentData doc;
        PolisData polis;
        if (representative != null) {
            data.put("representative_surname", representative.getSurname().getTitle());
            data.put("representative_name", representative.getName().getTitle());
            data.put("representative_patron", representative.getPathron().getTitle());
            data.put("is_representative_document", Boolean.TRUE);
            DirectoryRepresentativeStatusItem item = client.getRepresStatus();
            if (item != null) {
                data.put("representative_status", item.getID());
            }

            doc = representative.getClientDocument();
            polis = representative.getPolisOMS();
        }
        else {
            doc = client.getClientDocument();
            polis = client.getPolisOMS();
        }

        if (doc != null) {
            data.put("pacient_document_title", doc.getType().getTitle());
            String docS = doc.getSeries();
            if (docS != null) {
                data.put("pacient_document_series", docS);
            }
            docS = doc.getNumber();
            if (docS != null) {
                data.put("pacient_document_number", docS);
            }
        }
       
View Full Code Here

TOP

Related Classes of clips.delegate.client.ClientDocumentData

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.