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

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

/*
* 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="tuber_expose_place", title="Место выявления теберкулезного заболевания")
public class CertTagTuberExposePlace extends TypeSelectableEdit {
    public static final int POLYCLINIC = 1;
    public static final int COMMON_STACIONAR = 2;
    public static final int SOCIAL = 3;
    public static final int TUBER_DISP = 4;
    public static final int OTHER = 5;

    public CertTagTuberExposePlace() throws ClipsException {
    }

    public CertTagTuberExposePlace(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(POLYCLINIC, "поликлиника"));
        allItems.add(new PairIntStr(COMMON_STACIONAR, "стационар нетуберкулезного профиля"));
        allItems.add(new PairIntStr(SOCIAL, "учреждение соцзащиты"));
        allItems.add(new PairIntStr(TUBER_DISP, "противотуберкулезное учреждение"));
        allItems.add(new PairIntStr(OTHER, "учреждение другого ведомства (указать какое)"));

        editableItems = new HashSet<Integer>();
        editableItems.add(OTHER);
    }

}
TOP

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

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.