Examples of PreventiveActionManager


Examples of no.ugland.utransprod.service.PreventiveActionManager

    ProductAreaManager productAreaManager = (ProductAreaManager) ModelUtil
        .getBean(ProductAreaManager.MANAGER_NAME);
    when(managerRepository.getProductAreaManager()).thenReturn(
        productAreaManager);
   
    PreventiveActionManager preventiveActionManager = (PreventiveActionManager) ModelUtil
        .getBean(PreventiveActionManager.MANAGER_NAME);
    when(managerRepository.getPreventiveActionManager()).thenReturn(
        preventiveActionManager);
    orderManager = (OrderManager) ModelUtil
        .getBean(OrderManager.MANAGER_NAME);
View Full Code Here

Examples of no.ugland.utransprod.service.PreventiveActionManager

  private ManagerRepository managerRepository;

  @Before
  public void setUp() throws Exception {
    MockitoAnnotations.initMocks(this);
    PreventiveActionManager preventiveActionManager = (PreventiveActionManager) ModelUtil
        .getBean(PreventiveActionManager.MANAGER_NAME);
    when(managerRepository.getPreventiveActionManager()).thenReturn(preventiveActionManager);
    JobFunctionManager jobFunctionManager = (JobFunctionManager) ModelUtil
        .getBean(JobFunctionManager.MANAGER_NAME);
    when(managerRepository.getJobFunctionManager()).thenReturn(jobFunctionManager);
View Full Code Here

Examples of no.ugland.utransprod.service.PreventiveActionManager

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

    PreventiveActionManager preventiveActionManager = (PreventiveActionManager) ModelUtil
        .getBean(PreventiveActionManager.MANAGER_NAME);
    when(managerRepository.getPreventiveActionManager()).thenReturn(
        preventiveActionManager);
    JobFunctionManager jobFunctionManager = (JobFunctionManager) ModelUtil
        .getBean(JobFunctionManager.MANAGER_NAME);
View Full Code Here

Examples of no.ugland.utransprod.service.PreventiveActionManager

    }

    Login login = new LoginImpl(user, user.getUserRoles().iterator().next()
        .getUserType());

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

Examples of no.ugland.utransprod.service.PreventiveActionManager

    productArea.setProductAreaGroup(productAreaGroup);
    applicationUser.setProductArea(productArea);

    final DeviationManager deviationManager = (DeviationManager) ModelUtil
        .getBean(DeviationManager.MANAGER_NAME);
    final PreventiveActionManager preventiveActionManager = (PreventiveActionManager) ModelUtil
        .getBean(PreventiveActionManager.MANAGER_NAME);

    final PreventiveActionViewHandler preventiveActionViewHandler = new PreventiveActionViewHandler(
        login, managerRepository);
    final DeviationViewHandler deviationViewHandler = new DeviationViewHandler(
View Full Code Here

Examples of no.ugland.utransprod.service.PreventiveActionManager

        .getBufferedValue(DeviationModel.PROPERTY_DEVIATION_FUNCTION);
    FunctionCategory functionCategory = (FunctionCategory) presentationModel
        .getBufferedValue(DeviationModel.PROPERTY_FUNCTION_CATEGORY);

    if (deviationFunction != null && functionCategory != null) {
      PreventiveActionManager preventiveActionManager = (PreventiveActionManager) ModelUtil
          .getBean("preventiveActionManager");
      preventiveActionList.clear();
      List<PreventiveAction> actions = preventiveActionManager
          .findAllOpenByFunctionAndCategory(deviationFunction,
              functionCategory);
      if (actions != null) {
        actions.add(0, null);
        preventiveActionList.addAll(actions);
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.