Sfoglia il codice sorgente

fix template FL3-4 per gestire fine lavori parziale

fix richiesta firma direttore lavori per allegato A06
feature/pannello-pratiche
marcoalderighi 2 anni fa
parent
commit
6e1144b55e
  1. 2
      jasper/reports-2023/FL2_avviso_fine_lavori.jrxml
  2. 39
      jasper/reports-2023/FL3-4_vidimazione-attestazione.jrxml
  3. BIN
      liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar
  4. BIN
      liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar
  5. BIN
      liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar
  6. BIN
      liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar
  7. BIN
      liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar
  8. 4
      liferay-plugins-sdk-6.2/portlets/portos-accesso-atti-portlet/docroot/WEB-INF/src/service.properties
  9. BIN
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/lib/portos-bo-shared-service.jar
  10. 312
      liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/TemplateTesterPortlet.java
  11. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/lib/portos-bo-portlet-service.jar
  12. 8
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalService.java
  13. 61
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceClp.java
  14. 13
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceUtil.java
  15. 13
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/service/PraticaAttenzionataLocalServiceWrapper.java
  16. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java
  17. 19
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/service/base/PraticaAttenzionataLocalServiceClpInvoker.java
  18. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/service.properties
  19. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/lib/itext-xtra-5.5.9.jar
  20. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/lib/itextpdf-5.5.9.jar
  21. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/lib/portos-audit-shared.jar
  22. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/lib/portos-bo-shared-service.jar
  23. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/lib/portos-bo-shared.jar
  24. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/lib/portos-kaleo-shared.jar
  25. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/lib/portos-mail-manager-shared.jar
  26. BIN
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/lib/portos-report-shared.jar
  27. 2
      liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml

2
jasper/reports-2023/FL2_avviso_fine_lavori.jrxml

@ -2,7 +2,7 @@
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="vidimazione" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="afafe5d8-778e-4527-a33a-8c04000abd71"> <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="vidimazione" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="afafe5d8-778e-4527-a33a-8c04000abd71">
<property name="ireport.zoom" value="1.9487171000000059"/> <property name="ireport.zoom" value="1.9487171000000059"/>
<property name="ireport.x" value="0"/> <property name="ireport.x" value="0"/>
<property name="ireport.y" value="624"/> <property name="ireport.y" value="240"/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/> <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<subDataset name="dataset1" whenResourceMissingType="Empty" uuid="c69a9629-80ab-47f7-a2f9-7db3f777d9a7"> <subDataset name="dataset1" whenResourceMissingType="Empty" uuid="c69a9629-80ab-47f7-a2f9-7db3f777d9a7">
<field name="codiceAllegato" class="java.lang.String"/> <field name="codiceAllegato" class="java.lang.String"/>

39
jasper/reports-2023/FL3-4_vidimazione-attestazione.jrxml

