Package org.jabusuite.core.companies

Examples of org.jabusuite.core.companies.JbsCompany


    this.setPnEditJbsObject(new PnCompanyEdit());
  }

  @Override
  public void createJbsBaseObject() {
    this.setJbsBaseObject(new JbsCompany());
  }
View Full Code Here


            return 3;
        }

        public Object getValueAt(int column, int row) {
            if (row < getJbsObjects().size()) {
                JbsCompany company = (JbsCompany) getJbsObjects().get(row);
                switch (column) {
                    case 0:
                        String companyName = "";
                        if (company.getName1() != null) {
                            companyName = company.getName1();
                        }
                        return companyName;
                    case 1:
                        String street = "";
                        if (company.getStreet() != null) {
                            street = company.getStreet();
                        }
                        return street;
                    case 2:
                        String city = "";
                        if (company.getZip() != null) {
                            city = company.getZip();
                        }
                        if (company.getCity() != null) {
                            if (!city.equals("")) {
                                city += " ";
                            }
                            city += company.getCity();
                        }
                        return city;
                    default:
                        return "";
                }
View Full Code Here

    protected JbsImageIcon logoImage;

    public PnCompanyEdit() {
        super(DlgState.dsInsert);
        uploadInputStream = null;
        this.setCompany(new JbsCompany());
    }
View Full Code Here

        boolean result = false;
        if (company != null) {
            int index = 0;

            while ((!result) && (index < this.getCompanies().size())) {
                JbsCompany cmp = this.getCompanies().get(index);
                if (cmp.getId() == company.getId()) {
                    this.setSelectedIndex(index);
                    result = true;
                } else {
                    index++;
                }
View Full Code Here

        //Create a standard-company if o companies exist:
        logger.debug("Initializing companies...");
        List<JbsCompany> companies = this.getAllCompanies();
        if (companies.size() == 0) {
            logger.debug("No companies found - creating default company.");
            JbsCompany company = new JbsCompany();
            company.setName1("Musterfirma");
            company.setStreet("Musterstrasse 1");
            company.setZip("12345");
            company.setCity("Musterhausen");
            this.createCompany(company);
        }
    }
View Full Code Here

        manager.persist(company);
    }

    public JbsCompany findCompany(long id) {
        logger.debug("Looking for company "+id);
        JbsCompany company = manager.find(JbsCompany.class, id);
        return company;
    }
View Full Code Here

TOP

Related Classes of org.jabusuite.core.companies.JbsCompany

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.