/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/
package clips.delegate.doctor.certificate.tag.certTags;
import clips.delegate.doctor.DiseaseLocal;
import clips.delegate.doctor.certificate.CertificateLocal;
import clips.delegate.doctor.certificate.tag.TagToClass;
import cli_fmw.delegate.report.ReportParam;
import cli_fmw.main.ClipsException;
import clips.delegate.doctor.certificate.tag.interfaces.TypeSelectableEdit;
import framework.utils.PairIntStr;
import java.util.HashSet;
/**
*
* @author vip
*/
@TagToClass(tagName="class", title="Группа, класс, курс")
public class CertTagClass extends TypeSelectableEdit {
public CertTagClass() throws ClipsException {
}
public CertTagClass(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(1, "группа"));
allItems.add(new PairIntStr(2, "класс"));
allItems.add(new PairIntStr(3, "курс"));
editableItems = new HashSet<Integer>();
editableItems.add(1);
editableItems.add(2);
editableItems.add(3);
}
}