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

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

/*
* 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.TypeSelectableEdit;
import framework.utils.PairIntStr;
import java.util.HashSet;

/**
*
* @author lacoste
*/
@TagToClass(tagName="poison_take_place", title="Место приобретения яда")
public class CertTagChemicalPoisonTakePlace extends TypeSelectableEdit {
    public static final int PHARMACY = 1;
    public static final int STORE = 2;
    public static final int ENTERPRISE = 3;
    public static final int PRIVAT_SECTOR = 4;
    public static final int OTHER = 5;
    public static final int UNKNOWN = 6;

    public CertTagChemicalPoisonTakePlace() throws ClipsException {
    }

    public CertTagChemicalPoisonTakePlace(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(PHARMACY, "аптека"));
        allItems.add(new PairIntStr(STORE, "госмагазин"));
        allItems.add(new PairIntStr(ENTERPRISE, "предприятие"));
        allItems.add(new PairIntStr(PRIVAT_SECTOR, "частный сектор"));
        allItems.add(new PairIntStr(OTHER, "другое"));
        allItems.add(new PairIntStr(UNKNOWN, "неизвестно"));

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

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

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.