Package no.ugland.utransprod.service

Examples of no.ugland.utransprod.service.OrderManager.findByOrderNr()


    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

   */
  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);
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);
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);
View Full Code Here

              .getOrderStatus());

      String status = statusMap.get(veggChecker.getArticleName());
      if (status == null) {

        Order order = orderManager
            .findByOrderNr(((FrontProductionV) front).getOrderNr());
        if (order != null) {
          orderManager.lazyLoadTree(order);
          status = veggChecker.getArticleStatus(order);
          statusMap.put(veggChecker.getArticleName(), status);
View Full Code Here

          .createStatusMap(((VeggProductionV) vegg).getOrderStatus());

      String status = statusMap.get(frontChecker.getArticleName());
      if (status == null) {

        Order order = orderManager
            .findByOrderNr(((VeggProductionV) vegg).getOrderNr());
        if (order != null) {
          orderManager.lazyLoadTree(order);
          status = frontChecker.getArticleStatus(order);
          statusMap.put(frontChecker.getArticleName(), status);
View Full Code Here

  @Test
  public void skalSetteFerdigKappet() {
    OrderManager orderManager = (OrderManager) ModelUtil
        .getBean(OrderManager.MANAGER_NAME);
    Order order = orderManager.findByOrderNr("65386");
    orderManager.lazyLoadTree(order);
    OrderLine orderLine = order.getOrderLine("Takstoler");
    assertNotNull(orderLine);
    orderLine.setCuttingDone(Util.getCurrentDate());
    OrderLineManager orderLineManager = (OrderLineManager) ModelUtil
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.