Ejemplo n.º 1
0
 @Override
 public DetailListVO getDetailList(UserVO operator) {
   DetailListVO vo = new DetailListVO();
   vo.setClient("David");
   vo.setCommodity(commodity.name);
   vo.setStart(saleslist.get(2).date.toString());
   vo.setEnd(saleslist.get(1).date.toString());
   vo.setOperator(operator.getName());
   vo.setStorehouse("南京仓库");
   vo.setList(new ArrayList<DetailListVO.DetailListItemVO>());
   for (int i = 0; i <= saleslist.size() - 1; i++) {
     DetailListVO.DetailListItemVO item = new DetailListVO().new DetailListItemVO();
     item.update(saleslist.get(i));
     vo.getList().add(item);
   }
   return vo;
 }
Ejemplo n.º 2
0
 @Override
 public DetailListVO getDetailList(GregorianCalendar start, GregorianCalendar end) {
   DetailListVO vo = new DetailListVO();
   vo.setClient("David");
   vo.setCommodity(commodity.name);
   vo.setStart(start.toString());
   vo.setEnd(end.toString());
   vo.setOperator("王一琦");
   vo.setStorehouse("南京仓库");
   vo.setList(new ArrayList<DetailListVO.DetailListItemVO>());
   for (int i = 0; i <= saleslist.size() - 1; i++) {
     if (saleslist.get(i).date.after(end) || saleslist.get(i).date.before(start)) {
       continue;
     } else {
       DetailListVO.DetailListItemVO item = new DetailListVO().new DetailListItemVO();
       item.update(saleslist.get(i));
       vo.getList().add(item);
     }
   }
   return vo;
 }