Examples of PartyType


Examples of com.mossle.party.domain.PartyType

            @RequestParam(value = "partyStructTypeId", required = false) Long partyStructTypeId,
            @RequestParam(value = "partyTypeId", required = false) Long partyTypeId,
            @RequestParam(value = "partyEntityId", required = false) Long partyEntityId)
            throws Exception {
        PartyEntity partyEntity = init(model, partyStructTypeId, partyEntityId);
        PartyType partyType = partyTypeManager.get(partyTypeId);

        model.addAttribute("partyEntity", partyEntity);
        model.addAttribute("partyType", partyType);

        return "party/org-input";
View Full Code Here

Examples of com.mossle.party.domain.PartyType

            @RequestParam(value = "childEntityName", required = false) String childEntityName,
            @RequestParam("partyEntityId") Long partyEntityId,
            @RequestParam("partyTypeId") Long partyTypeId,
            @RequestParam("partyStructTypeId") Long partyStructTypeId)
            throws Exception {
        PartyType partyType = partyTypeManager.get(partyTypeId);

        if (partyType.getType() == 1) {
            // 人员
            PartyEntity child = partyEntityManager.findUnique(
                    "from PartyEntity where partyType=? and ref=?", partyType,
                    childEntityRef);
            logger.debug("child : {}", child);
View Full Code Here

Examples of com.mossle.party.domain.PartyType

            String name) {
        PartyEntity partyEntity = new PartyEntity();
        partyEntity.setRef(partyEntityRef);
        partyEntity.setName(name);

        PartyType partyType = partyTypeManager
                .findUniqueBy("ref", partyTypeRef);
        partyEntity.setPartyType(partyType);
        partyEntityManager.save(partyEntity);
    }
View Full Code Here

Examples of com.mossle.party.domain.PartyType

        partyEntityManager.save(partyEntity);
    }

    public void updatePartyEntity(String partyEntityRef, String partyTypeRef,
            String name) {
        PartyType partyType = partyTypeManager
                .findUniqueBy("ref", partyTypeRef);
        PartyEntity partyEntity = partyEntityManager.findUnique(
                "from PartyEntity where ref=? and partyType.id=?",
                partyEntityRef, partyType.getId());
        partyEntity.setName(name);
        partyEntityManager.save(partyEntity);
    }
View Full Code Here

Examples of com.mossle.party.domain.PartyType

        partyEntity.setName(name);
        partyEntityManager.save(partyEntity);
    }

    public void removePartyEntity(String partyEntityRef, String partyTypeRef) {
        PartyType partyType = partyTypeManager
                .findUniqueBy("ref", partyTypeRef);
        PartyEntity partyEntity = partyEntityManager.findUnique(
                "from PartyEntity where ref=? and partyType.id=?",
                partyEntityRef, partyType.getId());
        partyEntityManager.remove(partyEntity);
    }
View Full Code Here

Examples of com.mossle.party.domain.PartyType

    @RequestMapping("party-type-input")
    public String input(@RequestParam(value = "id", required = false) Long id,
            Model model) {
        if (id != null) {
            PartyType partyType = partyTypeManager.get(id);
            model.addAttribute("model", partyType);
        }

        return "party/party-type-input";
    }
View Full Code Here

