|
|
@ -41,6 +41,7 @@ import it.tref.liferay.portos.bo.shared.bean.FirmeBean; |
|
|
|
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; |
|
|
|
import it.tref.liferay.portos.bo.shared.util.ConfigurazioneConstants; |
|
|
|
import it.tref.liferay.portos.bo.shared.util.FirmeUtil; |
|
|
|
import it.tref.liferay.portos.bo.shared.util.FirmeUtil; |
|
|
|
import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; |
|
|
|
import it.tref.liferay.portos.bo.shared.util.StatoPraticaConstants; |
|
|
|
|
|
|
|
import it.tref.liferay.portos.bo.shared.util.UnitaOperativeUtil; |
|
|
|
import it.tref.liferay.portos.bo.util.AvvisoUtil; |
|
|
|
import it.tref.liferay.portos.bo.util.AvvisoUtil; |
|
|
|
import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; |
|
|
|
import it.tref.liferay.portos.bo.util.AzioniPraticheUtil; |
|
|
|
import it.tref.liferay.portos.bo.util.Constants; |
|
|
|
import it.tref.liferay.portos.bo.util.Constants; |
|
|
@ -714,11 +715,17 @@ public class IntPraticaLocalServiceImpl extends IntPraticaLocalServiceBaseImpl { |
|
|
|
public void cambiaIstruttore(long intPraticaId, long controlloPraticaId, long istruttoreId) throws PortalException, |
|
|
|
public void cambiaIstruttore(long intPraticaId, long controlloPraticaId, long istruttoreId) throws PortalException, |
|
|
|
SystemException { |
|
|
|
SystemException { |
|
|
|
|
|
|
|
|
|
|
|
userLocalService.getUser(istruttoreId); |
|
|
|
User istruttore = userLocalService.getUser(istruttoreId); |
|
|
|
ControlloPratica controlloPratica = controlloPraticaLocalService.getControlloPratica(controlloPraticaId); |
|
|
|
ControlloPratica controlloPratica = controlloPraticaLocalService.getControlloPratica(controlloPraticaId); |
|
|
|
IntPratica intPratica = getIntPratica(intPraticaId); |
|
|
|
IntPratica intPratica = getIntPratica(intPraticaId); |
|
|
|
intPratica.setStatusByUserId(istruttoreId); |
|
|
|
intPratica.setStatusByUserId(istruttoreId); |
|
|
|
intPratica.setStatusDate(new Date()); |
|
|
|
intPratica.setStatusDate(new Date()); |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
List<Integer> uo = UnitaOperativeUtil.getUnitaOperative(istruttore); |
|
|
|
|
|
|
|
if(Validator.isNotNull(uo)){ |
|
|
|
|
|
|
|
intPratica.setUnitaOperativa(uo.get(0)); |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
intPratica = updateIntPratica(intPratica); |
|
|
|
intPratica = updateIntPratica(intPratica); |
|
|
|
DettPratica dettPratica = dettPraticaLocalService.getLastCompletedByIntPratica(intPraticaId); |
|
|
|
DettPratica dettPratica = dettPraticaLocalService.getLastCompletedByIntPratica(intPraticaId); |
|
|
|
User user = PermissionThreadLocal.getPermissionChecker().getUser(); |
|
|
|
User user = PermissionThreadLocal.getPermissionChecker().getUser(); |
|
|
|