Package utils

Examples of utils.BreadCrumb


            params.add(new BreadCrumbParam("client", client.getId()));
        }

        List<BreadCrumb> pageBreadcrumb = new LinkedList<BreadCrumb>();
        if (lpu != null) {
            pageBreadcrumb.add(new BreadCrumb(">", lpu.toString(),
                    "/operator/index.htm", params));
        }

        if (coll != null) {
            pageBreadcrumb.add(new BreadCrumb(">", coll.getClient().toString(),
                    "/operator/collaborator.htm", params));
        }

        if(time != 0) {
            Day day = new Day(time);
            pageBreadcrumb.add(new BreadCrumb(">", day.toString(),
                    "/operator/reception.htm", params));
        }

        if(client != null) {
            pageBreadcrumb.add(new BreadCrumb(">", client.toString(),
                    "/operator/chooseclient.htm", params));
        }

        return pageBreadcrumb;
    }
View Full Code Here


    public static List<BreadCrumb> initBreadCrumb(Client client, WorkType type, Lpu lpu, Collaborator coll) {
        List<BreadCrumb> pageBreadcrumb = new LinkedList<BreadCrumb>();
        List<BreadCrumbParam> params = new LinkedList<BreadCrumbParam>();

        if(client != null) {
            pageBreadcrumb.add(new BreadCrumb("", client.toString(), "/reception/index.htm"));
            params.add(new BreadCrumbParam("client", client.getId()));
        }

        if(type != null) {
            pageBreadcrumb.add(new BreadCrumb("записывается на прием к специалисту", type.toString().toLowerCase(),
                    "/reception/work.htm", new LinkedList<BreadCrumbParam>(params)));
            params.add(new BreadCrumbParam("type", type.getId()));
        }

        if (lpu != null) {
            pageBreadcrumb.add(new BreadCrumb("в поликлинику", lpu.toString(),
                    "/reception/lpu.htm", new LinkedList<BreadCrumbParam>(params)));
            params.add(new BreadCrumbParam("lpu", lpu.getId()));
        }

        if (coll != null) {
            pageBreadcrumb.add(new BreadCrumb("к врачу", coll.getClient().toString(),
                    "/reception/collaborator.htm", new LinkedList<BreadCrumbParam>(params)));
        }
        return pageBreadcrumb;
    }
View Full Code Here

TOP

Related Classes of utils.BreadCrumb

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.