Package utils

Examples of utils.BreadCrumbParam


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

        if (lpu != null) {
            params.add(new BreadCrumbParam("lpu", lpu.getId()));
        }
        if (coll != null) {
            params.add(new BreadCrumbParam("collaborator", coll.getId()));
        }
        if(time != 0) {
            params.add(new BreadCrumbParam("time", new Long(time).toString()));
        }
        if(type != null) {
            params.add(new BreadCrumbParam("type", type.getId()));
        }
        if(client != null) {
            params.add(new BreadCrumbParam("client", client.getId()));
        }

        List<BreadCrumb> pageBreadcrumb = new LinkedList<BreadCrumb>();
        if (lpu != null) {
            pageBreadcrumb.add(new BreadCrumb(">", lpu.toString(),
View Full Code Here


        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)));
View Full Code Here

TOP

Related Classes of utils.BreadCrumbParam

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.