/*
* 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_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);
}
}
@Override
public boolean isEditable() {
return true;
}
}