Package clips.delegate.doctor.certificate.tag.certTags

Source Code of clips.delegate.doctor.certificate.tag.certTags.CertTagTuberGroup

/*
* 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 clips.delegate.doctor.certificate.tag.interfaces.TypeSelectableRO;
import cli_fmw.delegate.report.ReportParam;
import cli_fmw.main.ClipsException;
import framework.utils.PairIntStr;

/**
*
* @author vip
*/
@TagToClass(tagName="tuber_group", title="Туберкулезные группы")
public class CertTagTuberGroup extends TypeSelectableRO {
    public static final int GROUP_0 = 1;
    public static final int GROUP_3 = 2;
    public static final int GROUP_4 = 3;
    public static final int GROUP_3A = 4;
    public static final int GROUP_6A = 5;
    public static final int GROUP_6B = 6;
    public static final int GROUP_6V = 7;

    public CertTagTuberGroup() throws ClipsException {
    }

    public CertTagTuberGroup(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(GROUP_0, "0"));
        allItems.add(new PairIntStr(GROUP_3, "III"));
        allItems.add(new PairIntStr(GROUP_4, "IV"));
        allItems.add(new PairIntStr(GROUP_3A, "IIIА"));
        allItems.add(new PairIntStr(GROUP_6A, "VIА"));
        allItems.add(new PairIntStr(GROUP_6B, "VIБ"));
        allItems.add(new PairIntStr(GROUP_6V, "VIВ"));
    }

}
TOP

Related Classes of clips.delegate.doctor.certificate.tag.certTags.CertTagTuberGroup

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.