Package framework.beans.address.entities

Examples of framework.beans.address.entities.AddressObjectDetails


     * @param details
     * @throws ClipsServerException
     */
    @Override
    protected void set(AddressObject entity, AddressObjectDetails details) throws ClipsServerException {
        AddressObjectDetails d = details;
        AddressObject ao = entity;
        ao.setActual(false);
        ao.setIfnsCode(d.ifnsCode);
        ao.setIfnsLocalCode(d.ifnsLocalCode);
        ao.setOkato(d.okato);
View Full Code Here


        if (getType().getID() != AddressObjectType.ADDRESS_OBJECT_TYPE_COUNTRY
                || this.getID() == AddressObject.ADDRESS_OBJECT_RUSSIA){
            throw new IllegalArgumentException("Нельзя менять коды внутри КЛАДРа");
        }
        if (isInDirectory()) {
            AddressObjectDetails newDetails = (AddressObjectDetails) getDetailsCopy();
            newDetails.kladrCode = code;
            saveDetails(newDetails);
        } else {
            getDetails().kladrCode = code;
        }
View Full Code Here

        return "КЛАДР";
    }

    @Override
    protected DirectoryKladrItem createFromLoadedDetails(DirectoryItemDetails details) {
        AddressObjectDetails d =  (AddressObjectDetails) details;
        return new DirectoryKladrItem(d, this);
    }
View Full Code Here

        }
    }

    @Override
    protected DirectoryKladrItem createNullItem() {
        AddressObjectDetails details = new AddressObjectDetails();
        details.title = "неизвестно";
        details.kladrCode = "";
        details.hidden = true;
        DirectoryKladrItem item = new DirectoryKladrItem(details, this);
        return item;
View Full Code Here

        this.item = item;
    }

    public DirectoryCountryItem(String title, String code, DirectoryCountry directory) {
        super(new DirectoryItemDetails(title));
        AddressObjectDetails aod = new AddressObjectDetails();
        aod.typeId = AddressObjectType.ADDRESS_OBJECT_TYPE_COUNTRY;
        aod.parentItem = 0;
        aod.kladrCode = code;
        aod.title = title;
        this.item = new DirectoryKladrItem(aod, directory.getDirectoryKladr());
View Full Code Here

                @Override
                public Object addItem(String txt) {
                    try {
//                    System.out.println("CREATE NEW ITEM");
                        int number = getNumber(cb);
                        AddressObjectDetails details = new AddressObjectDetails();
                        details.title = (String) txt;
                        Object parent = combos[number - 1].getSelectedItem();
                        if (!(parent instanceof DirectoryKladrItem)) {
                            throw new ClipsException("Родительский элемент не является элементом справочника");
                        } else {
View Full Code Here

TOP

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

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.