Package no.ugland.utransprod.service

Examples of no.ugland.utransprod.service.ProductAreaManager


   */
  @Before
  public void setUp() throws Exception {
    MockitoAnnotations.initMocks(this);

    final ProductAreaManager productAreaManager = (ProductAreaManager) ModelUtil
        .getBean(ProductAreaManager.MANAGER_NAME);

    deviationManager = (DeviationManager) ModelUtil
        .getBean("deviationManager");
    final ApplicationUserManager applicationUserManager = (ApplicationUserManager) ModelUtil
View Full Code Here


        preventiveActionManager);
    JobFunctionManager jobFunctionManager = (JobFunctionManager) ModelUtil
        .getBean(JobFunctionManager.MANAGER_NAME);
    when(managerRepository.getJobFunctionManager()).thenReturn(
        jobFunctionManager);
    ProductAreaManager productAreaManager = (ProductAreaManager) ModelUtil
        .getBean(ProductAreaManager.MANAGER_NAME);
    when(managerRepository.getProductAreaManager()).thenReturn(
        productAreaManager);
    DeviationStatusManager deviationStatusManager = (DeviationStatusManager) ModelUtil
        .getBean(DeviationStatusManager.MANAGER_NAME);
View Full Code Here

  @Before
  public void setUp() throws Exception {
    MockitoAnnotations.initMocks(this);

    ProductAreaManager productAreaManager = (ProductAreaManager) ModelUtil
        .getBean(ProductAreaManager.MANAGER_NAME);
    AssemblyManager assemblyManager = (AssemblyManager) ModelUtil
        .getBean(AssemblyManager.MANAGER_NAME);
    SupplierManager supplierManager = (SupplierManager) ModelUtil
        .getBean(SupplierManager.MANAGER_NAME);
    OrderManager orderManager = (OrderManager) ModelUtil
        .getBean(OrderManager.MANAGER_NAME);
    when(managerRepository.getProductAreaManager()).thenReturn(
        productAreaManager);
    when(managerRepository.getAssemblyManager())
        .thenReturn(assemblyManager);
    when(managerRepository.getSupplierManager())
        .thenReturn(supplierManager);
    when(managerRepository.getOrderManager()).thenReturn(orderManager);
    AssemblyOverdueVManager assemblyOverdueVmnager = (AssemblyOverdueVManager) ModelUtil
        .getBean(AssemblyOverdueVManager.MANAGER_NAME);
    when(managerRepository.getAssemblyOverdueVManager()).thenReturn(
        assemblyOverdueVmnager);
    JobFunctionManager jobFunctionManager=(JobFunctionManager)ModelUtil.getBean(JobFunctionManager.MANAGER_NAME);
    when(managerRepository.getJobFunctionManager()).thenReturn(jobFunctionManager);
    UserType userType = new UserType();
    userType.setIsAdmin(1);
    when(login.getUserType()).thenReturn(userType);
    ApplicationUser applicationUser = new ApplicationUser();
    ProductArea productArea = productAreaManager
        .findByName("Garasje villa");
    applicationUser.setProductArea(productArea);
    when(login.getApplicationUser()).thenReturn(applicationUser);
    final Supplier supplier = new Supplier();
    supplier.setSupplierId(47);
View Full Code Here

    userTypeAccesses.add(userTypeAccess);
    userType.setUserTypeAccesses(userTypeAccesses);
    userType.setIsAdmin(1);
    when(login.getUserType()).thenReturn(userType);

    ProductAreaManager productAreaManager = (ProductAreaManager) ModelUtil
        .getBean(ProductAreaManager.MANAGER_NAME);
    when(managerRepository.getProductAreaManager()).thenReturn(
        productAreaManager);

    DeviationStatusManager deviationStatusManager = (DeviationStatusManager) ModelUtil
View Full Code Here

    MockitoAnnotations.initMocks(this);
    final JobFunctionManager jobFunctionManager = (JobFunctionManager) ModelUtil
        .getBean(JobFunctionManager.MANAGER_NAME);
    when(managerRepository.getJobFunctionManager()).thenReturn(
        jobFunctionManager);
    final ProductAreaManager productAreaManager = (ProductAreaManager) ModelUtil
        .getBean(ProductAreaManager.MANAGER_NAME);
    when(managerRepository.getProductAreaManager()).thenReturn(productAreaManager);
    orderManager = (OrderManager) ModelUtil.getBean("orderManager");
    when(managerRepository.getOrderManager()).thenReturn(orderManager);
    final SupplierManager supplierManager = (SupplierManager) ModelUtil
        .getBean(SupplierManager.MANAGER_NAME);
    when(managerRepository.getSupplierManager()).thenReturn(supplierManager);
    final DeviationStatusManager deviationStatusManager = (DeviationStatusManager) ModelUtil
        .getBean(DeviationStatusManager.MANAGER_NAME);
    when(managerRepository.getDeviationStatusManager()).thenReturn(deviationStatusManager);
    final ApplicationUserManager applicationUserManager = (ApplicationUserManager) ModelUtil
        .getBean(ApplicationUserManager.MANAGER_NAME);
    when(managerRepository.getApplicationUserManager()).thenReturn(applicationUserManager);
    final DeviationManager deviationManager = (DeviationManager) ModelUtil
        .getBean(DeviationManager.MANAGER_NAME);
    when(managerRepository.getDeviationManager()).thenReturn(deviationManager);
    final ApplicationUser applicationUser = new ApplicationUser();
   
    final ProductArea productArea = productAreaManager
        .findByName("Garasje villa");
    ProductAreaGroupManager productAreaGroupManager = (ProductAreaGroupManager) ModelUtil
        .getBean(ProductAreaGroupManager.MANAGER_NAME);
    ProductAreaGroup productAreaGroup = productAreaGroupManager
        .findByName("Garasje");
View Full Code Here

  }

  private void setProductArea(final Order order,
      final ImportOrderV importOrderV) {
    if (importOrderV.getProductAreaNr() != null) {
      ProductAreaManager productAreaManager = (ProductAreaManager) ModelUtil
          .getBean("productAreaManager");
      ProductArea productArea = productAreaManager
          .getProductAreaForProductAreaNr(
              importOrderV.getProductAreaNr(), !test);
      if (productArea != null) {
        order.setProductArea(productArea);
      }
View Full Code Here

  public ProductionBudgetViewHandler(Login aLogin,
      boolean useDisposeOnClose,BudgetManager productionBudgetManager) {
    super("Produksjonbudsjett", productionBudgetManager, aLogin.getUserType(),
        useDisposeOnClose);

    ProductAreaManager productAreaManager = (ProductAreaManager) ModelUtil
        .getBean("productAreaManager");
    productAreaList = new ArrayList<ProductArea>(productAreaManager
        .findAll());
  }
View Full Code Here

    dialogWindow.setVisible(true);
  }

  private static void initProductAreaList() {
    if (productAreaList == null) {
      ProductAreaManager productAreaManager = (ProductAreaManager) ModelUtil
          .getBean("productAreaManager");
      productAreaList = productAreaManager.findAll();
    }
  }
View Full Code Here

    return "Nei";
  }

  public static ProductArea getProductAreaFromProductAreaNr(
      Integer productAreaNr) {
    ProductAreaManager productAreaManager = (ProductAreaManager) ModelUtil
        .getBean("productAreaManager");
    return productAreaManager.getProductAreaForProductAreaNr(productAreaNr,
        true);
  }
View Full Code Here

    JobFunctionManager jobFunctionManager = (JobFunctionManager) ModelUtil
        .getBean("jobFunctionManager");
    jobFunctionList = jobFunctionManager.findAll();

    ProductAreaManager productAreaManager = (ProductAreaManager) ModelUtil
        .getBean("productAreaManager");
    productAreaList = productAreaManager.findAll();
  }
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.service.ProductAreaManager

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.