Package de.forsthaus.backend.model

Examples of de.forsthaus.backend.model.Orderposition


      doCancel();
      return;
    }

    // create a new orderPosition object
    Orderposition anOrderposition = getOrderService().getNewOrderposition();

    /*
     * We can call our Dialog zul-file with parameters. So we can call them
     * with a object of the selected item. For handed over these parameter
     * only a Map is accepted. So we put the object in a HashMap.
View Full Code Here


    // get the selected object
    Listitem item = listBoxOrderOrderPositions.getSelectedItem();

    if (item != null) {
      // CAST AND STORE THE SELECTED OBJECT
      Orderposition anOrderposition = (Orderposition) item.getValue();

      /*
       * We can call our Dialog zul-file with parameters. So we can call
       * them with a object of the selected item. For handed over these
       * parameter only a Map is accepted. So we put the object in a
View Full Code Here

  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();
View Full Code Here

   *
   * @throws InterruptedException
   */
  public void doSave() throws InterruptedException {

    Orderposition anOrderposition = getOrderposition();

    // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    // force validation, if on, than execute by component.getValue()
    // +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    if (!isValidationOn()) {
View Full Code Here

@Repository
public class OrderpositionDAOImpl extends BasisDAO<Orderposition> implements OrderpositionDAO {

  @Override
  public Orderposition getNewOrderposition() {
    return new Orderposition();
  }
View Full Code Here

  private static final Logger logger = Logger.getLogger(OrderpositionListModelItemRenderer.class);

  @Override
  public void render(Listitem item, Object data) throws Exception {

    final Orderposition orderposition = (Orderposition) data;

    Listcell lc = new Listcell(String.valueOf(orderposition.getId()));
    lc.setParent(item);
    lc = new Listcell(orderposition.getArticle().getArtKurzbezeichnung());
    lc.setParent(item);
    lc = new Listcell(orderposition.getAupMenge().toString());
    lc.setStyle("text-align: right");
    lc.setParent(item);
    lc = new Listcell(orderposition.getAupEinzelwert().toString());
    lc.setStyle("text-align: right");
    lc.setParent(item);
    lc = new Listcell(orderposition.getAupGesamtwert().toString());
    lc.setStyle("text-align: right");
    lc.setParent(item);

    // lc = new Listcell();
    // Image img = new Image();
View Full Code Here

TOP

Related Classes of de.forsthaus.backend.model.Orderposition

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.