|
|
@ -100,6 +100,10 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl { |
|
|
|
public FineLavori addFineLavori(long intPraticaId, ServiceContext serviceContext) throws PortalException, |
|
|
|
public FineLavori addFineLavori(long intPraticaId, ServiceContext serviceContext) throws PortalException, |
|
|
|
SystemException { |
|
|
|
SystemException { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(Validator.isNotNull(getLastEditable(intPraticaId))){ |
|
|
|
|
|
|
|
throw new PortalException("A Fine Lavori to be completed already exists"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); |
|
|
|
IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); |
|
|
|
FineLavori fineLavori = initFineLavori(serviceContext); |
|
|
|
FineLavori fineLavori = initFineLavori(serviceContext); |
|
|
|
fineLavori.setGroupId(intPratica.getGroupId()); |
|
|
|
fineLavori.setGroupId(intPratica.getGroupId()); |
|
|
@ -113,6 +117,10 @@ public class FineLavoriLocalServiceImpl extends FineLavoriLocalServiceBaseImpl { |
|
|
|
public FineLavori addFineLavori(long intPraticaId, boolean richiestaAttestazione, boolean normEsenteCollaudo, |
|
|
|
public FineLavori addFineLavori(long intPraticaId, boolean richiestaAttestazione, boolean normEsenteCollaudo, |
|
|
|
ServiceContext serviceContext) throws PortalException, SystemException { |
|
|
|
ServiceContext serviceContext) throws PortalException, SystemException { |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if(Validator.isNotNull(getLastEditable(intPraticaId))){ |
|
|
|
|
|
|
|
throw new PortalException("A Fine Lavori to be completed already exists"); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); |
|
|
|
IntPratica intPratica = intPraticaLocalService.getIntPratica(intPraticaId); |
|
|
|
FineLavori fineLavori = initFineLavori(serviceContext); |
|
|
|
FineLavori fineLavori = initFineLavori(serviceContext); |
|
|
|
fineLavori.setGroupId(intPratica.getGroupId()); |
|
|
|
fineLavori.setGroupId(intPratica.getGroupId()); |
|
|
|