/*
* 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_name",title="Имя пациента")
public class CertTagPacientName extends TypeTextField {
public CertTagPacientName(CertificateLocal certificateLocal, ReportParam reportParam, DiseaseLocal diseaseLocal) throws ClipsException {
super(certificateLocal, reportParam, diseaseLocal);
ClientLocal clientLocal = certificateLocal.getClientLocal();
if (certificateLocal.isNewlyCreated()) {
String name = clientLocal.getName().toString();
setText(name, true);
}
}
@Override
public boolean isEditable() {
return true;
}
}