Package com.mossle.party.domain

Examples of com.mossle.party.domain.PartyStructType


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

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


    }

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

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

    public PartyEntity init(Model model, Long partyStructTypeId,
            Long partyEntityId) {
        // 维度,比如行政组织
        List<PartyStructType> partyStructTypes = partyStructTypeManager.getAll(
                "priority", true);
        PartyStructType partyStructType = null;

        if (partyStructTypeId == null) {
            // 如果没有指定维度,就使用第一个维度当做默认维度
            partyStructType = partyStructTypes.get(0);
            partyStructTypeId = partyStructType.getId();
        } else {
            partyStructType = partyStructTypeManager.get(partyStructTypeId);
        }

        if (partyEntityId == null) {
View Full Code Here

        partyEntityManager.remove(partyEntity);
    }

    // ~ ======================================================================
    public Long getDefaultPartyStructTypeId() {
        PartyStructType partyStructType = partyStructTypeManager
                .findUnique("from PartyStructType");

        return partyStructType.getId();
    }
View Full Code Here

TOP

Related Classes of com.mossle.party.domain.PartyStructType

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.