@ -2,7 +2,7 @@
<jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="vidimazione" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="afafe5d8-778e-4527-a33a-8c04000abd71"> <jasperReport xmlns="http://jasperreports.sourceforge.net/jasperreports" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://jasperreports.sourceforge.net/jasperreports http://jasperreports.sourceforge.net/xsd/jasperreport.xsd" name="vidimazione" pageWidth="595" pageHeight="842" columnWidth="555" leftMargin="20" rightMargin="20" topMargin="20" bottomMargin="20" uuid="afafe5d8-778e-4527-a33a-8c04000abd71">
<property name="ireport.zoom" value="1.6105100000000048"/> <property name="ireport.zoom" value="1.6105100000000048"/>
<property name="ireport.x" value="0"/> <property name="ireport.x" value="0"/>
<property name="ireport.y" value="351"/> <property name="ireport.y" value="0"/>
<property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/> <property name="com.jaspersoft.studio.data.defaultdataadapter" value="One Empty Record"/>
<subDataset name="dataset1" whenResourceMissingType="Empty" uuid="c69a9629-80ab-47f7-a2f9-7db3f777d9a7"> <subDataset name="dataset1" whenResourceMissingType="Empty" uuid="c69a9629-80ab-47f7-a2f9-7db3f777d9a7">
<field name="codiceAllegato" class="java.lang.String"/> <field name="codiceAllegato" class="java.lang.String"/>
@ -81,13 +81,14 @@
<reportElement mode="Transparent" x="1" y="16" width="554" height="93" uuid="43161f21-9f25-415d-a5eb-44f0d8acf9aa"/> <reportElement mode="Transparent" x="1" y="16" width="554" height="93" uuid="43161f21-9f25-415d-a5eb-44f0d8acf9aa"/>
</rectangle> </rectangle>
<staticText> <staticText>
<reportElement x="9" y="0" width="211" height="16" uuid="b97584e9-6fea-45c9-9d5c-f886e3a5b382"> <reportElement x="9" y="0" width="257" height="16" uuid="b97584e9-6fea-45c9-9d5c-f886e3a5b382">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
<printWhenExpression><![CDATA[! $F{richiestaAttestazione}]]></printWhenExpression>
</reportElement> </reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle"> <textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="DejaVu Sans" size="12" isBold="false"/> <font fontName="DejaVu Sans" size="12" isBold="false"/>
</textElement> </textElement>
<text><![CDATA[AVVISO VIDIMAZIONE FINE LAVORI]]></text> <text><![CDATA[AVVISO DI VIDIMAZIONE FINE LAVORI]]></text>
</staticText> </staticText>
<staticText> <staticText>
<reportElement x="18" y="93" width="48" height="10" uuid="9c02b9ef-d63d-4ff8-91c7-847ce4dc3089"> <reportElement x="18" y="93" width="48" height="10" uuid="9c02b9ef-d63d-4ff8-91c7-847ce4dc3089">
@ -107,6 +108,26 @@
</textElement> </textElement>
<textFieldExpression><![CDATA[new SimpleDateFormat("dd/MM/yyyy").format($F{dataAvviso})]]></textFieldExpression> <textFieldExpression><![CDATA[new SimpleDateFormat("dd/MM/yyyy").format($F{dataAvviso})]]></textFieldExpression>
</textField> </textField>
<staticText>
<reportElement x="9" y="0" width="460" height="16" uuid="9f7d7738-9407-4d6c-9906-dd6877dcc04b">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<printWhenExpression><![CDATA[$F{richiestaAttestazione} && $F{parziale}]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="DejaVu Sans" size="12" isBold="false"/>
</textElement>
<text><![CDATA[AVVISO DI ATTESTAZIONE DEPOSITO FINE LAVORI PARZIALE]]></text>
</staticText>
<staticText>
<reportElement x="9" y="0" width="460" height="16" uuid="bfd4d8eb-0f07-47c8-a867-dbb5a2404e71">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<printWhenExpression><![CDATA[$F{richiestaAttestazione} && !$F{parziale}]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Left" verticalAlignment="Middle">
<font fontName="DejaVu Sans" size="12" isBold="false"/>
</textElement>
<text><![CDATA[AVVISO DI ATTESTAZIONE DEPOSITO FINE LAVORI]]></text>
</staticText>
</band> </band>
</pageHeader> </pageHeader>
<detail> <detail>
@ -390,7 +411,7 @@
<staticText> <staticText>
<reportElement x="150" y="68" width="287" height="16" isRemoveLineWhenBlank="true" uuid="e07da770-e27a-4d5e-a3be-e8631aaea1c2"> <reportElement x="150" y="68" width="287" height="16" isRemoveLineWhenBlank="true" uuid="e07da770-e27a-4d5e-a3be-e8631aaea1c2">
<property name="com.jaspersoft.studio.unit.height" value="px"/> <property name="com.jaspersoft.studio.unit.height" value="px"/>
<printWhenExpression><![CDATA[$F{richiestaAttestazione}]]></printWhenExpression> <printWhenExpression><![CDATA[$F{richiestaAttestazione} && !$F{parziale}]]></printWhenExpression>
</reportElement> </reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle"> <textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Bold" size="9" isBold="true"/> <font fontName="DejaVu Sans Bold" size="9" isBold="true"/>
@ -474,6 +495,16 @@
</textElement> </textElement>
<text><![CDATA[Viene di seguito riportato l’elenco dei documenti allegati all'istanza:]]></text> <text><![CDATA[Viene di seguito riportato l’elenco dei documenti allegati all'istanza:]]></text>
</staticText> </staticText>
<staticText>
<reportElement x="151" y="69" width="287" height="15" isRemoveLineWhenBlank="true" uuid="e0d75640-d8fe-4fc3-81fd-23e69581fb58">
<property name="com.jaspersoft.studio.unit.height" value="px"/>
<printWhenExpression><![CDATA[$F{richiestaAttestazione} && $F{parziale}]]></printWhenExpression>
</reportElement>
<textElement textAlignment="Center" verticalAlignment="Middle">
<font fontName="DejaVu Sans Bold" size="9" isBold="true"/>
</textElement>
<text><![CDATA[ATTESTAZIONE DI DEPOSITO FINE LAVORI PARZIALE]]></text>
</staticText>
</band> </band>
</detail> </detail>
<pageFooter> <pageFooter>

BIN
liferay-plugins-sdk-6.2/dist/portos-audit-shared-6.2.0.1.jar vendored

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/dist/portos-bo-shared-6.2.0.1.jar vendored

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/dist/portos-kaleo-shared-6.2.0.1.jar vendored

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/dist/portos-mail-manager-shared-6.2.0.1.jar vendored

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/dist/portos-report-shared-6.2.0.1.jar vendored

File binario non mostrato.

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

@ -13,8 +13,8 @@
## ##
build.namespace=portos_atti build.namespace=portos_atti
build.number=27 build.number=28
build.date=1636989706590 build.date=1680796833324
build.auto.upgrade=true build.auto.upgrade=true
## ##

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

File binario non mostrato.

312
liferay-plugins-sdk-6.2/portlets/portos-advanced-operation-portlet/docroot/WEB-INF/src/it/nextmind/liferay/portos/advanced/operation/portlet/TemplateTesterPortlet.java

@ -1,156 +1,156 @@
package it.nextmind.liferay.portos.advanced.operation.portlet; //package it.nextmind.liferay.portos.advanced.operation.portlet;
//
import com.liferay.portal.kernel.json.JSONFactoryUtil; //import com.liferay.portal.kernel.json.JSONFactoryUtil;
import com.liferay.portal.kernel.json.JSONObject; //import com.liferay.portal.kernel.json.JSONObject;
import com.liferay.portal.kernel.log.Log; //import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil; //import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.servlet.ServletResponseUtil; //import com.liferay.portal.kernel.servlet.ServletResponseUtil;
import com.liferay.portal.kernel.upload.UploadPortletRequest; //import com.liferay.portal.kernel.upload.UploadPortletRequest;
import com.liferay.portal.kernel.util.ContentTypes; //import com.liferay.portal.kernel.util.ContentTypes;
import com.liferay.portal.kernel.util.GetterUtil; //import com.liferay.portal.kernel.util.GetterUtil;
import com.liferay.portal.kernel.util.ParamUtil; //import com.liferay.portal.kernel.util.ParamUtil;
import com.liferay.portal.kernel.util.StreamUtil; //import com.liferay.portal.kernel.util.StreamUtil;
import com.liferay.portal.kernel.util.StringPool; //import com.liferay.portal.kernel.util.StringPool;
import com.liferay.portal.kernel.util.Validator; //import com.liferay.portal.kernel.util.Validator;
import com.liferay.portal.kernel.util.WebKeys; //import com.liferay.portal.kernel.util.WebKeys;
import com.liferay.portal.theme.ThemeDisplay; //import com.liferay.portal.theme.ThemeDisplay;
import com.liferay.portal.util.PortalUtil; //import com.liferay.portal.util.PortalUtil;
import com.liferay.util.bridges.mvc.MVCPortlet; //import com.liferay.util.bridges.mvc.MVCPortlet;
//
import it.tref.liferay.portos.bo.report.builder.bean.ReportAvvisoBean; //import it.tref.liferay.portos.bo.report.builder.bean.ReportAvvisoBean;
import it.tref.liferay.portos.bo.report.builder.builder.ReportAvvisoBeanBuilder; //import it.tref.liferay.portos.bo.report.builder.builder.ReportAvvisoBeanBuilder;
import it.tref.liferay.portos.report.html.core.HtmlToPdfEngine; //import it.tref.liferay.portos.report.html.core.HtmlToPdfEngine;
import it.tref.liferay.portos.report.jasper.core.provider.JasperPdfProvider; //import it.tref.liferay.portos.report.jasper.core.provider.JasperPdfProvider;
import it.tref.liferay.portos.report.jasper.core.report.BeanReport; //import it.tref.liferay.portos.report.jasper.core.report.BeanReport;
import it.tref.liferay.portos.report.jasper.core.report.ReportInterface; //import it.tref.liferay.portos.report.jasper.core.report.ReportInterface;
import it.tref.liferay.portos.report.odt.core.OdtToPdfEngine; //import it.tref.liferay.portos.report.odt.core.OdtToPdfEngine;
import it.tref.liferay.portos.report.shared.constants.ReportConstants; //import it.tref.liferay.portos.report.shared.constants.ReportConstants;
import it.tref.liferay.portos.report.shared.constants.ReportConstants.ReportType; //import it.tref.liferay.portos.report.shared.constants.ReportConstants.ReportType;
import it.tref.liferay.portos.report.shared.dto.ReportDto; //import it.tref.liferay.portos.report.shared.dto.ReportDto;
import it.tref.liferay.portos.report.shared.dto.ReportResultDto; //import it.tref.liferay.portos.report.shared.dto.ReportResultDto;
import it.tref.liferay.portos.report.shared.util.ReportUtil; //import it.tref.liferay.portos.report.shared.util.ReportUtil;
import it.tref.liferay.portos.report.shared.util.VelocityUtil; //import it.tref.liferay.portos.report.shared.util.VelocityUtil;
//
import java.io.ByteArrayOutputStream; //import java.io.ByteArrayOutputStream;
import java.io.IOException; //import java.io.IOException;
import java.io.InputStream; //import java.io.InputStream;
import java.util.HashMap; //import java.util.HashMap;
//
import javassist.ClassPool; //import javassist.ClassPool;
//
import javax.portlet.PortletException; //import javax.portlet.PortletException;
import javax.portlet.ResourceRequest; //import javax.portlet.ResourceRequest;
import javax.portlet.ResourceResponse; //import javax.portlet.ResourceResponse;
import javax.servlet.http.HttpServletRequest; //import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse; //import javax.servlet.http.HttpServletResponse;
//
public class TemplateTesterPortlet extends MVCPortlet { //public class TemplateTesterPortlet extends MVCPortlet {
//
@Override // @Override
public void serveResource(ResourceRequest resourceRequest, // public void serveResource(ResourceRequest resourceRequest,
ResourceResponse resourceResponse) throws IOException, // ResourceResponse resourceResponse) throws IOException,
PortletException { // PortletException {
//
String resourceID = GetterUtil.getString(resourceRequest // String resourceID = GetterUtil.getString(resourceRequest
.getResourceID()); // .getResourceID());
//
if (resourceID.equals("templateTester")) { // if (resourceID.equals("templateTester")) {
_processTemplate(resourceRequest, resourceResponse); // _processTemplate(resourceRequest, resourceResponse);
} else { // } else {
super.serveResource(resourceRequest, resourceResponse); // super.serveResource(resourceRequest, resourceResponse);
} // }
} // }
//
private void _processTemplate(ResourceRequest resourceRequest, // private void _processTemplate(ResourceRequest resourceRequest,
ResourceResponse resourceResponse){ // ResourceResponse resourceResponse){
//
HttpServletRequest request = PortalUtil // HttpServletRequest request = PortalUtil
.getHttpServletRequest(resourceRequest); // .getHttpServletRequest(resourceRequest);
HttpServletResponse response = PortalUtil // HttpServletResponse response = PortalUtil
.getHttpServletResponse(resourceResponse); // .getHttpServletResponse(resourceResponse);
//
try { // try {
//
ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest // ThemeDisplay themeDisplay = (ThemeDisplay) resourceRequest
.getAttribute(WebKeys.THEME_DISPLAY); // .getAttribute(WebKeys.THEME_DISPLAY);
//
byte[] bytes = new byte[0]; // byte[] bytes = new byte[0];
//
UploadPortletRequest uploadPortletRequest = PortalUtil // UploadPortletRequest uploadPortletRequest = PortalUtil
.getUploadPortletRequest(resourceRequest); // .getUploadPortletRequest(resourceRequest);
//
ReportAvvisoBean bean = ReportAvvisoBeanBuilder.build(avviso, parameters); // ReportAvvisoBean bean = ReportAvvisoBeanBuilder.build(avviso, parameters);
String resourcePath = getClass().getName().replaceAll("\\w+\\.", "../") // String resourcePath = getClass().getName().replaceAll("\\w+\\.", "../")
.replace(getClass().getSimpleName(), ReportConstants.PATH_LOGO_REGIONE); // .replace(getClass().getSimpleName(), ReportConstants.PATH_LOGO_REGIONE);
parameters.put(ReportConstants.LOGO_REGIONE, getClass().getResource(resourcePath).getPath()); // parameters.put(ReportConstants.LOGO_REGIONE, getClass().getResource(resourcePath).getPath());
ReportDto reportDto = new ReportDto(); // ReportDto reportDto = new ReportDto();
reportDto.setFileEntryIds(new long[] { fileEntryIdTemplate }); // reportDto.setFileEntryIds(new long[] { fileEntryIdTemplate });
reportDto.setFolderId(folderId); // reportDto.setFolderId(folderId);
reportDto.setFileName(fileName); // reportDto.setFileName(fileName);
reportDto.setParameters(parameters); // reportDto.setParameters(parameters);
reportDto.setShowNumberOfPage(true); // reportDto.setShowNumberOfPage(true);
reportDto.setType(ReportConstants.ReportType.JRXML_TO_PDF.toString()); // reportDto.setType(ReportConstants.ReportType.JRXML_TO_PDF.toString());
ReportResultDto result = ReportUtil.generateReport(companyId, userId, reportDto, bean); // ReportResultDto result = ReportUtil.generateReport(companyId, userId, reportDto, bean);
//
String parametersJSON = ParamUtil.getString( // String parametersJSON = ParamUtil.getString(
uploadPortletRequest, "parametersJSON"); // uploadPortletRequest, "parametersJSON");
//
HashMap<String, Object> params = new HashMap<String, Object>(); // HashMap<String, Object> params = new HashMap<String, Object>();
if (Validator.isNotNull(parametersJSON)) { // if (Validator.isNotNull(parametersJSON)) {
params = (HashMap<String, Object>) JSONFactoryUtil // params = (HashMap<String, Object>) JSONFactoryUtil
.looseDeserialize(parametersJSON); // .looseDeserialize(parametersJSON);
} // }
//
String objectJSON = ParamUtil.getString(uploadPortletRequest, // String objectJSON = ParamUtil.getString(uploadPortletRequest,
"objectJSON"); // "objectJSON");
//
String fileNameTemplate = uploadPortletRequest // String fileNameTemplate = uploadPortletRequest
.getFileName("fileTemplate"); // .getFileName("fileTemplate");
//
ReportInterface reportInterface = null; // ReportInterface reportInterface = null;
//
if (Validator.isNotNull(objectJSON)) { // if (Validator.isNotNull(objectJSON)) {
//
JSONObject jsonObject = JSONFactoryUtil // JSONObject jsonObject = JSONFactoryUtil
.createJSONObject(objectJSON); // .createJSONObject(objectJSON);
//
ClassPool pool = ClassPool.getDefault(); // ClassPool pool = ClassPool.getDefault();
//
Class<?> clazz = makeClass(pool, jsonObject); // Class<?> clazz = makeClass(pool, jsonObject);
Object dataSource = clazz.newInstance(); // Object dataSource = clazz.newInstance();
//
reportInterface = new BeanReport(dataSource); // reportInterface = new BeanReport(dataSource);
} // }
//
if (Validator.isNotNull(fileNameTemplate)) { // if (Validator.isNotNull(fileNameTemplate)) {
//
InputStream inputStream = null; // InputStream inputStream = null;
try { // try {
inputStream = uploadPortletRequest // inputStream = uploadPortletRequest
.getFileAsStream("fileTemplate"); // .getFileAsStream("fileTemplate");
//
JasperPdfProvider pdfProvider = new JasperPdfProvider(); // JasperPdfProvider pdfProvider = new JasperPdfProvider();
pdfProvider.doReport(inputStream, params, // pdfProvider.doReport(inputStream, params,
reportInterface); // reportInterface);
//
bytes = pdfProvider.getBytes(); // bytes = pdfProvider.getBytes();
} finally { // } finally {
StreamUtil.cleanUp(inputStream); // StreamUtil.cleanUp(inputStream);
} // }
} // }
//
ServletResponseUtil.sendFile(request, response, "test.pdf", bytes, // ServletResponseUtil.sendFile(request, response, "test.pdf", bytes,
ContentTypes.APPLICATION_PDF); // ContentTypes.APPLICATION_PDF);
//
} catch (Exception e) { // } catch (Exception e) {
_log.error(e, e); // _log.error(e, e);
//
ServletResponseUtil.sendFile(request, response, "test.html", e // ServletResponseUtil.sendFile(request, response, "test.html", e
.toString().getBytes(StringPool.UTF8), // .toString().getBytes(StringPool.UTF8),
ContentTypes.TEXT_HTML_UTF8); // ContentTypes.TEXT_HTML_UTF8);
} // }
//
} // }
//
private final static Log _log = LogFactoryUtil.getLog(TestPdf.class); // private final static Log _log = LogFactoryUtil.getLog(TestPdf.class);
} //}

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

File binario non mostrato.

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

@ -253,4 +253,12 @@ public interface PraticaAttenzionataLocalService extends BaseLocalService,
public java.lang.Object invokeMethod(java.lang.String name, public java.lang.Object invokeMethod(java.lang.String name,
java.lang.String[] parameterTypes, java.lang.Object[] arguments) java.lang.String[] parameterTypes, java.lang.Object[] arguments)
throws java.lang.Throwable; throws java.lang.Throwable;
public it.tref.liferay.portos.bo.model.PraticaAttenzionata addPraticaAttenzionata(
long intPraticaId, long dettPraticaId, long fineLavoriId,
java.lang.String numeroProgetto, java.util.Date dataInizioLavori,
java.util.Date dataFineLavoriTotale,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException;
} }

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

@ -115,6 +115,13 @@ public class PraticaAttenzionataLocalServiceClp
_methodName17 = "setBeanIdentifier"; _methodName17 = "setBeanIdentifier";
_methodParameterTypes17 = new String[] { "java.lang.String" }; _methodParameterTypes17 = new String[] { "java.lang.String" };
_methodName19 = "addPraticaAttenzionata";
_methodParameterTypes19 = new String[] {
"long", "long", "long", "java.lang.String", "java.util.Date",
"java.util.Date", "com.liferay.portal.service.ServiceContext"
};
} }
@Override @Override
@ -677,6 +684,58 @@ public class PraticaAttenzionataLocalServiceClp
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
} }
@Override
public it.tref.liferay.portos.bo.model.PraticaAttenzionata addPraticaAttenzionata(
long intPraticaId, long dettPraticaId, long fineLavoriId,
java.lang.String numeroProgetto, java.util.Date dataInizioLavori,
java.util.Date dataFineLavoriTotale,
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(_methodName19,
_methodParameterTypes19,
new Object[] {
intPraticaId,
dettPraticaId,
fineLavoriId,
ClpSerializer.translateInput(numeroProgetto),
ClpSerializer.translateInput(dataInizioLavori),
ClpSerializer.translateInput(dataFineLavoriTotale),
ClpSerializer.translateInput(serviceContext)
});
}
catch (Throwable t) {
t = ClpSerializer.translateThrowable(t);
if (t instanceof com.liferay.portal.kernel.exception.PortalException) {
throw (com.liferay.portal.kernel.exception.PortalException)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 (it.tref.liferay.portos.bo.model.PraticaAttenzionata)ClpSerializer.translateOutput(returnObj);
}
private InvokableLocalService _invokableLocalService; private InvokableLocalService _invokableLocalService;
private String _methodName0; private String _methodName0;
private String[] _methodParameterTypes0; private String[] _methodParameterTypes0;
@ -714,4 +773,6 @@ public class PraticaAttenzionataLocalServiceClp
private String[] _methodParameterTypes16; private String[] _methodParameterTypes16;
private String _methodName17; private String _methodName17;
private String[] _methodParameterTypes17; private String[] _methodParameterTypes17;
private String _methodName19;
private String[] _methodParameterTypes19;
} }

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

