Package cli_fmw.delegate.client

Examples of cli_fmw.delegate.client.Address


    public String getOgrn() {
        return getDetails().ogrn;
    }

    public Address getAddress() throws ClipsException {
        return new Address(getDetails().addressDetails);
    }
View Full Code Here


        extraFields.put("pacient_pathron", getPathron().getTitle());

        extraFields.put("pacient_sex", getSex().getID() == Sex.CLIENT_SEX_MALE ? 1 : 2);
        extraFields.put("pacient_BD", BornToString());

        Address address = getAddress();
        if (address != null) {
            extraFields.put("address_region", address.getRegionTitle());
            extraFields.put("address_district", address.getMunicipalityTitle());
            extraFields.put("address_city", address.getCityTitle());
            extraFields.put("address_street", address.getStreetTitle());
            extraFields.put("building_number", Converter.getBuildingNumber(address.getBuilding()));
            extraFields.put("building_corps", Converter.getBuildingCorpus(address.getBuilding()));
            extraFields.put("flat_number", address.getFlat() == null ? "" : address.getFlat());
        }

        if (getTelephones() != null) {
            extraFields.put("pacient_phones", getTelephones());
        }

        ArrayList<String> jobDates = new ArrayList<String>();
        ArrayList<String> jobEnterprises = new ArrayList<String>();
        DirectoryEnterpriseItem ent;
        Date date;
        String entData;

        for (JobLocal job : getJobList()) {
            ent = job.getEnterprise();
            entData = "";
            if (ent != null && ent.getID() != 0) {
                entData += ent.getTitle();
                Address ad = ent.getAddress();
                if (address != null) {
                    entData += "  " + ad.toStringShort();
                }
            }
            jobEnterprises.add(entData);
            date = job.getBegin();
            jobDates.add(Converter.dateToString(date, "dd.MM.yy"));
View Full Code Here

        fireContentStateEvent();
    }

    public Address getAddress() throws ClipsException {
        if (getDetails().addressDetail != null) {
            return new Address(getDetails().addressDetail);
        }
        return new Address(new AddressDetails());
    }
View Full Code Here

        fireContentStateEvent();
    }

    public Address getAddress() throws ClipsException {
        if (getDetails().addressDetails != null) {
            return new Address(getDetails().addressDetails.clone());
        } else {
            return new Address(new AddressDetails());
        }
    }
View Full Code Here

TOP

Related Classes of cli_fmw.delegate.client.Address

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.