Package clips.delegate.client

Examples of clips.delegate.client.ClientLocal$FatherCache


            }
            MessageBox.showException(ex);
            return;
        }
        if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
            ClientLocal cl = pus.getSelectedClient();
            if (cl != null){
                tfClient.setText(cl.toString());
                jPanel2.revalidate();
                filter.clientId = cl.getID();
            }else{
                chbClient.setSelected(false);
                btClient.setEnabled(false);
            }
        } else {
View Full Code Here


            }
        MessageBox.showException(ex);
        return;
    }
    if (dialog.getDlgResult() == ModalDialog.DLG_OK) {
        ClientLocal cl = pus.getSelectedClient();
        tfClient.setText(cl.toString());
        jPanel2.revalidate();
        filter.clientId = chbClient.isSelected() ? cl.getID() : 0;
    }
}//GEN-LAST:event_btClientActionPerformed
View Full Code Here

                        return "";
                    }
                }
                case COL_FIO: {
                    //ФИО
                    ClientLocal cl = polisData.getClient();
                    if (cl != null) {
                        return cl.toString();
                    } else {
                        return "";
                    }
                }
                case COL_BIRTHDAY: {
View Full Code Here

@TagToClass(tagName="pacient_age",title="Возраст пациента")
public class CertTagPacientAge extends TypeTextField {
   
    public CertTagPacientAge(CertificateLocal certificateLocal, ReportParam reportParam, DiseaseLocal diseaseLocal) throws ClipsException {
        super(certificateLocal, reportParam, diseaseLocal);
        ClientLocal clientLocal = certificateLocal.getClientLocal();
        if (certificateLocal.isNewlyCreated()) {
            Date born = clientLocal.getBorn();
            Date current = TimeLocal.getCurrentTime().getTime();
            int calcAge = DateTimeUtils.calcAge(born, current);
            setText(Integer.toString(calcAge), true);
        }
    }
View Full Code Here

@TagToClass(tagName="pacient_surname",title="Фамилия пациента")
public class CertTagPacientSurName extends TypeTextField {
   
    public CertTagPacientSurName(CertificateLocal certificateLocal, ReportParam reportParam, DiseaseLocal diseaseLocal) throws ClipsException {
        super(certificateLocal, reportParam, diseaseLocal);
        ClientLocal clientLocal = certificateLocal.getClientLocal();
        if (certificateLocal.isNewlyCreated()) {
            String surname = clientLocal.getSurname().toString();
            setText(surname, true);
        }
    }
View Full Code Here

@TagToClass(tagName="pacient_phones",title="Телефоны пациента")
public class CertTagPacientPhones extends TypeTextField {
   
    public CertTagPacientPhones(CertificateLocal certificateLocal, ReportParam reportParam, DiseaseLocal diseaseLocal) throws ClipsException {
        super(certificateLocal, reportParam, diseaseLocal);
        ClientLocal clientLocal = certificateLocal.getClientLocal();
        if (certificateLocal.isNewlyCreated()) {
            String phones = clientLocal.getTelephones();
            setText(phones, true);
        }
    }
View Full Code Here

    private void btSelectActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_btSelectActionPerformed
        try {
            int row = tabSerRens.getSelectedRowSorted();
            SerRenLocal serRen = serRens.get(row);
            ClientLocal client = serRen.getPolisData().getClient();
            PanelSerRenList panel = new PanelSerRenList(getContainer(), client);
            PageGeneric page = getContainer().addNewPage((PageGeneric) panel, this);
            getContainer().activatePage(page);
        } catch (ClipsException ex) {
            MessageBox.showException(ex);
View Full Code Here

public class CertTagPacientDocPlaceDate extends TypeTextField {

    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();
                }
View Full Code Here

        }
       
        @Override
        public void actionPerformed(ActionEvent e) {
            try {
                ClientLocal client = null;
                if(defaultClient != null) {
                    client = defaultClient;
                } else {
                    EmptyDialog dialog = new EmptyDialog(null, "Выбор пациента", getAuditManager());
                    PanelUserSearch panel = new PanelUserSearch(dialog, PanelUserSearch.MODE_SELECT);
View Full Code Here

public class CertTagPacientDocSeries extends TypeTextField {

    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

TOP

Related Classes of clips.delegate.client.ClientLocal$FatherCache

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.