Sfoglia il codice sorgente

- creazione nuova colonna praticaOspedaliera per tabella Comuni

- CRUD praticaOspedaliera per tabella Comuni
- edit DynamiSelect per Comuni e Pratica Ospedaliera
feature/fix_soggetti
marcoalderighi 2 anni fa
parent
commit
d9023c3d48
  1. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  2. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml
  3. 48
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneClp.java
  4. 21
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneModel.java
  5. 14
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneSoap.java
  6. 37
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneWrapper.java
  7. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalService.java
  8. 90
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceClp.java
  9. 21
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceUtil.java
  10. 22
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceWrapper.java
  11. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalService.java
  12. 92
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceClp.java
  13. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceUtil.java
  14. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceWrapper.java
  15. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql
  16. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml
  17. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml
  18. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml
  19. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ZoneSismicheUtil.java
  20. 10
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneCacheModel.java
  21. 43
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneModelImpl.java
  22. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AmministrazionePortlet.java
  23. 61
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceClpInvoker.java
  24. 93
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceClpInvoker.java
  25. 20
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneLocalServiceImpl.java
  26. 14
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioLocalServiceImpl.java
  27. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java
  28. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  29. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/edit.jsp
  30. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/view.jsp
  31. BIN
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  32. 14
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java
  33. 7
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar

File binario non mostrato.

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml

@ -57,6 +57,7 @@
<column name="disabilitato" type="boolean" />
<column name="mailSuap" type="String" />
<column name="mailSue" type="String" />
<column name="praticaOspedali" type="boolean" />
<!-- Order -->
<order by="asc">
<order-column name="denominazione" />

48
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneClp.java

