Sfoglia il codice sorgente

campo numero bollettino

master
Mattia Gosetto 4 anni fa
parent
commit
04d653be88
  1. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service.xml
  2. 43
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoClp.java
  3. 15
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoModel.java
  4. 10
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoSoap.java
  5. 27
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/model/PagamentoWrapper.java
  6. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalService.java
  7. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceClp.java
  8. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceUtil.java
  9. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoLocalServiceWrapper.java
  10. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoService.java
  11. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoServiceClp.java
  12. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoServiceUtil.java
  13. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PagamentoServiceWrapper.java
  14. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/sql/tables.sql
  15. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-hbm.xml
  16. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-model-hints.xml
  17. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/META-INF/portlet-orm.xml
  18. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties
  19. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/mwg/sismica/bo/startup/DatabaseUpdateAction.java
  20. 22
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoCacheModel.java
  21. 47
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/model/impl/PagamentoModelImpl.java
  22. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoLocalServiceClpInvoker.java
  23. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PagamentoServiceClpInvoker.java
  24. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/http/PagamentoServiceSoap.java
  25. 3
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoLocalServiceImpl.java
  26. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/impl/PagamentoServiceImpl.java
  27. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/persistence/PagamentoPersistenceImpl.java
  28. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  29. 4
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/fe/portlet/FascicoloFePortlet.java
  30. 22
      liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo_calcolo.jsp

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

@ -1364,6 +1364,7 @@
<column name="otf" type="boolean" /> <column name="otf" type="boolean" />
<column name="otfCreateDate" type="Date" /> <column name="otfCreateDate" type="Date" />
<column name="emailPending" type="boolean" /> <column name="emailPending" type="boolean" />
<column name="numeroBollettino" type="String" />
<column name="oldPagamentoId" type="long" /> <column name="oldPagamentoId" type="long" />

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

