public double delivery(
     int paramInt, String paramString1, String paramString2, String paramString3) {
   WareHouseStockDAO localWareHouseStockDAO = Server.getInstance().getWareHouseStockDAO();
   List localList =
       localWareHouseStockDAO.getTradeStockList(
           " and moduleid="
               + paramInt
               + " and tradeNO='"
               + paramString1
               + "' and status=0 for update ");
   Iterator localIterator = localList.iterator();
   while (localIterator.hasNext()) {
     TradeStockPO localTradeStockPO = (TradeStockPO) localIterator.next();
     stockChg(new String[] {localTradeStockPO.getStockID()}, paramString2, paramString3);
   }
   return realeseGoods(paramInt, paramString1);
 }
 public double realeseGoods(int paramInt, String paramString) {
   WareHouseStockDAO localWareHouseStockDAO = Server.getInstance().getWareHouseStockDAO();
   List localList =
       localWareHouseStockDAO.getTradeStockList(
           " and moduleid="
               + paramInt
               + " and tradeNO='"
               + paramString
               + "' and status=0 for update ");
   double d = 0.0D;
   Iterator localIterator = localList.iterator();
   while (localIterator.hasNext()) {
     TradeStockPO localTradeStockPO = (TradeStockPO) localIterator.next();
     localWareHouseStockDAO.deleteStockOperation(
         localTradeStockPO.getStockID(), StockOperation.DELIVERY);
     StockPO localStockPO = localWareHouseStockDAO.getStockPOByID(localTradeStockPO.getStockID());
     d += localStockPO.getQuantity();
   }
   localWareHouseStockDAO.realeseTradeStockByTN(paramInt, paramString);
   return d;
 }
 public double realeseGoods(int paramInt, String paramString, String[] paramArrayOfString) {
   WareHouseStockDAO localWareHouseStockDAO = Server.getInstance().getWareHouseStockDAO();
   double d = 0.0D;
   for (int i = 0; i < paramArrayOfString.length; i++) {
     List localList =
         localWareHouseStockDAO.getTradeStockList(
             " and moduleid="
                 + paramInt
                 + " and tradeNO='"
                 + paramString
                 + "' and stockID='"
                 + paramArrayOfString[i]
                 + "' and status=0 for update ");
     if (localList.size() > 0) {
       localWareHouseStockDAO.deleteStockOperation(paramArrayOfString[i], StockOperation.DELIVERY);
       localWareHouseStockDAO.realeseTradeStockBySI(paramArrayOfString[i]);
       StockPO localStockPO = localWareHouseStockDAO.getStockPOByID(paramArrayOfString[i]);
       d += localStockPO.getQuantity();
     } else {
       throw new BillCoreException("没有相应的交收仓单,仓单号:" + paramArrayOfString[i]);
     }
   }
   return d;
 }