entry.setExpectedTime(parseDateShortTime(data.getParameters().getString("expectedtime")));
entry.setDescription(" ---");
entry.setModifiedBy(data.getUser().getUserName());
entry.setModified(new Date());
ParameterParser pp= data.getParameters();
Enumeration paramKeys= pp.keys();
int qtyTotal= 0;
double unitAmount = entry.getUnitPrice();
double unitWeight = entry.getUnitWeight();
BigDecimal totAmount = new BigDecimal(unitAmount);
BigDecimal totWeight = new BigDecimal(unitWeight);
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 itmQuantity= pp.getInt("orderedqty" + suffix);
entryItem.setOrderedQty(itmQuantity);
entryItem.setShippedQty(itmQuantity);
entryItem.setUnsoldQty(0);
entryItem.setLostQty(0);