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

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

/*
* 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="period_fg", title="Сроки предыдущего ФГ обследования")
public class CertTagPeriodFG extends TypeSelectableRO {
    public static final int PERIOD1 = 1;
    public static final int PERIOD2 = 2;
    public static final int PERIOD3 = 3;
    public static final int PERIOD4 = 4;

    public CertTagPeriodFG() throws ClipsException {
    }

    public CertTagPeriodFG(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(PERIOD1, "до 1 года"));
        allItems.add(new PairIntStr(PERIOD2, "1-2 года"));
        allItems.add(new PairIntStr(PERIOD3, "3-5 лет"));
        allItems.add(new PairIntStr(PERIOD4, "более 5 лет"));
    }

}
TOP

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

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.