Package clips.delegate.doctor.certificate.tag.certTags

Source Code of clips.delegate.doctor.certificate.tag.certTags.CertTagPacientDocSeries

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package clips.delegate.doctor.certificate.tag.certTags;

import cli_fmw.delegate.report.ReportParam;
import cli_fmw.main.ClipsException;
import clips.delegate.client.ClientDocumentData;
import clips.delegate.client.ClientLocal;
import clips.delegate.doctor.DiseaseLocal;
import clips.delegate.doctor.certificate.CertificateLocal;
import clips.delegate.doctor.certificate.tag.TagToClass;
import clips.delegate.doctor.certificate.tag.interfaces.TypeTextField;

/**
*
* @author lacoste
*/
@TagToClass(tagName="document_series",title="Серия паспорта")
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);
            }
        }
    }

    @Override
    public boolean isEditable() {
        return true;
    }

}
TOP

Related Classes of clips.delegate.doctor.certificate.tag.certTags.CertTagPacientDocSeries

TOP
Copyright © 2018 www.massapi.com. 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.