Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.PreventiveActionComment


   */
  @Override
  public PreventiveActionCommentModel getBufferedObjectModel(
      PresentationModel presentationModel) {
    PreventiveActionCommentModel model = new PreventiveActionCommentModel(
        new PreventiveActionComment());
    model.setUserName((String) presentationModel
        .getBufferedValue(PROPERTY_USER_NAME));
    model.setComment((String) presentationModel
        .getBufferedValue(PROPERTY_COMMENT));
    //model.setCommentType((Integer) presentationModel.getBufferedValue(PROPERTY_COMMENT_TYPE));
View Full Code Here


  protected AbstractEditView<PreventiveActionModel, PreventiveAction> getEditView(
      AbstractViewHandler<PreventiveAction, PreventiveActionModel> handler,
      PreventiveAction object, boolean searching) {
    if (object.getPreventiveActionId() == null) {

      PreventiveActionComment preventiveActionComment = new PreventiveActionComment(
          null, login.getApplicationUser().getUserName(), Util
              .getCurrentDate(), "Opprettet",
          // 1,
          object, null);
      preventiveActionComment.addCommentType(CommentTypeUtil
          .getCommentType("Opprettet"));
      object.addPreventiveActionComment(preventiveActionComment);
    } else {
      overviewManager.lazyLoad(object, new LazyLoadEnum[][] { {
          LazyLoadEnum.PREVENTIVE_ACTION_COMMENTS,
View Full Code Here

    /**
     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
     */
    public void actionPerformed(ActionEvent arg0) {
      PreventiveActionComment comment = new PreventiveActionComment();
      comment.setUserName(login.getApplicationUser().getUserName());
      comment.setCommentDate(Util.getCurrentDate());
      comment.addCommentType(CommentTypeUtil.getCommentType("Bruker"));

      CommentViewHandler preventiveActionCommentViewHandler = new CommentViewHandler(
          login, (PreventiveActionManager) overviewManager);
      EditCommentView editDeviationCommentView = new EditCommentView(
          new PreventiveActionCommentModel(comment),
View Full Code Here

        heading = "�pning";
      }
      String commentText = Util.showInputDialog(window, heading,
          labelText);

      PreventiveActionComment comment = new PreventiveActionComment();
      comment.setUserName(login.getApplicationUser().getUserName());
      comment.setCommentDate(Util.getCurrentDate());
      comment.addCommentType(commentType);
      comment.setComment(commentText);

      addComment(comment, presentationModel);
    }
View Full Code Here

TOP

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

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.