Package clips.delegate.directory.complex

Source Code of clips.delegate.directory.complex.DirectoryDloDrugSection

/*
* To change this template, choose Tools | Templates
* and open the template in the editor.
*/

package clips.delegate.directory.complex;

import beans.directory.dlodrugsection.DirectoryDloDrugSectionBean;
import beans.directory.dlodrugsection.DirectoryDloDrugSectionBeanRemote;
import beans.directory.dlodrugsection.DloDrugSectionDetails;
import cli_fmw.delegate.directory.DirectoryMagic;
import cli_fmw.main.ClipsException;
import framework.beans.directory.DirectoryItemDetails;
import framework.generic.ClipsServerException;

/**
*
* @author lacoste
*/
public class DirectoryDloDrugSection
        extends DirectoryMagic<DirectoryDloDrugSectionBeanRemote, DirectoryDloDrugSectionItem>  {

    public DirectoryDloDrugSection() throws ClipsException {
        super(DirectoryDloDrugSectionBean.class.getSimpleName());
    }

    @Override
    protected DirectoryDloDrugSectionItem createFromLoadedDetails(DirectoryItemDetails details) {
        DloDrugSectionDetails d = (DloDrugSectionDetails) details;
        return new DirectoryDloDrugSectionItem(d);
    }

    @Override
    public String getDirectoryTitle() {
        return "Разделы перечня ЛС";
    }

    public DirectoryDloDrugSectionItem getItemByCode(int code) throws ClipsException {
        try {
            DloDrugSectionDetails det = getBean().get().getItemByCode(code);
            return new DirectoryDloDrugSectionItem(det);
        } catch (ClipsServerException ex) {
            throw new ClipsException("", ex);
        }
    }

}
TOP

Related Classes of clips.delegate.directory.complex.DirectoryDloDrugSection

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.