Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.Order


   * @param presentationModel
   * @return bufferordre
   */
  @Override
  public OrderModel getBufferedObjectModel(PresentationModel presentationModel) {
    OrderModel orderModel = new OrderModel(new Order(), false,
        canChangeInfo, canChangeStatus, projectNr, projectName);
    orderModel.setOrderId((Integer) presentationModel
        .getBufferedValue(PROPERTY_ORDER_ID));
    orderModel.setCustomer((Customer) presentationModel
        .getBufferedValue(PROPERTY_CUSTOMER));
View Full Code Here


   */
  public void setApplied(FaktureringV object, boolean applied,
      WindowInterface window) {
    OrderManager orderManager = (OrderManager) ModelUtil
        .getBean("orderManager");
    Order order = orderManager.findByOrderNr(object.getOrderNr());
    if (applied) {
      Date invoiceDate = Util.getDate(window);
      order.setInvoiceDate(invoiceDate);
    } else {
      order.setInvoiceDate(null);
    }
    try {
      orderManager.saveOrder(order);
    } catch (ProTransException e) {
      Util.showErrorDialog(window, "Feil", e.getMessage());
View Full Code Here

    /**
     * @param order
     */
    public void setOrder(Order order) {
        Order oldOrder = getOrder();
        object.setOrder(order);
        if ((order != null && object.getPostShipment() == null && orderLineList
                .size() != 0)) {
            setCanSetPostShipment(true);
        } else {
View Full Code Here

    tableFixture.cell(row(index-1).column(1)).click();
    assertEquals(ColorEnum.BLUE.getColor(),tableFixture.cell(row(index).column(1)).foreground().target());

    OrderManager orderManager = (OrderManager) ModelUtil
        .getBean(OrderManager.MANAGER_NAME);
    Order order = orderManager.findByOrderNr(takstol.getOrderNr());
    orderManager.lazyLoadTree(order);
    OrderLine orderLineTakstol = order.getOrderLine("Takstoler");
    assertNotNull(orderLineTakstol.getCuttingStarted());

  }
View Full Code Here

    tableFixture.cell(row(index).column(1)).foreground().requireEqualTo(
        new Color(3,3,3));

    OrderManager orderManager = (OrderManager) ModelUtil
        .getBean(OrderManager.MANAGER_NAME);
    Order order = orderManager.findByOrderNr(takstol.getOrderNr());
    orderManager.lazyLoadTree(order);
    OrderLine orderLineTakstol = order.getOrderLine("Takstoler");
    assertNull(orderLineTakstol.getCuttingStarted());
  }
View Full Code Here

    tableFixture.cell(row(index-1).column(1)).click();
    assertEquals(ColorEnum.GREEN.getColor(),tableFixture.cell(row(index).column(1)).foreground().target());

    OrderManager orderManager = (OrderManager) ModelUtil
        .getBean(OrderManager.MANAGER_NAME);
    Order order = orderManager.findByOrderNr(takstol.getOrderNr());
    orderManager.lazyLoadTree(order);
    OrderLine orderLineTakstol = order.getOrderLine("Takstoler");
    assertNotNull(orderLineTakstol.getCuttingDone());

  }
View Full Code Here

    tableFixture.cell(row(index).column(1)).foreground().requireEqualTo(
        new Color(3,3,3));

    OrderManager orderManager = (OrderManager) ModelUtil
        .getBean(OrderManager.MANAGER_NAME);
    Order order = orderManager.findByOrderNr(takstol.getOrderNr());
    orderManager.lazyLoadTree(order);
    OrderLine orderLineTakstol = order.getOrderLine("Takstoler");
    assertNull(orderLineTakstol.getCuttingDone());
  }
View Full Code Here

   *      boolean, no.ugland.utransprod.gui.WindowInterface)
   */
  public void setApplied(PaidV object, boolean applied, WindowInterface window) {
    OrderManager orderManager = (OrderManager) ModelUtil
        .getBean("orderManager");
    Order order = orderManager.findByOrderNr(object.getOrderNr());
    if (applied) {
      Date invoiceDate = Util.getDate(window);
      order.setPaidDate(invoiceDate);
    } else {
      order.setPaidDate(null);
    }
    try {
      orderManager.saveOrder(order);
    } catch (ProTransException e) {
      Util.showErrorDialog(window, "Feil", e.getMessage());
View Full Code Here

  public void setApplied(PacklistV object, boolean applied,
      WindowInterface window) {
    OrderManager orderManager = (OrderManager) ModelUtil
        .getBean("orderManager");

    Order order = orderManager.findByOrderNr(object.getOrderNr());
    if (applied) {
      Date packlistDate = Util.getDate(window);
      order.setPacklistReady(packlistDate);
    } else {
      order.setPacklistReady(null);
    }
    try {
      orderManager.saveOrder(order);
    } catch (ProTransException e) {
      Util.showErrorDialog(window, "Feil", e.getMessage());
View Full Code Here

    int index = tableOrders.convertRowIndexToModel(assemblySelectionList
        .getSelectionIndex());
    Assembly assembly = (Assembly) assemblySelectionList
        .getElementAt(index);

    Order order = assembly.getOrder();
    Deviation deviation = assembly.getDeviation();

    orderViewHandler.setAssemblyInactive(assembly);
    if (order != null) {
View Full Code Here

TOP

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

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.