Package org.jabusuite.transaction.position

Examples of org.jabusuite.transaction.position.NormalPosition


     */
    @Override
    protected void getControlData() {
        super.getControlData();
        if ((this.getTrPosition() != null) && (this.getTrPosition() instanceof NormalPosition)) {
            NormalPosition normalPosition = (NormalPosition) this.getTrPosition();
            normalPosition.setQuantity(this.txQuantity.getValue());
            normalPosition.setPieceCostPrice(this.txPieceCostPrice.getValue());
            normalPosition.setPieceSalesPrice(this.txPieceSalesPrice.getValue());
            normalPosition.setVat(this.sfVat.getSelectedVAT());
            normalPosition.setQtyUnit(this.qtyUnit.getSelectedQtyUnit());
        }
    }
View Full Code Here


     */
    @Override
    protected void setControlData() {
        super.setControlData();
        if ((this.getTrPosition() != null) && (this.getTrPosition() instanceof NormalPosition)) {
            NormalPosition normalPosition = (NormalPosition) this.getTrPosition();
            this.txQuantity.setValue(normalPosition.getQuantity());
            this.txPieceCostPrice.setValue(normalPosition.getPieceCostPrice());
            this.txPieceSalesPrice.setValue(normalPosition.getPieceSalesPrice());
            this.sfVat.setSelectedVAT(normalPosition.getVat());
            this.qtyUnit.setSelectedQtyUnit(normalPosition.getQtyUnit());
            calcSurcharge();
        }
    }
View Full Code Here

  /* (non-Javadoc)
   * @see org.jabusuite.webclient.transaction.position.FmTrPositionsEdit#createNewPosition()
   */
  @Override
  protected TrPosition createNewPosition() {
    NormalPosition position = new NormalPosition();
    position.setTransaction(this.getTransaction());
    return new NormalPosition();
  }
View Full Code Here

TOP

Related Classes of org.jabusuite.transaction.position.NormalPosition

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.