public TaiLieuDinhKem getThongTinTaiLieuDinhKem(Long thutucId, Long chungthucId) { // TODO Auto-generated method stub try { TaiLieuChungThuc chungThuc = TaiLieuChungThucLocalServiceUtil.getTaiLieuChungThuc(chungthucId); if (chungThuc != null) { List<ThuTuc2GiayTo> gList = ThuTuc2GiayToLocalServiceUtil.getDSTT2GiayTo( thutucId, chungThuc.getDanhMucGiayToId(), Constants.STEP.STEP1); if (gList != null && gList.size() > 0) { DanhMucGiayTo type = DanhMucGiayToLocalServiceUtil.getDanhMucGiayTo(chungThuc.getDanhMucGiayToId()); if (type != null) { TaiLieuDinhKem dinhKem = new TaiLieuDinhKem(DanhMucGiayToSoap.toSoapModel(type)); dinhKem.setTailieuChungThuc(TaiLieuChungThucSoap.toSoapModel(chungThuc)); dinhKem.setUrl( WebserviceFactory.getThamSoService().getValue(Constants.ThamSo.DOMAIN) + storage.getURLById(chungThuc.getNoiLuuTruId())); if (gList.get(0).getBatBuoc() == 1) { dinhKem.setBatBuoc(true); } else { dinhKem.setBatBuoc(false); } return dinhKem; } } } } catch (Exception e) { // TODO Auto-generated catch block } return null; }
@Override public Long getIDTTHC2GiayTo(Long thutucId, Long taiLieuChungthucId) { // TODO Auto-generated method stub try { TaiLieuChungThuc chungThuc = TaiLieuChungThucLocalServiceUtil.getTaiLieuChungThuc(taiLieuChungthucId); if (chungThuc != null) { List<ThuTuc2GiayTo> tList = ThuTuc2GiayToLocalServiceUtil.getDSTT2GiayTo( thutucId, chungThuc.getDanhMucGiayToId(), Constants.STEP.STEP1); if (tList != null && tList.size() > 0) { return tList.get(0).getId(); } } } catch (Exception e) { // TODO Auto-generated catch block // e.printStackTrace(); } return null; }