Package clips.delegate.client

Examples of clips.delegate.client.ClientExemptionData


    public CertTagExemptionCode(CertificateLocal certificateLocal, ReportParam reportParam, DiseaseLocal diseaseLocal) throws ClipsException {
        super(certificateLocal, reportParam, diseaseLocal);
        if (certificateLocal.isNewlyCreated()) {
            certTagResult.text = "";
                       
            ClientExemptionData exempData = certificateLocal.getClientLocal().getExemption();
            if (exempData != null) {
                DirectoryExcemptionItem exemp = exempData.getExemption();
                if (exemp != null && exemp.getID() != 0) {
                    certTagResult.text = exemp.getExtKey();
                }
            }
            setTagResult(certTagResult);
View Full Code Here


        loadExcems();
    StateSaver.attachTo(this);
    }
   
    private void loadExcems() throws ClipsException {
        ClientExemptionData chunk = clientLoc.getExemption();
        if (chunk == null) {
            labExemp.setText("Нет категории льготности");
            return;
        }

        DirectoryExcemptionItem exemp = chunk.getExemption();
        if (exemp != null && exemp.getID() != 0) {
            labExemp.setText(exemp != null ? exemp.toString() : "...");
        }

        String ss = chunk.getDocName();
        if (ss != null && !ss.trim().isEmpty()) {
            labDocName.setText(ss);
        }
        ss = chunk.getDocSN();
        if (ss != null && !ss.trim().isEmpty()) {
            labDocSN.setText(ss);
        }

        if (chunk.getGspBegin() != null) {
            labGspBegin.setText(Converter.dateToString(chunk.getGspBegin()));
        }
        if (chunk.getGspEnd() != null) {
            labGspEnd.setText(Converter.dateToString(chunk.getGspEnd()));
        }

        if (chunk.hasRightNSU()) {
            labNsuFlag.setText("Получает");
        }
        else {
            labNsuFlag.setText("Не получает");
        }
        if (chunk.getNsuBegin() != null) {
            labNsuBegin.setText(Converter.dateToString(chunk.getNsuBegin()));
        }
        if (chunk.getNsuEnd() != null) {
            labNsuEnd.setText(Converter.dateToString(chunk.getNsuEnd()));
        }
        if (chunk.getRegBegin() != null) {
            labRegBegin.setText(Converter.dateToString(chunk.getRegBegin()));
        }
        if (chunk.getRegEnd() != null) {
            labRegEnd.setText(Converter.dateToString(chunk.getRegEnd()));
        }
    }
View Full Code Here

        String snils = client.getSnils();
        if (snils != null) {
            data.put("pacient_snils", snils);
        }

        ClientExemptionData chunk = client.getExemption();
        if (chunk != null) {
            DirectoryExcemptionItem exemp = chunk.getExemption();
            if (exemp != null && exemp.getID() != 0) {
                data.put("exemption_code", exemp.getExtKey());
            }
        }
View Full Code Here

TOP

Related Classes of clips.delegate.client.ClientExemptionData

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.