Examples of SumOrderReadyV


Examples of no.ugland.utransprod.model.SumOrderReadyV

   */
  @Override
  public SumOrderReadyVModel getBufferedObjectModel(
      PresentationModel presentationModel) {
    SumOrderReadyVModel model = new SumOrderReadyVModel(
        new SumOrderReadyV());
    model.setPackageSumString((String) presentationModel
        .getBufferedValue(PROPERTY_PACKAGE_SUM_STRING));
    return model;
  }
View Full Code Here

Examples of no.ugland.utransprod.model.SumOrderReadyV

            @SuppressWarnings("unchecked")
            public Object doInHibernate(Session session) throws HibernateException {
                List<SumOrderReadyV> list = session.createCriteria(SumOrderReadyV.class).add(
                        Restrictions.eq("sumOrderReadyVPK.orderReady", dateString)).list();
                SumOrderReadyV sumOrderReadyV = null;
                if (list != null) {
                    sumOrderReadyV = new SumOrderReadyV(null, BigDecimal.valueOf(0), null, null, null);
                    for (SumOrderReadyV sum : list) {
                        sumOrderReadyV.setPackageSum(sumOrderReadyV.getPackageSum().add(sum.getPackageSum()));
                    }
                }

                if (list != null && list.size() == 1) {
                    return list.get(0);
View Full Code Here

Examples of no.ugland.utransprod.model.SumOrderReadyV

                if (list != null) {
                    for (SumOrderReadyV sumOrderReadyV : list) {
                        sum = sum.add(sumOrderReadyV.getPackageSum());
                    }
                }
                return new SumOrderReadyV(null, sum, week, year, null);
            }

        });
    }
View Full Code Here

Examples of no.ugland.utransprod.model.SumOrderReadyV

            @SuppressWarnings("unchecked")
            public Object doInHibernate(Session session) throws HibernateException {
                List<SumOrderReadyV> list = session.createCriteria(SumOrderReadyV.class).add(
                        Restrictions.eq("sumOrderReadyVPK.orderReady", dateString)).add(
                        Restrictions.eq("productAreaGroupName", productAreaGroupName)).list();
                SumOrderReadyV sumOrderReadyV = null;
                if (list != null) {
                    sumOrderReadyV = new SumOrderReadyV(null, BigDecimal.valueOf(0), null, null, null);
                    for (SumOrderReadyV sum : list) {
                        sumOrderReadyV.setPackageSum(sumOrderReadyV.getPackageSum().add(sum.getPackageSum()));
                    }
                }

                if (list != null && list.size() == 1) {
                    return list.get(0);
View Full Code Here

Examples of no.ugland.utransprod.model.SumOrderReadyV

                if (list != null) {
                    for (SumOrderReadyV sumOrderReadyV : list) {
                        sum = sum.add(sumOrderReadyV.getPackageSum());
                    }
                }
                return new SumOrderReadyV(null, sum, week, year, null);
            }

        });
    }
View Full Code Here

Examples of no.ugland.utransprod.model.SumOrderReadyV

    postShipmentSelectionList = new SelectionInList();

    presentationModelPackable = new PresentationModel(new OrderModel(
        new Order(), false, false, false, null, null));
    presentationModelSum = new PresentationModel(new SumOrderReadyVModel(
        new SumOrderReadyV(null, BigDecimal.valueOf(0), null, null,
            null)));
    presentationModelWeekSum = new PresentationModel(
        new SumOrderReadyVModel(new SumOrderReadyV(null, BigDecimal
            .valueOf(0), null, null, null)));
    presentationModelBudget = new PresentationModel(
        new ProductionBudgetModel(new Budget(null, null,
            null, BigDecimal.valueOf(0), null,null)));
    initProductAreaGroup();
View Full Code Here

Examples of no.ugland.utransprod.model.SumOrderReadyV

    // colliListViewHandler.setPresentationModel(presentationModelPackable);
    orderLineSelectionList.addPropertyChangeListener(
        SelectionInList.PROPERTYNAME_SELECTION_INDEX,
        new OrderLineSelectionListener());

    SumOrderReadyV sum = managerRepository.getSumOrderReadyVManager()
        .findByDate(Calendar.getInstance().getTime());
    if (sum == null) {
      sum = new SumOrderReadyV(null, BigDecimal.valueOf(0), null, null,
          null);
    }
    presentationModelSum = new PresentationModel(new SumOrderReadyVModel(
        sum));

    SumOrderReadyV sumWeek = managerRepository.getSumOrderReadyVManager()
        .findSumByWeek(currentYear, currentWeek);
    if (sumWeek == null) {
      sumWeek = new SumOrderReadyV(null, BigDecimal.valueOf(0), null,
          null, null);
    }
    presentationModelWeekSum = new PresentationModel(
        new SumOrderReadyVModel(sumWeek));
View Full Code Here

Examples of no.ugland.utransprod.model.SumOrderReadyV

        && !productAreaGroup.getProductAreaGroupName()
            .equalsIgnoreCase("Alle")) {
      productAreaGroupName = productAreaGroup.getProductAreaGroupName();
    }

    SumOrderReadyV sum = managerRepository.getSumOrderReadyVManager()
        .findByDateAndProductAreaGroupName(Calendar.getInstance()
            .getTime(), productAreaGroupName);
    if (sum == null) {
      sum = new SumOrderReadyV(null, BigDecimal.valueOf(0), null, null,
          null);
    }
    presentationModelSum.setBean(new SumOrderReadyVModel(sum));

    SumOrderReadyV sumWeek = managerRepository.getSumOrderReadyVManager()
        .findSumByWeekAndProductAreaGroupName(currentYear, currentWeek,
            productAreaGroupName);
    if (sumWeek == null) {
      sumWeek = new SumOrderReadyV(null, BigDecimal.valueOf(0), null,
          null, null);
    }

    presentationModelWeekSum.setBean(new SumOrderReadyVModel(sumWeek));
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.