Package org.jallinone.warehouse.documents.java

Examples of org.jallinone.warehouse.documents.java.GridDeliveryNoteVO


   * @param rowNumber selected row index
   * @param persistentObject v.o. related to the selected row
   */
  public void doubleClick(int rowNumber,ValueObject persistentObject) {
    // create purchase order detail frame in READONLY mode...
    GridDeliveryNoteVO vo = (GridDeliveryNoteVO)persistentObject;
    DeliveryNotePK pk = new DeliveryNotePK(
        vo.getCompanyCodeSys01DOC08(),
        vo.getDocTypeDOC08(),
        vo.getDocYearDOC08(),
        vo.getDocNumberDOC08()
    );
    new InDeliveryNoteController(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();
    DeliveryNotePK pk = null;
    GridDeliveryNoteVO vo = null;
    for(int i=0;i<persistentObjects.size();i++) {
      vo = (GridDeliveryNoteVO)persistentObjects.get(i);
      pk = new DeliveryNotePK(
          vo.getCompanyCodeSys01DOC08(),
          vo.getDocTypeDOC08(),
          vo.getDocYearDOC08(),
          vo.getDocNumberDOC08()
      );
      pks.add(pk);
    }
    return ClientUtils.getData("deleteDeliveryNotes",pks);
  }
View Full Code Here

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

    GridDeliveryNoteVO vo = null;
    for(int i=0;i<frame.getGrid().getSelectedRows().length;i++) {
      vo = (GridDeliveryNoteVO)frame.getGrid().getVOListTableModel().getObjectForRow(frame.getGrid().getSelectedRows()[i]);
      if (vo.getDocStateDOC08().equals(ApplicationConsts.CLOSED))
        return false;
    }
    return true;
  }
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 order detail frame in READONLY mode...
    GridDeliveryNoteVO vo = (GridDeliveryNoteVO)persistentObject;
    DeliveryNotePK pk = new DeliveryNotePK(
        vo.getCompanyCodeSys01DOC08(),
        vo.getDocTypeDOC08(),
        vo.getDocYearDOC08(),
        vo.getDocNumberDOC08()
    );
    new OutDeliveryNoteController(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();
    DeliveryNotePK pk = null;
    GridDeliveryNoteVO vo = null;
    for(int i=0;i<persistentObjects.size();i++) {
      vo = (GridDeliveryNoteVO)persistentObjects.get(i);
      pk = new DeliveryNotePK(
          vo.getCompanyCodeSys01DOC08(),
          vo.getDocTypeDOC08(),
          vo.getDocYearDOC08(),
          vo.getDocNumberDOC08()
      );
      pks.add(pk);
    }
    return ClientUtils.getData("deleteDeliveryNotes",pks);
  }
View Full Code Here

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

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

TOP

Related Classes of org.jallinone.warehouse.documents.java.GridDeliveryNoteVO

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.