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

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

/*
* 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.TypeSelectable;
import framework.utils.PairIntStr;

/**
*
* @author vip
*/
@TagToClass(tagName="growth_stage_tnm_t", title="Стадия опухоли по TNM (T)")
public class CertTagGrowthStageTnmT extends TypeSelectable {

    public CertTagGrowthStageTnmT() throws ClipsException {
    }
   
    public CertTagGrowthStageTnmT(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(1, "T0"));
        allItems.add(new PairIntStr(2, "T1"));
        allItems.add(new PairIntStr(5, "T2"));
        allItems.add(new PairIntStr(6, "T3"));
        allItems.add(new PairIntStr(7, "T4"));
        allItems.add(new PairIntStr(9, "TX"));
    }

    @Override
    public boolean isEditable() {
        return true;
    }

    @Override
    public String getValue() throws ClipsException {
        return getText();
    }

}
TOP

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

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.