@ -92,6 +92,7 @@ public class ComuneClp extends BaseModelImpl<Comune> implements Comune {
attributes.put("disabilitato", getDisabilitato());
attributes.put("mailSuap", getMailSuap());
attributes.put("mailSue", getMailSue());
attributes.put("praticaOspedali", getPraticaOspedali());
return attributes;
}
@ -199,6 +200,12 @@ public class ComuneClp extends BaseModelImpl<Comune> implements Comune {
if (mailSue != null) {
setMailSue(mailSue);
}
Boolean praticaOspedali = (Boolean)attributes.get("praticaOspedali");
if (praticaOspedali != null) {
setPraticaOspedali(praticaOspedali);
}
}
@Override
@ -619,6 +626,35 @@ public class ComuneClp extends BaseModelImpl<Comune> implements Comune {
}
}
@Override
public boolean getPraticaOspedali() {
return _praticaOspedali;
}
@Override
public boolean isPraticaOspedali() {
return _praticaOspedali;
}
@Override
public void setPraticaOspedali(boolean praticaOspedali) {
_praticaOspedali = praticaOspedali;
if (_comuneRemoteModel != null) {
try {
Class<?> clazz = _comuneRemoteModel.getClass();
Method method = clazz.getMethod("setPraticaOspedali",
boolean.class);
method.invoke(_comuneRemoteModel, praticaOspedali);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override
public StagedModelType getStagedModelType() {
return new StagedModelType(PortalUtil.getClassNameId(
@ -711,6 +747,7 @@ public class ComuneClp extends BaseModelImpl<Comune> implements Comune {
clone.setDisabilitato(getDisabilitato());
clone.setMailSuap(getMailSuap());
clone.setMailSue(getMailSue());
clone.setPraticaOspedali(getPraticaOspedali());
return clone;
}
@ -761,7 +798,7 @@ public class ComuneClp extends BaseModelImpl<Comune> implements Comune {
@Override
public String toString() {
StringBundler sb = new StringBundler(35);
StringBundler sb = new StringBundler(37);
sb.append("{uuid=");
sb.append(getUuid());
@ -797,6 +834,8 @@ public class ComuneClp extends BaseModelImpl<Comune> implements Comune {
sb.append(getMailSuap());
sb.append(", mailSue=");
sb.append(getMailSue());
sb.append(", praticaOspedali=");
sb.append(getPraticaOspedali());
sb.append("}");
return sb.toString();
@ -804,7 +843,7 @@ public class ComuneClp extends BaseModelImpl<Comune> implements Comune {
@Override
public String toXmlString() {
StringBundler sb = new StringBundler(55);
StringBundler sb = new StringBundler(58);
sb.append("<model><model-name>");
sb.append("it.tref.liferay.portos.bo.model.Comune");
@ -878,6 +917,10 @@ public class ComuneClp extends BaseModelImpl<Comune> implements Comune {
"<column><column-name>mailSue</column-name><column-value><![CDATA[");
sb.append(getMailSue());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>praticaOspedali</column-name><column-value><![CDATA[");
sb.append(getPraticaOspedali());
sb.append("]]></column-value></column>");
sb.append("</model>");
@ -902,6 +945,7 @@ public class ComuneClp extends BaseModelImpl<Comune> implements Comune {
private boolean _disabilitato;
private String _mailSuap;
private String _mailSue;
private boolean _praticaOspedali;
private BaseModel<?> _comuneRemoteModel;
private Class<?> _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class;
}

21
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneModel.java

@ -358,6 +358,27 @@ public interface ComuneModel extends BaseModel<Comune>, StagedAuditedModel {
*/
public void setMailSue(String mailSue);
/**
* Returns the pratica ospedali of this comune.
*
* @return the pratica ospedali of this comune
*/
public boolean getPraticaOspedali();
/**
* Returns <code>true</code> if this comune is pratica ospedali.
*
* @return <code>true</code> if this comune is pratica ospedali; <code>false</code> otherwise
*/
public boolean isPraticaOspedali();
/**
* Sets whether this comune is pratica ospedali.
*
* @param praticaOspedali the pratica ospedali of this comune
*/
public void setPraticaOspedali(boolean praticaOspedali);
@Override
public boolean isNew();

14
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneSoap.java

@ -48,6 +48,7 @@ public class ComuneSoap implements Serializable {
soapModel.setDisabilitato(model.getDisabilitato());
soapModel.setMailSuap(model.getMailSuap());
soapModel.setMailSue(model.getMailSue());
soapModel.setPraticaOspedali(model.getPraticaOspedali());
return soapModel;
}
@ -248,6 +249,18 @@ public class ComuneSoap implements Serializable {
_mailSue = mailSue;
}
public boolean getPraticaOspedali() {
return _praticaOspedali;
}
public boolean isPraticaOspedali() {
return _praticaOspedali;
}
public void setPraticaOspedali(boolean praticaOspedali) {
_praticaOspedali = praticaOspedali;
}
private String _uuid;
private long _comuneId;
private long _companyId;
@ -265,4 +278,5 @@ public class ComuneSoap implements Serializable {
private boolean _disabilitato;
private String _mailSuap;
private String _mailSue;
private boolean _praticaOspedali;
}

37
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/ComuneWrapper.java

@ -67,6 +67,7 @@ public class ComuneWrapper implements Comune, ModelWrapper<Comune> {
attributes.put("disabilitato", getDisabilitato());
attributes.put("mailSuap", getMailSuap());
attributes.put("mailSue", getMailSue());
attributes.put("praticaOspedali", getPraticaOspedali());
return attributes;
}
@ -174,6 +175,12 @@ public class ComuneWrapper implements Comune, ModelWrapper<Comune> {
if (mailSue != null) {
setMailSue(mailSue);
}
Boolean praticaOspedali = (Boolean)attributes.get("praticaOspedali");
if (praticaOspedali != null) {
setPraticaOspedali(praticaOspedali);
}
}
/**
@ -588,6 +595,36 @@ public class ComuneWrapper implements Comune, ModelWrapper<Comune> {
_comune.setMailSue(mailSue);
}
/**
* Returns the pratica ospedali of this comune.
*
* @return the pratica ospedali of this comune
*/
@Override
public boolean getPraticaOspedali() {
return _comune.getPraticaOspedali();
}
/**
* Returns <code>true</code> if this comune is pratica ospedali.
*
* @return <code>true</code> if this comune is pratica ospedali; <code>false</code> otherwise
*/
@Override
public boolean isPraticaOspedali() {
return _comune.isPraticaOspedali();
}
/**
* Sets whether this comune is pratica ospedali.
*
* @param praticaOspedali the pratica ospedali of this comune
*/
@Override
public void setPraticaOspedali(boolean praticaOspedali) {
_comune.setPraticaOspedali(praticaOspedali);
}
@Override
public boolean isNew() {
return _comune.isNew();

8
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalService.java

@ -283,6 +283,7 @@ public interface ComuneLocalService extends BaseLocalService,
java.lang.String codiceIstat, java.lang.String codiceBelfiore,
java.lang.String denominazione, boolean provincia, boolean stato,
java.lang.String mailSuap, java.lang.String mailSue,
boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
@ -292,6 +293,7 @@ public interface ComuneLocalService extends BaseLocalService,
java.lang.String codiceIstat, java.lang.String codiceBelfiore,
java.lang.String denominazione, boolean provincia,
java.lang.String mailSuap, java.lang.String mailSue,
boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
@ -355,11 +357,16 @@ public interface ComuneLocalService extends BaseLocalService,
long companyId)
throws com.liferay.portal.kernel.exception.SystemException;
public it.tref.liferay.portos.bo.model.Comune setPraticaOspedaliera(
long comuneId, boolean isPraticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext);
public it.tref.liferay.portos.bo.model.Comune updateComune(long userId,
long comuneId, java.lang.String codiceProvincia,
java.lang.String codiceComune, java.lang.String codiceIstat,
java.lang.String denominazione, boolean provincia, boolean stato,
java.lang.String mailSuap, java.lang.String mailSue,
boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
@ -369,6 +376,7 @@ public interface ComuneLocalService extends BaseLocalService,
java.lang.String codiceComune, java.lang.String codiceIstat,
java.lang.String denominazione, boolean provincia,
java.lang.String mailSuap, java.lang.String mailSue,
boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;

90
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceClp.java

@ -128,7 +128,7 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
"long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "java.lang.String",
"boolean", "boolean", "java.lang.String", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
"boolean", "com.liferay.portal.service.ServiceContext"
};
_methodName22 = "addComune";
@ -136,7 +136,7 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
_methodParameterTypes22 = new String[] {
"long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "java.lang.String",
"boolean", "java.lang.String", "java.lang.String",
"boolean", "java.lang.String", "java.lang.String", "boolean",
"com.liferay.portal.service.ServiceContext"
};
@ -205,31 +205,37 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
_methodParameterTypes36 = new String[] { "long" };
_methodName37 = "updateComune";
_methodName37 = "setPraticaOspedaliera";
_methodParameterTypes37 = new String[] {
"long", "boolean", "com.liferay.portal.service.ServiceContext"
};
_methodName38 = "updateComune";
_methodParameterTypes38 = new String[] {
"long", "long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "boolean", "boolean",
"java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "boolean",
"com.liferay.portal.service.ServiceContext"
};
_methodName38 = "updateComune";
_methodName39 = "updateComune";
_methodParameterTypes38 = new String[] {
_methodParameterTypes39 = new String[] {
"long", "long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "boolean",
"java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "boolean",
"com.liferay.portal.service.ServiceContext"
};
_methodName39 = "getComuniForOrganizationByUserId";
_methodName40 = "getComuniForOrganizationByUserId";
_methodParameterTypes39 = new String[] { "long" };
_methodParameterTypes40 = new String[] { "long" };
_methodName40 = "getComuniForOrganizationByUserIdUfficioId";
_methodName41 = "getComuniForOrganizationByUserIdUfficioId";
_methodParameterTypes40 = new String[] { "long", "long" };
_methodParameterTypes41 = new String[] { "long", "long" };
}
@Override
@ -849,6 +855,7 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
java.lang.String codiceIstat, java.lang.String codiceBelfiore,
java.lang.String denominazione, boolean provincia, boolean stato,
java.lang.String mailSuap, java.lang.String mailSue,
boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
@ -878,6 +885,8 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
ClpSerializer.translateInput(mailSue),
praticaOspedaliera,
ClpSerializer.translateInput(serviceContext)
});
}
@ -910,6 +919,7 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
java.lang.String codiceIstat, java.lang.String codiceBelfiore,
java.lang.String denominazione, boolean provincia,
java.lang.String mailSuap, java.lang.String mailSue,
boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
@ -937,6 +947,8 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
ClpSerializer.translateInput(mailSue),
praticaOspedaliera,
ClpSerializer.translateInput(serviceContext)
});
}
@ -1427,20 +1439,53 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
return (java.util.List<it.tref.liferay.portos.bo.model.Comune>)ClpSerializer.translateOutput(returnObj);
}
@Override
public it.tref.liferay.portos.bo.model.Comune setPraticaOspedaliera(
long comuneId, boolean isPraticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext) {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName37,
_methodParameterTypes37,
new Object[] {
comuneId,
isPraticaOspedaliera,
ClpSerializer.translateInput(serviceContext)
});
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (it.tref.liferay.portos.bo.model.Comune)ClpSerializer.translateOutput(returnObj);
}
@Override
public it.tref.liferay.portos.bo.model.Comune updateComune(long userId,
long comuneId, java.lang.String codiceProvincia,
java.lang.String codiceComune, java.lang.String codiceIstat,
java.lang.String denominazione, boolean provincia, boolean stato,
java.lang.String mailSuap, java.lang.String mailSue,
boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName37,
_methodParameterTypes37,
returnObj = _invokableLocalService.invokeMethod(_methodName38,
_methodParameterTypes38,
new Object[] {
userId,
@ -1462,6 +1507,8 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
ClpSerializer.translateInput(mailSue),
praticaOspedaliera,
ClpSerializer.translateInput(serviceContext)
});
}
@ -1494,14 +1541,15 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
java.lang.String codiceComune, java.lang.String codiceIstat,
java.lang.String denominazione, boolean provincia,
java.lang.String mailSuap, java.lang.String mailSue,
boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName38,
_methodParameterTypes38,
returnObj = _invokableLocalService.invokeMethod(_methodName39,
_methodParameterTypes39,
new Object[] {
userId,
@ -1521,6 +1569,8 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
ClpSerializer.translateInput(mailSue),
praticaOspedaliera,
ClpSerializer.translateInput(serviceContext)
});
}
@ -1553,8 +1603,8 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName39,
_methodParameterTypes39, new Object[] { userId });
returnObj = _invokableLocalService.invokeMethod(_methodName40,
_methodParameterTypes40, new Object[] { userId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -1582,8 +1632,8 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName40,
_methodParameterTypes40, new Object[] { userId, ufficioId });
returnObj = _invokableLocalService.invokeMethod(_methodName41,
_methodParameterTypes41, new Object[] { userId, ufficioId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -1685,4 +1735,6 @@ public class ComuneLocalServiceClp implements ComuneLocalService {
private String[] _methodParameterTypes39;
private String _methodName40;
private String[] _methodParameterTypes40;
private String _methodName41;
private String[] _methodParameterTypes41;
}

21
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceUtil.java

@ -310,14 +310,14 @@ public class ComuneLocalServiceUtil {
java.lang.String codiceComune, java.lang.String codiceIstat,
java.lang.String codiceBelfiore, java.lang.String denominazione,
boolean provincia, boolean stato, java.lang.String mailSuap,
java.lang.String mailSue,
java.lang.String mailSue, boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.addComune(userId, codiceProvincia, codiceComune,
codiceIstat, codiceBelfiore, denominazione, provincia, stato,
mailSuap, mailSue, serviceContext);
mailSuap, mailSue, praticaOspedaliera, serviceContext);
}
public static it.tref.liferay.portos.bo.model.Comune addComune(
@ -325,13 +325,14 @@ public class ComuneLocalServiceUtil {
java.lang.String codiceComune, java.lang.String codiceIstat,
java.lang.String codiceBelfiore, java.lang.String denominazione,
boolean provincia, java.lang.String mailSuap, java.lang.String mailSue,
boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.addComune(userId, codiceProvincia, codiceComune,
codiceIstat, codiceBelfiore, denominazione, provincia, mailSuap,
mailSue, serviceContext);
mailSue, praticaOspedaliera, serviceContext);
}
public static int countByCompanyId(long companyId)
@ -424,18 +425,27 @@ public class ComuneLocalServiceUtil {
return getService().getStatiEsteri(companyId);
}
public static it.tref.liferay.portos.bo.model.Comune setPraticaOspedaliera(
long comuneId, boolean isPraticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext) {
return getService()
.setPraticaOspedaliera(comuneId, isPraticaOspedaliera,
serviceContext);
}
public static it.tref.liferay.portos.bo.model.Comune updateComune(
long userId, long comuneId, java.lang.String codiceProvincia,
java.lang.String codiceComune, java.lang.String codiceIstat,
java.lang.String denominazione, boolean provincia, boolean stato,
java.lang.String mailSuap, java.lang.String mailSue,
boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.updateComune(userId, comuneId, codiceProvincia,
codiceComune, codiceIstat, denominazione, provincia, stato,
mailSuap, mailSue, serviceContext);
mailSuap, mailSue, praticaOspedaliera, serviceContext);
}
public static it.tref.liferay.portos.bo.model.Comune updateComune(
@ -443,13 +453,14 @@ public class ComuneLocalServiceUtil {
java.lang.String codiceComune, java.lang.String codiceIstat,
java.lang.String denominazione, boolean provincia,
java.lang.String mailSuap, java.lang.String mailSue,
boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.updateComune(userId, comuneId, codiceProvincia,
codiceComune, codiceIstat, denominazione, provincia, mailSuap,
mailSue, serviceContext);
mailSue, praticaOspedaliera, serviceContext);
}
public static java.util.List<it.tref.liferay.portos.bo.model.Comune> getComuniForOrganizationByUserId(

22
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/ComuneLocalServiceWrapper.java

@ -318,12 +318,14 @@ public class ComuneLocalServiceWrapper implements ComuneLocalService,
java.lang.String codiceIstat, java.lang.String codiceBelfiore,
java.lang.String denominazione, boolean provincia, boolean stato,
java.lang.String mailSuap, java.lang.String mailSue,
boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _comuneLocalService.addComune(userId, codiceProvincia,
codiceComune, codiceIstat, codiceBelfiore, denominazione,
provincia, stato, mailSuap, mailSue, serviceContext);
provincia, stato, mailSuap, mailSue, praticaOspedaliera,
serviceContext);
}
@Override
@ -332,12 +334,13 @@ public class ComuneLocalServiceWrapper implements ComuneLocalService,
java.lang.String codiceIstat, java.lang.String codiceBelfiore,
java.lang.String denominazione, boolean provincia,
java.lang.String mailSuap, java.lang.String mailSue,
boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _comuneLocalService.addComune(userId, codiceProvincia,
codiceComune, codiceIstat, codiceBelfiore, denominazione,
provincia, mailSuap, mailSue, serviceContext);
provincia, mailSuap, mailSue, praticaOspedaliera, serviceContext);
}
@Override
@ -443,18 +446,28 @@ public class ComuneLocalServiceWrapper implements ComuneLocalService,
return _comuneLocalService.getStatiEsteri(companyId);
}
@Override
public it.tref.liferay.portos.bo.model.Comune setPraticaOspedaliera(
long comuneId, boolean isPraticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext) {
return _comuneLocalService.setPraticaOspedaliera(comuneId,
isPraticaOspedaliera, serviceContext);
}
@Override
public it.tref.liferay.portos.bo.model.Comune updateComune(long userId,
long comuneId, java.lang.String codiceProvincia,
java.lang.String codiceComune, java.lang.String codiceIstat,
java.lang.String denominazione, boolean provincia, boolean stato,
java.lang.String mailSuap, java.lang.String mailSue,
boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _comuneLocalService.updateComune(userId, comuneId,
codiceProvincia, codiceComune, codiceIstat, denominazione,
provincia, stato, mailSuap, mailSue, serviceContext);
provincia, stato, mailSuap, mailSue, praticaOspedaliera,
serviceContext);
}
@Override
@ -463,12 +476,13 @@ public class ComuneLocalServiceWrapper implements ComuneLocalService,
java.lang.String codiceComune, java.lang.String codiceIstat,
java.lang.String denominazione, boolean provincia,
java.lang.String mailSuap, java.lang.String mailSue,
boolean praticaOspedaliera,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _comuneLocalService.updateComune(userId, comuneId,
codiceProvincia, codiceComune, codiceIstat, denominazione,
provincia, mailSuap, mailSue, serviceContext);
provincia, mailSuap, mailSue, praticaOspedaliera, serviceContext);
}
@Override

