Examples of DetailPurchaseDocVO


Examples of org.jallinone.purchases.documents.java.DetailPurchaseDocVO

    }
  }


  void controlDiscValue_focusLost(FocusEvent e) {
    DetailPurchaseDocVO vo = (DetailPurchaseDocVO)parentForm.getVOModel().getValueObject();
    if (controlDiscPerc.getValue()!=null && controlDiscValue.getValue()!=null)
      vo.setDiscountPercDOC06(null);
    vo.setDiscountValueDOC06(controlDiscValue.getBigDecimal());
    recalculateTotals();
  }
View Full Code Here

Examples of org.jallinone.purchases.documents.java.DetailPurchaseDocVO

    recalculateTotals();
  }


  void controlDiscPerc_focusLost(FocusEvent e) {
    DetailPurchaseDocVO vo = (DetailPurchaseDocVO)parentForm.getVOModel().getValueObject();
    if (controlDiscPerc.getValue()!=null && controlDiscValue.getValue()!=null)
      vo.setDiscountValueDOC06(null);
    vo.setDiscountPercDOC06(controlDiscPerc.getBigDecimal());
    recalculateTotals();
  }
View Full Code Here

Examples of org.jallinone.purchases.documents.java.DetailPurchaseDocVO

    recalculateTotals();
  }


  void controlChargeValue_focusLost(FocusEvent e) {
    DetailPurchaseDocVO vo = (DetailPurchaseDocVO)parentForm.getVOModel().getValueObject();
    if (controlChargePerc.getValue()!=null && controlChargeValue.getValue()!=null)
      vo.setChargePercDOC06(null);
    vo.setChargeValueDOC06(controlChargeValue.getBigDecimal());
    recalculateTotals();
  }
View Full Code Here

Examples of org.jallinone.purchases.documents.java.DetailPurchaseDocVO

    recalculateTotals();
  }


  void controlChargePerc_focusLost(FocusEvent e) {
    DetailPurchaseDocVO vo = (DetailPurchaseDocVO)parentForm.getVOModel().getValueObject();
    if (controlChargePerc.getValue()!=null && controlChargeValue.getValue()!=null)
      vo.setChargeValueDOC06(null);
    vo.setChargePercDOC06(controlChargePerc.getBigDecimal());
    recalculateTotals();
  }
View Full Code Here

Examples of org.jallinone.purchases.documents.java.DetailPurchaseDocVO

   * @return an ErrorResponse value object in case of errors, VOResponse if the operation is successfully completed
   */
  public Response insertRecord(ValueObject newPersistentObject) throws Exception {
    Response res = ClientUtils.getData("insertPurchaseDoc",newPersistentObject);
    if (!res.isError()) {
      DetailPurchaseDocVO vo = (DetailPurchaseDocVO)((VOResponse)res).getVo();
      pk = new PurchaseDocPK(
          vo.getCompanyCodeSys01DOC06(),
          vo.getDocTypeDOC06(),
          vo.getDocYearDOC06(),
          vo.getDocNumberDOC06()
      );

    }
    return res;
  }
View Full Code Here

Examples of org.jallinone.purchases.documents.java.DetailPurchaseDocVO

  public void afterInsertData() {
//    if (parentFrame!=null) {
//      parentFrame.getGrid().reloadCurrentBlockOfData();
//    }

    DetailPurchaseDocVO vo = (DetailPurchaseDocVO)frame.getHeaderFormPanel().getVOModel().getValueObject();
    frame.updateCurrencySettings(vo);

    frame.getRowsPanel().setParentVO(vo);
    frame.getRowsPanel().getGrid().getOtherGridParams().put(ApplicationConsts.PURCHASE_DOC_PK,pk);
    frame.getRowsPanel().getGrid().reloadData();
View Full Code Here

Examples of org.jallinone.purchases.documents.java.DetailPurchaseDocVO

   * @param persistentObject value object to delete
   * @return an ErrorResponse value object in case of errors, VOResponse if the operation is successfully completed
   */
  public Response deleteRecord(ValueObject persistentObject) throws Exception {
    ArrayList pks = new ArrayList();
    DetailPurchaseDocVO vo = (DetailPurchaseDocVO)persistentObject;

    pks.add(pk);
    Response res = ClientUtils.getData("deletePurchaseDocs",pks);
    if (!res.isError()) {
      if (parentFrame!=null) {
View Full Code Here

Examples of org.jallinone.purchases.documents.java.DetailPurchaseDocVO

   * Callback method called by the Form panel when the Form is set to INSERT mode.
   * The method can pre-set some v.o. attributes, so that some input controls will have a predefined value associated.
   * @param persistentObject new value object
   */
  public void createPersistentObject(ValueObject persistentObject) throws Exception {
    DetailPurchaseDocVO vo = (DetailPurchaseDocVO)persistentObject;
    Calendar cal = Calendar.getInstance();
    vo.setDocYearDOC06(new BigDecimal(cal.get(cal.YEAR)));
    vo.setDocDateDOC06(new java.sql.Date(System.currentTimeMillis()));
    vo.setDocTypeDOC06(ApplicationConsts.PURCHASE_ORDER_DOC_TYPE);
    vo.setDocStateDOC06(ApplicationConsts.OPENED);
  }
View Full Code Here

Examples of org.jallinone.purchases.documents.java.DetailPurchaseDocVO

   * @return <code>true</code> allows to go to EDIT mode, <code>false</code> the mode change is interrupted
   */
  public boolean beforeEditData(Form form) {
    if (!super.beforeEditData(form))
      return false;
    DetailPurchaseDocVO vo = (DetailPurchaseDocVO)frame.getHeaderFormPanel().getVOModel().getValueObject();
    return !vo.getDocStateDOC06().equals(ApplicationConsts.CONFIRMED);
  }
View Full Code Here

Examples of org.jallinone.purchases.documents.java.DetailPurchaseDocVO

   * @return <code>true</code> allows the deleting to continue, <code>false</code> the deleting is interrupted
   */
  public boolean beforeDeleteData(Form form) {
    if (!super.beforeDeleteData(form))
      return false;
    DetailPurchaseDocVO vo = (DetailPurchaseDocVO)frame.getHeaderFormPanel().getVOModel().getValueObject();
    return !vo.getDocStateDOC06().equals(ApplicationConsts.CONFIRMED);
  }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.