Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.ConstructionType


  final ConstructionType lazyLoadConstructionType(
      final PropertyChangeEvent evt) {
    ConstructionTypeManager constructionTypeManager = (ConstructionTypeManager) ModelUtil
        .getBean("constructionTypeManager");
    ConstructionType constructionType = (ConstructionType) evt
        .getNewValue();
    constructionTypeManager
        .lazyLoad(
            constructionType,
            new LazyLoadConstructionTypeEnum[] {
View Full Code Here


  @After
  public void tearDown() throws Exception {
    dialogFixture.cleanUp();
    ConstructionTypeManager constructionTypeManager = (ConstructionTypeManager) ModelUtil
        .getBean("constructionTypeManager");
    ConstructionType constructionType = constructionTypeManager
        .findByName("test");
    if (constructionType != null) {
      constructionTypeManager.removeConstructionType(constructionType);
    }
  }
View Full Code Here

    ConstructionTypeViewHandler constructionTypeViewHandler = new ConstructionTypeViewHandler(
        login, managerRepository, false, false);

    final EditConstructionTypeView view = new EditConstructionTypeView(
        constructionTypeViewHandler, new ConstructionType(), false);

    JDialog dialog = GuiActionRunner.execute(new GuiQuery<JDialog>() {
      protected JDialog executeInEDT() {
        JDialog dialog = new JDialog();
        WindowInterface window = new JDialogAdapter(dialog);
View Full Code Here

  @After
  public void tearDown() throws Exception {
    dialogFixture.cleanUp();
    ConstructionTypeManager constructionTypeManager = (ConstructionTypeManager) ModelUtil
        .getBean("constructionTypeManager");
    ConstructionType constructionType = constructionTypeManager
        .findByName("test");
    if (constructionType != null) {
      constructionTypeManager.removeConstructionType(constructionType);
    }
  }
View Full Code Here

    customer.setCustomerNr(100);
    customer.setFirstName("Atle");
    customer.setLastName("Brekka");
    customerManager.saveCustomer(customer);

    ConstructionType constructionType = constructionTypeManager
        .findByName("H1");

    order.setConstructionType(constructionType);

    order.setOrderNr("test");
View Full Code Here

    takstolCustomer.setCustomerNr(100100);
    takstolCustomer.setFirstName("Ask");
    takstolCustomer.setLastName("Brekka");
    customerManager.saveCustomer(takstolCustomer);

    ConstructionType constructionType = constructionTypeManager
        .findByName("Takstol");

    takstolOrder.setConstructionType(constructionType);

    takstolOrder.setOrderNr("testtakstol");
View Full Code Here

  /**
   * @see no.ugland.utransprod.service.ConstructionTypeManager#findByName(java.lang.String)
   */
  public final ConstructionType findByName(final String aName) {
    ConstructionType constructionType = new ConstructionType();
    constructionType.setName(aName);
    List<ConstructionType> types = dao.findByExample(constructionType);
    if (types == null || types.size() != 1) {
      return null;
    }
    return types.get(0);
View Full Code Here

    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");
    order.setProductArea(productArea);
    orderManager.saveOrder(order);
View Full Code Here

  }

  private Set<OrderLine> addConstructionTypeWithDefaultOrderLines(
      final Ord ord, Collection<OrderLine> originalOrderLines, Order order) {
    ConstructionType constructionType = getConstructiontype(ord);
    if (constructionType != null) {
      order.setConstructionType(constructionType);
    }
    return constructionTypeManager.getOrderLinesForNewConstructionType(
        originalOrderLines, constructionType, order, null);
View Full Code Here

  @After
  public void tearDown() throws Exception {
    ConstructionTypeManager constructionTypeManager = (ConstructionTypeManager) ModelUtil
        .getBean("constructionTypeManager");
    ConstructionType constructionType = constructionTypeManager
        .findByName("test");
    if (constructionType != null) {
      constructionTypeManager.removeConstructionType(constructionType);
    }
    dialogFixture.cleanUp();
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.model.ConstructionType

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.