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