Examples of com.mossle.party.domain.PartyType

    }

    @RequestMapping("party-type-save")
    public String save(@ModelAttribute PartyType partyType,
            RedirectAttributes redirectAttributes) {
        PartyType dest = null;
        Long id = partyType.getId();

        if (id != null) {
            dest = partyTypeManager.get(id);
            beanMapper.copy(partyType, dest);
View Full Code Here

Examples of oasis.names.specification.ubl.schema.xsd.commonaggregatecomponents_2.PartyType

        this.ubl4JConfigurationBean = ubl4JConfigurationBean;
        initLocaleFromSupplierOrDefaultConfig();
    }

    private void initLocaleFromSupplierOrDefaultConfig() {
        PartyType supplier = invoiceType.getAccountingSupplierParty().getParty();
        if (supplier != null) {
            Locale supplierLocale = InvoiceTypeParser.parsePartyLocale(supplier);
            this.locale = (supplierLocale != null)? supplierLocale: ubl4JConfigurationBean.getDefaultLocale();
        }
    }
View Full Code Here

Examples of org.castor.xmlctf.bestpractise.genpackage.PartyType

        this._identity = desc;
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue( java.lang.Object object )
                throws IllegalStateException
            {
                PartyType target = (PartyType) object;
                return target.getId();
            }
            public void setValue( java.lang.Object object, java.lang.Object value)
                throws IllegalStateException, IllegalArgumentException
            {
                try {
                    PartyType target = (PartyType) object;
                    target.setId( (java.lang.String) value);
                } catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }
            public java.lang.Object newInstance(java.lang.Object parent) {
                return new java.lang.String();
            }
        };
        desc.setSchemaType("ID");
        desc.setHandler(handler);
        desc.setRequired(true);
        desc.setMultivalued(false);
        addFieldDescriptor(desc);
       
        //-- validation code for: _id
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        fieldValidator.setMinOccurs(1);
        { //-- local scope
            org.exolab.castor.xml.validators.IdValidator typeValidator;
            typeValidator = new org.exolab.castor.xml.validators.IdValidator();
            fieldValidator.setValidator(typeValidator);
        }
        desc.setValidator(fieldValidator);
        //-- initialize element descriptors
       
        //-- _partyId
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(org.castor.xmlctf.bestpractise.genpackage.PartyId.class, "_partyId", "partyId", org.exolab.castor.xml.NodeType.Element);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue( java.lang.Object object )
                throws IllegalStateException
            {
                PartyType target = (PartyType) object;
                return target.getPartyId();
            }
            public void setValue( java.lang.Object object, java.lang.Object value)
                throws IllegalStateException, IllegalArgumentException
            {
                try {
                    PartyType target = (PartyType) object;
                    target.setPartyId( (org.castor.xmlctf.bestpractise.genpackage.PartyId) value);
                } catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }
            public java.lang.Object newInstance(java.lang.Object parent) {
                return new org.castor.xmlctf.bestpractise.genpackage.PartyId();
            }
        };
        desc.setSchemaType("xml.srcgen.template.generated.PartyId");
        desc.setHandler(handler);
        desc.setNameSpaceURI("http://www.fpml.org/2003/FpML-4-0");
        desc.setRequired(true);
        desc.setMultivalued(false);
        addFieldDescriptor(desc);
        addSequenceElement(desc);
       
        //-- validation code for: _partyId
        fieldValidator = new org.exolab.castor.xml.FieldValidator();
        fieldValidator.setMinOccurs(1);
        { //-- local scope
        }
        desc.setValidator(fieldValidator);
        //-- _partyName
        desc = new org.exolab.castor.xml.util.XMLFieldDescriptorImpl(java.lang.String.class, "_partyName", "partyName", org.exolab.castor.xml.NodeType.Element);
        desc.setImmutable(true);
        handler = new org.exolab.castor.xml.XMLFieldHandler() {
            public java.lang.Object getValue( java.lang.Object object )
                throws IllegalStateException
            {
                PartyType target = (PartyType) object;
                return target.getPartyName();
            }
            public void setValue( java.lang.Object object, java.lang.Object value)
                throws IllegalStateException, IllegalArgumentException
            {
                try {
                    PartyType target = (PartyType) object;
                    target.setPartyName( (java.lang.String) value);
                } catch (java.lang.Exception ex) {
                    throw new IllegalStateException(ex.toString());
                }
            }
            public java.lang.Object newInstance(java.lang.Object parent) {
View Full Code Here

Examples of org.fenixedu.academic.domain.organizationalStructure.PartyType

        new SpaceClassification("1", campusNameBuilder.build());
    }

    private static void createPartyTypeEnums() {
        for (final PartyTypeEnum partyTypeEnum : PartyTypeEnum.values()) {
            new PartyType(partyTypeEnum);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.