|
|
|
@ -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.FirmeUtil; |
|
|
|
|
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.AzioniPraticheUtil; |
|
|
|
|
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, |
|
|
|
|
SystemException { |
|
|
|
|
|
|
|
|
|
userLocalService.getUser(istruttoreId); |
|
|
|
|
User istruttore = userLocalService.getUser(istruttoreId); |
|
|
|
|
ControlloPratica controlloPratica = controlloPraticaLocalService.getControlloPratica(controlloPraticaId); |
|
|
|
|
IntPratica intPratica = getIntPratica(intPraticaId); |
|
|
|
|
intPratica.setStatusByUserId(istruttoreId); |
|
|
|
|
intPratica.setStatusDate(new Date()); |
|
|
|
|
|
|
|
|
|
List<Integer> uo = UnitaOperativeUtil.getUnitaOperative(istruttore); |
|
|
|
|
if(Validator.isNotNull(uo)){ |
|
|
|
|
intPratica.setUnitaOperativa(uo.get(0)); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
intPratica = updateIntPratica(intPratica); |
|
|
|
|
DettPratica dettPratica = dettPraticaLocalService.getLastCompletedByIntPratica(intPraticaId); |
|
|
|
|
User user = PermissionThreadLocal.getPermissionChecker().getUser(); |
|
|
|
|