Package com.mossle.party.domain

Examples of com.mossle.party.domain.PartyStructRule


        List<PartyType> partyTypes = partyTypeManager.getAll();
        model.addAttribute("partyStructTypes", partyStructTypes);
        model.addAttribute("partyTypes", partyTypes);

        if (id != null) {
            PartyStructRule partyStructRule = partyStructRuleManager.get(id);
            model.addAttribute("model", partyStructRule);
        }

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


            @RequestParam("partyStructTypeId") Long partyStructTypeId,
            @RequestParam("parentTypeId") Long parentTypeId,
            @RequestParam("childTypeId") Long childTypeId,
            RedirectAttributes redirectAttributes) {
        if (id != null) {
            PartyStructRule partyStructRule = partyStructRuleManager.get(id);
            partyStructRuleManager.remove(partyStructRule);
        }

        PartyStructRule partyStructRule = new PartyStructRule();
        partyStructRule.setPartyStructType(partyStructTypeManager
                .get(partyStructTypeId));
        partyStructRule.setParentType(partyTypeManager.get(parentTypeId));
        partyStructRule.setChildType(partyTypeManager.get(childTypeId));

        partyStructRuleManager.save(partyStructRule);
        messageHelper.addFlashMessage(redirectAttributes, "core.success.save",
                "保存成功");
View Full Code Here

TOP

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

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.