Examples of ProTransException


Examples of no.ugland.utransprod.ProTransException

      throws ProTransException {
    if (listTransportable != null) {
      for (TransportListable listable : listTransportable) {
        if (listable.getProbability() != null
            && listable.getProbability() == 90) {
          throw new ProTransException(
              "Kan ikke sende transport som inneholder 90% ordre");
        }
      }
    }
View Full Code Here

Examples of no.ugland.utransprod.ProTransException

  }

  private void checkIfTransportableHasSupplier(final Transport transport)
      throws ProTransException {
    if (transport.getSupplier() == null) {
      throw new ProTransException("Transport har ikke firma satt");
    }
  }
View Full Code Here

Examples of no.ugland.utransprod.ProTransException

            && orderModel.getCustomerNr().length() != 0) {
          customer.setCustomerNr(Integer.valueOf(orderModel
              .getCustomerNr()));
        }
      } catch (NumberFormatException e) {
        throw new ProTransException("Kundenr m� v�re tall");

      }
      customer.setFirstName(orderModel.getCustomerFirstName());
      customer.setLastName(orderModel.getCustomerLastName());
      order.setCustomer(customer);
View Full Code Here

Examples of no.ugland.utransprod.ProTransException

     * @see no.ugland.utransprod.service.OrderManager#saveOrder(no.ugland.utransprod.model.Order)
     */
    public final void saveOrder(final Order order) throws ProTransException {
        String errorMsg = ((OrderDAO) dao).saveOrder(order);
        if (errorMsg != null) {
            throw new ProTransException(errorMsg);
        }
    }
View Full Code Here

Examples of no.ugland.utransprod.ProTransException

    }

    public void saveCutting(Cutting cutting, final Boolean overwriteExistingCutting) throws ProTransException {
        Cutting existingCutting = findByProId(cutting.getProId());
        if (existingCutting != null && !existingCutting.getOrder().equals(cutting.getOrder())) {
            throw new ProTransException("Kappfil med proid " + cutting.getProId() + " er allerede importert!");
        }
        if (overwriteExistingCutting) {
            checkAndDeleteExisting(cutting);
        }
        dao.saveObject(cutting);
View Full Code Here

Examples of no.ugland.utransprod.ProTransException

  private void checkPeriode(Periode periode, int currentWeek, int currentYear)
      throws ProTransException {
    if (periode.getYear() == currentYear
        && ((periode.getWeek() == currentWeek && periode.getToWeek() != currentWeek) || (periode
            .getWeek() != currentWeek && periode.getToWeek() == currentWeek))) {
      throw new ProTransException(
          "Salgsdata for gjeldende uke m� genereres for seg selv");
    }
  }
View Full Code Here

Examples of no.ugland.utransprod.ProTransException

        return applyListManager
            .findApplyableByCustomerNrAndProductAreaGroup(Integer
                .valueOf(customerNr), productAreaGroup);
      } catch (NumberFormatException e) {
        e.printStackTrace();
        throw new ProTransException("Kundenr m� v�re tall");
      }
    }
    return null;
  }
View Full Code Here

Examples of no.ugland.utransprod.ProTransException

      OrdchgrHeadV head = ordchgrManager.getHead(ordNo);
      return createTransportFile(order, head, ApplicationParamUtil
          .findParamByName(VISMA_OUT_DIR));
    } catch (IOException e) {
      e.printStackTrace();
      throw new ProTransException(e.getMessage());
    }

  }
View Full Code Here

Examples of no.ugland.utransprod.ProTransException

        lines.add(ordchgrLineV.getLineLine());
      }
      return writeFile(orderNr, outdir, lines);
    } catch (IOException e) {
      e.printStackTrace();
      throw new ProTransException(e.getMessage());
    }
  }
View Full Code Here

Examples of no.ugland.utransprod.ProTransException

            final Map<ITransportCostAddition, BigDecimal> maxAdditionMap)
            throws ProTransException {
        Integer maxAdditions = transportCost.getMaxAddition();

        if (maxAdditions == null) {
            throw new ProTransException(
                    "Det er ikke definert maks tillegg for postnr "
                            + transportCost.getPostalCode());
        }

        int additionCount = 0;
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.