@ -100,6 +100,7 @@ public class PagamentoClp extends BaseModelImpl<Pagamento> implements Pagamento
attributes.put("otf", getOtf()); attributes.put("otf", getOtf());
attributes.put("otfCreateDate", getOtfCreateDate()); attributes.put("otfCreateDate", getOtfCreateDate());
attributes.put("emailPending", getEmailPending()); attributes.put("emailPending", getEmailPending());
attributes.put("numeroBollettino", getNumeroBollettino());
attributes.put("oldPagamentoId", getOldPagamentoId()); attributes.put("oldPagamentoId", getOldPagamentoId());
return attributes; return attributes;
@ -259,6 +260,12 @@ public class PagamentoClp extends BaseModelImpl<Pagamento> implements Pagamento
setEmailPending(emailPending); setEmailPending(emailPending);
} }
String numeroBollettino = (String)attributes.get("numeroBollettino");
if (numeroBollettino != null) {
setNumeroBollettino(numeroBollettino);
}
Long oldPagamentoId = (Long)attributes.get("oldPagamentoId"); Long oldPagamentoId = (Long)attributes.get("oldPagamentoId");
if (oldPagamentoId != null) { if (oldPagamentoId != null) {
@ -863,6 +870,30 @@ public class PagamentoClp extends BaseModelImpl<Pagamento> implements Pagamento
} }
} }
@Override
public String getNumeroBollettino() {
return _numeroBollettino;
}
@Override
public void setNumeroBollettino(String numeroBollettino) {
_numeroBollettino = numeroBollettino;
if (_pagamentoRemoteModel != null) {
try {
Class<?> clazz = _pagamentoRemoteModel.getClass();
Method method = clazz.getMethod("setNumeroBollettino",
String.class);
method.invoke(_pagamentoRemoteModel, numeroBollettino);
}
catch (Exception e) {
throw new UnsupportedOperationException(e);
}
}
}
@Override @Override
public long getOldPagamentoId() { public long getOldPagamentoId() {
return _oldPagamentoId; return _oldPagamentoId;
@ -1027,6 +1058,7 @@ public class PagamentoClp extends BaseModelImpl<Pagamento> implements Pagamento
clone.setOtf(getOtf()); clone.setOtf(getOtf());
clone.setOtfCreateDate(getOtfCreateDate()); clone.setOtfCreateDate(getOtfCreateDate());
clone.setEmailPending(getEmailPending()); clone.setEmailPending(getEmailPending());
clone.setNumeroBollettino(getNumeroBollettino());
clone.setOldPagamentoId(getOldPagamentoId()); clone.setOldPagamentoId(getOldPagamentoId());
return clone; return clone;
@ -1080,7 +1112,7 @@ public class PagamentoClp extends BaseModelImpl<Pagamento> implements Pagamento
@Override @Override
public String toString() { public String toString() {
StringBundler sb = new StringBundler(53); StringBundler sb = new StringBundler(55);
sb.append("{uuid="); sb.append("{uuid=");
sb.append(getUuid()); sb.append(getUuid());
@ -1132,6 +1164,8 @@ public class PagamentoClp extends BaseModelImpl<Pagamento> implements Pagamento
sb.append(getOtfCreateDate()); sb.append(getOtfCreateDate());
sb.append(", emailPending="); sb.append(", emailPending=");
sb.append(getEmailPending()); sb.append(getEmailPending());
sb.append(", numeroBollettino=");
sb.append(getNumeroBollettino());
sb.append(", oldPagamentoId="); sb.append(", oldPagamentoId=");
sb.append(getOldPagamentoId()); sb.append(getOldPagamentoId());
sb.append("}"); sb.append("}");
@ -1141,7 +1175,7 @@ public class PagamentoClp extends BaseModelImpl<Pagamento> implements Pagamento
@Override @Override
public String toXmlString() { public String toXmlString() {
StringBundler sb = new StringBundler(82); StringBundler sb = new StringBundler(85);
sb.append("<model><model-name>"); sb.append("<model><model-name>");
sb.append("it.tref.liferay.portos.bo.model.Pagamento"); sb.append("it.tref.liferay.portos.bo.model.Pagamento");
@ -1247,6 +1281,10 @@ public class PagamentoClp extends BaseModelImpl<Pagamento> implements Pagamento
"<column><column-name>emailPending</column-name><column-value><![CDATA["); "<column><column-name>emailPending</column-name><column-value><![CDATA[");
sb.append(getEmailPending()); sb.append(getEmailPending());
sb.append("]]></column-value></column>"); sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>numeroBollettino</column-name><column-value><![CDATA[");
sb.append(getNumeroBollettino());
sb.append("]]></column-value></column>");
sb.append( sb.append(
"<column><column-name>oldPagamentoId</column-name><column-value><![CDATA["); "<column><column-name>oldPagamentoId</column-name><column-value><![CDATA[");
sb.append(getOldPagamentoId()); sb.append(getOldPagamentoId());
@ -1283,6 +1321,7 @@ public class PagamentoClp extends BaseModelImpl<Pagamento> implements Pagamento
private boolean _otf; private boolean _otf;
private Date _otfCreateDate; private Date _otfCreateDate;
private boolean _emailPending; private boolean _emailPending;
private String _numeroBollettino;
private long _oldPagamentoId; private long _oldPagamentoId;
private BaseModel<?> _pagamentoRemoteModel; private BaseModel<?> _pagamentoRemoteModel;
private Class<?> _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class; private Class<?> _clpSerializerClass = it.tref.liferay.portos.bo.service.ClpSerializer.class;

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

@ -468,6 +468,21 @@ public interface PagamentoModel extends BaseModel<Pagamento>, StagedGroupedModel
*/ */
public void setEmailPending(boolean emailPending); public void setEmailPending(boolean emailPending);
/**
* Returns the numero bollettino of this pagamento.
*
* @return the numero bollettino of this pagamento
*/
@AutoEscape
public String getNumeroBollettino();
/**
* Sets the numero bollettino of this pagamento.
*
* @param numeroBollettino the numero bollettino of this pagamento
*/
public void setNumeroBollettino(String numeroBollettino);
/** /**
* Returns the old pagamento ID of this pagamento. * Returns the old pagamento ID of this pagamento.
* *

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

@ -56,6 +56,7 @@ public class PagamentoSoap implements Serializable {
soapModel.setOtf(model.getOtf()); soapModel.setOtf(model.getOtf());
soapModel.setOtfCreateDate(model.getOtfCreateDate()); soapModel.setOtfCreateDate(model.getOtfCreateDate());
soapModel.setEmailPending(model.getEmailPending()); soapModel.setEmailPending(model.getEmailPending());
soapModel.setNumeroBollettino(model.getNumeroBollettino());
soapModel.setOldPagamentoId(model.getOldPagamentoId()); soapModel.setOldPagamentoId(model.getOldPagamentoId());
return soapModel; return soapModel;
@ -317,6 +318,14 @@ public class PagamentoSoap implements Serializable {
_emailPending = emailPending; _emailPending = emailPending;
} }
public String getNumeroBollettino() {
return _numeroBollettino;
}
public void setNumeroBollettino(String numeroBollettino) {
_numeroBollettino = numeroBollettino;
}
public long getOldPagamentoId() { public long getOldPagamentoId() {
return _oldPagamentoId; return _oldPagamentoId;
} }
@ -350,5 +359,6 @@ public class PagamentoSoap implements Serializable {
private boolean _otf; private boolean _otf;
private Date _otfCreateDate; private Date _otfCreateDate;
private boolean _emailPending; private boolean _emailPending;
private String _numeroBollettino;
private long _oldPagamentoId; private long _oldPagamentoId;
} }

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

@ -75,6 +75,7 @@ public class PagamentoWrapper implements Pagamento, ModelWrapper<Pagamento> {
attributes.put("otf", getOtf()); attributes.put("otf", getOtf());
attributes.put("otfCreateDate", getOtfCreateDate()); attributes.put("otfCreateDate", getOtfCreateDate());
attributes.put("emailPending", getEmailPending()); attributes.put("emailPending", getEmailPending());
attributes.put("numeroBollettino", getNumeroBollettino());
attributes.put("oldPagamentoId", getOldPagamentoId()); attributes.put("oldPagamentoId", getOldPagamentoId());
return attributes; return attributes;
@ -234,6 +235,12 @@ public class PagamentoWrapper implements Pagamento, ModelWrapper<Pagamento> {
setEmailPending(emailPending); setEmailPending(emailPending);
} }
String numeroBollettino = (String)attributes.get("numeroBollettino");
if (numeroBollettino != null) {
setNumeroBollettino(numeroBollettino);
}
Long oldPagamentoId = (Long)attributes.get("oldPagamentoId"); Long oldPagamentoId = (Long)attributes.get("oldPagamentoId");
if (oldPagamentoId != null) { if (oldPagamentoId != null) {
@ -804,6 +811,26 @@ public class PagamentoWrapper implements Pagamento, ModelWrapper<Pagamento> {
_pagamento.setEmailPending(emailPending); _pagamento.setEmailPending(emailPending);
} }
/**
* Returns the numero bollettino of this pagamento.
*
* @return the numero bollettino of this pagamento
*/
@Override
public java.lang.String getNumeroBollettino() {
return _pagamento.getNumeroBollettino();
}
/**
* Sets the numero bollettino of this pagamento.
*
* @param numeroBollettino the numero bollettino of this pagamento
*/
@Override
public void setNumeroBollettino(java.lang.String numeroBollettino) {
_pagamento.setNumeroBollettino(numeroBollettino);
}
/** /**
* Returns the old pagamento ID of this pagamento. * Returns the old pagamento ID of this pagamento.
* *

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

@ -471,7 +471,8 @@ public interface PagamentoLocalService extends BaseLocalService,
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
public void updatePagamentoManuale(long pagamentoId, byte[] content, public void updatePagamentoManuale(long pagamentoId,
java.lang.String numeroBollettino, byte[] content,
java.lang.String sourceFileName, java.lang.String sourceFileName,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,

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

@ -311,7 +311,7 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
_methodName54 = "updatePagamentoManuale"; _methodName54 = "updatePagamentoManuale";
_methodParameterTypes54 = new String[] { _methodParameterTypes54 = new String[] {
"long", "byte[][]", "java.lang.String", "long", "java.lang.String", "byte[][]", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
@ -2207,7 +2207,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
} }
@Override @Override
public void updatePagamentoManuale(long pagamentoId, byte[] content, public void updatePagamentoManuale(long pagamentoId,
java.lang.String numeroBollettino, byte[] content,
java.lang.String sourceFileName, java.lang.String sourceFileName,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
@ -2219,6 +2220,8 @@ public class PagamentoLocalServiceClp implements PagamentoLocalService {
new Object[] { new Object[] {
pagamentoId, pagamentoId,
ClpSerializer.translateInput(numeroBollettino),
ClpSerializer.translateInput(content), ClpSerializer.translateInput(content),
ClpSerializer.translateInput(sourceFileName), ClpSerializer.translateInput(sourceFileName),

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

@ -588,15 +588,16 @@ public class PagamentoLocalServiceUtil {
url, serviceContext); url, serviceContext);
} }
public static void updatePagamentoManuale(long pagamentoId, byte[] content, public static void updatePagamentoManuale(long pagamentoId,
java.lang.String numeroBollettino, byte[] content,
java.lang.String sourceFileName, java.lang.String sourceFileName,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.SystemException,
java.io.IOException { java.io.IOException {
getService() getService()
.updatePagamentoManuale(pagamentoId, content, sourceFileName, .updatePagamentoManuale(pagamentoId, numeroBollettino, content,
serviceContext); sourceFileName, serviceContext);
} }
public static void updatePagamentoManualeFromImport(long pagamentoId, public static void updatePagamentoManualeFromImport(long pagamentoId,

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

@ -630,14 +630,15 @@ public class PagamentoLocalServiceWrapper implements PagamentoLocalService,
} }
@Override @Override
public void updatePagamentoManuale(long pagamentoId, byte[] content, public void updatePagamentoManuale(long pagamentoId,
java.lang.String numeroBollettino, byte[] content,
java.lang.String sourceFileName, java.lang.String sourceFileName,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.SystemException,
java.io.IOException { java.io.IOException {
_pagamentoLocalService.updatePagamentoManuale(pagamentoId, content, _pagamentoLocalService.updatePagamentoManuale(pagamentoId,
sourceFileName, serviceContext); numeroBollettino, content, sourceFileName, serviceContext);
} }
@Override @Override

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

@ -83,7 +83,8 @@ public interface PagamentoService extends BaseService, InvokableService {
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException; com.liferay.portal.kernel.exception.SystemException;
public void updatePagamentoManuale(long pagamentoId, byte[] content, public void updatePagamentoManuale(long pagamentoId,
java.lang.String numeroBollettino, byte[] content,
java.lang.String sourceFileName, java.lang.String sourceFileName,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,

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

@ -55,7 +55,7 @@ public class PagamentoServiceClp implements PagamentoService {
_methodName6 = "updatePagamentoManuale"; _methodName6 = "updatePagamentoManuale";
_methodParameterTypes6 = new String[] { _methodParameterTypes6 = new String[] {
"long", "byte[][]", "java.lang.String", "long", "java.lang.String", "byte[][]", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
} }
@ -232,7 +232,8 @@ public class PagamentoServiceClp implements PagamentoService {
} }
@Override @Override
public void updatePagamentoManuale(long pagamentoId, byte[] content, public void updatePagamentoManuale(long pagamentoId,
java.lang.String numeroBollettino, byte[] content,
java.lang.String sourceFileName, java.lang.String sourceFileName,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
@ -244,6 +245,8 @@ public class PagamentoServiceClp implements PagamentoService {
new Object[] { new Object[] {
pagamentoId, pagamentoId,
ClpSerializer.translateInput(numeroBollettino),
ClpSerializer.translateInput(content), ClpSerializer.translateInput(content),
ClpSerializer.translateInput(sourceFileName), ClpSerializer.translateInput(sourceFileName),

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

@ -92,15 +92,16 @@ public class PagamentoServiceUtil {
getService().annullaPagamento(pagamentoId, serviceContext); getService().annullaPagamento(pagamentoId, serviceContext);
} }
public static void updatePagamentoManuale(long pagamentoId, byte[] content, public static void updatePagamentoManuale(long pagamentoId,
java.lang.String numeroBollettino, byte[] content,
java.lang.String sourceFileName, java.lang.String sourceFileName,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.SystemException,
java.io.IOException { java.io.IOException {
getService() getService()
.updatePagamentoManuale(pagamentoId, content, sourceFileName, .updatePagamentoManuale(pagamentoId, numeroBollettino, content,
serviceContext); sourceFileName, serviceContext);
} }
public static void clearService() { public static void clearService() {

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

@ -87,14 +87,15 @@ public class PagamentoServiceWrapper implements PagamentoService,
} }
@Override @Override
public void updatePagamentoManuale(long pagamentoId, byte[] content, public void updatePagamentoManuale(long pagamentoId,
java.lang.String numeroBollettino, byte[] content,
java.lang.String sourceFileName, java.lang.String sourceFileName,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException, throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException, com.liferay.portal.kernel.exception.SystemException,
java.io.IOException { java.io.IOException {
_pagamentoService.updatePagamentoManuale(pagamentoId, content, _pagamentoService.updatePagamentoManuale(pagamentoId, numeroBollettino,
sourceFileName, serviceContext); content, sourceFileName, serviceContext);
} }
/** /**

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

@ -644,6 +644,7 @@ create table portos_bo_Pagamento (
otf BOOLEAN, otf BOOLEAN,
otfCreateDate DATE null, otfCreateDate DATE null,
emailPending BOOLEAN, emailPending BOOLEAN,
numeroBollettino VARCHAR(75) null,
oldPagamentoId LONG oldPagamentoId LONG
); );

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

@ -710,6 +710,7 @@
<property name="otf" type="com.liferay.portal.dao.orm.hibernate.BooleanType" /> <property name="otf" type="com.liferay.portal.dao.orm.hibernate.BooleanType" />
<property name="otfCreateDate" type="org.hibernate.type.TimestampType" /> <property name="otfCreateDate" type="org.hibernate.type.TimestampType" />
<property name="emailPending" type="com.liferay.portal.dao.orm.hibernate.BooleanType" /> <property name="emailPending" type="com.liferay.portal.dao.orm.hibernate.BooleanType" />
<property name="numeroBollettino" type="com.liferay.portal.dao.orm.hibernate.StringType" />
<property name="oldPagamentoId" type="com.liferay.portal.dao.orm.hibernate.LongType" /> <property name="oldPagamentoId" type="com.liferay.portal.dao.orm.hibernate.LongType" />
</class> </class>
<class name="it.tref.liferay.portos.bo.model.impl.ParereGeologoImpl" table="portos_bo_ParereGeo"> <class name="it.tref.liferay.portos.bo.model.impl.ParereGeologoImpl" table="portos_bo_ParereGeo">

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

@ -746,6 +746,7 @@
<field name="otf" type="boolean" /> <field name="otf" type="boolean" />
<field name="otfCreateDate" type="Date" /> <field name="otfCreateDate" type="Date" />
<field name="emailPending" type="boolean" /> <field name="emailPending" type="boolean" />
<field name="numeroBollettino" type="String" />
<field name="oldPagamentoId" type="long" /> <field name="oldPagamentoId" type="long" />
</model> </model>
<model name="it.tref.liferay.portos.bo.model.ParereGeologo"> <model name="it.tref.liferay.portos.bo.model.ParereGeologo">

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

@ -912,6 +912,7 @@
<temporal>TIMESTAMP</temporal> <temporal>TIMESTAMP</temporal>
</basic> </basic>
<basic name="emailPending" /> <basic name="emailPending" />
<basic name="numeroBollettino" />
<basic name="oldPagamentoId" /> <basic name="oldPagamentoId" />
<transient name="modelAttributes" /> <transient name="modelAttributes" />
<transient name="primaryKey" /> <transient name="primaryKey" />

1
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/content/Portal.properties

@ -977,6 +977,7 @@ label-pagAltriCasiPaesaggistici = Altri casi
label-pagVariantiPareriResi = Varianti a pareri resi: 50% di quanto dovuto per i progetti approvati label-pagVariantiPareriResi = Varianti a pareri resi: 50% di quanto dovuto per i progetti approvati
label-pagRilascioAttestazioni = Rilascio di attestazioni e certificazioni varie label-pagRilascioAttestazioni = Rilascio di attestazioni e certificazioni varie
label-pagConsultazioniArchivio = Consultazione d'archivio label-pagConsultazioniArchivio = Consultazione d'archivio
label-codice-bollettino = Codice bollettino
fl-esente-bollo = Esente da bollo ai sensi di D.P.R. 26/10/1972 n. 642 e s.m.i. fl-esente-bollo = Esente da bollo ai sensi di D.P.R. 26/10/1972 n. 642 e s.m.i.
note = Note note = Note

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

@ -194,6 +194,10 @@ public class DatabaseUpdateAction extends SimpleAction {
+ "ADD COLUMN pagConsultazioniArchivio DOUBLE NULL"); + "ADD COLUMN pagConsultazioniArchivio DOUBLE NULL");
} }
if (!hasColumn("portos_bo_pagamento", "numerobollettino")) {
s.executeUpdate("ALTER TABLE portos_bo_pagamento ADD COLUMN numerobollettino VARCHAR(75) NULL");
}
} catch (SQLException e) { } catch (SQLException e) {
_log.error("Errore di accesso al database: ", e); _log.error("Errore di accesso al database: ", e);
throw new ActionException(e); throw new ActionException(e);

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

@ -38,7 +38,7 @@ public class PagamentoCacheModel implements CacheModel<Pagamento>,
Externalizable { Externalizable {
@Override @Override
public String toString() { public String toString() {
StringBundler sb = new StringBundler(53); StringBundler sb = new StringBundler(55);
sb.append("{uuid="); sb.append("{uuid=");
sb.append(uuid); sb.append(uuid);
@ -90,6 +90,8 @@ public class PagamentoCacheModel implements CacheModel<Pagamento>,
sb.append(otfCreateDate); sb.append(otfCreateDate);
sb.append(", emailPending="); sb.append(", emailPending=");
sb.append(emailPending); sb.append(emailPending);
sb.append(", numeroBollettino=");
sb.append(numeroBollettino);
sb.append(", oldPagamentoId="); sb.append(", oldPagamentoId=");
sb.append(oldPagamentoId); sb.append(oldPagamentoId);
sb.append("}"); sb.append("}");
@ -220,6 +222,14 @@ public class PagamentoCacheModel implements CacheModel<Pagamento>,
} }
pagamentoImpl.setEmailPending(emailPending); pagamentoImpl.setEmailPending(emailPending);
if (numeroBollettino == null) {
pagamentoImpl.setNumeroBollettino(StringPool.BLANK);
}
else {
pagamentoImpl.setNumeroBollettino(numeroBollettino);
}
pagamentoImpl.setOldPagamentoId(oldPagamentoId); pagamentoImpl.setOldPagamentoId(oldPagamentoId);
pagamentoImpl.resetOriginalValues(); pagamentoImpl.resetOriginalValues();
@ -254,6 +264,7 @@ public class PagamentoCacheModel implements CacheModel<Pagamento>,
otf = objectInput.readBoolean(); otf = objectInput.readBoolean();
otfCreateDate = objectInput.readLong(); otfCreateDate = objectInput.readLong();
emailPending = objectInput.readBoolean(); emailPending = objectInput.readBoolean();
numeroBollettino = objectInput.readUTF();
oldPagamentoId = objectInput.readLong(); oldPagamentoId = objectInput.readLong();
} }
@ -360,6 +371,14 @@ public class PagamentoCacheModel implements CacheModel<Pagamento>,
objectOutput.writeBoolean(otf); objectOutput.writeBoolean(otf);
objectOutput.writeLong(otfCreateDate); objectOutput.writeLong(otfCreateDate);
objectOutput.writeBoolean(emailPending); objectOutput.writeBoolean(emailPending);
if (numeroBollettino == null) {
objectOutput.writeUTF(StringPool.BLANK);
}
else {
objectOutput.writeUTF(numeroBollettino);
}
objectOutput.writeLong(oldPagamentoId); objectOutput.writeLong(oldPagamentoId);
} }
@ -388,5 +407,6 @@ public class PagamentoCacheModel implements CacheModel<Pagamento>,
public boolean otf; public boolean otf;
public long otfCreateDate; public long otfCreateDate;
public boolean emailPending; public boolean emailPending;
public String numeroBollettino;
public long oldPagamentoId; public long oldPagamentoId;
} }

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

@ -92,9 +92,10 @@ public class PagamentoModelImpl extends BaseModelImpl<Pagamento>
{ "otf", Types.BOOLEAN }, { "otf", Types.BOOLEAN },
{ "otfCreateDate", Types.TIMESTAMP }, { "otfCreateDate", Types.TIMESTAMP },
{ "emailPending", Types.BOOLEAN }, { "emailPending", Types.BOOLEAN },
{ "numeroBollettino", Types.VARCHAR },
{ "oldPagamentoId", Types.BIGINT } { "oldPagamentoId", Types.BIGINT }
}; };
public static final String TABLE_SQL_CREATE = "create table portos_bo_Pagamento (uuid_ VARCHAR(75) null,pagamentoId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,classPk LONG,className VARCHAR(75) null,fileEntryId LONG,oldFileEntryId LONG,tipoPagamento VARCHAR(75) null,url STRING null,codice VARCHAR(75) null,causale VARCHAR(75) null,mezzo VARCHAR(75) null,codiceFiscaleCommittente VARCHAR(75) null,importo VARCHAR(75) null,utilizzata VARCHAR(75) null,utilizzataSostituita VARCHAR(75) null,otf BOOLEAN,otfCreateDate DATE null,emailPending BOOLEAN,oldPagamentoId LONG)"; public static final String TABLE_SQL_CREATE = "create table portos_bo_Pagamento (uuid_ VARCHAR(75) null,pagamentoId LONG not null primary key,companyId LONG,userId LONG,userName VARCHAR(75) null,createDate DATE null,modifiedDate DATE null,groupId LONG,intPraticaId LONG,classPk LONG,className VARCHAR(75) null,fileEntryId LONG,oldFileEntryId LONG,tipoPagamento VARCHAR(75) null,url STRING null,codice VARCHAR(75) null,causale VARCHAR(75) null,mezzo VARCHAR(75) null,codiceFiscaleCommittente VARCHAR(75) null,importo VARCHAR(75) null,utilizzata VARCHAR(75) null,utilizzataSostituita VARCHAR(75) null,otf BOOLEAN,otfCreateDate DATE null,emailPending BOOLEAN,numeroBollettino VARCHAR(75) null,oldPagamentoId LONG)";
public static final String TABLE_SQL_DROP = "drop table portos_bo_Pagamento"; public static final String TABLE_SQL_DROP = "drop table portos_bo_Pagamento";
public static final String ORDER_BY_JPQL = " ORDER BY pagamento.pagamentoId ASC"; public static final String ORDER_BY_JPQL = " ORDER BY pagamento.pagamentoId ASC";
public static final String ORDER_BY_SQL = " ORDER BY portos_bo_Pagamento.pagamentoId ASC"; public static final String ORDER_BY_SQL = " ORDER BY portos_bo_Pagamento.pagamentoId ASC";
@ -160,6 +161,7 @@ public class PagamentoModelImpl extends BaseModelImpl<Pagamento>
model.setOtf(soapModel.getOtf()); model.setOtf(soapModel.getOtf());
model.setOtfCreateDate(soapModel.getOtfCreateDate()); model.setOtfCreateDate(soapModel.getOtfCreateDate());
model.setEmailPending(soapModel.getEmailPending()); model.setEmailPending(soapModel.getEmailPending());
model.setNumeroBollettino(soapModel.getNumeroBollettino());
model.setOldPagamentoId(soapModel.getOldPagamentoId()); model.setOldPagamentoId(soapModel.getOldPagamentoId());
return model; return model;
@ -250,6 +252,7 @@ public class PagamentoModelImpl extends BaseModelImpl<Pagamento>
attributes.put("otf", getOtf()); attributes.put("otf", getOtf());
attributes.put("otfCreateDate", getOtfCreateDate()); attributes.put("otfCreateDate", getOtfCreateDate());
attributes.put("emailPending", getEmailPending()); attributes.put("emailPending", getEmailPending());
attributes.put("numeroBollettino", getNumeroBollettino());
attributes.put("oldPagamentoId", getOldPagamentoId()); attributes.put("oldPagamentoId", getOldPagamentoId());
return attributes; return attributes;
@ -409,6 +412,12 @@ public class PagamentoModelImpl extends BaseModelImpl<Pagamento>
setEmailPending(emailPending); setEmailPending(emailPending);
} }
String numeroBollettino = (String)attributes.get("numeroBollettino");
if (numeroBollettino != null) {
setNumeroBollettino(numeroBollettino);
}
Long oldPagamentoId = (Long)attributes.get("oldPagamentoId"); Long oldPagamentoId = (Long)attributes.get("oldPagamentoId");
if (oldPagamentoId != null) { if (oldPagamentoId != null) {
@ -869,6 +878,22 @@ public class PagamentoModelImpl extends BaseModelImpl<Pagamento>
return _originalEmailPending; return _originalEmailPending;
} }
@JSON
@Override
public String getNumeroBollettino() {
if (_numeroBollettino == null) {
return StringPool.BLANK;
}
else {
return _numeroBollettino;
}
}
@Override
public void setNumeroBollettino(String numeroBollettino) {
_numeroBollettino = numeroBollettino;
}
@JSON @JSON
@Override @Override
public long getOldPagamentoId() { public long getOldPagamentoId() {
@ -954,6 +979,7 @@ public class PagamentoModelImpl extends BaseModelImpl<Pagamento>
pagamentoImpl.setOtf(getOtf()); pagamentoImpl.setOtf(getOtf());
pagamentoImpl.setOtfCreateDate(getOtfCreateDate()); pagamentoImpl.setOtfCreateDate(getOtfCreateDate());
pagamentoImpl.setEmailPending(getEmailPending()); pagamentoImpl.setEmailPending(getEmailPending());
pagamentoImpl.setNumeroBollettino(getNumeroBollettino());
pagamentoImpl.setOldPagamentoId(getOldPagamentoId()); pagamentoImpl.setOldPagamentoId(getOldPagamentoId());
pagamentoImpl.resetOriginalValues(); pagamentoImpl.resetOriginalValues();
@ -1191,6 +1217,14 @@ public class PagamentoModelImpl extends BaseModelImpl<Pagamento>
pagamentoCacheModel.emailPending = getEmailPending(); pagamentoCacheModel.emailPending = getEmailPending();
pagamentoCacheModel.numeroBollettino = getNumeroBollettino();
String numeroBollettino = pagamentoCacheModel.numeroBollettino;
if ((numeroBollettino != null) && (numeroBollettino.length() == 0)) {
pagamentoCacheModel.numeroBollettino = null;
}
pagamentoCacheModel.oldPagamentoId = getOldPagamentoId(); pagamentoCacheModel.oldPagamentoId = getOldPagamentoId();
return pagamentoCacheModel; return pagamentoCacheModel;
@ -1198,7 +1232,7 @@ public class PagamentoModelImpl extends BaseModelImpl<Pagamento>
@Override @Override
public String toString() { public String toString() {
StringBundler sb = new StringBundler(53); StringBundler sb = new StringBundler(55);
sb.append("{uuid="); sb.append("{uuid=");
sb.append(getUuid()); sb.append(getUuid());
@ -1250,6 +1284,8 @@ public class PagamentoModelImpl extends BaseModelImpl<Pagamento>
sb.append(getOtfCreateDate()); sb.append(getOtfCreateDate());
sb.append(", emailPending="); sb.append(", emailPending=");
sb.append(getEmailPending()); sb.append(getEmailPending());
sb.append(", numeroBollettino=");
sb.append(getNumeroBollettino());
sb.append(", oldPagamentoId="); sb.append(", oldPagamentoId=");
sb.append(getOldPagamentoId()); sb.append(getOldPagamentoId());
sb.append("}"); sb.append("}");
@ -1259,7 +1295,7 @@ public class PagamentoModelImpl extends BaseModelImpl<Pagamento>
@Override @Override
public String toXmlString() { public String toXmlString() {
StringBundler sb = new StringBundler(82); StringBundler sb = new StringBundler(85);
sb.append("<model><model-name>"); sb.append("<model><model-name>");
sb.append("it.tref.liferay.portos.bo.model.Pagamento"); sb.append("it.tref.liferay.portos.bo.model.Pagamento");
@ -1365,6 +1401,10 @@ public class PagamentoModelImpl extends BaseModelImpl<Pagamento>
"<column><column-name>emailPending</column-name><column-value><![CDATA["); "<column><column-name>emailPending</column-name><column-value><![CDATA[");
sb.append(getEmailPending()); sb.append(getEmailPending());
sb.append("]]></column-value></column>"); sb.append("]]></column-value></column>");
sb.append(
"<column><column-name>numeroBollettino</column-name><column-value><![CDATA[");
sb.append(getNumeroBollettino());
sb.append("]]></column-value></column>");
sb.append( sb.append(
"<column><column-name>oldPagamentoId</column-name><column-value><![CDATA["); "<column><column-name>oldPagamentoId</column-name><column-value><![CDATA[");
sb.append(getOldPagamentoId()); sb.append(getOldPagamentoId());
@ -1419,6 +1459,7 @@ public class PagamentoModelImpl extends BaseModelImpl<Pagamento>
private boolean _emailPending; private boolean _emailPending;
private boolean _originalEmailPending; private boolean _originalEmailPending;
private boolean _setOriginalEmailPending; private boolean _setOriginalEmailPending;
private String _numeroBollettino;
private long _oldPagamentoId; private long _oldPagamentoId;
private long _originalOldPagamentoId; private long _originalOldPagamentoId;
private boolean _setOriginalOldPagamentoId; private boolean _setOriginalOldPagamentoId;

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

@ -321,7 +321,7 @@ public class PagamentoLocalServiceClpInvoker {
_methodName242 = "updatePagamentoManuale"; _methodName242 = "updatePagamentoManuale";
_methodParameterTypes242 = new String[] { _methodParameterTypes242 = new String[] {
"long", "byte[][]", "java.lang.String", "long", "java.lang.String", "byte[][]", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
@ -702,8 +702,9 @@ public class PagamentoLocalServiceClpInvoker {
if (_methodName242.equals(name) && if (_methodName242.equals(name) &&
Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes242, parameterTypes)) {
PagamentoLocalServiceUtil.updatePagamentoManuale(((Long)arguments[0]).longValue(), PagamentoLocalServiceUtil.updatePagamentoManuale(((Long)arguments[0]).longValue(),
(byte[])arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[1], (byte[])arguments[2],
(com.liferay.portal.service.ServiceContext)arguments[3]); (java.lang.String)arguments[3],
(com.liferay.portal.service.ServiceContext)arguments[4]);
return null; return null;
} }

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

@ -55,7 +55,7 @@ public class PagamentoServiceClpInvoker {
_methodName187 = "updatePagamentoManuale"; _methodName187 = "updatePagamentoManuale";
_methodParameterTypes187 = new String[] { _methodParameterTypes187 = new String[] {
"long", "byte[][]", "java.lang.String", "long", "java.lang.String", "byte[][]", "java.lang.String",
"com.liferay.portal.service.ServiceContext" "com.liferay.portal.service.ServiceContext"
}; };
} }
@ -105,8 +105,9 @@ public class PagamentoServiceClpInvoker {
if (_methodName187.equals(name) && if (_methodName187.equals(name) &&
Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) { Arrays.deepEquals(_methodParameterTypes187, parameterTypes)) {
PagamentoServiceUtil.updatePagamentoManuale(((Long)arguments[0]).longValue(), PagamentoServiceUtil.updatePagamentoManuale(((Long)arguments[0]).longValue(),
(byte[])arguments[1], (java.lang.String)arguments[2], (java.lang.String)arguments[1], (byte[])arguments[2],
(com.liferay.portal.service.ServiceContext)arguments[3]); (java.lang.String)arguments[3],
(com.liferay.portal.service.ServiceContext)arguments[4]);
return null; return null;
} }

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

@ -107,13 +107,14 @@ public class PagamentoServiceSoap {
} }
} }
public static void updatePagamentoManuale(long pagamentoId, byte[] content, public static void updatePagamentoManuale(long pagamentoId,
java.lang.String numeroBollettino, byte[] content,
java.lang.String sourceFileName, java.lang.String sourceFileName,
com.liferay.portal.service.ServiceContext serviceContext) com.liferay.portal.service.ServiceContext serviceContext)
throws RemoteException { throws RemoteException {
try { try {
PagamentoServiceUtil.updatePagamentoManuale(pagamentoId, content, PagamentoServiceUtil.updatePagamentoManuale(pagamentoId,
sourceFileName, serviceContext); numeroBollettino, content, sourceFileName, serviceContext);
} }
catch (Exception e) { catch (Exception e) {
_log.error(e, e); _log.error(e, e);

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

@ -594,7 +594,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
} }
public void updatePagamentoManuale(long pagamentoId, byte[] content, String sourceFileName, public void updatePagamentoManuale(long pagamentoId, String numeroBollettino, byte[] content, String sourceFileName,
ServiceContext serviceContext) throws IOException, PortalException, SystemException { ServiceContext serviceContext) throws IOException, PortalException, SystemException {
Pagamento pagamento = pagamentoLocalService.getPagamento(pagamentoId); Pagamento pagamento = pagamentoLocalService.getPagamento(pagamentoId);
@ -634,6 +634,7 @@ public class PagamentoLocalServiceImpl extends PagamentoLocalServiceBaseImpl {
mimeType, title, description, changeLog, content, serviceContext); mimeType, title, description, changeLog, content, serviceContext);
fileEntryId = fileEntry.getFileEntryId(); fileEntryId = fileEntry.getFileEntryId();
pagamento.setNumeroBollettino(numeroBollettino);
pagamento.setFileEntryId(fileEntryId); pagamento.setFileEntryId(fileEntryId);
pagamento = pagamentoLocalService.updatePagamento(pagamento); pagamento = pagamentoLocalService.updatePagamento(pagamento);

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

@ -100,7 +100,7 @@ public class PagamentoServiceImpl extends PagamentoServiceBaseImpl {
} }
} }
public void updatePagamentoManuale(long pagamentoId, byte[] content, String sourceFileName, public void updatePagamentoManuale(long pagamentoId, String numeroBollettino, byte[] content, String sourceFileName,
ServiceContext serviceContext) throws IOException, PortalException, SystemException { ServiceContext serviceContext) throws IOException, PortalException, SystemException {
Pagamento pagamento = PagamentoLocalServiceUtil.getPagamento(pagamentoId); Pagamento pagamento = PagamentoLocalServiceUtil.getPagamento(pagamentoId);
@ -108,7 +108,7 @@ public class PagamentoServiceImpl extends PagamentoServiceBaseImpl {
if (getUserId() == userId || DelegheUtil.hasDelegaPagamento(userId, pagamento.getClassPk())) { if (getUserId() == userId || DelegheUtil.hasDelegaPagamento(userId, pagamento.getClassPk())) {
pagamentoLocalService pagamentoLocalService
.updatePagamentoManuale(pagamentoId, content, sourceFileName, serviceContext); .updatePagamentoManuale(pagamentoId, numeroBollettino, content, sourceFileName, serviceContext);
} else { } else {
throw new SystemException("pagamento manuale aggiornabile solo da titolare digitale del " throw new SystemException("pagamento manuale aggiornabile solo da titolare digitale del "
+ pagamento.getClassName()); + pagamento.getClassName());

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

@ -5769,6 +5769,7 @@ public class PagamentoPersistenceImpl extends BasePersistenceImpl<Pagamento>
pagamentoImpl.setOtf(pagamento.isOtf()); pagamentoImpl.setOtf(pagamento.isOtf());
pagamentoImpl.setOtfCreateDate(pagamento.getOtfCreateDate()); pagamentoImpl.setOtfCreateDate(pagamento.getOtfCreateDate());
pagamentoImpl.setEmailPending(pagamento.isEmailPending()); pagamentoImpl.setEmailPending(pagamento.isEmailPending());
pagamentoImpl.setNumeroBollettino(pagamento.getNumeroBollettino());
pagamentoImpl.setOldPagamentoId(pagamento.getOldPagamentoId()); pagamentoImpl.setOldPagamentoId(pagamento.getOldPagamentoId());
return pagamentoImpl; return pagamentoImpl;

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.namespace=portos_bo
build.number=2651 build.number=2654
build.date=1601893192808 build.date=1601903918911
build.auto.upgrade=true build.auto.upgrade=true
## ##

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

@ -2830,13 +2830,13 @@ public class FascicoloFePortlet extends MVCPortlet {
if (!SessionErrors.isEmpty(actionRequest)) { if (!SessionErrors.isEmpty(actionRequest)) {
PortalUtil.copyRequestParameters(actionRequest, actionResponse); PortalUtil.copyRequestParameters(actionRequest, actionResponse);
} else { } else {
String numeroBollettino = ParamUtil.getString(actionRequest, "numeroBollettino");
byte[] content = FileUtil.getBytes(file); byte[] content = FileUtil.getBytes(file);
// DettPraticaServiceUtil.updatePagamentoManuale(pagamentoId, // DettPraticaServiceUtil.updatePagamentoManuale(pagamentoId,
// pagamento.getDettPraticaId(), // pagamento.getDettPraticaId(),
// content, // content,
// sourceFileName, serviceContext); // sourceFileName, serviceContext);
PagamentoServiceUtil.updatePagamentoManuale(pagamentoId, content, sourceFileName, PagamentoServiceUtil.updatePagamentoManuale(pagamentoId, numeroBollettino, content, sourceFileName, serviceContext);
serviceContext);
} }
} catch (Exception e) { } catch (Exception e) {

22
liferay-plugins-sdk-6.2/portlets/portos-fe-portlet/docroot/html/fascicolofe/verify_fascicolo_calcolo.jsp

@ -183,7 +183,7 @@
<c:if <c:if
test="<%=!PagamentiCommonUtil.irisIsEnable(companyId) || pagamentoOneri.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE)%>"> test="<%=!PagamentiCommonUtil.irisIsEnable(companyId) || pagamentoOneri.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE)%>">
<div class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15"> <div class="col-xs-12 col-sm-8 col-md-8 col-lg-8 padding_15">
<!-- <span><%=LanguageUtil.get(pageContext, "text-pagamento-manuale-spese")%></span> --> <!-- <span><%=LanguageUtil.get(pageContext, "text-pagamento-manuale-spese")%></span> -->
<c:if <c:if
test="<%=(pagamentoOneriIsPending && pagamentoOneri.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE) && PagamentiCommonUtil.irisIsEnable(companyId) )%>"> test="<%=(pagamentoOneriIsPending && pagamentoOneri.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE) && PagamentiCommonUtil.irisIsEnable(companyId) )%>">
@ -197,10 +197,17 @@
</liferay-util:include> </liferay-util:include>
</c:if> </c:if>
</div> </div>
<div class="col-xs-2 col-sm-2 col-md-2 col-lg-2 padding_15 total-row"> <div class="col-xs-12 col-sm-4 col-md-4 col-lg-4 padding_15 total-row">
<aui:form name="<%=formRicevutaPagamento%>" <aui:form name="<%=formRicevutaPagamento%>"
enctype="multipart/form-data" method="post" enctype="multipart/form-data" method="post"
action="<%=allegatoFilePagamentoURL%>"> action="<%=allegatoFilePagamentoURL%>">
<div>
<aui:input type="text" cssClass="" label="label-codice-bollettino" name="numeroBollettino">
<aui:validator name="required" errorMessage="Campo Richiesto" />
</aui:input>
</div>
<div> <div>
<aui:input type="file" name="docFile" <aui:input type="file" name="docFile"
label="ricevuta-pagamento-spese"> label="ricevuta-pagamento-spese">
@ -304,7 +311,7 @@
<c:if <c:if
test="<%=!PagamentiCommonUtil.irisIsEnable(companyId) || pagamentoBolli.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE)%>"> test="<%=!PagamentiCommonUtil.irisIsEnable(companyId) || pagamentoBolli.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE)%>">
<div <div
class="col-xs-10 col-sm-10 col-md-10 col-lg-10 padding_15"> class="col-xs-12 col-sm-8 col-md-8 col-lg-8 padding_15">
<!-- <span><%=LanguageUtil.get(pageContext, "text-pagamento-manuale-bolli")%></span>--> <!-- <span><%=LanguageUtil.get(pageContext, "text-pagamento-manuale-bolli")%></span>-->
<c:if <c:if
test="<%=(pagamentoBolliIsPending && pagamentoBolli.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE) && test="<%=(pagamentoBolliIsPending && pagamentoBolli.getMezzo().equalsIgnoreCase(PagamentoConstants.MEZZO_MANUALE) &&
@ -320,10 +327,17 @@
</c:if> </c:if>
</div> </div>
<div <div
class="col-xs-2 col-sm-2 col-md-2 col-lg-2 padding_15 total-row"> class="col-xs-12 col-sm-4 col-md-4 col-lg-4 padding_15 total-row">
<aui:form name="<%=formRicevutaPagamento%>" <aui:form name="<%=formRicevutaPagamento%>"
enctype="multipart/form-data" method="post" enctype="multipart/form-data" method="post"
action="<%=allegatoFilePagamentoURL%>"> action="<%=allegatoFilePagamentoURL%>">
<div>
<aui:input type="text" cssClass="" label="label-codice-bollettino" name="numeroBollettino">
<aui:validator name="required" errorMessage="Campo Richiesto" />
</aui:input>
</div>
<div> <div>
<aui:input type="file" name="docFile" <aui:input type="file" name="docFile"
label="Ricevuta Pagamento"> label="Ricevuta Pagamento">

Caricamento…
Annulla
Salva