Sfoglia il codice sorgente

creazione portlet pannello fine lavori

feature/pannello-pratiche
marcoalderighi 2 anni fa
parent
commit
1e5c8a0920
  1. 1
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-display.xml
  2. 7
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/liferay-portlet.xml
  3. 34
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/portlet.xml
  4. 13
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/portlet/FineLavoriCollaudoPanel.java
  5. 4
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java
  6. 5
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerPratiche.java
  7. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/flcollaudopanel/init.jsp
  8. 2
      liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/flcollaudopanel/view.jsp
  9. 1
      liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.tern-project

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

@ -14,6 +14,7 @@
<portlet id="generate-protocollo-csv"></portlet>
<portlet id="22"></portlet>
<portlet id="13"></portlet>
<portlet id="14"></portlet>
</category>
</category>
<category name="category.hidden">

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

@ -203,6 +203,13 @@
<footer-portlet-javascript>/js/main.js?v=4</footer-portlet-javascript>
<css-class-wrapper>13-portlet</css-class-wrapper>
</portlet>
<portlet>
<portlet-name>14</portlet-name>
<icon>/icon.png</icon>
<header-portlet-css>/css/main.css?v=4</header-portlet-css>
<footer-portlet-javascript>/js/main.js?v=4</footer-portlet-javascript>
<css-class-wrapper>13-portlet</css-class-wrapper>
</portlet>
<role-mapper>
<role-name>administrator</role-name>
<role-link>Administrator</role-link>

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

@ -565,4 +565,38 @@
<role-name>user</role-name>
</security-role-ref>
</portlet>
<portlet>
<portlet-name>14</portlet-name>
<display-name>Pannello Controllo Fine Lavori/Collaudo</display-name>
<portlet-class>
it.tref.liferay.portos.bo.portlet.FineLavoriCollaudoPanel
</portlet-class>
<init-param>
<name>view-template</name>
<value>/html/flcollaudopanel/view.jsp</value>
</init-param>
<expiration-cache>0</expiration-cache>
<supports>
<mime-type>text/html</mime-type>
<portlet-mode>view</portlet-mode>
</supports>
<resource-bundle>content.Language</resource-bundle>
<portlet-info>
<title>Pannello Controllo Fine Lavori/Collaudo</title>
<short-title>14</short-title>
<keywords></keywords>
</portlet-info>
<security-role-ref>
<role-name>administrator</role-name>
</security-role-ref>
<security-role-ref>
<role-name>guest</role-name>
</security-role-ref>
<security-role-ref>
<role-name>power-user</role-name>
</security-role-ref>
<security-role-ref>
<role-name>user</role-name>
</security-role-ref>
</portlet>
</portlet-app>

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

@ -0,0 +1,13 @@
package it.tref.liferay.portos.bo.portlet;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.util.bridges.mvc.MVCPortlet;
public class FineLavoriCollaudoPanel extends MVCPortlet {
private Log _log = LogFactoryUtil.getLog(FineLavoriCollaudoPanel.class);
}

4
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/WEB-INF/src/it/tref/liferay/portos/bo/scheduler/SchedulerInvioDocumento.java

@ -287,12 +287,12 @@ public class SchedulerInvioDocumento implements MessageListener {
FineLavori fineLavori = FineLavoriLocalServiceUtil.getFineLavori(avviso.getClassPk());
tipoAllegato += LanguageUtil.get(LocaleUtil.ITALIAN,
"label-integrazione-" + (fineLavori.getParziale() ? "09" : "07"))
+ " n° " + fineLavori.getNumero();
+ " n° " + fineLavori.getNumero();
} else if (avviso.getClassName().equals(Collaudo.class.getName())) {
Collaudo collaudo = CollaudoLocalServiceUtil.getCollaudo(avviso.getClassPk());
tipoAllegato += LanguageUtil.get(LocaleUtil.ITALIAN,
"label-integrazione-" + (collaudo.getParziale() ? "10" : "08"))
+ " n° " + collaudo.getNumero();
+ " n° " + collaudo.getNumero();
}
}
} else {

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

@ -133,7 +133,8 @@ public class SchedulerPratiche implements MessageListener {
PrincipalThreadLocal.setName(user.getUserId());
PermissionChecker permissionChecker = PermissionCheckerFactoryUtil.create(user);
PermissionThreadLocal.setPermissionChecker(permissionChecker);
if (!fineLavori.isParziale() && fineLavori.isRichiestaAttestazione()) {
// if (!fineLavori.isParziale() && fineLavori.isRichiestaAttestazione()) {
if (fineLavori.isRichiestaAttestazione()) {
creaAvvisoVidimazione(fineLavori.getCompanyId(), fineLavori.getGroupId(),
fineLavori.getUserId(), fineLavori.getIntPraticaId(),
fineLavori.getFineLavoriId(), FineLavori.class.getName());
@ -273,7 +274,7 @@ public class SchedulerPratiche implements MessageListener {
IntPratica intPratica = IntPraticaLocalServiceUtil.getIntPratica(dettPratica.getIntPraticaId());
intPratica = assegnaNumeroProgetto(intPratica);
String tipoIntegrazione = dettPratica.getTipoIntegrazione();
// 1º Avviso di ricezione corretta o in errore della pratica
// 1º Avviso di ricezione corretta o in errore della pratica
int count = AvvisoLocalServiceUtil.countAvvisoByClassPk_ClassName(dettPratica.getDettPraticaId(),
DettPratica.class.getName());
// in caso di errore non genere un nuovo avviso

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/flcollaudopanel/init.jsp

@ -0,0 +1,2 @@
<%@page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@include file="/html/init.jsp"%>

2
liferay-plugins-sdk-6.2/portlets/portos-bo-portlet/docroot/html/flcollaudopanel/view.jsp

@ -0,0 +1,2 @@
<%@ include file="/html/flcollaudopanel/init.jsp" %>

1
liferay-plugins-sdk-6.2/portlets/portos-report-engine-portlet/.tern-project

@ -0,0 +1 @@
{"ide":{"scriptPaths":[]},"plugins":{"aui":{},"liferay":{},"yui":{}},"libs":["ecma5","browser"]}
Caricamento…
Annulla
Salva