Пример #1
0
 public TrinhDoChuyenMonSoap[] getDSTrinhDoChuyenMon() {
   try {
     List<TrinhDoChuyenMon> result =
         TrinhDoChuyenMonLocalServiceUtil.findByStatus(Constants.ACTIVATED);
     if (result != null) {
       return TrinhDoChuyenMonSoap.toSoapModels(result);
     }
   } catch (Exception e) {
     // TODO: handle exception
   }
   return null;
 }
Пример #2
0
  public TrinhDoChuyenMonSoap getTrinhDoChuyenMonTheoId(Long id) {
    try {
      TrinhDoChuyenMon honNhan = TrinhDoChuyenMonLocalServiceUtil.fetchTrinhDoChuyenMon(id);
      if (honNhan != null) {
        return TrinhDoChuyenMonSoap.toSoapModel(honNhan);
      }

    } catch (Exception e) {
      // TODO Auto-generated catch block
      e.printStackTrace();
    }

    return null;
  }