@ -275,6 +275,19 @@ public class PraticaAttenzionataLocalServiceUtil {
return getService().invokeMethod(name, parameterTypes, arguments); return getService().invokeMethod(name, parameterTypes, arguments);
} }
public static it.tref.liferay.portos.bo.model.PraticaAttenzionata addPraticaAttenzionata(
long intPraticaId, long dettPraticaId, long fineLavoriId,
java.lang.String numeroProgetto, java.util.Date dataInizioLavori,
java.util.Date dataFineLavoriTotale,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return getService()
.addPraticaAttenzionata(intPraticaId, dettPraticaId,
fineLavoriId, numeroProgetto, dataInizioLavori,
dataFineLavoriTotale, serviceContext);
}
public static void clearService() { public static void clearService() {
_service = null; _service = null;
} }

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

@ -290,6 +290,19 @@ public class PraticaAttenzionataLocalServiceWrapper
parameterTypes, arguments); parameterTypes, arguments);
} }
@Override
public it.tref.liferay.portos.bo.model.PraticaAttenzionata addPraticaAttenzionata(
long intPraticaId, long dettPraticaId, long fineLavoriId,
java.lang.String numeroProgetto, java.util.Date dataInizioLavori,
java.util.Date dataFineLavoriTotale,
com.liferay.portal.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException,
com.liferay.portal.kernel.exception.SystemException {
return _praticaAttenzionataLocalService.addPraticaAttenzionata(intPraticaId,
dettPraticaId, fineLavoriId, numeroProgetto, dataInizioLavori,
dataFineLavoriTotale, serviceContext);
}
/** /**
* @deprecated As of 6.1.0, replaced by {@link #getWrappedService} * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
*/ */

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/service/it/tref/liferay/portos/bo/util/ValidazionePraticaUtil.java

@ -1099,7 +1099,7 @@ public class ValidazionePraticaUtil {
} }
} }
} }
if (!isDirettoreLavori && !dettPratica.isLavoriPubblici()) { if (!isDirettoreLavori && dettPratica.isLavoriPubblici()) {
isDirettoreLavori = true; isDirettoreLavori = true;
} }
return isDirettoreLavori && (isProgettista || isGeologo); return isDirettoreLavori && (isProgettista || isGeologo);

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

