Exemplo n.º 1
0
 public String destorySafeStock() {
   safeStock = safeStockService.getEntityById(safeStock.getId());
   for (SafeStockDetail pd : safeStock.getSafeStockDetailList()) {
     safeStockDetailService.delete(pd);
   }
   safeStockService.delete(safeStock);
   return SUCCESS;
 }
Exemplo n.º 2
0
 public String listSafeStockDetail() {
   safeStock = safeStockService.getEntityById(safeStock.getId());
   safeStockDetailList = safeStock.getSafeStockDetailList();
   return SUCCESS;
 }