Examples of Org


Examples of maissocial.entidade.Org

        Org org = this.orgRep.pesquisarOrgPorCodigo(cod);
        return org;
    }

     public Org pesquisarOrgPorCnpj(String cnpj){
        Org org = this.orgRep.pesquisarOrgPorCnpj(cnpj);
        return org;
    }
View Full Code Here

Examples of maissocial.entidade.Org

        Org org = this.orgRep.pesquisarOrgPorCnpj(cnpj);
        return org;
    }

    public Org pesquisarOrgPorNome(String nome){
        Org org = this.orgRep.pesquisarOrgPorNome(nome);
        return org;
    }
View Full Code Here

Examples of maissocial.entidade.Org

    public static void main(String[] args){


        Logradouro lg = null;
        Org org = null;
        Date data = new Date();

        try {
            lg = Fachada.getInstance().getLogradouroControle().pesquisarLogradouroPorCodigo(1);
            org = new Org (lg, "SECRETARIA DE ACAO SOCIAL DE PESQUEIRA", "12345678912123", "11111111", data, 1);
            Fachada.getInstance().getOrgControle().salvarOrg(org);
            JOptionPane.showMessageDialog(null, "Organização cadastrada com sucesso!");
            Org org2 = Fachada.getInstance().getOrgControle().pesquisarOrgPorCodigo(1);
            System.out.print(org2.getNome());

        } catch (Exception ex) {
            Logger.getLogger(OrgGUI.class.getName()).log(Level.SEVERE, null, ex);
        }
View Full Code Here

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

Examples of net.caece.pri.hibernate.Org

        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

Examples of net.caece.pri.hibernate.Org




        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

Examples of net.caece.pri.hibernate.Org

        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

Examples of net.caece.pri.hibernate.Org

        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

Examples of net.caece.pri.hibernate.Org

// 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

Examples of net.caece.pri.hibernate.Org

        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
TOP
Copyright © 2018 www.massapi.com. 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.