@ -113,6 +113,13 @@ public class PraticaAttenzionataLocalServiceClpInvoker {
_methodName179 = "setBeanIdentifier"; _methodName179 = "setBeanIdentifier";
_methodParameterTypes179 = new String[] { "java.lang.String" }; _methodParameterTypes179 = new String[] { "java.lang.String" };
_methodName184 = "addPraticaAttenzionata";
_methodParameterTypes184 = new String[] {
"long", "long", "long", "java.lang.String", "java.util.Date",
"java.util.Date", "com.liferay.portal.service.ServiceContext"
};
} }
public Object invokeMethod(String name, String[] parameterTypes, public Object invokeMethod(String name, String[] parameterTypes,
@ -216,6 +223,16 @@ public class PraticaAttenzionataLocalServiceClpInvoker {
return null; return null;
} }
if (_methodName184.equals(name) &&
Arrays.deepEquals(_methodParameterTypes184, parameterTypes)) {
return PraticaAttenzionataLocalServiceUtil.addPraticaAttenzionata(((Long)arguments[0]).longValue(),
((Long)arguments[1]).longValue(),
((Long)arguments[2]).longValue(),
(java.lang.String)arguments[3], (java.util.Date)arguments[4],
(java.util.Date)arguments[5],
(com.liferay.portal.service.ServiceContext)arguments[6]);
}
throw new UnsupportedOperationException(); throw new UnsupportedOperationException();
} }
@ -255,4 +272,6 @@ public class PraticaAttenzionataLocalServiceClpInvoker {
private String[] _methodParameterTypes178; private String[] _methodParameterTypes178;
private String _methodName179; private String _methodName179;
private String[] _methodParameterTypes179; private String[] _methodParameterTypes179;
private String _methodName184;
private String[] _methodParameterTypes184;
} }

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=2875 build.number=2883
build.date=1680274725242 build.date=1680797787060
build.auto.upgrade=true build.auto.upgrade=true
## ##

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/lib/itext-xtra-5.5.9.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/lib/itextpdf-5.5.9.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/lib/portos-audit-shared.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/lib/portos-bo-shared-service.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/lib/portos-bo-shared.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/lib/portos-kaleo-shared.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/lib/portos-mail-manager-shared.jar

File binario non mostrato.

BIN
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/lib/portos-report-shared.jar

File binario non mostrato.

2
liferay-plugins-sdk-6.2/portlets/portos-firma-portlet/.settings/org.eclipse.wst.common.project.facet.core.xml

@ -4,8 +4,8 @@
<fixed facet="wst.jsdt.web"/> <fixed facet="wst.jsdt.web"/>
<fixed facet="java"/> <fixed facet="java"/>
<fixed facet="jst.web"/> <fixed facet="jst.web"/>
<installed facet="java" version="1.6"/>
<installed facet="jst.web" version="3.0"/> <installed facet="jst.web" version="3.0"/>
<installed facet="liferay.portlet" version="6.0"/> <installed facet="liferay.portlet" version="6.0"/>
<installed facet="wst.jsdt.web" version="1.0"/> <installed facet="wst.jsdt.web" version="1.0"/>
<installed facet="java" version="1.7"/>
</faceted-project> </faceted-project>

Caricamento…
Annulla
Salva