Package framework.beans.address.entities

Examples of framework.beans.address.entities.AddressDetails


        polis.setRegionCode(findEntity(RegionIdCode.class, details.regionCodeId));
        polis.setCollaborator(findEntity(Collaborator.class, getCollaboratorId()));
        polis.setInsurer(findEntity(Insurer.class, details.insurerID));

        Address address = polis.getAddress();
        AddressDetails ad = details.addressDetail;
        if (ad != null && ad.objectId != 0) {
            if (address == null){
                address = new Address();
            }
            address.setAddressObject(findEntity(AddressObject.class, ad.objectId));
View Full Code Here


        }
        if(filter.pathron != null && !filter.pathron.isEmpty()) {
      fields.add(new Field("pathronymic.title", filter.pathron.replace("%", "") + "%", Field.OPERATOR_LIKE));
        }
        if (filter.ad != null && filter.ad.objectId != 0) {
            AddressDetails ad = filter.ad;
            AddressObject addressObject = findEntity(AddressObject.class, ad.objectId);
            int level = addressObject.getType().getLevel();
           
            if (addressObject.getId() == AddressObject.ADDRESS_OBJECT_RUSSIA){
        //у буржундии код начинается с минуса
View Full Code Here

        polis.setTillDate(details.tillDate);
        polis.setFromDate(details.fromDate);
        polis.setInsurer(details.insurerID != 0 ? findEntity(Insurer.class, details.insurerID) : null);
        polis.setRegionCode(findEntity(RegionIdCode.class, details.regionCodeId));
      
        AddressDetails ad = details.addressDetail;
        if (ad != null) {
            a.setAddressObject(ad.objectId != 0 ? findEntity(AddressObject.class, ad.objectId) : null);
            a.setBuilding(ad.building);
            a.setFlat(ad.flat);
            saveEntity(a);
View Full Code Here

            p.setFromDate(pOld.getFromDate());
            p.setTrash(pOld.isTrash());
            p.setCollaborator(pOld.getCollaborator());
            p.setContract(dst);
            if (pOld.getAddress() != null) {
                AddressDetails ad = pOld.getAddress().getDetails(this).clone();
                Address a = new Address();
                a.setBuilding(ad.building);
                a.setFlat(ad.flat);
                a.setAddressObject(ad.objectId != 0 ? findEntity(AddressObject.class, ad.objectId) : null);
                manager.persist(a);
View Full Code Here

            client = manager.find(Client.class, clientDetails.id);
        }


        //АДРЕС
        AddressDetails addDet = new AddressDetails();
        String code = c.kladrCode;
        Field[] f = new Field[]{new Field("kladrCode", code)};
        List<AddressObject> list =  findEntityList(AddressObject.class, f);
        if (list.isEmpty() && code.length() >= 11) {
            //Если не найдена улица, то найдем хотябы нас пункт
View Full Code Here

        lpu.setInsurer(findEntity(Insurer.class, d.insurer));
        lpu.setSubdivisionCode(d.subdivisionCode);
        lpu.setBranch(d.branch);

        Address address = lpu.getAddress();
        AddressDetails ad = d.addressDetails;
        if (ad != null && ad.objectId != 0) {
            if (address == null){
                address = new Address();
            }
            address.setAddressObject(findEntity(AddressObject.class, ad.objectId));
View Full Code Here

        directoryKladr = DirectoryLocator.getDirectory(DirectoryKladr.class);
        if (ad == null || ad.getDetails().objectId == 0) {
            if (addDefault != null && addDefault.getDetails().objectId != 0) {
                DirectoryKladrItem city = addDefault.getCity();
                if (city != null) {
                    ad = new Address(new AddressDetails(city.getID()));
                }
            }
        }

        if (ad == null || ad.getDetails().objectId == 0) {
            ad = new Address(new AddressDetails(directoryKladr.getRussia().getID()));
            addressReset = true;
        }
        this.address = ad;
        this.addressDetailsOriginal = address.getDetails().clone();
        combos = new JComboBox[6];
View Full Code Here

            fireAuditEvent();
        }

        @Override
        protected AddressDetails initNew() {
            return new AddressDetails();
        }
View Full Code Here

            filter.lastComingFrom = dateFrom.getDate();
            filter.lastComingTill = dateTo.getDate();
            filter.lastComingByTap = rbTap.isSelected();
        }
        if (address != null) {
            AddressDetails ad = address.getDetails();
            filter.ad = ad.clone();
            filter.addressTitle = address.toString();
        }

        if (filter.isEmpty()) {
            jScrollPane1.setBorder(new TitledBorder(""));
View Full Code Here

            Address ad;
            if (address != null) {
                ad = new Address(address.getDetails().clone());
            }
            else {
                ad = new Address(new AddressDetails());
            }
            Address addressDefault = UserInfo.get().getCollaborator().getLpu().getAddress();
            DialogAddressM dlg = new DialogAddressM((Window) getContainer(), ad, addressDefault, getAuditManager());
            dlg.setVisible(true);
            if (dlg.getDlgResult() == ModalDialog.DLG_OK){
View Full Code Here

TOP

Related Classes of framework.beans.address.entities.AddressDetails

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.