public DonViHanhChinhSoap getDonViHanhchinhTheoId(Long id) { DonViHanhChinh chinh; try { chinh = DonViHanhChinhLocalServiceUtil.fetchDonViHanhChinh(id); if (chinh != null) { return DonViHanhChinhSoap.toSoapModel(chinh); } else { chinh = DonViHanhChinhLocalServiceUtil.fetchDonViHanhChinh(id); if (chinh != null) { return DonViHanhChinhSoap.toSoapModel(chinh); } } } catch (Exception e) { // TODO Auto-generated catch block e.printStackTrace(); } return null; }
public DonViHanhChinhSoap[] getDSDonViHanhChinhTheoChaId(Long donviChaId) { try { DonViHanhChinhSoap[] result = null; java.util.List<org.oep.cmon.dao.qlhc.model.DonViHanhChinh> donViHanhChinhs = null; if (donviChaId == null) { donViHanhChinhs = DonViHanhChinhLocalServiceUtil.getDanhSachTinhThanh(); } else { donViHanhChinhs = DonViHanhChinhLocalServiceUtil.findByChaId(donviChaId, Constants.ACTIVATED); } if (donViHanhChinhs != null && donViHanhChinhs.size() > 0) { result = DonViHanhChinhSoap.toSoapModels(donViHanhChinhs); } return result; } catch (Exception e) { // TODO: handle exception } return null; }
public DonViHanhChinhSoap[] getDSDVHCTheoCapDVHCId(Long capDVHCId) { try { List<DonViHanhChinh> dList = DonViHanhChinhLocalServiceUtil.getDSDonViHanhChinhTheoCapId( capDVHCId, Constants.ACTIVATED); if (dList != null) { return DonViHanhChinhSoap.toSoapModels(dList); } } catch (Exception e) { // TODO: handle exception } return null; }
@Override public DonViHanhChinhSoap getDonViHanhChinhTheoId(Long donviId) { try { DonViHanhChinh donViHanhChinh = DonViHanhChinhLocalServiceUtil.fetchDonViHanhChinh(donviId); DonViHanhChinhSoap donViHanhChinhSoap = null; if (donViHanhChinh != null) { donViHanhChinhSoap = DonViHanhChinhSoap.toSoapModel(donViHanhChinh); } return donViHanhChinhSoap; } catch (Exception e) { // TODO: handle exception e.printStackTrace(); } return null; }