コード例 #1
0
  /**
   * Writes the components values to the bean.<br>
   *
   * @param anOrderposition
   */
  public void doWriteComponentsToBean(Orderposition anOrderposition) {

    Order anOrder = getOrder();
    Article anArticle = getArticle();

    anOrderposition.setOrder(anOrder);
    anOrderposition.setArticle(anArticle);
    anOrderposition.setAupMenge(aupMenge.getValue());
    anOrderposition.setAupEinzelwert(aupEinzelwert.getValue());
    anOrderposition.setAupGesamtwert(aupGesamtwert.getValue());
  }
コード例 #2
0
  /** Create a new orderPosition object. <br> */
  private void doNew() {

    /** !!! DO NOT BREAK THE TIERS !!! */
    // We don't create a new DomainObject() in the frontend.
    // We GET it from the backend.
    Orderposition anOrderposition = getOrderService().getNewOrderposition();
    setOrderposition(anOrderposition);
    anOrderposition.setOrder(order);

    doClear(); // clear all commponents
    doEdit(); // edit mode

    btnCtrl.setBtnStatus_New();

    // remember the old vars
    doStoreInitValues();
  }