Package org.jallinone.production.orders.java

Examples of org.jallinone.production.orders.java.ProdOrderPK




       // retrieve products defined in the specified production order...
       GridParams gridParams = new GridParams();
       gridParams.getOtherGridParams().put(ApplicationConsts.PROD_ORDER_PK,new ProdOrderPK(vo.getCompanyCodeSys01DOC22(),vo.getDocYearDOC22(),vo.getDocNumberDOC22()));
       Response res = rowsAction.loadProdOrderProducts(gridParams,serverLanguageId,username);
       if (res.isError())
         throw new Exception(res.getErrorMessage());
       ArrayList products = new ArrayList(((VOListResponse)res).getRows());
       HashMap compAltCodes = new HashMap(); // collection of <component item code,HashSet of alternative component item codes>
View Full Code Here


      vo.setDocStateDOC22(ApplicationConsts.CLOSED);


      // retrieve products defined in the production order...
      GridParams gridParams = new GridParams();
      gridParams.getOtherGridParams().put(ApplicationConsts.PROD_ORDER_PK,new ProdOrderPK(vo.getCompanyCodeSys01DOC22(),vo.getDocYearDOC22(),vo.getDocNumberDOC22()));
      Response res = rowsAction.loadProdOrderProducts(gridParams,serverLanguageId,username);
      if (res.isError()) {
        throw new Exception(res.getErrorMessage());
      }
      java.util.List products = ((VOListResponse)res).getRows();
View Full Code Here

    Connection conn = null;
    try {
      if (this.conn==null) conn = getConn(); else conn = this.conn;

      ProdOrderPK pk = null;

      pstmt = conn.prepareStatement(
          "delete from DOC22_PRODUCTION_ORDER where COMPANY_CODE_SYS01=? and DOC_YEAR=? and DOC_NUMBER=?"
      );
      pstmt23 = conn.prepareStatement(
          "delete from DOC23_PRODUCTION_PRODUCTS where COMPANY_CODE_SYS01=? and DOC_YEAR=? and DOC_NUMBER=?"
      );
      pstmt24 = conn.prepareStatement(
          "delete from DOC24_PRODUCTION_COMPONENTS where COMPANY_CODE_SYS01=? and DOC_YEAR=? and DOC_NUMBER=?"
      );
      pstmt25 = conn.prepareStatement(
          "delete from DOC25_PRODUCTION_PROD_COMPS where COMPANY_CODE_SYS01=? and DOC_YEAR=? and DOC_NUMBER=?"
      );
      pstmt26 = conn.prepareStatement(
          "delete from DOC26_PRODUCTION_OPERATIONS where COMPANY_CODE_SYS01=? and DOC_YEAR=? and DOC_NUMBER=?"
      );

      for(int i=0;i<list.size();i++) {
        pk = (ProdOrderPK)list.get(i);

        // phisically delete the record in DOC23...
        pstmt23.setString(1,pk.getCompanyCodeSys01DOC22());
        pstmt23.setBigDecimal(2,pk.getDocYearDOC22());
        pstmt23.setBigDecimal(3,pk.getDocNumberDOC22());
        pstmt23.execute();

        // phisically delete the record in DOC24...
        pstmt24.setString(1,pk.getCompanyCodeSys01DOC22());
        pstmt24.setBigDecimal(2,pk.getDocYearDOC22());
        pstmt24.setBigDecimal(3,pk.getDocNumberDOC22());
        pstmt24.execute();

        // phisically delete the record in DOC25...
        pstmt25.setString(1,pk.getCompanyCodeSys01DOC22());
        pstmt25.setBigDecimal(2,pk.getDocYearDOC22());
        pstmt25.setBigDecimal(3,pk.getDocNumberDOC22());
        pstmt25.execute();

        // phisically delete the record in DOC26...
        pstmt26.setString(1,pk.getCompanyCodeSys01DOC22());
        pstmt26.setBigDecimal(2,pk.getDocYearDOC22());
        pstmt26.setBigDecimal(3,pk.getDocNumberDOC22());
        pstmt26.execute();

        // phisically delete the record in DOC22...
        pstmt.setString(1,pk.getCompanyCodeSys01DOC22());
        pstmt.setBigDecimal(2,pk.getDocYearDOC22());
        pstmt.setBigDecimal(3,pk.getDocNumberDOC22());
        pstmt.execute();
      }


     return new VOResponse(new Boolean(true));
View Full Code Here

TOP

Related Classes of org.jallinone.production.orders.java.ProdOrderPK

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.