Package beans.directory.doctoraction.entity

Examples of beans.directory.doctoraction.entity.DoctorActionDetails


                int pos = line.indexOf('|');
                if (pos > -1) {
                    String code = line.substring(0, pos);
                    String title = line.substring(pos + 1);
                    if (code.length() == 2) {
                        DoctorActionDetails details = new DoctorActionDetails();
                        details.parentItem = 0;
                        details.title = title;
                        details.code = code;
                       
                        parent = new DirectoryDoctorActionItem(details);
                        dirAction.getItems().append(parent);
                       
                        System.out.println(code + " " + title);
                    }
                    else if (code.length() == 5) {
                        code = code.substring(3, 5);
                       
                        DoctorActionDetails details = new DoctorActionDetails();
                        details.parentItem = parent.getID();
                        details.title = title;
                        details.code = code;
                       
                        current = new DirectoryDoctorActionItem(details);
                        dirAction.getItems().append(current);
                       
                        System.out.println("   " +code + " " + title);
                    }
                    else if (code.length() == 9) {
                        code = code.substring(6);                       
                       
                        DoctorActionDetails details = new DoctorActionDetails();
                        details.parentItem = current.getID();
                        details.title = title;
                        details.code = code;
                       
                        item = new DirectoryDoctorActionItem(details);
View Full Code Here


     * @param code
     * @throws cli_fmw.main.ClipsException
     */
    public void setCode(String code) throws ClipsException {
       if(isInDirectory()) {
            DoctorActionDetails newDetails = getDetailsCopy();
            newDetails.code = code;
            saveDetails(newDetails);
        } else {
            getDetails().code = code;
        }
View Full Code Here

        return "Простые медицинские услуги";
    }

    @Override
    protected DirectoryDoctorActionItem createFromLoadedDetails(DirectoryItemDetails details) {
        DoctorActionDetails d = (DoctorActionDetails) details;
        return new DirectoryDoctorActionItem(d);
    }
View Full Code Here

TOP

Related Classes of beans.directory.doctoraction.entity.DoctorActionDetails

Copyright © 2018 www.massapicom. 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.