Examples of InDeliveryNoteRowPK


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

    PreparedStatement pstmt = null;
    PreparedStatement pstmt2 = null;
    Connection conn = null;
    try {
      if (this.conn==null) conn = getConn(); else conn = this.conn;
      InDeliveryNoteRowPK rowPK = null;

      pstmt = conn.prepareStatement(
        "delete from DOC09_IN_DELIVERY_NOTE_ITEMS where PROGRESSIVE=?"
      );

      pstmt2 = conn.prepareStatement(
       "delete from DOC11_IN_SERIAL_NUMBERS where PROGRESSIVE_DOC09=? "
      );

      Response res = null;
      for(int i=0;i<list.size();i++) {
        rowPK = (InDeliveryNoteRowPK)list.get(i);

        // delete previous serial numbers from DOC11...
        pstmt2.setBigDecimal(1,rowPK.getProgressiveDOC09());
        pstmt2.execute();

        // phisically delete the record in DOC09...
        pstmt.setBigDecimal(1,rowPK.getProgressiveDOC09());
        pstmt.execute();
      }

      return new VOResponse(new Boolean(true));
    }
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.