Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.Assembly


              .getElementAt(index)).getOrder(), window);
        }
        Util.setDefaultCursor(window.getComponent());
      } else if (SwingUtilities.isRightMouseButton(e)
          && assemblySelectionList.getSelectionIndex() != -1) {
        Assembly assembly = (Assembly) assemblySelectionList
            .getElementAt(tableOrders
                .convertRowIndexToModel(assemblySelectionList
                    .getSelectionIndex()));
        if (assembly.getDeviation() != null) {
          popupMenuEdit.add(menuItemShowContent);
          popupMenuEdit.remove(menuItemDeviation);
        } else {
          popupMenuEdit.remove(menuItemShowContent);
          popupMenuEdit.add(menuItemDeviation);
View Full Code Here


        showMissingCollies(window);
      } else if (actionEvent.getActionCommand().equalsIgnoreCase(
          menuItemShowContent.getText())) {

        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,
                  LazyLoadDeviationEnum.COMMENTS });

          showContent(deviation, window);
        }
      } else if (actionEvent.getActionCommand().equalsIgnoreCase(
          menuItemDeviation.getText())) {

        Assembly assembly = (Assembly) assemblySelectionList
            .getElementAt(tableOrders
                .convertRowIndexToModel(assemblySelectionList
                    .getSelectionIndex()));
        Order order = assembly.getOrder();
        if (order != null) {

          DeviationViewHandler deviationViewHandler = deviationViewHandlerFactory
              .create(order, true, false, true, null, true);
          deviationViewHandler.registerDeviation(order, window);
View Full Code Here

          return false;
        }
      }
      AssemblyManager assemblyManager = (AssemblyManager) ModelUtil
          .getBean("assemblyManager");
      Assembly assembly = iassembly.getAssembly();

      if (assembly == null) {
        assembly = new Assembly();

      }
      assembly.setSupplier(supplier);
      assembly.setOrder(iassembly.getAssemblyOrder());
      assembly.setAssemblyYear(yearWeek.getYear());
      assembly.setAssemblyWeek(yearWeek.getWeek());
      assembly.setDeviation(iassembly.getAssemblyDeviation());
      assembly.setInactive(0);

      if (assembly.getFirstPlanned() == null) {
        assembly.setFirstPlanned(assembly.toString());
      }

      assemblyManager.saveAssembly(assembly);
      iassembly.setAssembly(assembly);
View Full Code Here

   * @param rowIndex
   * @param columnIndex
   * @return verdi
   */
  public Object getValueAt(int rowIndex, int columnIndex) {
    Assembly assembly = (Assembly) getRow(rowIndex);
    String columnName = StringUtils.upperCase(getColumnName(columnIndex))
    .replaceAll(" ", "_");
   
    Order order = assembly.getOrder();
    Deviation deviation = assembly.getDeviation();

    if (order != null && order.getSent() != null
        && order.getHasMissingCollies() == null) {
      setHasMissingCollies(order, window);
    }
View Full Code Here

TOP

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

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.