Package org.jallinone.purchases.documents.java

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


    }
  }

  public String getCurrencySymbol(int row) {
    try {
      GridPurchaseDocVO vo = (GridPurchaseDocVO) grid.getVOListTableModel().getObjectForRow(row);
      return vo.getCurrencySymbolREG03();
    }
    catch (Exception ex) {
      return "E";
    }
  }
View Full Code Here


   * @param rowNumber selected row index
   * @param persistentObject v.o. related to the selected row
   */
  public void doubleClick(int rowNumber,ValueObject persistentObject) {
    // create purchase invoice detail frame in READONLY mode...
    GridPurchaseDocVO vo = (GridPurchaseDocVO)persistentObject;
    PurchaseDocPK pk = new PurchaseDocPK(
        vo.getCompanyCodeSys01DOC06(),
        vo.getDocTypeDOC06(),
        vo.getDocYearDOC06(),
        vo.getDocNumberDOC06()
    );
    new PurchaseDebitingDocController(frame,pk);
  }
View Full Code Here

   * @return an ErrorResponse value object in case of errors, VOResponse if the operation is successfully completed
   */
  public Response deleteRecords(ArrayList persistentObjects) throws Exception {
    ArrayList pks = new ArrayList();
    PurchaseDocPK pk = null;
    GridPurchaseDocVO vo = null;
    for(int i=0;i<persistentObjects.size();i++) {
      vo = (GridPurchaseDocVO)persistentObjects.get(i);
      pk = new PurchaseDocPK(
          vo.getCompanyCodeSys01DOC06(),
          vo.getDocTypeDOC06(),
          vo.getDocYearDOC06(),
          vo.getDocNumberDOC06()
      );
      pks.add(pk);
    }
    return ClientUtils.getData("deletePurchaseDocs",pks);
  }
View Full Code Here

   */
  public boolean beforeDeleteGrid(GridControl grid) {
    if (!super.beforeDeleteGrid(grid))
      return false;

    GridPurchaseDocVO vo = null;
    for(int i=0;i<frame.getGrid().getSelectedRows().length;i++) {
      vo = (GridPurchaseDocVO)frame.getGrid().getVOListTableModel().getObjectForRow(frame.getGrid().getSelectedRows()[i]);
      if (vo.getDocStateDOC06().equals(ApplicationConsts.CLOSED))
        return false;
    }
    return true;
  }
View Full Code Here

    return true;
  }

  public int getDecimals(int row) {
    try {
      GridPurchaseDocVO vo = (GridPurchaseDocVO) grid.getVOListTableModel().getObjectForRow(row);
      return vo.getDecimalsREG03().intValue();
    }
    catch (Exception ex) {
      return 0;
    }
  }
View Full Code Here

    }
  }

  public String getCurrencySymbol(int row) {
    try {
      GridPurchaseDocVO vo = (GridPurchaseDocVO) grid.getVOListTableModel().getObjectForRow(row);
      return vo.getCurrencySymbolREG03();
    }
    catch (Exception ex) {
      return "E";
    }
  }
View Full Code Here

      purchaseIdHeadPanel1.getControlDocRifLookup().getLookupController().addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
          GridPurchaseDocVO vo = (GridPurchaseDocVO)purchaseIdHeadPanel1.getControlDocRifLookup().getLookupController().getLookupVO();
          if (vo.getDocNumberDOC06()!=null) {
            // pre-set header data...
          PurchaseDocPK pk = new PurchaseDocPK(
              vo.getCompanyCodeSys01DOC06(),
              vo.getDocTypeDOC06(),
              vo.getDocYearDOC06(),
              vo.getDocNumberDOC06()
            );

            Response res = ClientUtils.getData("loadPurchaseDoc",pk);
            if (!res.isError()) {
              DetailPurchaseDocVO purchaseDocVO = (DetailPurchaseDocVO)((VOResponse)res).getVo();
              DetailPurchaseDocVO oldPurchaseDocVO = (DetailPurchaseDocVO)headerFormPanel.getVOModel().getValueObject();
              purchaseDocVO.setCompanyCodeSys01Doc06DOC06(vo.getCompanyCodeSys01DOC06());
              purchaseDocVO.setDocTypeDoc06DOC06(vo.getDocTypeDOC06());
              purchaseDocVO.setDocYearDoc06DOC06(vo.getDocYearDOC06());
              purchaseDocVO.setDocNumberDoc06DOC06(vo.getDocNumberDOC06());
              purchaseDocVO.setDocSequenceDoc06DOC06(vo.getDocSequenceDOC06());
              purchaseDocVO.setDocTypeDOC06(ApplicationConsts.PURCHASE_INVOICE_FROM_DN_DOC_TYPE);
              purchaseDocVO.setDocNumberDOC06(null);
              purchaseDocVO.setDocSequenceDOC06(oldPurchaseDocVO.getDocSequenceDOC06());
              purchaseDocVO.setDocStateDOC06(ApplicationConsts.OPENED);
              purchaseDocVO.setDocDateDOC06(oldPurchaseDocVO.getDocDateDOC06());
View Full Code Here

      purchaseIdHeadPanel1.getControlDocRifLookup().getLookupController().addLookupListener(new LookupListener() {

        public void codeValidated(boolean validated) {}

        public void codeChanged(ValueObject parentVO,Collection parentChangedAttributes) {
          GridPurchaseDocVO vo = (GridPurchaseDocVO)purchaseIdHeadPanel1.getControlDocRifLookup().getLookupController().getLookupVO();
          if (vo.getDocNumberDOC06()!=null) {
            // pre-set header data...
            Response res = ClientUtils.getData("loadPurchaseDoc",new PurchaseDocPK(
                vo.getCompanyCodeSys01DOC06(),
                vo.getDocTypeDOC06(),
                vo.getDocYearDOC06(),
                vo.getDocNumberDOC06()
            ));
            if (!res.isError()) {
              DetailPurchaseDocVO purchaseDocVO = (DetailPurchaseDocVO)((VOResponse)res).getVo();
              DetailPurchaseDocVO oldPurchaseDocVO = (DetailPurchaseDocVO)headerFormPanel.getVOModel().getValueObject();
              purchaseDocVO.setCompanyCodeSys01Doc06DOC06(vo.getCompanyCodeSys01DOC06());
              purchaseDocVO.setDocTypeDoc06DOC06(vo.getDocTypeDOC06());
              purchaseDocVO.setDocYearDoc06DOC06(vo.getDocYearDOC06());
              purchaseDocVO.setDocNumberDoc06DOC06(vo.getDocNumberDOC06());
              purchaseDocVO.setDocSequenceDoc06DOC06(vo.getDocSequenceDOC06());
              purchaseDocVO.setDocTypeDOC06(ApplicationConsts.PURCHASE_INVOICE_FROM_PD_DOC_TYPE);
              purchaseDocVO.setDocNumberDOC06(null);
              purchaseDocVO.setDocSequenceDOC06(oldPurchaseDocVO.getDocSequenceDOC06());
              purchaseDocVO.setDocStateDOC06(ApplicationConsts.OPENED);
              purchaseDocVO.setDocDateDOC06(oldPurchaseDocVO.getDocDateDOC06());
View Full Code Here

TOP

Related Classes of org.jallinone.purchases.documents.java.GridPurchaseDocVO

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.