@TagToClass(tagName="pacient_fio",title="Фамилия, имя, отчество пациента")
public class CertTagPacientFIO extends TypeTextField {
public CertTagPacientFIO(CertificateLocal certificateLocal, ReportParam reportParam, DiseaseLocal diseaseLocal) throws ClipsException {
super(certificateLocal, reportParam, diseaseLocal);
ClientLocal clientLocal = certificateLocal.getClientLocal();
if (certificateLocal.isNewlyCreated()) {
String name = clientLocal.getName() != null ? clientLocal.getName().toString() : "";
String surname = clientLocal.getSurname() != null ? clientLocal.getSurname().toString() : "";
String pathron = clientLocal.getPathron() != null ? clientLocal.getPathron().toString() : "";
setText(String.format("%s %s %s", surname, name, pathron), true);
}
}