Example #1
0
 // 添加/修改
 public String save() {
   if (om.getUuid() == null) {
     orderDetailEbi.save(om);
   } else {
     orderDetailEbi.update(om);
   }
   return TO_LIST;
 }
Example #2
0
 public String ajaxGetSurplusByUuid() {
   odm = orderDetailEbi.get(odmUuid);
   return "ajaxGetSurplusByUuid";
 }
Example #3
0
 // 删除
 public String delete() {
   orderDetailEbi.delete(om);
   return TO_LIST;
 }
Example #4
0
 // 跳转到添加/修改
 public String input() {
   if (om.getUuid() != null) {
     om = orderDetailEbi.get(om.getUuid());
   }
   return INPUT;
 }
Example #5
0
 // 列表
 public String list() {
   setDataTotal(orderDetailEbi.getCount(oqm));
   List<OrderDetailModel> orderDetailList = orderDetailEbi.getAll(oqm, pageNum, pageCount);
   put("orderDetailList", orderDetailList);
   return LIST;
 }