HashMap mwtHm = new HashMap();
wtay = new BigDecimal[2];
wtay[0] = swmd.getReqqty();
wtay[1] = swmd.getReqwt();
mwtHm.put(swmd.getAlloyid(), wtay);
if (mwtHm != null && mwtHm.size() > 0) {
Iterator iter = mwtHm.entrySet().iterator();
while (iter.hasNext()) {
Map.Entry entry = (Map.Entry) iter.next();
String key = (String) entry.getKey();
wtay = (BigDecimal[]) entry.getValue();
fwm = new Facswoimodel(new FacswoimodelPK());
fwm.getFacswoimodelPK().setSworderid(swmd.getFacswormodelPK().getSworderid());
fwm.getFacswoimodelPK().setAlloyid(key);
fwm.setWt(wtay[1]);
fwm.setQty(wtay[0]);
swomList.add(fwm);
}
}