while(paramKeys.hasMoreElements()) {
String paramName = paramKeys.nextElement().toString();
if(paramName.startsWith("locationid")) {
String suffix=paramName.substring(10, paramName.length());
DorderItem entryItem= new DorderItem();
entryItem.setLocationId(pp.getInt("locationid" + suffix));
int itmShippQty= pp.getInt("shippedqty" + suffix);
int itmUnsoldQty= pp.getInt("unsoldqty" + suffix);
int itmLostQty= pp.getInt("lostqty" + suffix);
entryItem.setOrderedQty(itmShippQty);
entryItem.setShippedQty(itmShippQty);
entryItem.setUnsoldQty(itmUnsoldQty);
entryItem.setLostQty(itmLostQty);
retDorder.addDorderItem(entryItem);
}
}