Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.ProductArea


    productAreaGroupList.add(productAreaGroup);
    when(productAreaGroupManager.findAll())
        .thenReturn(productAreaGroupList);
    Util.setProductAreaGroupManager(productAreaGroupManager);

    ProductArea productArea = new ProductArea();
    productArea.setProductAreaGroup(productAreaGroup);
    applicationUser.setProductArea(productArea);
    when(login.getApplicationUser()).thenReturn(applicationUser);
    UserType userType = new UserType();
    userType.setIsAdmin(1);
    when(login.getUserType()).thenReturn(userType);
View Full Code Here


    .getBean(BudgetManager.MANAGER_NAME);
  }
 
  @After
  public void tearDown(){
    ProductArea productAreaVilla = productAreaManager.findByName("Garasje villa");
    budgetManager.removeForYearProductArea(2010,productAreaVilla,BudgetType.SALESMAN);
  }
View Full Code Here

  }

  @Test
  public void testGetSalesReportDataForOfferVilla() throws Exception {
    Periode periode = new Periode(2010, 3, 3);
    ProductArea productArea = productAreaManager.findByName("Garasje villa");
    List<SaleReportSum> salesReportOffer = salesVManager
        .groupSumCountyByProbabilityProductAreaPeriode(
            ProbabilityEnum.PROBABILITY_OFFER, productArea,
            // ProductAreaEnum.getGroupIdxFromAreaName("Garasje villa"),
            periode);
View Full Code Here

  }

  @Test
  public void testGetSalesReportDataForOrderVilla() throws Exception {
    Periode periode = new Periode(2009, 2, 2);
    ProductArea productArea = productAreaManager
        .findByName("Garasje villa");
    List<SaleReportSum> salesReportOrders = salesVManager
        .groupSumCountyByProbabilityProductAreaPeriode(
            ProbabilityEnum.PROBABILITY_ORDER, productArea,
            // ProductAreaEnum.getGroupIdxFromAreaName("Garasje villa"),
View Full Code Here

  }

  @Test
  public void getSalesMap() throws Exception{
    ProductArea productArea = productAreaManager
    .findByName("Garasje villa");
    Periode periode = new Periode(2010, 3, 3);
    Map<ProbabilityEnum, Set<SaleReportData>> salesMap=salesVManager.getSalesMap(productArea, periode);
    assertNotNull(salesMap);
  }
View Full Code Here

  }
 
  @Test
  public void getGroupSumByProbabilityProductAreaPeriod() throws Exception{
    ProbabilityEnum probability=ProbabilityEnum.PROBABILITY_OFFER;
    ProductArea productArea=productAreaManager.findByName("Garasje villa");
    Periode periode=new Periode(2010,1,15);
    SaleReportSum saleReportSum=salesVManager.getGroupSumByProbabilityProductAreaPeriod(probability, productArea, periode);
    assertNotNull(saleReportSum);
  }
View Full Code Here

  }
 
  @Test
  public void getGroupSumByProbabilityProductAreaPeriodFromSnapshot() throws Exception{
    ProbabilityEnum probability=ProbabilityEnum.PROBABILITY_ORDER;
    ProductArea productArea=productAreaManager.findByName("Garasje villa");
    Periode periode=new Periode(2010,2,2);
    SaleReportSum saleReportSum=salesVManager.getGroupSumByProbabilityProductAreaPeriod(probability, productArea, periode);
    assertNotNull(saleReportSum);
  }
View Full Code Here

  private SaleStatusOrderReserveVManager saleStatusOrderReserveVManager;
  private static Logger LOGGER = Logger.getLogger(SalesWebManager.class);

  public SalesStatistic generateSalesStatistics(Integer year, Integer week,
      String productAreaName) throws ProTransException {
    ProductArea productArea = productAreaManager
        .findByName(productAreaName);
    Periode periode = new Periode(year, week, week);
    // henter for gjeldende uke
    Multimap<ProbabilityEnum, SaleReportSum> salesMap = salesVManager
        .getAllReportData(productArea, periode);
View Full Code Here

    private void importBudgets(final ExcelUtil excelUtil, BudgetType budgetType) throws ProTransException {
        int row = 1;
        Integer year = excelUtil.readCellAsInteger(row, budgetType.getYearColumn());
        String week = excelUtil.readCell(row, COLUMN_WEEK, "%1$04.0f");
        String productAreaName = excelUtil.readCell(row, budgetType.getProductAreaColumn(), null);
        ProductArea productArea = productAreaManager.findByName(productAreaName);

        if (productArea == null) {
            throw new ProTransException("Produktomr�de " + productAreaName + " ble ikke funnet");
        }
View Full Code Here

    OrderManager orderManager = (OrderManager) ModelUtil
        .getBean(OrderManager.MANAGER_NAME);
    when(managerRepository.getOrderManager()).thenReturn(orderManager);

    ProductArea productArea = new ProductArea();

    ProductAreaGroup productAreaGroup = productAreaGroupManager
        .findByName("Garasje");
    productArea.setProductAreaGroup(productAreaGroup);
    applicationUser.setProductArea(productArea);

    final DeviationManager deviationManager = (DeviationManager) ModelUtil
        .getBean(DeviationManager.MANAGER_NAME);
    final PreventiveActionManager preventiveActionManager = (PreventiveActionManager) ModelUtil
View Full Code Here

TOP

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

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.