Package net.caece.pri.hibernate

Examples of net.caece.pri.hibernate.DataAuthDao


        AuthForm authForm = (AuthForm) objListbox.getSelectedItem().getValue();

        Tree orgObjTree = (Tree) getFellow("orgObjTree");
        Set selectedOrgs = orgObjTree.getSelectedItems();

        DataAuthDao daDao = new DataAuthDao();

        Iterator selectedOrgsItr = selectedOrgs.iterator();
        while (selectedOrgsItr.hasNext()) {
            Treeitem treeItem = (Treeitem) selectedOrgsItr.next();
            SimpleTreeNode node = (SimpleTreeNode) treeItem.getValue();
            OrgForm orgForm = (OrgForm) node.getData();

            DataAuth dataAuth = new DataAuth();
            dataAuth.setOrg(orgForm);
            dataAuth.setAuth(authForm);
            dataAuth.setOperateBy(operateBy);
           
            daDao.create(dataAuth);
        }

        refreshDataAuth(authForm);

    }
View Full Code Here


    public void deDataAuth() {

        Tree dataAuthObjTree = (Tree) getFellow("dataAuthObjTree");
        Set selectedDataAuths = dataAuthObjTree.getSelectedItems();

        DataAuthDao daDao = new DataAuthDao();

        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);
        }

        objListbox = (Listbox) getFellow("objListbox");
        AuthForm authForm = (AuthForm) objListbox.getSelectedItem().getValue();
View Full Code Here

TOP

Related Classes of net.caece.pri.hibernate.DataAuthDao

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.