Examples of Deviation


Examples of no.ugland.utransprod.model.Deviation

        Set<OrderLine> orderLines = order.getOrderLines();
        if (orderLines != null) {
          PostShipment postShipment;
          for (OrderLine orderLine : orderLines) {
            postShipment = orderLine.getPostShipment();
            Deviation deviation;
            if (postShipment != null) {
              orderLine.setPostShipment(null);
              deviation = postShipment.getDeviation();
              postShipment.setOrder(null);
View Full Code Here

Examples of no.ugland.utransprod.model.Deviation

     * @see no.ugland.utransprod.gui.model.AbstractModel#getBufferedObjectModel(com.jgoodies.binding.PresentationModel)
     */
    @Override
    public DeviationModel getBufferedObjectModel(
            PresentationModel presentationModel) {
        DeviationModel deviationModel = new DeviationModel(new Deviation(),
                isPostShipment);
        deviationModel.setUserName((String) presentationModel
                .getBufferedValue(PROPERTY_USER_NAME));
        deviationModel.setDescription((String) presentationModel
                .getBufferedValue(PROPERTY_DESCRIPTION));
View Full Code Here

Examples of no.ugland.utransprod.model.Deviation

        .getSelectionIndex());
    Assembly assembly = (Assembly) assemblySelectionList
        .getElementAt(index);

    Order order = assembly.getOrder();
    Deviation deviation = assembly.getDeviation();

    orderViewHandler.setAssemblyInactive(assembly);
    if (order != null) {

      try {
View Full Code Here

Examples of no.ugland.utransprod.model.Deviation

   */
  void showMissingCollies(WindowInterface window) {
    Assembly assembly = (Assembly) assemblySelectionList.getSelection();
    if (assembly != null) {
      Order order = assembly.getOrder();
      Deviation deviation = assembly.getDeviation();
      List<OrderLine> missing = null;
      if (order != null) {
        orderViewHandler.lazyLoadOrder(order, new LazyLoadOrderEnum[] {
            LazyLoadOrderEnum.ORDER_LINES,
            LazyLoadOrderEnum.COMMENTS,
            LazyLoadOrderEnum.ORDER_LINE_ORDER_LINES });
        missing = order.getMissingCollies();
      } else {
        DeviationManager deviationManager = (DeviationManager) ModelUtil
            .getBean("deviationManager");
        deviationManager.lazyLoad(deviation,
            new LazyLoadDeviationEnum[] {
                LazyLoadDeviationEnum.ORDER_LINES,
                LazyLoadDeviationEnum.COMMENTS,
                LazyLoadDeviationEnum.ORDER_LINE_ORDER_LINES });
        missing = deviation.getMissingCollies();
      }

      if (missing != null) {
        Util
            .showOptionsDialog(window, missing, "Mangler", false,
View Full Code Here

Examples of no.ugland.utransprod.model.Deviation

        Assembly assembly = (Assembly) assemblySelectionList
            .getElementAt(tableOrders
                .convertRowIndexToModel(assemblySelectionList
                    .getSelectionIndex()));
        Deviation deviation = assembly.getDeviation();
        if (deviation != null) {
          managerRepository.getDeviationManager().lazyLoad(
              deviation,
              new LazyLoadDeviationEnum[] {
                  LazyLoadDeviationEnum.ORDER_LINES,
View Full Code Here

Examples of no.ugland.utransprod.model.Deviation

      } else if (actionEvent.getActionCommand().equalsIgnoreCase(
          menuItemShowContent.getText())) {
        DeviationManager deviationManager = (DeviationManager) ModelUtil
            .getBean("deviationManager");
        Deviation deviation = (Deviation) deviationSelectionList
            .getElementAt(tableDeviation
                .convertRowIndexToModel(deviationSelectionList
                    .getSelectionIndex()));
        deviationManager
            .lazyLoad(
View Full Code Here

Examples of no.ugland.utransprod.model.Deviation

    /**
     * @see javax.swing.table.TableModel#getValueAt(int, int)
     */
    public Object getValueAt(int row, int column) {
      Deviation deviation = (Deviation) getRow(row);
      String columnName = StringUtils.upperCase(getColumnName(column))
          .replaceAll(" ", "_");
      return DeviationColumn.valueOf(columnName).getValue(deviation);
    }
View Full Code Here

Examples of no.ugland.utransprod.model.Deviation

    }

  }

  private void setAssemblyForDeviation(WindowInterface window, Supplier team) {
    Deviation deviation = getSelectedDeviation();

    if (deviation != null && team != null) {
      managerRepository.getDeviationManager().lazyLoad(
          deviation,
          new LazyLoadDeviationEnum[] {
View Full Code Here

Examples of no.ugland.utransprod.model.Deviation

     * @see java.awt.event.ActionListener#actionPerformed(java.awt.event.ActionEvent)
     */
    public void actionPerformed(final ActionEvent arg0) {


        DeviationModel deviationModel = new DeviationModel(new Deviation(), false);
        EditDeviationView editDeviationView = new EditDeviationView(false, deviationModel,
                deviationViewHandler, false, true);

        /*WindowInterface window = InternalFrameBuilder.buildInternalFrame("Registrere avvik",
                deviationViewHandler.getRegisterWindowSize(), false);
View Full Code Here

Examples of no.ugland.utransprod.model.Deviation

      }
    }
  }

  private Deviation getSelectedDeviation() {
    Deviation deviation = (Deviation) deviationSelectionList
        .getElementAt(tableDeviation
            .convertRowIndexToModel(deviationSelectionList
                .getSelectionIndex()));
    return deviation;
  }
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.