Package net.caece.pri.hibernate

Examples of net.caece.pri.hibernate.Org


        sess = null;

        Iterator it = keyValueList.iterator();

        while (it.hasNext()) {
            Org s = (Org) it.next();
            Comboitem item = new Comboitem();
            item.setValue(s);
            item.setLabel(s.getOrgName());
            item.setParent(companyCB);
        }

    }
View Full Code Here


        boolean mechanicBelongToCompany = false;
        Iterator companyCBItr = companyCB.getItems().iterator();
        while (companyCBItr.hasNext()) {
            Comboitem item = (Comboitem) companyCBItr.next();
            Org varCompany = (Org) item.getValue();
            if (form.getCompanyId() != null
                    && varCompany.getOrgId().equals(form.getCompanyId())) {
                companyCB.setSelectedItem(item);
                form.setCompany(varCompany); // if has company, re-link it now
                mechanicBelongToCompany = true;
            }
          
View Full Code Here




        while (it.hasNext()) {
            Org s = (Org) it.next();
            Comboitem item = new Comboitem();
            item.setValue(s);
            item.setLabel(s.getOrgName());
            item.setParent(orgIdCB);



View Full Code Here

        Textbox passwdTB = (Textbox) getFellow("passwd");

        Iterator supplierIt = orgIdCB.getItems().iterator();
        while (supplierIt.hasNext()) {
            Comboitem item = (Comboitem) supplierIt.next();
            Org s = (Org) item.getValue();

            logger.debug("" + var.getOrgId() + ", " + s.getOrgId());
            if (var.getOrgId() != null && var.getOrgId() == s.getOrgId()) {
                orgIdCB.setSelectedItem(item);
            }
        }
        userNameTB.setText(var.getUserName());
        accountTB.setText(var.getAccount());
View Full Code Here

        objToView(emptyObj);

        Iterator supplierIt = orgIdCB.getItems().iterator();
        while (supplierIt.hasNext()) {
            Comboitem item = (Comboitem) supplierIt.next();
            Org s = (Org) item.getValue();

            if (queryString != null && queryString.equals(s.getOrgName())) {
                orgIdCB.setSelectedItem(item);
            }
        }

    }
View Full Code Here

// create a new list with funForm not in funAuth
        List orgObjList = new ArrayList();

        Iterator allOrgItr = allOrgObjList.iterator();
        while (allOrgItr.hasNext()) {
            Org form = (Org) allOrgItr.next();

            Iterator dataAuthItr = dataAuthObjList.iterator();
            boolean addIn = true;
            while (dataAuthItr.hasNext()) {
                DataAuth var = (DataAuth) dataAuthItr.next();
                if (form.getOrgId().toString().equals(var.getOrgId().toString())) {
                    addIn = false;
                    break;
                }
            }
            if (addIn) {
View Full Code Here

        sess = null;
        logger.debug("org CB size:" + keyValueList.size());

        Iterator it = keyValueList.iterator();
        while (it.hasNext()) {
            Org orgList = (Org) it.next();
            Comboitem item = new Comboitem();
            item.setValue(orgList);
            item.setLabel(orgList.getOrgName());
            item.setParent(orgIdCB);
        }
    }
View Full Code Here

        Textbox passwdTB = (Textbox) getFellow("Passwd");

        Iterator orgCbIt = orgCB.getItems().iterator();
        while (orgCbIt.hasNext()) {
            Comboitem orgCbItem = (Comboitem) orgCbIt.next();
            Org org = (Org) orgCbItem.getValue();

            logger.debug("" + var.getOrgId() + ", " + org.getOrgId());
            if (var.getOrgId() != null && var.getOrgId() == org.getOrgId()) {
                orgCB.setSelectedItem(orgCbItem);
            }
        }
        userNameTB.setText(var.getUserName());
        accountTB.setText(var.getAccount());
View Full Code Here

    private void initOrgProperty() {
        initComboboxByPara("orgProperty", "pri.Org.orgProperty");
    }

    public void add() {
        Org obj = (Org) viewToObj(null);

        objTree = (Tree) getFellow("objTree");
        if (objTree.getSelectedItem() != null) {
            SimpleTreeNode node = (SimpleTreeNode) objTree.getSelectedItem().getValue();
            Org parent = (Org) node.getData();
            obj.setOrg(parent);
        }
        OrgDao dao = new OrgDao();
        dao.create(obj);
View Full Code Here

                this.showMsg("要刪除的組織還有下屬組織, 請先刪除", "必要的操作");
                return;
            }
        }

        Org obj = (Org) viewToObj(var);

        OrgDao dao = new OrgDao();
        dao.delete(obj);

        refreshObjEntities();
View Full Code Here

TOP

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

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.