Package no.ugland.utransprod.gui

Examples of no.ugland.utransprod.gui.ArticleTypeView


    ArticleType currentArticleType = (ArticleType) presentationModel
        .getBufferedValue(AbstractModel.PROPERTY_OBJECT);

    ArticleTypeViewHandler articleTypeViewHandler = new ArticleTypeViewHandler(
        login, managerRepository, articles);
    ArticleTypeView articleTypeView = new ArticleTypeView(
        articleTypeViewHandler, false, false);
    WindowInterface dialog = new JDialogAdapter(new JDialog(
        ProTransMain.PRO_TRANS_MAIN, "Artikkel", true));
    dialog.setName("ArticleView");
    dialog.add(articleTypeView.buildPanel(dialog));
    dialog.pack();
    Util.locateOnScreenCenter(dialog);
    dialog.setVisible(true);

    List<ArticleType> newArticles = articleTypeView.getSelectedObjects();
    showArticleAttributeView(newArticles, currentArticleType);

  }
View Full Code Here


     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
     */
    public void actionPerformed(ActionEvent arg0) {
      ArticleTypeViewHandler articleTypeViewHandler = new ArticleTypeViewHandler(login,managerRepository,
          null);
      ArticleTypeView articleTypeView = new ArticleTypeView(
          articleTypeViewHandler, true, true);
      WindowInterface dialog = new JDialogAdapter(new JDialog(
          ProTransMain.PRO_TRANS_MAIN, "Artikkel", true));
      dialog.setName("ArticleView");
      dialog.add(articleTypeView.buildPanel(dialog));
      dialog.pack();
      Util.locateOnScreenCenter(dialog);
      dialog.setVisible(true);

      orderManager.refreshObject(order);

      List<ArticleType> newArticles = articleTypeView
          .getSelectedObjects();
      if (newArticles != null && newArticles.size() > 0) {
        ArticleType newArticle = newArticles.get(0);
        OrderLine newOrderLine = new OrderLine(null, order, null,
            newArticle, null, null, null, null, null, null,
View Full Code Here

    Articleable costable = (Articleable) presentationModel
        .getBufferedValue(AbstractModel.PROPERTY_OBJECT);

    ArticleTypeViewHandler articleTypeViewHandler = new ArticleTypeViewHandler(
        login, managerRepository, articles);
    ArticleTypeView articleTypeView = new ArticleTypeView(
        articleTypeViewHandler, true, false);
    WindowInterface dialog = new JDialogAdapter(new JDialog(
        ProTransMain.PRO_TRANS_MAIN, "Artikkel", true));
    dialog.setName("ArticleView");
    dialog.add(articleTypeView.buildPanel(dialog));
    dialog.pack();
    Util.locateOnScreenCenter(dialog);
    dialog.setVisible(true);

    List<ArticleType> newArticles = articleTypeView.getSelectedObjects();
    showArticleAttributeView(newArticles, costable, window);

  }
View Full Code Here

    ConstructionType currentConstructionType = (ConstructionType) presentationModel
        .getBufferedValue(AbstractModel.PROPERTY_OBJECT);

    ArticleTypeViewHandler articleTypeViewHandler = new ArticleTypeViewHandler(
        login, managerRepository, articles);
    ArticleTypeView articleTypeView = new ArticleTypeView(
        articleTypeViewHandler, true, false);
    WindowInterface dialog = new JDialogAdapter(Util.getDialog(window,
        "Artikkel", true));
    dialog.add(articleTypeView.buildPanel(dialog));
    dialog.pack();
    Util.locateOnScreenCenter(dialog);
    dialog.setVisible(true);

    List<ArticleType> newArticles = articleTypeView.getSelectedObjects();
    showArticleAttributeView(newArticles, currentConstructionType, window,
        presentationModel);

  }
View Full Code Here

  @SuppressWarnings("unchecked")
  OrderLine addArticle(WindowInterface window,
      AbstractOrderModel abstractOrderModel) {
    ArticleTypeViewHandler articleTypeViewHandler = new ArticleTypeViewHandler(
        login, managerRepository, null);
    ArticleTypeView articleTypeView = new ArticleTypeView(
        articleTypeViewHandler, true, true);
    JDialog dialog = Util.getDialog(window, "Artikkel", true);
    WindowInterface dialogWindow = new JDialogAdapter(dialog);
    dialogWindow.setName("ArticleView");
    dialogWindow.add(articleTypeView.buildPanel(dialogWindow));
    dialogWindow.pack();
    Util.locateOnScreenCenter(dialogWindow);
    dialogWindow.setVisible(true);

    List<ArticleType> newArticles = articleTypeView.getSelectedObjects();
    return showArticleAttributeView(newArticles, abstractOrderModel, window);
  }
View Full Code Here

            .showErrorDialog(window, "Sent!",
                "Kan ikke legge til artikkel til etterlevering som er sendt!");
      } else {
        ArticleTypeViewHandler articleTypeViewHandler = new ArticleTypeViewHandler(
            login, managerRepository, null);
        ArticleTypeView articleTypeView = new ArticleTypeView(
            articleTypeViewHandler, true, true);
        WindowInterface dialog = new JDialogAdapter(new JDialog(
            ProTransMain.PRO_TRANS_MAIN, "Artikkel", true));
        dialog.setName("ArticleView");
        dialog.add(articleTypeView.buildPanel(dialog));
        dialog.pack();
        Util.locateOnScreenCenter(dialog);
        dialog.setVisible(true);

        List<ArticleType> newArticles = articleTypeView
            .getSelectedObjects();
        List<OrderLine> newOrderLines = new ArrayList<OrderLine>();
        if (newArticles != null && newArticles.size() > 0) {
          Deviation deviation = ((DeviationModel) presentationModel
              .getBean()).getObject();
View Full Code Here

TOP

Related Classes of no.ugland.utransprod.gui.ArticleTypeView

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.