Package net.caece.pri.hibernate.vo

Examples of net.caece.pri.hibernate.vo.FunAuthForm


        Iterator selectedFunAuthItr = selectedFunAuths.iterator();
        while (selectedFunAuthItr.hasNext()) {
            Treeitem treeItem = (Treeitem) selectedFunAuthItr.next();
            SimpleTreeNode node = (SimpleTreeNode) treeItem.getValue();

            FunAuthForm faForm = (FunAuthForm) node.getData();

            FunAuth fa = new FunAuth();

            fa.setFunAuthId(faForm.getFunAuthId());
            fa.setOperateAt(faForm.getOperateAt());
            fa.setOperateBy(operateBy);

            faDao.update(fa);
            faDao.delete(fa);
        }
View Full Code Here


            FunForm form = (FunForm) allFunItr.next();

            Iterator funAuthItr = funAuthObjList.iterator();
            boolean addIn = true;
            while (funAuthItr.hasNext()) {
                FunAuthForm var = (FunAuthForm) funAuthItr.next();
                if (form.getFunId().toString().equals(var.getFunId().toString()) //  && !"0".equals(form.getLayer())
                        ) {
                    addIn = false;
                    break;
                }
            }
View Full Code Here

        return subList;
    }

    private SimpleTreeNode prepareFunAuthRootNode(List data) {
        FunAuthForm root = new FunAuthForm();
        root.setFunName("");

        ArrayList mother = new ArrayList();

        Iterator it = data.iterator();
        while (it.hasNext()) {
            FunAuthForm form = (FunAuthForm) it.next();
            if (form.getParentFunId().equals(form.getFunId())) {

                ArrayList subList = getFunAuthSubList(form, data);
                SimpleTreeNode stn = new SimpleTreeNode(form, subList);
                mother.add(stn);
            }
View Full Code Here

    private ArrayList getFunAuthSubList(FunAuthForm form, List data) {
        ArrayList subList = new ArrayList();
        Iterator it = data.iterator();

        while (it.hasNext()) {
            FunAuthForm var = (FunAuthForm) it.next();
            if ((var.getFunId() != form.getFunId())
                    && var.getParentFunId() != null
                    && form.getFunId().toString().equals(var.getParentFunId().toString())) {

                SimpleTreeNode stn = new SimpleTreeNode(var, getFunAuthSubList(
                        var, data));
                subList.add(stn);
            }
View Full Code Here

TOP

Related Classes of net.caece.pri.hibernate.vo.FunAuthForm

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.