Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.ConstructionType


   */
  @Override
  public ConstructionTypeModel getBufferedObjectModel(
      PresentationModel presentationModel) {
    ConstructionTypeModel constructionTypeModel = new ConstructionTypeModel(
        new ConstructionType());
    constructionTypeModel.setConstructionTypeId((Integer) presentationModel
        .getBufferedValue(PROPERTY_CONSTRUCTION_TYPE_ID));
    constructionTypeModel.setName((String) presentationModel
        .getBufferedValue(PROPERTY_NAME));
    constructionTypeModel.setDescription((String) presentationModel
View Full Code Here


   * @param original
   * @return klonet garasjetype
   */
  public static ConstructionType cloneConstructionType(
      ConstructionType original) {
    ConstructionType cloned = new ConstructionType();
    cloned.setConstructionTypeId(original.getConstructionTypeId());
    cloned
        .setConstructionTypeArticles(clonedConstructionTypeArticles(original
            .getConstructionTypeArticles()));
    return cloned;
  }
View Full Code Here

   * Setter garasjetype
   *
   * @param constructionType
   */
  public void setConstructionType(ConstructionType constructionType) {
    ConstructionType oldType = getConstructionType();
    object.setConstructionType(constructionType);
    firePropertyChange(PROPERTY_CONSTRUCTION_TYPE, oldType,
        constructionType);
  }
View Full Code Here

  public void testSaveObject() throws Exception {
    ProductAreaManager productAreaManager = (ProductAreaManager) ModelUtil
        .getBean("productAreaManager");
    ProductArea productArea = productAreaManager
        .findByName("Garasje villa");
    constructionType = new ConstructionType();
    constructionType.setName("test");
    constructionType.setProductArea(productArea);
    viewHandler.saveObject(new ConstructionTypeModel(constructionType),
        null);
    assertEquals(1, viewHandler.getObjectSelectionListSize());
View Full Code Here

        .getBean(ProductAreaManager.MANAGER_NAME);
    ProductArea productArea = productAreaManager
        .findByName("Garasje villa");
    ConstructionTypeManager constructionTypeManager = (ConstructionTypeManager) ModelUtil
        .getBean(ConstructionTypeManager.MANAGER_NAME);
    ConstructionType constructionType = constructionTypeManager
        .findByName("A1");
    OrderLine orderLine = new OrderLine();
    orderLine.setOrdNo(7);
    orderLine.setLnNo(13);
    Order order = new Order();
View Full Code Here

    ColliManager colliManager=(ColliManager)ModelUtil.getBean(ColliManager.MANAGER_NAME);
    when(managerRepository.getColliManager()).thenReturn(colliManager);
    TransportLetter transportLetter = new GarageTransportLetter(
        managerRepository);
    final Order transportable = new Order();
    ConstructionType constructionType = new ConstructionType();
    transportable.setConstructionType(constructionType);
    OrderLine orderLine = new OrderLine();
    transportable.addOrderLine(orderLine);
    final Colli colli = new Colli();
    colli.setColliName("test");
View Full Code Here

    productArea = new ProductArea(null, "test", null, null, null, null,
        null);
    productAreaManager.saveProductArea(productArea);

    ConstructionType constructionType = new ConstructionType();
    constructionTypes.add(constructionType);
    constructionType.setName("Q5");
    constructionType.setProductArea(productArea);
    constructionTypeManager.saveConstructionType(constructionType);

    order.setOrderNr("test");
    order.setCustomer(customer);
    order.setConstructionType(constructionType);
View Full Code Here

    public void propertyChange(final PropertyChangeEvent evt) {
      if (evt.getNewValue() == null && evt.getOldValue() == null) {
        return;
      }
      if (!isFlushing && !searching && enabled) {
        ConstructionType constructionType = lazyLoadConstructionType(evt);
        changeConstructionType(constructionType, window);
      }

    }
View Full Code Here

  @Test
  public void testInsert() {
    ProductAreaManager productAreaManager=(ProductAreaManager)ModelUtil.getBean("productAreaManager");
    ProductArea productArea = productAreaManager.findByName("Garasje villa");
    constructionType = new ConstructionType();
    constructionType.setName("C2");
    constructionType.setProductArea(productArea);
    manager.saveConstructionType(constructionType);

    constructionType = manager.findByName("C2");
View Full Code Here

  @Test
  public void testInsertAndDeleteAttribute() {
    ProductAreaManager productAreaManager=(ProductAreaManager)ModelUtil.getBean("productAreaManager");
    ProductArea productArea = productAreaManager.findByName("Garasje villa");
    constructionType = new ConstructionType();
    constructionType.setName("TEST");
    constructionType.setProductArea(productArea);

    AttributeManager attManager = (AttributeManager) ModelUtil
        .getBean("attributeManager");
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.