Examples of GridSaleDocVO


Examples of org.jallinone.sales.documents.java.GridSaleDocVO

    // since this method could be invoked also when selecting another row on the linked grid,
    // the pk attribute must be recalculated from the grid...
    if (getParentFrame()!=null) {
      int row = parentFrame.getGrid().getSelectedRow();
      if (row!=-1) {
        GridSaleDocVO gridVO = (GridSaleDocVO)parentFrame.getGrid().getVOListTableModel().getObjectForRow(row);
        pk = new SaleDocPK(gridVO.getCompanyCodeSys01DOC01(),gridVO.getDocTypeDOC01(),gridVO.getDocYearDOC01(),gridVO.getDocNumberDOC01());
      }
    }

    return ClientUtils.getData("loadSaleDoc",pk);
  }
View Full Code Here

Examples of org.jallinone.sales.documents.java.GridSaleDocVO

    // since this method could be invoked also when selecting another row on the linked grid,
    // the pk attribute must be recalculated from the grid...
    if (getParentFrame()!=null) {
      int row = parentFrame.getGrid().getSelectedRow();
      if (row!=-1) {
        GridSaleDocVO gridVO = (GridSaleDocVO)parentFrame.getGrid().getVOListTableModel().getObjectForRow(row);
        pk = new SaleDocPK(gridVO.getCompanyCodeSys01DOC01(),gridVO.getDocTypeDOC01(),gridVO.getDocYearDOC01(),gridVO.getDocNumberDOC01());
      }
    }

    return ClientUtils.getData("loadSaleDoc",pk);
  }
View Full Code Here

Examples of org.jallinone.sales.documents.java.GridSaleDocVO

    // since this method could be invoked also when selecting another row on the linked grid,
    // the pk attribute must be recalculated from the grid...
    if (getParentFrame()!=null) {
      int row = parentFrame.getGrid().getSelectedRow();
      if (row != -1) {
        GridSaleDocVO gridVO = (GridSaleDocVO) parentFrame.getGrid().getVOListTableModel().getObjectForRow(row);
        pk = new SaleDocPK(gridVO.getCompanyCodeSys01DOC01(),gridVO.getDocTypeDOC01(), gridVO.getDocYearDOC01(),gridVO.getDocNumberDOC01());
      }
    }

    return ClientUtils.getData("loadSaleDoc",pk);
  }
View Full Code Here

Examples of org.jallinone.sales.documents.java.GridSaleDocVO

    // since this method could be invoked also when selecting another row on the linked grid,
    // the pk attribute must be recalculated from the grid...
    if (getParentFrame()!=null) {
      int row = parentFrame.getGrid().getSelectedRow();
      if (row!=-1) {
        GridSaleDocVO gridVO = (GridSaleDocVO)parentFrame.getGrid().getVOListTableModel().getObjectForRow(row);
        pk = new SaleDocPK(gridVO.getCompanyCodeSys01DOC01(),gridVO.getDocTypeDOC01(),gridVO.getDocYearDOC01(),gridVO.getDocNumberDOC01());
      }
    }

    return ClientUtils.getData("loadSaleDoc",pk);
  }
View Full Code Here

Examples of org.jallinone.sales.documents.java.GridSaleDocVO

    return true;
  }

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

Examples of org.jallinone.sales.documents.java.GridSaleDocVO

    }
  }

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

Examples of org.jallinone.sales.documents.java.GridSaleDocVO

   * @param rowNumber selected row index
   * @param persistentObject v.o. related to the selected row
   */
  public void doubleClick(int rowNumber,ValueObject persistentObject) {
    // create sale order detail frame in READONLY mode...
    GridSaleDocVO vo = (GridSaleDocVO)persistentObject;
    SaleDocPK pk = new SaleDocPK(
        vo.getCompanyCodeSys01DOC01(),
        vo.getDocTypeDOC01(),
        vo.getDocYearDOC01(),
        vo.getDocNumberDOC01()
    );
    new DeliveryRequestController(frame,pk);
  }
View Full Code Here

Examples of org.jallinone.sales.documents.java.GridSaleDocVO

   * @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();
    SaleDocPK pk = null;
    GridSaleDocVO vo = null;
    for(int i=0;i<persistentObjects.size();i++) {
      vo = (GridSaleDocVO)persistentObjects.get(i);
      pk = new SaleDocPK(
          vo.getCompanyCodeSys01DOC01(),
          vo.getDocTypeDOC01(),
          vo.getDocYearDOC01(),
          vo.getDocNumberDOC01()
      );
      pks.add(pk);
    }
    return ClientUtils.getData("deleteSaleDocs",pks);
  }
View Full Code Here

Examples of org.jallinone.sales.documents.java.GridSaleDocVO

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

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

Examples of org.jallinone.sales.documents.java.GridSaleDocVO

    return true;
  }

  public int getDecimals(int row) {
    try {
      GridSaleDocVO vo = (GridSaleDocVO) grid.getVOListTableModel().getObjectForRow(row);
      return vo.getDecimalsREG03().intValue();
    }
    catch (Exception ex) {
      return 0;
    }
  }
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.