5
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalService.java

@ -297,6 +297,11 @@ public interface TerritorioLocalService extends BaseLocalService,
java.lang.String codiceProvincia)
throws com.liferay.portal.kernel.exception.SystemException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List<java.lang.Long> getActiveComuniByCodiceProvincia_Ospedaliera(
java.lang.String codiceProvincia)
throws com.liferay.portal.kernel.exception.SystemException;
@Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
public java.util.List<it.tref.liferay.portos.bo.model.Territorio> getActiveTerritoriByComune(
long comuneId)

92
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceClp.java

@ -157,38 +157,42 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService {
_methodParameterTypes26 = new String[] { "java.lang.String" };
_methodName27 = "getActiveTerritoriByComune";
_methodName27 = "getActiveComuniByCodiceProvincia_Ospedaliera";
_methodParameterTypes27 = new String[] { "long" };
_methodParameterTypes27 = new String[] { "java.lang.String" };
_methodName28 = "findTerritorioByComuneIdGZonaFasciaDtIni";
_methodName28 = "getActiveTerritoriByComune";
_methodParameterTypes28 = new String[] {
_methodParameterTypes28 = new String[] { "long" };
_methodName29 = "findTerritorioByComuneIdGZonaFasciaDtIni";
_methodParameterTypes29 = new String[] {
"long", "long", "java.lang.String", "java.lang.String",
"java.util.Date"
};
_methodName29 = "fetchByOldTerriotioId";
_methodName30 = "fetchByOldTerriotioId";
_methodParameterTypes29 = new String[] { "long" };
_methodParameterTypes30 = new String[] { "long" };
_methodName30 = "getTerritoriByGroupAndZona";
_methodName31 = "getTerritoriByGroupAndZona";
_methodParameterTypes30 = new String[] { "long", "java.lang.String" };
_methodParameterTypes31 = new String[] { "long", "java.lang.String" };
_methodName31 = "getTerritoriByGroupAndZonaAndFascia";
_methodName32 = "getTerritoriByGroupAndZonaAndFascia";
_methodParameterTypes31 = new String[] {
_methodParameterTypes32 = new String[] {
"long", "java.lang.String", "java.lang.String"
};
_methodName32 = "getAllTerritorioGroup";
_methodName33 = "getAllTerritorioGroup";
_methodParameterTypes32 = new String[] { };
_methodParameterTypes33 = new String[] { };
_methodName33 = "verifyTerritorioConstraintAlreadyExist";
_methodName34 = "verifyTerritorioConstraintAlreadyExist";
_methodParameterTypes33 = new String[] {
_methodParameterTypes34 = new String[] {
"long", "long", "java.lang.String", "java.lang.String",
"java.util.Date"
};
@ -1045,6 +1049,36 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService {
return (java.util.List<java.lang.Long>)ClpSerializer.translateOutput(returnObj);
}
@Override
public java.util.List<java.lang.Long> getActiveComuniByCodiceProvincia_Ospedaliera(
java.lang.String codiceProvincia)
throws com.liferay.portal.kernel.exception.SystemException {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName27,
_methodParameterTypes27,
new Object[] { ClpSerializer.translateInput(codiceProvincia) });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.SystemException) {
throw (com.liferay.portal.kernel.exception.SystemException)t;
}
if (t instanceof RuntimeException) {
throw (RuntimeException)t;
}
else {
throw new RuntimeException(t.getClass().getName() +
" is not a valid exception");
}
}
return (java.util.List<java.lang.Long>)ClpSerializer.translateOutput(returnObj);
}
@Override
public java.util.List<it.tref.liferay.portos.bo.model.Territorio> getActiveTerritoriByComune(
long comuneId)
@ -1052,8 +1086,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName27,
_methodParameterTypes27, new Object[] { comuneId });
returnObj = _invokableLocalService.invokeMethod(_methodName28,
_methodParameterTypes28, new Object[] { comuneId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -1083,8 +1117,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName28,
_methodParameterTypes28,
returnObj = _invokableLocalService.invokeMethod(_methodName29,
_methodParameterTypes29,
new Object[] {
comuneId,
@ -1128,8 +1162,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName29,
_methodParameterTypes29, new Object[] { oldTerritorioId });
returnObj = _invokableLocalService.invokeMethod(_methodName30,
_methodParameterTypes30, new Object[] { oldTerritorioId });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -1161,8 +1195,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName30,
_methodParameterTypes30,
returnObj = _invokableLocalService.invokeMethod(_methodName31,
_methodParameterTypes31,
new Object[] { groupId, ClpSerializer.translateInput(zona) });
}
catch (Throwable t) {
@ -1191,8 +1225,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName31,
_methodParameterTypes31,
returnObj = _invokableLocalService.invokeMethod(_methodName32,
_methodParameterTypes32,
new Object[] {
groupId,
@ -1226,8 +1260,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName32,
_methodParameterTypes32, new Object[] { });
returnObj = _invokableLocalService.invokeMethod(_methodName33,
_methodParameterTypes33, new Object[] { });
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
@ -1256,8 +1290,8 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService {
Object returnObj = null;
try {
returnObj = _invokableLocalService.invokeMethod(_methodName33,
_methodParameterTypes33,
returnObj = _invokableLocalService.invokeMethod(_methodName34,
_methodParameterTypes34,
new Object[] {
comuneId,
@ -1356,4 +1390,6 @@ public class TerritorioLocalServiceClp implements TerritorioLocalService {
private String[] _methodParameterTypes32;
private String _methodName33;
private String[] _methodParameterTypes33;
private String _methodName34;
private String[] _methodParameterTypes34;
}

7
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceUtil.java

@ -337,6 +337,13 @@ public class TerritorioLocalServiceUtil {
return getService().getActiveComuniByCodiceProvincia(codiceProvincia);
}
public static java.util.List<java.lang.Long> getActiveComuniByCodiceProvincia_Ospedaliera(
java.lang.String codiceProvincia)
throws com.liferay.portal.kernel.exception.SystemException {
return getService()
.getActiveComuniByCodiceProvincia_Ospedaliera(codiceProvincia);
}
public static java.util.List<it.tref.liferay.portos.bo.model.Territorio> getActiveTerritoriByComune(
long comuneId)
throws com.liferay.portal.kernel.exception.SystemException {

7
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/TerritorioLocalServiceWrapper.java

@ -356,6 +356,13 @@ public class TerritorioLocalServiceWrapper implements TerritorioLocalService,
return _territorioLocalService.getActiveComuniByCodiceProvincia(codiceProvincia);
}
@Override
public java.util.List<java.lang.Long> getActiveComuniByCodiceProvincia_Ospedaliera(
java.lang.String codiceProvincia)
throws com.liferay.portal.kernel.exception.SystemException {
return _territorioLocalService.getActiveComuniByCodiceProvincia_Ospedaliera(codiceProvincia);
}
@Override
public java.util.List<it.tref.liferay.portos.bo.model.Territorio> getActiveTerritoriByComune(
long comuneId)

3
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql

@ -127,7 +127,8 @@ create table portos_bo_Comune (
stato BOOLEAN,
disabilitato BOOLEAN,
mailSuap VARCHAR(75) null,
mailSue VARCHAR(75) null
mailSue VARCHAR(75) null,
praticaOspedali BOOLEAN
);
create table portos_bo_Comunicazione (

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml

@ -167,6 +167,7 @@
<property name="disabilitato" type="com.liferay.portal.dao.orm.hibernate.BooleanType" />
<property name="mailSuap" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="mailSue" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="praticaOspedali" type="com.liferay.portal.dao.orm.hibernate.BooleanType" />
</class>
<class name="it.tref.liferay.portos.bo.model.impl.ComunicazioneImpl" table="portos_bo_Comunicazione">
<cache usage="read-write" />

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml

@ -147,6 +147,7 @@
<field name="disabilitato" type="boolean" />
<field name="mailSuap" type="String" />
<field name="mailSue" type="String" />
<field name="praticaOspedali" type="boolean" />
</model>
<model name="it.tref.liferay.portos.bo.model.Comunicazione">
<field name="uuid" type="String" />

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml

@ -210,6 +210,7 @@
<basic name="disabilitato" />
<basic name="mailSuap" />
<basic name="mailSue" />
<basic name="praticaOspedali" />
<transient name="modelAttributes" />
<transient name="primaryKey" />
<transient name="primaryKeyObj" />

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/util/ZoneSismicheUtil.java

@ -141,12 +141,12 @@ public class ZoneSismicheUtil {
private String aggiungiComune(long companyId, String denominazione, String codiceProvincia, String codiceComune,
String codiceIstat, String codiceBelfiore, boolean provincia, String mailSuap, String mailSue,
ServiceContext serviceContext) throws PortalException, SystemException {
boolean praticaOspedaliera, ServiceContext serviceContext) throws PortalException, SystemException {
Comune comune = ComuneLocalServiceUtil.fetchByC_CB(companyId, codiceBelfiore);
if (Validator.isNull(comune)) {
ComuneLocalServiceUtil.addComune(serviceContext.getUserId(), codiceProvincia, codiceComune, codiceIstat,
codiceBelfiore, denominazione, provincia, mailSuap, mailSue, serviceContext);
codiceBelfiore, denominazione, provincia, mailSuap, mailSue, praticaOspedaliera, serviceContext);
return "Aggiunto il comune \"" + denominazione + "\"";
}
return "Comune \"" + denominazione + "\" già presente";

10
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneCacheModel.java

@ -37,7 +37,7 @@ import java.util.Date;
public class ComuneCacheModel implements CacheModel<Comune>, Externalizable {
@Override
public String toString() {
StringBundler sb = new StringBundler(35);
StringBundler sb = new StringBundler(37);
sb.append("{uuid=");
sb.append(uuid);
@ -73,6 +73,8 @@ public class ComuneCacheModel implements CacheModel<Comune>, Externalizable {
sb.append(mailSuap);
sb.append(", mailSue=");
sb.append(mailSue);
sb.append(", praticaOspedali=");
sb.append(praticaOspedali);
sb.append("}");
return sb.toString();
@ -167,6 +169,8 @@ public class ComuneCacheModel implements CacheModel<Comune>, Externalizable {
comuneImpl.setMailSue(mailSue);
}
comuneImpl.setPraticaOspedali(praticaOspedali);
comuneImpl.resetOriginalValues();
return comuneImpl;
@ -191,6 +195,7 @@ public class ComuneCacheModel implements CacheModel<Comune>, Externalizable {
disabilitato = objectInput.readBoolean();
mailSuap = objectInput.readUTF();
mailSue = objectInput.readUTF();
praticaOspedali = objectInput.readBoolean();
}
@Override
@ -269,6 +274,8 @@ public class ComuneCacheModel implements CacheModel<Comune>, Externalizable {
else {
objectOutput.writeUTF(mailSue);
}
objectOutput.writeBoolean(praticaOspedali);
}
public String uuid;
@ -288,4 +295,5 @@ public class ComuneCacheModel implements CacheModel<Comune>, Externalizable {
public boolean disabilitato;
public String mailSuap;
public String mailSue;
public boolean praticaOspedali;
}

43
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/ComuneModelImpl.java

@ -83,9 +83,10 @@ public class ComuneModelImpl extends BaseModelImpl<Comune>
{ "stato", Types.BOOLEAN },
{ "disabilitato", Types.BOOLEAN },
{ "mailSuap", Types.VARCHAR },
{ "mailSue", Types.VARCHAR }
{ "mailSue", Types.VARCHAR },
{ "praticaOspedali", Types.BOOLEAN }
};
public static final String TABLE_SQL_CREATE = "create table portos_bo_Comune (uuid_ VARCHAR(75) null,comuneId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,codiceProvincia VARCHAR(75) null,codiceComune VARCHAR(75) null,codiceIstat VARCHAR(6) null,codiceBelfiore VARCHAR(75) null,denominazione VARCHAR(250) null,provincia BOOLEAN,stato BOOLEAN,disabilitato BOOLEAN,mailSuap VARCHAR(75) null,mailSue VARCHAR(75) null)";
public static final String TABLE_SQL_CREATE = "create table portos_bo_Comune (uuid_ VARCHAR(75) null,comuneId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,codiceProvincia VARCHAR(75) null,codiceComune VARCHAR(75) null,codiceIstat VARCHAR(6) null,codiceBelfiore VARCHAR(75) null,denominazione VARCHAR(250) null,provincia BOOLEAN,stato BOOLEAN,disabilitato BOOLEAN,mailSuap VARCHAR(75) null,mailSue VARCHAR(75) null,praticaOspedali BOOLEAN)";
public static final String TABLE_SQL_DROP = "drop table portos_bo_Comune";
public static final String ORDER_BY_JPQL = " ORDER BY comune.denominazione ASC";
public static final String ORDER_BY_SQL = " ORDER BY portos_bo_Comune.denominazione ASC";
@ -139,6 +140,7 @@ public class ComuneModelImpl extends BaseModelImpl<Comune>
model.setDisabilitato(soapModel.getDisabilitato());
model.setMailSuap(soapModel.getMailSuap());
model.setMailSue(soapModel.getMailSue());
model.setPraticaOspedali(soapModel.getPraticaOspedali());
return model;
}
@ -220,6 +222,7 @@ public class ComuneModelImpl extends BaseModelImpl<Comune>
attributes.put("disabilitato", getDisabilitato());
attributes.put("mailSuap", getMailSuap());
attributes.put("mailSue", getMailSue());
attributes.put("praticaOspedali", getPraticaOspedali());
return attributes;
}
@ -327,6 +330,12 @@ public class ComuneModelImpl extends BaseModelImpl<Comune>
if (mailSue != null) {
setMailSue(mailSue);
}
Boolean praticaOspedali = (Boolean)attributes.get("praticaOspedali");
if (praticaOspedali != null) {
setPraticaOspedali(praticaOspedali);
}
}
@JSON
@ -658,6 +667,22 @@ public class ComuneModelImpl extends BaseModelImpl<Comune>
_mailSue = mailSue;
}
@JSON
@Override
public boolean getPraticaOspedali() {
return _praticaOspedali;
}
@Override
public boolean isPraticaOspedali() {
return _praticaOspedali;
}
@Override
public void setPraticaOspedali(boolean praticaOspedali) {
_praticaOspedali = praticaOspedali;
}
@Override
public StagedModelType getStagedModelType() {
return new StagedModelType(PortalUtil.getClassNameId(
@ -712,6 +737,7 @@ public class ComuneModelImpl extends BaseModelImpl<Comune>
comuneImpl.setDisabilitato(getDisabilitato());
comuneImpl.setMailSuap(getMailSuap());
comuneImpl.setMailSue(getMailSue());
comuneImpl.setPraticaOspedali(getPraticaOspedali());
comuneImpl.resetOriginalValues();
@ -889,12 +915,14 @@ public class ComuneModelImpl extends BaseModelImpl<Comune>
comuneCacheModel.mailSue = null;
}
comuneCacheModel.praticaOspedali = getPraticaOspedali();
return comuneCacheModel;
}
@Override
public String toString() {
StringBundler sb = new StringBundler(35);
StringBundler sb = new StringBundler(37);
sb.append("{uuid=");
sb.append(getUuid());
@ -930,6 +958,8 @@ public class ComuneModelImpl extends BaseModelImpl<Comune>
sb.append(getMailSuap());
sb.append(", mailSue=");
sb.append(getMailSue());
sb.append(", praticaOspedali=");
sb.append(getPraticaOspedali());
sb.append("}");
return sb.toString();
@ -937,7 +967,7 @@ public class ComuneModelImpl extends BaseModelImpl<Comune>
@Override
public String toXmlString() {
StringBundler sb = new StringBundler(55);
StringBundler sb = new StringBundler(58);
sb.append("<model><model-name>");
sb.append("it.tref.liferay.portos.bo.model.Comune");
@ -1011,6 +1041,10 @@ public class ComuneModelImpl extends BaseModelImpl<Comune>
"<column><column-name>mailSue</column-name><column-value><![CDATA[");
sb.append(getMailSue());
sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>praticaOspedali</column-name><column-value><![CDATA[");
sb.append(getPraticaOspedali());
sb.append("]]></column-value></column>");
sb.append("</model>");
@ -1046,6 +1080,7 @@ public class ComuneModelImpl extends BaseModelImpl<Comune>
private boolean _disabilitato;
private String _mailSuap;
private String _mailSue;
private boolean _praticaOspedali;
private long _columnBitmask;
private Comune _escapedModel;
}

5
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/AmministrazionePortlet.java

@ -180,6 +180,7 @@ public class AmministrazionePortlet extends MVCPortlet {
String denominazione = ParamUtil.getString(actionRequest, "denominazione");
String mailSuap = ParamUtil.getString(actionRequest, "mailSuap");
String mailSue = ParamUtil.getString(actionRequest, "mailSue");
boolean praticaOspedaliera = ParamUtil.getBoolean(actionRequest, "praticaOspedaliera");
boolean provincia = ParamUtil.getBoolean(actionRequest, "provincia");
ServiceContext serviceContext = ServiceContextFactory.getInstance(Comune.class.getName(), actionRequest);
long userId = PortalUtil.getUserId(actionRequest);
@ -188,10 +189,10 @@ public class AmministrazionePortlet extends MVCPortlet {
if (comuneId == 0) { // ADD
codiceComune = codiceIstat.substring(0, 3);
comune = ComuneLocalServiceUtil.addComune(userId, codiceProvincia, codiceComune, codiceIstat,
codiceBelfiore, denominazione, provincia, mailSuap, mailSue, serviceContext);
codiceBelfiore, denominazione, provincia, mailSuap, mailSue, praticaOspedaliera, serviceContext);
} else { // EDIT
ComuneLocalServiceUtil.updateComune(userId, comuneId, codiceProvincia, codiceComune, codiceIstat,
denominazione, provincia, mailSuap, mailSue, serviceContext);
denominazione, provincia, mailSuap, mailSue, praticaOspedaliera, serviceContext);
}
String redirect = ParamUtil.getString(actionRequest, "redirect");
if (Validator.isNull(redirect)) {

61
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/ComuneLocalServiceClpInvoker.java

@ -128,7 +128,7 @@ public class ComuneLocalServiceClpInvoker {
"long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "java.lang.String",
"boolean", "boolean", "java.lang.String", "java.lang.String",
"com.liferay.portal.service.ServiceContext"
"boolean", "com.liferay.portal.service.ServiceContext"
};
_methodName187 = "addComune";
@ -136,7 +136,7 @@ public class ComuneLocalServiceClpInvoker {
_methodParameterTypes187 = new String[] {
"long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "java.lang.String",
"boolean", "java.lang.String", "java.lang.String",
"boolean", "java.lang.String", "java.lang.String", "boolean",
"com.liferay.portal.service.ServiceContext"
};
@ -215,31 +215,37 @@ public class ComuneLocalServiceClpInvoker {
_methodParameterTypes203 = new String[] { "long" };
_methodName204 = "updateComune";
_methodName204 = "setPraticaOspedaliera";
_methodParameterTypes204 = new String[] {
"long", "boolean", "com.liferay.portal.service.ServiceContext"
};
_methodName205 = "updateComune";
_methodParameterTypes205 = new String[] {
"long", "long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "boolean", "boolean",
"java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "boolean",
"com.liferay.portal.service.ServiceContext"
};
_methodName205 = "updateComune";
_methodName206 = "updateComune";
_methodParameterTypes205 = new String[] {
_methodParameterTypes206 = new String[] {
"long", "long", "java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "boolean",
"java.lang.String", "java.lang.String",
"java.lang.String", "java.lang.String", "boolean",
"com.liferay.portal.service.ServiceContext"
};
_methodName206 = "getComuniForOrganizationByUserId";
_methodName207 = "getComuniForOrganizationByUserId";
_methodParameterTypes206 = new String[] { "long" };
_methodParameterTypes207 = new String[] { "long" };
_methodName207 = "getComuniForOrganizationByUserIdUfficioId";
_methodName208 = "getComuniForOrganizationByUserIdUfficioId";
_methodParameterTypes207 = new String[] { "long", "long" };
_methodParameterTypes208 = new String[] { "long", "long" };
}
public Object invokeMethod(String name, String[] parameterTypes,
@ -364,7 +370,8 @@ public class ComuneLocalServiceClpInvoker {
((Boolean)arguments[6]).booleanValue(),
((Boolean)arguments[7]).booleanValue(),
(java.lang.String)arguments[8], (java.lang.String)arguments[9],
(com.liferay.portal.service.ServiceContext)arguments[10]);
((Boolean)arguments[10]).booleanValue(),
(com.liferay.portal.service.ServiceContext)arguments[11]);
}
if (_methodName187.equals(name) &&
@ -375,7 +382,8 @@ public class ComuneLocalServiceClpInvoker {
(java.lang.String)arguments[5],
((Boolean)arguments[6]).booleanValue(),
(java.lang.String)arguments[7], (java.lang.String)arguments[8],
(com.liferay.portal.service.ServiceContext)arguments[9]);
((Boolean)arguments[9]).booleanValue(),
(com.liferay.portal.service.ServiceContext)arguments[10]);
}
if (_methodName188.equals(name) &&
@ -481,6 +489,13 @@ public class ComuneLocalServiceClpInvoker {
if (_methodName204.equals(name) &&
Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) {
return ComuneLocalServiceUtil.setPraticaOspedaliera(((Long)arguments[0]).longValue(),
((Boolean)arguments[1]).booleanValue(),
(com.liferay.portal.service.ServiceContext)arguments[2]);
}
if (_methodName205.equals(name) &&
Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) {
return ComuneLocalServiceUtil.updateComune(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
(java.lang.String)arguments[2], (java.lang.String)arguments[3],
@ -488,27 +503,29 @@ public class ComuneLocalServiceClpInvoker {
((Boolean)arguments[6]).booleanValue(),
((Boolean)arguments[7]).booleanValue(),
(java.lang.String)arguments[8], (java.lang.String)arguments[9],
(com.liferay.portal.service.ServiceContext)arguments[10]);
((Boolean)arguments[10]).booleanValue(),
(com.liferay.portal.service.ServiceContext)arguments[11]);
}
if (_methodName205.equals(name) &&
Arrays.deepEquals(_methodParameterTypes205, parameterTypes)) {
if (_methodName206.equals(name) &&
Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) {
return ComuneLocalServiceUtil.updateComune(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
(java.lang.String)arguments[2], (java.lang.String)arguments[3],
(java.lang.String)arguments[4], (java.lang.String)arguments[5],
((Boolean)arguments[6]).booleanValue(),
(java.lang.String)arguments[7], (java.lang.String)arguments[8],
(com.liferay.portal.service.ServiceContext)arguments[9]);
((Boolean)arguments[9]).booleanValue(),
(com.liferay.portal.service.ServiceContext)arguments[10]);
}
if (_methodName206.equals(name) &&
Arrays.deepEquals(_methodParameterTypes206, parameterTypes)) {
if (_methodName207.equals(name) &&
Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) {
return ComuneLocalServiceUtil.getComuniForOrganizationByUserId(((Long)arguments[0]).longValue());
}
if (_methodName207.equals(name) &&
Arrays.deepEquals(_methodParameterTypes207, parameterTypes)) {
if (_methodName208.equals(name) &&
Arrays.deepEquals(_methodParameterTypes208, parameterTypes)) {
return ComuneLocalServiceUtil.getComuniForOrganizationByUserIdUfficioId(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue());
}
@ -600,4 +617,6 @@ public class ComuneLocalServiceClpInvoker {
private String[] _methodParameterTypes206;
private String _methodName207;
private String[] _methodParameterTypes207;
private String _methodName208;
private String[] _methodParameterTypes208;
}

93
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/TerritorioLocalServiceClpInvoker.java

@ -156,48 +156,52 @@ public class TerritorioLocalServiceClpInvoker {
_methodParameterTypes191 = new String[] { "java.lang.String" };
_methodName192 = "getActiveTerritoriByComune";
_methodName193 = "getActiveComuniByCodiceProvincia_Ospedaliera";
_methodParameterTypes192 = new String[] { "long" };
_methodParameterTypes193 = new String[] { "java.lang.String" };
_methodName193 = "deleteTerritorio";
_methodName194 = "getActiveTerritoriByComune";
_methodParameterTypes193 = new String[] { "long" };
_methodParameterTypes194 = new String[] { "long" };
_methodName194 = "deleteTerritorio";
_methodName195 = "deleteTerritorio";
_methodParameterTypes194 = new String[] {
_methodParameterTypes195 = new String[] { "long" };
_methodName196 = "deleteTerritorio";
_methodParameterTypes196 = new String[] {
"it.tref.liferay.portos.bo.model.Territorio"
};
_methodName195 = "findTerritorioByComuneIdGZonaFasciaDtIni";
_methodName197 = "findTerritorioByComuneIdGZonaFasciaDtIni";
_methodParameterTypes195 = new String[] {
_methodParameterTypes197 = new String[] {
"long", "long", "java.lang.String", "java.lang.String",
"java.util.Date"
};
_methodName196 = "fetchByOldTerriotioId";
_methodName198 = "fetchByOldTerriotioId";
_methodParameterTypes196 = new String[] { "long" };
_methodParameterTypes198 = new String[] { "long" };
_methodName198 = "getTerritoriByGroupAndZona";
_methodName200 = "getTerritoriByGroupAndZona";
_methodParameterTypes198 = new String[] { "long", "java.lang.String" };
_methodParameterTypes200 = new String[] { "long", "java.lang.String" };
_methodName199 = "getTerritoriByGroupAndZonaAndFascia";
_methodName201 = "getTerritoriByGroupAndZonaAndFascia";
_methodParameterTypes199 = new String[] {
_methodParameterTypes201 = new String[] {
"long", "java.lang.String", "java.lang.String"
};
_methodName201 = "getAllTerritorioGroup";
_methodName203 = "getAllTerritorioGroup";
_methodParameterTypes201 = new String[] { };
_methodParameterTypes203 = new String[] { };
_methodName202 = "verifyTerritorioConstraintAlreadyExist";
_methodName204 = "verifyTerritorioConstraintAlreadyExist";
_methodParameterTypes202 = new String[] {
_methodParameterTypes204 = new String[] {
"long", "long", "java.lang.String", "java.lang.String",
"java.util.Date"
};
@ -368,53 +372,58 @@ public class TerritorioLocalServiceClpInvoker {
return TerritorioLocalServiceUtil.getActiveComuniByCodiceProvincia((java.lang.String)arguments[0]);
}
if (_methodName192.equals(name) &&
Arrays.deepEquals(_methodParameterTypes192, parameterTypes)) {
return TerritorioLocalServiceUtil.getActiveTerritoriByComune(((Long)arguments[0]).longValue());
}
if (_methodName193.equals(name) &&
Arrays.deepEquals(_methodParameterTypes193, parameterTypes)) {
return TerritorioLocalServiceUtil.deleteTerritorio(((Long)arguments[0]).longValue());
return TerritorioLocalServiceUtil.getActiveComuniByCodiceProvincia_Ospedaliera((java.lang.String)arguments[0]);
}
if (_methodName194.equals(name) &&
Arrays.deepEquals(_methodParameterTypes194, parameterTypes)) {
return TerritorioLocalServiceUtil.deleteTerritorio((it.tref.liferay.portos.bo.model.Territorio)arguments[0]);
return TerritorioLocalServiceUtil.getActiveTerritoriByComune(((Long)arguments[0]).longValue());
}
if (_methodName195.equals(name) &&
Arrays.deepEquals(_methodParameterTypes195, parameterTypes)) {
return TerritorioLocalServiceUtil.deleteTerritorio(((Long)arguments[0]).longValue());
}
if (_methodName196.equals(name) &&
Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) {
return TerritorioLocalServiceUtil.deleteTerritorio((it.tref.liferay.portos.bo.model.Territorio)arguments[0]);
}
if (_methodName197.equals(name) &&
Arrays.deepEquals(_methodParameterTypes197, parameterTypes)) {
return TerritorioLocalServiceUtil.findTerritorioByComuneIdGZonaFasciaDtIni(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
(java.lang.String)arguments[2], (java.lang.String)arguments[3],
(java.util.Date)arguments[4]);
}
if (_methodName196.equals(name) &&
Arrays.deepEquals(_methodParameterTypes196, parameterTypes)) {
if (_methodName198.equals(name) &&
Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) {
return TerritorioLocalServiceUtil.fetchByOldTerriotioId(((Long)arguments[0]).longValue());
}
if (_methodName198.equals(name) &&
Arrays.deepEquals(_methodParameterTypes198, parameterTypes)) {
if (_methodName200.equals(name) &&
Arrays.deepEquals(_methodParameterTypes200, parameterTypes)) {
return TerritorioLocalServiceUtil.getTerritoriByGroupAndZona(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1]);
}
if (_methodName199.equals(name) &&
Arrays.deepEquals(_methodParameterTypes199, parameterTypes)) {
if (_methodName201.equals(name) &&
Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) {
return TerritorioLocalServiceUtil.getTerritoriByGroupAndZonaAndFascia(((Long)arguments[0]).longValue(),
(java.lang.String)arguments[1], (java.lang.String)arguments[2]);
}
if (_methodName201.equals(name) &&
Arrays.deepEquals(_methodParameterTypes201, parameterTypes)) {
if (_methodName203.equals(name) &&
Arrays.deepEquals(_methodParameterTypes203, parameterTypes)) {
return TerritorioLocalServiceUtil.getAllTerritorioGroup();
}
if (_methodName202.equals(name) &&
Arrays.deepEquals(_methodParameterTypes202, parameterTypes)) {
if (_methodName204.equals(name) &&
Arrays.deepEquals(_methodParameterTypes204, parameterTypes)) {
return TerritorioLocalServiceUtil.verifyTerritorioConstraintAlreadyExist(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
(java.lang.String)arguments[2], (java.lang.String)arguments[3],
@ -476,8 +485,6 @@ public class TerritorioLocalServiceClpInvoker {
private String[] _methodParameterTypes190;
private String _methodName191;
private String[] _methodParameterTypes191;
private String _methodName192;
private String[] _methodParameterTypes192;
private String _methodName193;
private String[] _methodParameterTypes193;
private String _methodName194;
@ -486,12 +493,16 @@ public class TerritorioLocalServiceClpInvoker {
private String[] _methodParameterTypes195;
private String _methodName196;
private String[] _methodParameterTypes196;
private String _methodName197;
private String[] _methodParameterTypes197;
private String _methodName198;
private String[] _methodParameterTypes198;
private String _methodName199;
private String[] _methodParameterTypes199;
private String _methodName200;
private String[] _methodParameterTypes200;
private String _methodName201;
private String[] _methodParameterTypes201;
private String _methodName202;
private String[] _methodParameterTypes202;
private String _methodName203;
private String[] _methodParameterTypes203;
private String _methodName204;
private String[] _methodParameterTypes204;
}

20
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/ComuneLocalServiceImpl.java

@ -58,7 +58,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
@Override
public Comune addComune(long userId, String codiceProvincia, String codiceComune, String codiceIstat,
String codiceBelfiore, String denominazione, boolean provincia, boolean stato, String mailSuap,
String mailSue, ServiceContext serviceContext) throws PortalException, SystemException {
String mailSue, boolean praticaOspedaliera, ServiceContext serviceContext) throws PortalException, SystemException {
User user = userPersistence.findByPrimaryKey(userId);
Date now = new Date();
@ -79,6 +79,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
comune.setProvincia(provincia);
comune.setMailSuap(mailSuap);
comune.setMailSue(mailSue);
comune.setPraticaOspedaliera(praticaOspedaliera);
comune = comunePersistence.update(comune);
return comune;
}
@ -86,7 +87,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
@Override
public Comune addComune(long userId, String codiceProvincia, String codiceComune, String codiceIstat,
String codiceBelfiore, String denominazione, boolean provincia, String mailSuap, String mailSue,
ServiceContext serviceContext) throws PortalException, SystemException {
boolean praticaOspedaliera, ServiceContext serviceContext) throws PortalException, SystemException {
User user = userPersistence.findByPrimaryKey(userId);
Date now = new Date();
@ -106,6 +107,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
comune.setProvincia(provincia);
comune.setMailSuap(mailSuap);
comune.setMailSue(mailSue);
comune.setPraticaOspedaliera(praticaOspedaliera);
comune = comunePersistence.update(comune);
return comune;
}
@ -216,11 +218,19 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
return comunePersistence.findByC_Stato(companyId, true);
}
public Comune setPraticaOspedaliera(long comuneId, boolean isPraticaOspedaliera, ServiceContext serviceContext){
Comune comune = comunePersistence.fetchByPrimaryKey(comuneId);
comune.setPraticaOspedaliera(isPraticaOspedaliera);
comune.setModifiedDate(serviceContext.getModifiedDate(new Date()));
comune = comunePersistence.update(comune);
return comune;
}
@Override
public Comune updateComune(long userId, long comuneId, String codiceProvincia, String codiceComune,
String codiceIstat, String denominazione, boolean provincia, boolean stato, String mailSuap,
String mailSue, ServiceContext serviceContext) throws PortalException, SystemException {
String mailSue, boolean praticaOspedaliera, ServiceContext serviceContext) throws PortalException, SystemException {
User user = userPersistence.findByPrimaryKey(userId);
Date now = new Date();
@ -240,6 +250,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
comune.setMailSue(mailSue);
comune.setDenominazione(denominazione);
comune.setProvincia(provincia);
comune.setPraticaOspedaliera(praticaOspedaliera);
comune = comunePersistence.update(comune);
return comune;
}
@ -247,7 +258,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
@Override
public Comune updateComune(long userId, long comuneId, String codiceProvincia, String codiceComune,
String codiceIstat, String denominazione, boolean provincia, String mailSuap, String mailSue,
ServiceContext serviceContext) throws PortalException, SystemException {
boolean praticaOspedaliera, ServiceContext serviceContext) throws PortalException, SystemException {
User user = userPersistence.findByPrimaryKey(userId);
Date now = new Date();
@ -266,6 +277,7 @@ public class ComuneLocalServiceImpl extends ComuneLocalServiceBaseImpl {
comune.setMailSue(mailSue);
comune.setDenominazione(denominazione);
comune.setProvincia(provincia);
comune.setPraticaOspedaliera(praticaOspedaliera);
comune = comunePersistence.update(comune);
return comune;
}

14
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/TerritorioLocalServiceImpl.java

@ -149,9 +149,16 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl {
@Override
public List<Long> getActiveComuniByCodiceProvincia(String codiceProvincia) throws SystemException {
return _getActiveComuniByCodiceProvincia(codiceProvincia, false);
}
private List<Long> _getActiveComuniByCodiceProvincia(String codiceProvincia, boolean isPraticaOspedaliera) throws SystemException {
DynamicQuery dynamicQuery = territorioLocalService.dynamicQuery();
dynamicQuery.setProjection(ProjectionFactoryUtil.distinct(ProjectionFactoryUtil.property("comuneId")));
dynamicQuery.add(RestrictionsFactoryUtil.eq("codiceProvincia", codiceProvincia));
if(isPraticaOspedaliera){
dynamicQuery.add(RestrictionsFactoryUtil.eq("praticaOspedaliera", true));
}
Junction and = RestrictionsFactoryUtil.conjunction();
Date date = new Date();
and.add(PropertyFactoryUtil.forName("groupId").ne(0l));
@ -163,6 +170,13 @@ public class TerritorioLocalServiceImpl extends TerritorioLocalServiceBaseImpl {
dynamicQuery.add(and);
return territorioLocalService.dynamicQuery(dynamicQuery);
}
@SuppressWarnings("unchecked")
@Override
public List<Long> getActiveComuniByCodiceProvincia_Ospedaliera(String codiceProvincia) throws SystemException {
return _getActiveComuniByCodiceProvincia(codiceProvincia, true);
}
@SuppressWarnings("unchecked")
@Override

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/ComunePersistenceImpl.java

@ -4602,6 +4602,7 @@ public class ComunePersistenceImpl extends BasePersistenceImpl<Comune>
comuneImpl.setDisabilitato(comune.isDisabilitato());
comuneImpl.setMailSuap(comune.getMailSuap());
comuneImpl.setMailSue(comune.getMailSue());
comuneImpl.setPraticaOspedali(comune.isPraticaOspedali());
return comuneImpl;
}

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties

@ -13,8 +13,8 @@
##
build.namespace=portos_bo
build.number=2903
build.date=1682608140742
build.number=2904
build.date=1683125552991
build.auto.upgrade=true
##

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/edit.jsp

@ -71,6 +71,7 @@ if(Validator.isNotNull(comune.getCodiceProvincia())) {
<aui:input name="provincia" />
<aui:input name="mailSuap" />
<aui:input name="mailSue" />
<aui:input name="praticaOspedaliera" />
<aui:button-row>
<aui:button type="submit" value="save" />
</aui:button-row>

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/amministrazione/tabs/comuni/view.jsp

@ -68,6 +68,7 @@ DisplayTerms displayTerms = new DisplayTerms(renderRequest);
<liferay-ui:search-container-column-text href="<%=editURL %>" name="denominazione" orderable="true" />
<liferay-ui:search-container-column-text href="<%=editURL %>" name="mail-suap" property="mailSuap" />
<liferay-ui:search-container-column-text href="<%=editURL %>" name="mail-sue" property="mailSue" />
<liferay-ui:search-container-column-text href="<%=editURL %>" value='<%=comune.getPraticaOspedaliera()?LanguageUtil.get(pageContext, "yes"):LanguageUtil.get(pageContext, "no") %>' name="pratica-ospedali" orderable="true" translate="true" />
<liferay-ui:search-container-column-text href="<%=editURL %>" value='<%=comune.getProvincia()?LanguageUtil.get(pageContext, "yes"):LanguageUtil.get(pageContext, "no") %>' name="provincia" orderable="true" translate="true" />
<liferay-ui:search-container-column-jsp path="/html/amministrazione/tabs/comuni/view_buttons.jsp" />
</liferay-ui:search-container-row>

BIN
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar

File binario non mostrato.

14
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java

@ -154,6 +154,20 @@ public class FascicoloFePortlet extends MVCPortlet {
}
}
writeJSON(request, response, jsonArray);
} else if ("comuniOspedaliera".equals(id)) {
String provinciaId = ParamUtil.getString(request, "provinciaId");
JSONArray jsonArray = JSONFactoryUtil.createJSONArray();
if (Validator.isNotNull(provinciaId) && !provinciaId.equals("0")) {
List<Long> comuni = TerritorioLocalServiceUtil.getActiveComuniByCodiceProvincia_Ospedaliera(provinciaId);
for (long comuneId : comuni) {
JSONObject jsonObject = JSONFactoryUtil.createJSONObject();
Comune comune = ComuneLocalServiceUtil.getComune(comuneId);
jsonObject.put("comuneId", comune.getComuneId());
jsonObject.put("descLong", comune.getDenominazione());
jsonArray.put(jsonObject);
}
}
writeJSON(request, response, jsonArray);
} else if ("zoneFasce".equals(id)) {
long comuneId = ParamUtil.getLong(request, "comuneId", 0L);
JSONArray jsonArray = JSONFactoryUtil.createJSONArray();

7
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/edit_modal_fascicolo.jsp

@ -50,6 +50,7 @@
</div>
<liferay-portlet:resourceURL id="province" var="getProvinceURL" />
<liferay-portlet:resourceURL id="comuni" var="getComuniURL" />
<liferay-portlet:resourceURL id="comuniOspedaliera" var="getComuniOspedalieraURL" />
<liferay-portlet:resourceURL id="zoneFasce" var="getZoneFasceURL" />
<aui:script use="aui-io-request,liferay-dynamic-select,aui-form-validator">
var defaultFormValidator = A.config.FormValidator;
@ -112,8 +113,12 @@
};
var getComuni = function(callback, provinciaId) {
var requestURL = '<%= getComuniURL %>';
if(isPraticaOspedaliera){
requestURL = '<%= getComuniOspedalieraURL %>';
}
A.io.request(
'<%= getComuniURL %>',
requestURL,
{
data: {
<portlet:namespace />provinciaId: provinciaId

Caricamento…
Annulla
Salva