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

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

/*
* 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 clips.delegate.client.ClientLocal;
import framework.utils.PairIntStr;

/**
*
* @author vip
*/
@TagToClass(tagName="inability", title="Инвалидность")
public class CertTagInability extends TypeSelectableRO {
    public static final int FIRST_GROUP = 1;
    public static final int SECOND_GROUP = 2;
    public static final int THIRD_GROUP = 3;
    public static final int CHILD_GROUP = 4;

    public CertTagInability() throws ClipsException {
    }
   
    public CertTagInability(CertificateLocal certificateLocal, ReportParam reportParam, DiseaseLocal diseaseLocal) throws ClipsException {
        super(certificateLocal, reportParam, diseaseLocal);
        if (certificateLocal.isNewlyCreated()) {
            setItem(getDefaultID(certificateLocal.getClientLocal()));
        }
    }

    @Override
    public void fillItems() throws ClipsException {
        allItems.add(new PairIntStr(0, ""));
        allItems.add(new PairIntStr(FIRST_GROUP, "I группа"));
        allItems.add(new PairIntStr(SECOND_GROUP, "II группа"));
        allItems.add(new PairIntStr(THIRD_GROUP, "III группа"));
        allItems.add(new PairIntStr(CHILD_GROUP, "ребенок-инвалид"));
    }

    private int getDefaultID(ClientLocal clientLocal) {
        //DOTO реализовать, когда будет сделана инвалидность (inability)
        //STUB
        return 0;
        //ENDSTUB
    }

}
TOP

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

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.