Examples of PaidVManager


Examples of no.ugland.utransprod.service.PaidVManager

  protected void setUp() throws Exception {
    super.setUp();
    CustTrManager custTrManager = (CustTrManager) ModelUtil
        .getBean(CustTrManager.MANAGER_NAME);
    when(managerRepository.getCustTrManager()).thenReturn(custTrManager);
    PaidVManager paidVManager = (PaidVManager) ModelUtil
        .getBean(PaidVManager.MANAGER_NAME);
    PaidApplyList paidApplyList = new PaidApplyList(login, paidVManager);
    PaidViewHandler paidViewHandler = new PaidViewHandler(paidApplyList,
        login, managerRepository, deviationViewHandlerFactory);
    final PaidView paidView = new PaidView(paidViewHandler, false);
View Full Code Here

Examples of no.ugland.utransprod.service.PaidVManager

  }

  @Override
  protected final void setApplied(final PaidV paidV, final boolean applied,
      final WindowInterface window) {
    PaidVManager paidVManager = (PaidVManager) ModelUtil
        .getBean("paidVManager");
    OrderManager orderManager = (OrderManager) ModelUtil
        .getBean("orderManager");
    Order order = orderManager.findByOrderNr(paidV.getOrderNr());
    if (applied) {
      Date paidDate = Util.getDate(window);
      order.setPaidDate(paidDate);
    } else {
      order.setPaidDate(null);
    }
    try {
      orderManager.saveOrder(order);
    } catch (ProTransException e) {
      Util.showErrorDialog(window, "Feil", e.getMessage());
      e.printStackTrace();
    }
    paidVManager.refresh(paidV);
  }
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.