Examples of PreventiveAction


Examples of no.ugland.utransprod.model.PreventiveAction

   */
  @Override
  public PreventiveActionModel getBufferedObjectModel(
      PresentationModel presentationModel) {
    PreventiveActionModel model = new PreventiveActionModel(
        new PreventiveAction());
    model.setPreventiveActionId((String) presentationModel.getBufferedValue(PROPERTY_PREVENTIVE_ACTION_ID));
    model.setManager((String) presentationModel
        .getBufferedValue(PROPERTY_MANAGER));
    model.setJobFunction((JobFunction) presentationModel
        .getBufferedValue(PROPERTY_JOB_FUNCTION));
View Full Code Here

Examples of no.ugland.utransprod.model.PreventiveAction

    /**
     * @param preventiveAction
     */
    public void setPreventiveAction(PreventiveAction preventiveAction) {
        PreventiveAction oldAction = getPreventiveAction();
        object.setPreventiveAction(preventiveAction);

        firePropertyChange(PROPERTY_PREVENTIVE_ACTION, oldAction,
                preventiveAction);
    }
View Full Code Here

Examples of no.ugland.utransprod.model.PreventiveAction

  }

  @After
  public void tearDown() throws Exception {
    dialogFixture.cleanUp();
    PreventiveAction preventiveAction = new PreventiveAction();
    preventiveAction.setPreventiveActionName("test");
    List<PreventiveAction> list = preventiveActionManager
        .findByObject(preventiveAction);
    if (list != null) {
      for (PreventiveAction action : list) {
        preventiveActionManager.removeObject(action);
View Full Code Here

Examples of no.ugland.utransprod.model.PreventiveAction

    inputDialog.button("ButtonOk").click();

    editDialog.list("ListPreventiveActionComments").selectItem(1);
    editDialog.button("SavePreventiveAction").click();

    PreventiveAction preventiveAction = new PreventiveAction();
    preventiveAction.setPreventiveActionName("test");
    List<PreventiveAction> list = preventiveActionManager
        .findByObject(preventiveAction);
    assertNotNull(list);
    assertEquals(1, list.size());

    preventiveAction = list.get(0);
    preventiveActionManager
        .lazyLoad(
            preventiveAction,
            new LazyLoadEnum[][] { {
                LazyLoadEnum.PREVENTIVE_ACTION_COMMENTS,
                LazyLoadEnum.PREVENTIVE_ACTION_COMMENT_COMMENT_TYPES } });
    Set<PreventiveActionComment> comments = preventiveAction
        .getPreventiveActionComments();
    assertNotNull(comments);
    assertEquals(2, comments.size());

    int count = 0;
View Full Code Here

Examples of no.ugland.utransprod.model.PreventiveAction

  /**
   * @see no.ugland.utransprod.gui.handlers.AbstractViewHandler#getNewObject()
   */
  @Override
  public PreventiveAction getNewObject() {
    return new PreventiveAction();
  }
View Full Code Here

Examples of no.ugland.utransprod.model.PreventiveAction

    /**
     * @see javax.swing.table.TableModel#getValueAt(int, int)
     */
    public Object getValueAt(int rowIndex, int columnIndex) {
      PreventiveAction preventiveAction = (PreventiveAction) getRow(rowIndex);

      switch (columnIndex) {
      case 0:
        return preventiveAction.getPreventiveActionId();
      case 1:
        return preventiveAction.getPreventiveActionName();
      case 2:
        return preventiveAction.getManager();
      case 3:
        return preventiveAction.getJobFunction();
      case 4:
        return preventiveAction.getFunctionCategory();
      case 5:
        if (preventiveAction.getClosedDate() != null) {
          return Boolean.TRUE;
        }
        return Boolean.FALSE;
      case 6:
        if (preventiveAction.getClosedDate() != null) {
          return "Ferdig";
        }
        return "Ikke ferdig";

      default:
View Full Code Here

Examples of no.ugland.utransprod.model.PreventiveAction

    /**
     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
     */
    public void actionPerformed(ActionEvent arg0) {
      PreventiveAction preventiveAction = new PreventiveAction();
      preventiveAction.setDescription((String) presentationModel
          .getBufferedValue(DeviationModel.PROPERTY_LAST_COMMENT));
      preventiveAction
          .setFunctionCategory((FunctionCategory) presentationModel
              .getBufferedValue(DeviationModel.PROPERTY_FUNCTION_CATEGORY));
      preventiveAction
          .setJobFunction((JobFunction) presentationModel
              .getBufferedValue(DeviationModel.PROPERTY_DEVIATION_FUNCTION));

      preventiveActionViewHandler.openEditView(preventiveAction, false,
          window);
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.