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

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

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

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

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;
import cli_fmw.delegate.report.ReportParam;
import cli_fmw.main.ClipsException;

/**
*
* @author vip
*/
@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);
        }
    }

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

}
TOP

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

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.