Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.Customer


    order.setOrderNr("123456789");
    order.setDeliveryAddress("deliveryAddress");
    order.setPostalCode("1234");
    order.setPostOffice("postOffice");
    order.setOrderDate(Calendar.getInstance().getTime());
    Customer customer = customerManager.findByCustomerNr(1);
    order.setCustomer(customer);
    ConstructionType constructionType = constructionTypeManager
        .findByName("A1");
    order.setConstructionType(constructionType);
    productArea = productAreaManager.findByName("Garasje villa");
View Full Code Here


  }

  @Before
  public void setUp() throws Exception {
    manager = (CustomerManager) ModelUtil.getBean("customerManager");
    cust = new Customer();
    customers.add(cust);
  }
View Full Code Here

    cust.setCustomerNr(9999);
    cust.setFirstName("test");
    cust.setLastName("testen");
    manager.saveCustomer(cust);

    cust = new Customer();
    customers.add(cust);
    cust.setCustomerNr(9998);
    cust.setFirstName("test");
    cust.setLastName("testen");
    manager.saveCustomer(cust);
View Full Code Here

    Order order = orderManager.findByOrderNr("100100100");
    if (order != null) {
      orderManager.removeOrder(order);
    }

    Customer customer = customerManager.findByCustomerNr(100);
    if (customer != null) {
      customerManager.removeCustomer(customer);
    }

  }
View Full Code Here

          .convertIntToDate(udsalesmall.getWantedDeliveryDate())));
    }
  }

  private Customer getCustomer(final Contact contact) {
    Customer customer = null;
    if (contact != null) {
      customer = customerDao.findByCustomerNr(Integer.valueOf(contact
          .getNumber2()));
      if (customer == null) {
        customer = new Customer();
        customer.setCustomerNr(Integer.valueOf(contact.getNumber2()));
        customer.setFirstName(getFirstName(contact.getName()));
        customer.setLastName(getLastName(contact.getName()));
      }
    }
    return customer;
  }
View Full Code Here

  /**
   * @see no.ugland.utransprod.gui.handlers.AbstractViewHandler#getNewObject()
   */
  @Override
  public Customer getNewObject() {
    return new Customer();
  }
View Full Code Here

   */
  @Override
  public CheckObject checkSaveObject(CustomerModel object,
      PresentationModel presentationModel, WindowInterface window) {
    String errorString = null;
    Customer customer = (object).getObject();
    if (customer.getCustomerId() == null && objectList.contains(customer)) {
      errorString = "Kan ikke lagre kunde med et kundenummer som finnes fra f�r";
    }
    return new CheckObject(errorString,false);
  }
View Full Code Here

     * @param rowIndex
     * @param columnIndex
     * @return verdi
     */
    public Object getValueAt(int rowIndex, int columnIndex) {
      Customer customer = (Customer) getRow(rowIndex);
      switch (columnIndex) {
      case 0:
        return customer.getCustomerNr();
      case 1:
        return customer.getFirstName();
      case 2:
        return customer.getLastName();
      default:
        throw new IllegalStateException("Unknown column");
      }

    }
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.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.