Package net.caece.pri.hibernate.vo

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


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

            DataAuthForm daForm = (DataAuthForm) node.getData();

            DataAuth da = new DataAuth();

            da.setDataAuthId(daForm.getDataAuthId());
            da.setOperateAt(daForm.getOperateAt());
            da.setOperateBy(operateBy);

            daDao.update(da);
            daDao.delete(da);
        }
View Full Code Here


        funAuthObjTree.addEventListener(Events.ON_SELECT, new MyTreeSelectionListener(funAuthObjTree));

    }

    private SimpleTreeNode prepareDataAuthRootNode(List data) {
        DataAuthForm root = new DataAuthForm();
        root.setOrgName("");

        ArrayList mother = new ArrayList();

        Iterator it = data.iterator();
        while (it.hasNext()) {
            DataAuthForm form = (DataAuthForm) it.next();
            if (form.getParentOrgId() == null) {

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

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

        while (it.hasNext()) {
            DataAuthForm var = (DataAuthForm) it.next();
            if ((var.getOrgId() != form.getOrgId())
                    && var.getParentOrgId() != null
                    && form.getOrgId().toString().equals(var.getParentOrgId().toString())) {

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

TOP

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

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.