Package com.eastidea.qaforum.model

Examples of com.eastidea.qaforum.model.Customer


  public ArrayList<SelectItem> getCustomerDictionary(){
    ArrayList<SelectItem> dictionary  = new ArrayList<SelectItem>();
   
    List<Customer> list = getAllCustomer();
   
    Customer customer;
    Iterator i = list.iterator();
        while( i.hasNext() )
        {
          customer = (Customer)i.next();
          dictionary.add( new SelectItem( customer.getCustomerid().toString(),
              customer.getName()));
        }
        return dictionary;
  }
View Full Code Here


  public void saveProject(Project project, String customerid, String pmid,
      String dmid, String tmid) {

    if (customerid != null && !customerid.equals("")) {
      Customer customer = entityManager.find(Customer.class, Long
          .valueOf(customerid));
      project.setCustomer(customer);
    }
    if (pmid != null && !pmid.equals("")) {
      User user = entityManager.find(User.class, Long.valueOf(pmid));
View Full Code Here

 
  public void updateProject(Project project, String customerid, String pmid,
      String dmid, String tmid) {

    if (customerid != null && !customerid.equals("")) {
      Customer customer = entityManager.find(Customer.class, Long
          .valueOf(customerid));
      project.setCustomer(customer);
    }
    else
      project.setCustomer(null);
View Full Code Here

  public ArrayList<SelectItem> getCustomerDictionary(){
    ArrayList<SelectItem> dictionary  = new ArrayList<SelectItem>();
   
    List<Customer> list = customerMaintDao.getAllCustomer();
   
    Customer customer;
    Iterator i = list.iterator();
        while( i.hasNext() )
        {
          customer = (Customer)i.next();
          dictionary.add( new SelectItem( customer.getCustomerid().toString(),
              customer.getName()));
        }
        return dictionary;
  }
View Full Code Here

TOP

Related Classes of com.eastidea.qaforum.model.Customer

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.