Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.SalesmanGoal


        setAccumulatedLikeWeek(salesmanGoals);
      } else {
        List<SaleReportSum> saleReportSumList = (List<SaleReportSum>) createReportMapAndGetData(
            reportType, periode, productArea);
        for (SaleReportSum saleReportSum : saleReportSumList) {
          SalesmanGoal salesmanGoal = getSalesmanGoal(productArea,
              salesmanGoals, saleReportSum, periodeEnum);

          if (salesmanGoal != null) {
            salesmanGoal.setSalesman(saleReportSum.getSalesman());
            salesmanGoal.setProductArea(productArea);

            salesmanGoal.setValue(reportType.getInfoTop(),
                saleReportSum.getSumOwnProduction(),
                periodeEnum);
            salesmanGoal.setDbValue(reportType.getInfoTop(),
                periodeEnum, saleReportSum.getSumDb());
            salesmanGoals.put(saleReportSum.getSalesman()
                + productArea.getProductArea(), salesmanGoal);
          }
        }
View Full Code Here


  }

  private SalesmanGoal getSalesmanGoal(ProductArea productArea,
      Map<String, SalesmanGoal> salesmanGoals,
      SaleReportSum saleReportSum, PeriodeEnum periodeEnum) {
    SalesmanGoal salesmanGoal = salesmanGoals.get(saleReportSum
        .getSalesman()
        + productArea.getProductArea());
    salesmanGoal = salesmanGoal != null ? salesmanGoal : periodeEnum
        .salesmanShouldExist() ? null : new SalesmanGoal();
    return salesmanGoal;
  }
View Full Code Here

TOP

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

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.