Package no.ugland.utransprod.model

Examples of no.ugland.utransprod.model.Produceable


      buttonShowTakstolInfo.setEnabled(hasSelection);
    }
  }

  public String getSelectedOrderNr() {
    Produceable produceable = getSelectedObject();
    return produceable.getOrderNr();
  }
View Full Code Here


    }

  }

  private void settStartetKapping(Date startetKappingDato) {
    Produceable produceable = getSelectedObject();
    ((TakstolProductionApplyList) applyListInterface).settStartetKapping(
        produceable, startetKappingDato);
  }
View Full Code Here

    ((TakstolProductionApplyList) applyListInterface).settStartetKapping(
        produceable, startetKappingDato);
  }

  private void settKappingFerdig(Date kappingFerdigDato) {
    Produceable produceable = getSelectedObject();
    ((TakstolProductionApplyList) applyListInterface).settKappingFerdig(
        produceable, kappingFerdigDato);
  }
View Full Code Here

     * @param rowIndex
     * @param columnIndex
     * @return verdi
     */
    public Object getValueAt(final int rowIndex, final int columnIndex) {
      Produceable produceable = (Produceable) getRow(rowIndex);
      String columnName = StringUtils.upperCase(
          getColumnName(columnIndex)).replaceAll(" ", "_")
          .replaceAll("\\.", "_");

      return ProductionColumn.valueOf(columnName).getValue(produceable);
View Full Code Here

    JTableFixture tableFixture = dialogFixture
        .table(TableEnum.TABLEPRODUCTIONTAKSTOL.getTableName());

    tableFixture.cell(row(0).column(1)).click();

    Produceable order = takstolProductionViewHandler.getSelectedObject();
    int index = 0;
    while (order.getProbability() != 100 || order.getProduced() != null) {
      index++;
      tableFixture.cell(row(index).column(1)).click();
      order = takstolProductionViewHandler.getSelectedObject();
    }
View Full Code Here

    assertEquals("Startet", tableFixture.target.getColumnName(8));

    tableFixture.cell(row(0).column(1)).click();

    Produceable order = takstolProductionViewHandler.getSelectedObject();
    int index = 0;
    while (order.getProbability() != 100 || order.getProduced() != null) {
      index++;
      tableFixture.cell(row(index).column(1)).click();
      order = takstolProductionViewHandler.getSelectedObject();
    }
View Full Code Here

  }

  public void setStarted(final Produceable object, final boolean started) {
    if (object != null) {

      Produceable currentProduceable = getProduceable(object);
      OrderLine orderLine = managerRepository.getOrderLineManager()
          .findByOrderLineId(currentProduceable.getOrderLineId());
      if (orderLine != null) {
        if (started) {
          orderLine.setActionStarted(Util.getCurrentDate());
        } else {
          orderLine.setActionStarted(null);
View Full Code Here

  }

  private List<Produceable> setRelated(List<Produceable> items) {
    Map<String, TakstolProductionV> defaultTakstolMap = new HashMap<String, TakstolProductionV>();
    Produceable currentTakstol = null;
    List<Applyable> relatedArticles = null;
    List<Produceable> producables = new ArrayList<Produceable>();

    for (Produceable item : items) {
      if (currentTakstol == null) {// dersom f�rste ordrelinje
        currentTakstol = item;
      }
      if (!item.getOrderNr()
          .equalsIgnoreCase(currentTakstol.getOrderNr())) {// dersom
        // ny
        // ordre
        handleCurrentTakstol(defaultTakstolMap, currentTakstol,
            relatedArticles, producables);
        relatedArticles = null;// nullstiller relaterte artikler

        currentTakstol = item;// setter ny current
      } else {
        if (!currentTakstol.equals(item)) {// kan ikke sett relatert til
          // seg selv
          if (canHaveRelatedArticles(currentTakstol)) {// gjeldende
            // takstol
            // m� kunne
            // ha
View Full Code Here

    managerRepository = aManagerRepository;
    articleType = aArticleType;
  }

  public void actionPerformed(ActionEvent e) {
    Produceable produceable = produceableProvider.getSelectedProduceable();
    setProductionUnit(produceable);

  }
View Full Code Here

    }

  }

  public Produceable getSelectedProduceable() {
    Produceable produceable = null;
    if (articleSelectionList.hasSelection()) {
      produceable = (Produceable) articleSelectionList
          .getElementAt(tableArticles
              .convertRowIndexToModel(articleSelectionList
                  .getSelectionIndex()));
View Full Code Here

TOP

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

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.