Package domain

Examples of domain.District


                values += ";" + district.getId() + ";" + district;
            }
        }else if (streetId != null && building != null && !building.isEmpty()) {
            AddressObject ao = CH.getOptional(getDao(), AddressObject.class, streetId);
            if (ao != null){
                District defaultDistrict = AddressManager.getDefaultDistrict(getDao(), ao.getId(), building);
//            values += defaultDistrict.getId() + ";" + defaultDistrict + "=";
//            values += defaultDistrict.getLpu().getId() + ";" + defaultDistrict.getLpu() + "=";
//            List<District> districts = getDao().getDistrictList(defaultDistrict.getLpu());
//            for (District district : districts) {
                if (defaultDistrict != null){
                    values += defaultDistrict.getId() + ";" +
                             defaultDistrict.getLpu().getId() + ";" +
                             defaultDistrict.getLpu() + " участок: " + defaultDistrict;
                }
            }
//            }
        }
View Full Code Here


        }
        return districts;
    }

    public DistrictConvertor getDefaultDistrict(int streetId, String building){
        District district = AddressManager.getDefaultDistrict(getDao(), streetId, building);
        if (district != null){
            Lpu lpu = district.getLpu();
            DistrictConvertor dc = new DistrictConvertor(district);
            dc.setLpu(new LpuConvertor(lpu));
            return dc;
        }else{
            return null;
View Full Code Here

            ur.setAddress(getDao().getById(Address.class, address));
        } catch (Exception ex) {
            errors.rejectValue("area", "register.wrongaddress");
            return showForm(request, errors, getFormView());
        }
        District defaultDistrict = AddressManager.getDefaultDistrict(getDao(), urdto.getStreet(), urdto.getBuilding());
        ur.setDistrict(defaultDistrict);
        ur.setSurname(urdto.getSurname());
        ur.setName(urdto.getName());
        ur.setPatronymic(urdto.getPatronymic());
        ur.setOms(urdto.getOms());
View Full Code Here

TOP

Related Classes of domain.District

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.