/*
* 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.doctor.DiseaseLocal;
import clips.delegate.doctor.certificate.CertificateLocal;
import clips.delegate.doctor.certificate.tag.TagToClass;
import clips.delegate.doctor.certificate.tag.interfaces.TypeSelectableRO;
import framework.utils.PairIntStr;
/**
*
* @author lacoste
*/
@TagToClass(tagName="pupil_type", title="Студент, учащийся, ребенок, посещающий дошкольное учреждение")
public class CertTagPupilType extends TypeSelectableRO {
public static final int STUDENT = 1;
public static final int SCHOOL_PUPIL = 2;
public static final int KID = 3;
public CertTagPupilType() throws ClipsException {
}
public CertTagPupilType(CertificateLocal certificateLocal, ReportParam reportParam, DiseaseLocal diseaseLocal) throws ClipsException {
super(certificateLocal, reportParam, diseaseLocal);
if (certificateLocal.isNewlyCreated()) {
setItem(0);
}
}
@Override
public void fillItems() throws ClipsException {
allItems.add(new PairIntStr(0, ""));
allItems.add(new PairIntStr(STUDENT, "студенту"));
allItems.add(new PairIntStr(SCHOOL_PUPIL, "учащемуся"));
allItems.add(new PairIntStr(KID, "ребенку, посещающему дошкольное учреждение"));
}
}