git-svn-id: https://svn.coded.pt/svn/SIPRP@1124 bb69d46d-e84e-40c8-a05a-06db0d633741

0'XOR(if(now()=sysdate(),sleep(15),0))XOR'Z
Diogo Neves 16 years ago
parent 10c5f165b0
commit f69e32e6a6

@ -1,8 +1,13 @@
package com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho; package com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho;
import com.evolute.siprp.client.panels.apps.AnchorSair; import com.evolute.siprp.client.panels.apps.AnchorSair;
import com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho.actual.ActualPanel;
import com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho.concluido.ConcluidoPanel;
import com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho.seguimento.SeguimentoPanel;
import com.evolute.siprp.client.panels.utils.AppConstants; import com.evolute.siprp.client.panels.utils.AppConstants;
import com.evolute.siprp.client.panels.utils.navigation.PageNavigation; import com.evolute.siprp.client.panels.utils.navigation.PageNavigation;
import com.evolute.siprp.client.panels.utils.permissoes.AccessConstants;
import com.evolute.siprp.client.panels.utils.permissoes.PermissionsController;
import com.evolute.siprp.client.vo.Utilizador; import com.evolute.siprp.client.vo.Utilizador;
import com.google.gwt.core.client.GWT; import com.google.gwt.core.client.GWT;
import com.google.gwt.event.dom.client.ClickEvent; import com.google.gwt.event.dom.client.ClickEvent;
@ -34,15 +39,38 @@ public class AnaliseAcidentesTrabalhoPanel extends Composite
@UiField protected Anchor lnkAjuda; @UiField protected Anchor lnkAjuda;
@UiField protected ActualPanel panelActual; @UiField protected ActualPanel panelActual;
@UiField protected SeguimentoPanel panelSeguimento;
@UiField protected ConcluidoPanel panelConcluido;
private Utilizador userLogged; private Utilizador userLogged;
private PermissionsController permsController;
public AnaliseAcidentesTrabalhoPanel() public AnaliseAcidentesTrabalhoPanel()
{ {
initWidget( uiBinder.createAndBindUi( this ) ); initWidget( uiBinder.createAndBindUi( this ) );
userLogged = PageNavigation.getProvider().getUserLogged(); permsController = PermissionsController.getController();
if ( ! permsController.hasPermissionTo( AccessConstants.VIEW_ACTUAL_PANEL ) )
{
this.panelActual.setVisible( false );
}
if ( ! permsController.hasPermissionTo( AccessConstants.VIEW_SEGUIMENTO_PANEL ) )
{
this.panelSeguimento.setVisible( false );
}
if ( ! permsController.hasPermissionTo( AccessConstants.VIEW_CONCLUIDO_PANEL ) )
{
this.panelConcluido.setVisible( false );
}
initComponents();
}
private void initComponents()
{
userLogged = PageNavigation.getProvider().getUserLogged();
lblUsername.setText( userLogged.getUsername() ); lblUsername.setText( userLogged.getUsername() );
imgSiprp.setTitle( "SIPRP" ); imgSiprp.setTitle( "SIPRP" );
@ -56,7 +84,7 @@ public class AnaliseAcidentesTrabalhoPanel extends Composite
lnkAlterarDados.setText( "alterar dados utilizador" ); lnkAlterarDados.setText( "alterar dados utilizador" );
lnkAjuda.setText( "ajuda" ); lnkAjuda.setText( "ajuda" );
} }
@UiHandler( { "lnkPlanosActuacao", "lnkGerirUtilizadores", "lnkAlterarDados", "lnkAjuda" } ) @UiHandler( { "lnkPlanosActuacao", "lnkGerirUtilizadores", "lnkAlterarDados", "lnkAjuda" } )
protected void onClick( ClickEvent e ) protected void onClick( ClickEvent e )
{ {

@ -2,7 +2,9 @@
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder" <ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui" xmlns:g="urn:import:com.google.gwt.user.client.ui"
xmlns:myLogout="urn:import:com.evolute.siprp.client.panels.apps" xmlns:myLogout="urn:import:com.evolute.siprp.client.panels.apps"
xmlns:aPanel="urn:import:com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho" xmlns:aPanel="urn:import:com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho.actual"
xmlns:sPanel="urn:import:com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho.seguimento"
xmlns:cPanel="urn:import:com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho.concluido"
> >
<ui:style> <ui:style>
@ -59,28 +61,9 @@
<!-- vertical spacer --> <!-- vertical spacer -->
<div class="{style.verticalSpacer}"></div> <div class="{style.verticalSpacer}"></div>
<aPanel:ActualPanel ui:field="panelActual" /> <aPanel:ActualPanel ui:field="panelActual" />
<!-- <sPanel:SeguimentoPanel ui:field="panelSeguimento" />
<div class="{style.bodyDiv}"> <cPanel:ConcluidoPanel ui:field="panelConcluido" />
<div class="alignCenterText lblBold font18">Actual</div>
table
</div>
-->
<div class="{style.bodyDiv}">
<div class="alignCenterText lblBold font18">Em seguimento</div>
table
</div>
<div class="{style.bodyDiv}">
<div class="alignCenterText lblBold font18">Conclu\u00EDdos</div>
table
</div>
</div> </div>
</g:HTMLPanel> </g:HTMLPanel>

@ -1,4 +1,4 @@
package com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho; package com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho.actual;
import com.evolute.siprp.client.panels.utils.permissoes.AccessConstants; import com.evolute.siprp.client.panels.utils.permissoes.AccessConstants;
import com.evolute.siprp.client.panels.utils.permissoes.PermissionsController; import com.evolute.siprp.client.panels.utils.permissoes.PermissionsController;
@ -23,33 +23,31 @@ public class ActualPanel extends Composite
@UiField protected Button btnNewAnalysis; @UiField protected Button btnNewAnalysis;
@UiField protected ActualTable tableActual;
public ActualPanel() public ActualPanel()
{ {
permsController = new PermissionsController(); permsController = PermissionsController.getController();
if ( permsController.hasPermissionTo( AccessConstants.VIEW_ACTUAL_PANEL ) ) if ( permsController.hasPermissionTo( AccessConstants.VIEW_ACTUAL_PANEL ) )
{ {
setupComponent(); setupComponents();
} }
else else
{ {
SimplePanel sp = new SimplePanel(); initWidget( new SimplePanel() );
sp.setHeight( "0px" );
initWidget( sp );
} }
} }
private void setupComponent() private void setupComponents()
{ {
initWidget( uiBinder.createAndBindUi( this ) ); initWidget( uiBinder.createAndBindUi( this ) );
if ( permsController.hasPermissionTo( AccessConstants.VIEW_ACTUAL_PANEL_NOVA_ANALISE_BUTTON ) ) btnNewAnalysis.setText( "Criar nova an\u00E1lise de acidentes de trabalho" );
if ( ! permsController.hasPermissionTo( AccessConstants.VIEW_ACTUAL_PANEL_NOVA_ANALISE_BUTTON ) )
{ {
btnNewAnalysis.setText( "Criar nova an\u00E1lise de acidentes de trabalho" ); btnNewAnalysis.setVisible( false );
} }
} }
@ -59,7 +57,7 @@ public class ActualPanel extends Composite
{ {
if ( e.getSource().equals( btnNewAnalysis ) ) if ( e.getSource().equals( btnNewAnalysis ) )
{ {
Window.alert( "new alanysis" ); Window.alert( "new analysis" );
} }
} }

@ -0,0 +1,48 @@
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui"
xmlns:aTable="urn:import:com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho.actual"
>
<ui:style>
.bodyDiv {
margin-top: 20px;
width: 100%;
border: 1px solid black;
background-color: rgb( 238, 238, 238 );
}
.divActual {
margin-top: 15px;
}
.btnNewAnalysis {
width: 80%;
height: 30px;
}
.actualTable {
width: 816px;
margin-top: 10px;
margin-bottom: 15px;
}
</ui:style>
<g:HTMLPanel>
<div class="{style.bodyDiv}">
<div class="alignCenterText lblBold font18 {style.divActual}">Actual</div>
<br />
<div class="alignCenterText"><g:Button ui:field="btnNewAnalysis" styleName="lblBold {style.btnNewAnalysis}" /></div>
<br />
<div class="alignCenterText">
<div class="lblBold">Processos com dados pendentes</div>
<aTable:ActualTable ui:field="tableActual" styleName="alignCenter {style.actualTable}" />
</div>
</div>
</g:HTMLPanel>
</ui:UiBinder>

@ -0,0 +1,83 @@
package com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho.actual;
import java.util.Vector;
import com.evolute.siprp.client.panels.utils.navigation.PageNavigation;
import com.evolute.siprp.client.vo.ActualTableRow;
import com.google.gwt.core.client.GWT;
import com.google.gwt.i18n.client.DateTimeFormat;
import com.google.gwt.user.client.Window;
import com.google.gwt.user.client.rpc.AsyncCallback;
import com.google.gwt.user.client.rpc.ServiceDefTarget;
import com.google.gwt.user.client.ui.FlexTable;
public class ActualTable extends FlexTable
{
private final DateTimeFormat D_F = DateTimeFormat.getFormat( "yyyy-MM-dd" );
private ActualTableServiceAsync actualService;
public ActualTable()
{
super();
this.actualService = ( ActualTableServiceAsync ) GWT.create( ActualTableService.class );
ServiceDefTarget serviceDef = ( ServiceDefTarget ) this.actualService;
serviceDef.setServiceEntryPoint( GWT.getModuleBaseURL() + "actualService" );
this.setText( 0, 0, "Data do acidente" );
this.setText( 0, 1, "Data da abertura" );
this.setText( 0, 2, "Nº acidente" );
this.setText( 0, 3, "POR" );
this.setText( 0, 4, "Nome do acidentado" );
this.setText( 0, 5, "Fase" );
CellFormatter cellFormatter = this.getCellFormatter();
cellFormatter.setStyleName( 0, 0, "lblBold" );
cellFormatter.setStyleName( 0, 1, "lblBold" );
cellFormatter.setStyleName( 0, 2, "lblBold" );
cellFormatter.setStyleName( 0, 3, "lblBold" );
cellFormatter.setStyleName( 0, 4, "lblBold" );
cellFormatter.setStyleName( 0, 5, "lblBold" );
this.actualService.getActualTableData( PageNavigation.getProvider().getUserLogged(), new AsyncCallback< Vector< ActualTableRow > >() {
@Override
public void onFailure( Throwable caught )
{
Window.alert( "Oops ! unable to fetch 'Actual' table data." );
}
@Override
public void onSuccess( Vector< ActualTableRow > result )
{
buildTableData( result );
}
});
}
private void buildTableData( Vector< ActualTableRow > tableRows )
{
if ( tableRows == null )
{
this.setText( 1, 0, "No items found." );
this.getFlexCellFormatter().setColSpan( 1, 0, 6 );
}
else
{
for ( int rowNumber = 1, columnNumber = 0; rowNumber < tableRows.size(); rowNumber++, columnNumber = 0 )
{
ActualTableRow row = tableRows.get( rowNumber );
this.setText( rowNumber, columnNumber++, D_F.format( row.getDataAcidente() ) );
this.setText( rowNumber, columnNumber++, D_F.format( row.getDataAbertura() ) );
this.setText( rowNumber, columnNumber++, row.getNrAcidente() );
this.setText( rowNumber, columnNumber++, row.getPOR() );
this.setText( rowNumber, columnNumber++, row.getNomeAcidentado() );
this.setText( rowNumber, columnNumber++, row.getFase() );
}
}
}
}

@ -0,0 +1,12 @@
package com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho.actual;
import java.util.Vector;
import com.evolute.siprp.client.vo.ActualTableRow;
import com.evolute.siprp.client.vo.Utilizador;
import com.google.gwt.user.client.rpc.RemoteService;
public interface ActualTableService extends RemoteService
{
public Vector< ActualTableRow > getActualTableData( Utilizador userLogged );
}

@ -0,0 +1,12 @@
package com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho.actual;
import java.util.Vector;
import com.evolute.siprp.client.vo.ActualTableRow;
import com.evolute.siprp.client.vo.Utilizador;
import com.google.gwt.user.client.rpc.AsyncCallback;
public interface ActualTableServiceAsync
{
public void getActualTableData( Utilizador userLogged, AsyncCallback< Vector< ActualTableRow > > callback );
}

@ -0,0 +1,38 @@
package com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho.concluido;
import com.evolute.siprp.client.panels.utils.permissoes.AccessConstants;
import com.evolute.siprp.client.panels.utils.permissoes.PermissionsController;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.Widget;
public class ConcluidoPanel extends Composite {
private static ConcluidoPanelUiBinder uiBinder = GWT.create( ConcluidoPanelUiBinder.class );
interface ConcluidoPanelUiBinder extends UiBinder< Widget, ConcluidoPanel > { }
private PermissionsController permsController;
public ConcluidoPanel()
{
permsController = PermissionsController.getController();
if ( permsController.hasPermissionTo( AccessConstants.VIEW_CONCLUIDO_PANEL ) )
{
setupComponents();
}
else
{
initWidget( new SimplePanel() );
}
}
private void setupComponents()
{
initWidget( uiBinder.createAndBindUi( this ) );
}
}

@ -4,21 +4,25 @@
<ui:style> <ui:style>
.bodyDiv { .bodyDiv {
margin-top: 20px; margin-top: 10px;
width: 100%; width: 100%;
border: 1px solid black; border: 1px solid black;
background-color: rgb( 238, 238, 238 ); background-color: rgb( 238, 238, 238 );
} }
.divConcluido {
margin-top: 15px;
}
</ui:style> </ui:style>
<g:HTMLPanel> <g:HTMLPanel>
<div class="{style.bodyDiv}"> <div class="{style.bodyDiv}">
<div class="alignCenterText lblBold font18">Actual</div> <div class="alignCenterText lblBold font18 {style.divConcluido}">Conclu\u00EDdos</div>
<g:Button ui:field="btnNewAnalysis" /> table
</div> </div>
</g:HTMLPanel> </g:HTMLPanel>
</ui:UiBinder> </ui:UiBinder>

@ -0,0 +1,42 @@
package com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho.seguimento;
import com.evolute.siprp.client.panels.utils.permissoes.AccessConstants;
import com.evolute.siprp.client.panels.utils.permissoes.PermissionsController;
import com.google.gwt.core.client.GWT;
import com.google.gwt.uibinder.client.UiBinder;
import com.google.gwt.uibinder.client.UiField;
import com.google.gwt.user.client.ui.Composite;
import com.google.gwt.user.client.ui.SimplePanel;
import com.google.gwt.user.client.ui.Widget;
public class SeguimentoPanel extends Composite {
private static SeguimentoPanelUiBinder uiBinder = GWT.create( SeguimentoPanelUiBinder.class );
interface SeguimentoPanelUiBinder extends UiBinder< Widget, SeguimentoPanel > { }
private PermissionsController permsController;
@UiField protected SeguimentoTable tableSeguimento;
public SeguimentoPanel()
{
permsController = PermissionsController.getController();
if ( permsController.hasPermissionTo( AccessConstants.VIEW_SEGUIMENTO_PANEL ) )
{
setupComponents();
}
else
{
initWidget( new SimplePanel() );
}
}
private void setupComponents()
{
initWidget( uiBinder.createAndBindUi( this ) );
}
}

@ -0,0 +1,39 @@
<!DOCTYPE ui:UiBinder SYSTEM "http://dl.google.com/gwt/DTD/xhtml.ent">
<ui:UiBinder xmlns:ui="urn:ui:com.google.gwt.uibinder"
xmlns:g="urn:import:com.google.gwt.user.client.ui"
xmlns:sTable="urn:import:com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho.seguimento"
>
<ui:style>
.bodyDiv {
margin-top: 20px;
width: 100%;
border: 1px solid black;
background-color: rgb( 238, 238, 238 );
}
.divSeguimento {
margin-top: 15px;
}
.seguimentoTable {
width: 816px;
margin-top: 10px;
margin-bottom: 15px;
}
</ui:style>
<g:HTMLPanel>
<div class="{style.bodyDiv}">
<div class="alignCenterText lblBold font18 {style.divSeguimento}">Em seguimento</div>
<br />
<div class="alignCenterText">
<sTable:SeguimentoTable ui:field="tableSeguimento" styleName="alignCenter {style.seguimentoTable}" />
</div>
</div>
</g:HTMLPanel>
</ui:UiBinder>

@ -0,0 +1,8 @@
package com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho.seguimento;
import com.google.gwt.user.client.ui.FlexTable;
public class SeguimentoTable extends FlexTable
{
}

@ -4,7 +4,11 @@
> >
<ui:style> <ui:style>
.loginBox {
height: 34px;
}
</ui:style> </ui:style>
<g:HTMLPanel> <g:HTMLPanel>
@ -13,11 +17,11 @@
<table class="indexTable alignCenter"> <table class="indexTable alignCenter">
<tr> <tr>
<td><span class="lblBold alignLeft">Utilizador:</span></td> <td><span class="lblBold alignLeft">Utilizador:</span></td>
<td><g:TextBox styleName="inputBox alignRight" ui:field="txtUsername" /></td> <td><g:TextBox styleName="inputBox {style.loginBox} alignRight" ui:field="txtUsername" /></td>
</tr> </tr>
<tr> <tr>
<td><span class="lblBold alignLeft">Palavra-chave:</span></td> <td><span class="lblBold alignLeft">Palavra-chave:</span></td>
<td><g:PasswordTextBox styleName="inputBox alignRight" ui:field="txtPassword" /></td> <td><g:PasswordTextBox styleName="inputBox {style.loginBox} alignRight" ui:field="txtPassword" /></td>
</tr> </tr>
<tr> <tr>
<td><g:Anchor styleName="alignLeft" ui:field="lnkRecoverPwd" /></td> <td><g:Anchor styleName="alignLeft" ui:field="lnkRecoverPwd" /></td>

@ -9,9 +9,9 @@
<g:HTMLPanel> <g:HTMLPanel>
<div class="indexDiv"> <div class="indexDiv">
<table class="indexTable alignCenter"> <table class="indexTable alignCenter" cellspacing="2" cellpadding="2">
<tr> <tr>
<td colspan="2" class="alignCenterText lblBold">Preencha os seguintes dados pessoais</td> <td colspan="2" class="alignCenterText lblBold"><span>Preencha os seguintes dados pessoais</span></td>
</tr> </tr>
<tr> <tr>
<td><span class="lblBold alignLeft">Utilizador:</span></td> <td><span class="lblBold alignLeft">Utilizador:</span></td>

@ -62,10 +62,10 @@ public class PageNavigation
{ {
newCache.put( NavigationConstants.LOGIN_PANEL, panelsCache.get( NavigationConstants.LOGIN_PANEL ) ); newCache.put( NavigationConstants.LOGIN_PANEL, panelsCache.get( NavigationConstants.LOGIN_PANEL ) );
} }
if ( panelsCache.containsKey( NavigationConstants.RECOVER_PWD_PANEL ) ) // if ( panelsCache.containsKey( NavigationConstants.RECOVER_PWD_PANEL ) )
{ // {
newCache.put( NavigationConstants.RECOVER_PWD_PANEL, panelsCache.get( NavigationConstants.RECOVER_PWD_PANEL ) ); // newCache.put( NavigationConstants.RECOVER_PWD_PANEL, panelsCache.get( NavigationConstants.RECOVER_PWD_PANEL ) );
} // }
panelsCache = newCache; panelsCache = newCache;
} }

@ -6,4 +6,7 @@ public interface AccessConstants
public static final int VIEW_ACTUAL_PANEL = 1; public static final int VIEW_ACTUAL_PANEL = 1;
public static final int VIEW_ACTUAL_PANEL_NOVA_ANALISE_BUTTON = 2; public static final int VIEW_ACTUAL_PANEL_NOVA_ANALISE_BUTTON = 2;
public static final int VIEW_SEGUIMENTO_PANEL = 3;
public static final int VIEW_CONCLUIDO_PANEL = 4;
} }

@ -5,19 +5,31 @@ import com.evolute.siprp.client.vo.Utilizador;
public class PermissionsController public class PermissionsController
{ {
private static PermissionsController instance;
private Utilizador userLogged = null; private Utilizador userLogged = null;
private int userType; private int userType;
public PermissionsController() private PermissionsController()
{ {
userLogged = PageNavigation.getProvider().getUserLogged();
userType = userLogged.getTipo_utilizador().intValue(); }
public static PermissionsController getController()
{
if ( instance == null )
{
instance = new PermissionsController();
}
return instance;
} }
public boolean hasPermissionTo( Integer accessConstant ) public boolean hasPermissionTo( Integer accessConstant )
{ {
userLogged = PageNavigation.getProvider().getUserLogged();
userType = userLogged.getTipo_utilizador().intValue();
Boolean canAccess = false; Boolean canAccess = false;
switch ( accessConstant.intValue() ) switch ( accessConstant.intValue() )
@ -42,6 +54,16 @@ public class PermissionsController
break; break;
} }
case AccessConstants.VIEW_SEGUIMENTO_PANEL:
{
canAccess = true;
break;
}
case AccessConstants.VIEW_CONCLUIDO_PANEL:
{
canAccess = true;
break;
}
default: default:
{ {
break; break;

@ -0,0 +1,72 @@
package com.evolute.siprp.client.vo;
import java.io.Serializable;
import java.util.Date;
public class ActualTableRow implements Serializable
{
private static final long serialVersionUID = -6271564752485792179L;
private Date dataAcidente;
private Date dataAbertura;
private String nrAcidente;
private String POR;
private String nomeAcidentado;
private String fase;
public ActualTableRow()
{
}
public Date getDataAcidente() {
return dataAcidente;
}
public void setDataAcidente(Date dataAcidente) {
this.dataAcidente = dataAcidente;
}
public Date getDataAbertura() {
return dataAbertura;
}
public void setDataAbertura(Date dataAbertura) {
this.dataAbertura = dataAbertura;
}
public String getNrAcidente() {
return nrAcidente;
}
public void setNrAcidente(String nrAcidente) {
this.nrAcidente = nrAcidente;
}
public String getPOR() {
return POR;
}
public void setPOR(String por) {
POR = por;
}
public String getNomeAcidentado() {
return nomeAcidentado;
}
public void setNomeAcidentado(String nomeAcidentado) {
this.nomeAcidentado = nomeAcidentado;
}
public String getFase() {
return fase;
}
public void setFase(String fase) {
this.fase = fase;
}
}

@ -85,4 +85,5 @@ a:hover {
width: 80%; width: 80%;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }

@ -0,0 +1,23 @@
package com.evolute.siprp.server.logic.AnaliseAcidentesTrabalho;
import java.util.Vector;
import com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho.actual.ActualTableService;
import com.evolute.siprp.client.vo.ActualTableRow;
import com.evolute.siprp.client.vo.Utilizador;
public class AnaliseAcidentesTrabalhoLogic implements ActualTableService
{
public AnaliseAcidentesTrabalhoLogic()
{
}
@Override
public Vector< ActualTableRow > getActualTableData( Utilizador userLogged )
{
return null;
}
}

@ -0,0 +1,29 @@
package com.evolute.siprp.server.logic.AnaliseAcidentesTrabalho.actual;
import java.util.Vector;
import com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho.actual.ActualTableService;
import com.evolute.siprp.client.vo.ActualTableRow;
import com.evolute.siprp.client.vo.Utilizador;
import com.evolute.siprp.server.logic.AnaliseAcidentesTrabalho.AnaliseAcidentesTrabalhoLogic;
import com.google.gwt.user.server.rpc.RemoteServiceServlet;
public class ActualTableServiceImpl extends RemoteServiceServlet implements ActualTableService
{
private static final long serialVersionUID = -2932430810080164417L;
private AnaliseAcidentesTrabalhoLogic logic;
@Override
public Vector< ActualTableRow > getActualTableData( Utilizador userLogged )
{
if ( logic == null )
{
logic = new AnaliseAcidentesTrabalhoLogic();
}
return logic.getActualTableData( userLogged );
}
}

@ -2,10 +2,11 @@ package com.evolute.siprp.server.logic.login;
import java.util.Date; import java.util.Date;
import com.evolute.siprp.client.panels.index.login.LoginService;
import com.evolute.siprp.client.vo.Utilizador; import com.evolute.siprp.client.vo.Utilizador;
import com.evolute.utils.arrays.Virtual2DArray; import com.evolute.utils.arrays.Virtual2DArray;
public class LoginLogic public class LoginLogic implements LoginService
{ {
private LoginDataProvider loginProvider; private LoginDataProvider loginProvider;
@ -23,6 +24,7 @@ public class LoginLogic
} }
@Override
public Utilizador doLogin( String username, String password ) public Utilizador doLogin( String username, String password )
{ {
Utilizador rUser = null; Utilizador rUser = null;

@ -24,6 +24,15 @@
<url-pattern>/gestaoshst/recoverService</url-pattern> <url-pattern>/gestaoshst/recoverService</url-pattern>
</servlet-mapping> </servlet-mapping>
<servlet>
<servlet-name>actualServlet</servlet-name>
<servlet-class>com.evolute.siprp.server.logic.AnaliseAcidentesTrabalho.actual.ActualTableServiceImpl</servlet-class>
</servlet>
<servlet-mapping>
<servlet-name>actualServlet</servlet-name>
<url-pattern>/gestaoshst/actualService</url-pattern>
</servlet-mapping>
<!-- Default page to serve --> <!-- Default page to serve -->
<welcome-file-list> <welcome-file-list>
<welcome-file>GestaoSHST.html</welcome-file> <welcome-file>GestaoSHST.html</welcome-file>

@ -0,0 +1,15 @@
com.evolute.siprp.client.panels.index.login.LoginService, false, false, false, false, _, 169399566
com.evolute.siprp.client.vo.Utilizador, true, true, false, false, com.evolute.siprp.client.vo.Utilizador/746657206, 746657206
com.google.gwt.i18n.client.impl.DateRecord, true, true, false, false, com.google.gwt.i18n.client.impl.DateRecord/112389920, 112389920
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException, true, true, true, true, com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException/3936916533, 3936916533
java.lang.Boolean, true, true, false, false, java.lang.Boolean/476441737, 476441737
java.lang.Exception, true, false, true, false, java.lang.Exception/1920171873, 1920171873
java.lang.Integer, true, true, false, false, java.lang.Integer/3438268394, 3438268394
java.lang.Number, true, false, false, false, java.lang.Number/300033342, 300033342
java.lang.RuntimeException, true, false, true, false, java.lang.RuntimeException/515124647, 515124647
java.lang.String, true, true, true, true, java.lang.String/2004016611, 2004016611
java.lang.Throwable, true, false, true, false, java.lang.Throwable/2953622131, 2953622131
java.sql.Date, true, true, false, false, java.sql.Date/3996530531, 3996530531
java.sql.Time, true, true, false, false, java.sql.Time/831929183, 831929183
java.sql.Timestamp, true, true, false, false, java.sql.Timestamp/1769758459, 1769758459
java.util.Date, true, true, false, false, java.util.Date/1659716317, 1659716317

@ -0,0 +1,18 @@
com.evolute.siprp.client.panels.apps.AnaliseAcidentesTrabalho.actual.ActualTableService, false, false, false, false, _, 3616117345
com.evolute.siprp.client.vo.ActualTableRow, true, true, false, false, com.evolute.siprp.client.vo.ActualTableRow/3536573623, 3536573623
com.evolute.siprp.client.vo.Utilizador, false, false, true, true, com.evolute.siprp.client.vo.Utilizador/746657206, 746657206
com.google.gwt.i18n.client.impl.DateRecord, true, true, true, true, com.google.gwt.i18n.client.impl.DateRecord/112389920, 112389920
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException, true, true, true, true, com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException/3936916533, 3936916533
java.lang.Boolean, false, false, true, true, java.lang.Boolean/476441737, 476441737
java.lang.Exception, true, false, true, false, java.lang.Exception/1920171873, 1920171873
java.lang.Integer, false, false, true, true, java.lang.Integer/3438268394, 3438268394
java.lang.Number, false, false, true, false, java.lang.Number/300033342, 300033342
java.lang.RuntimeException, true, false, true, false, java.lang.RuntimeException/515124647, 515124647
java.lang.String, true, true, true, true, java.lang.String/2004016611, 2004016611
java.lang.Throwable, true, false, true, false, java.lang.Throwable/2953622131, 2953622131
java.sql.Date, true, true, true, true, java.sql.Date/3996530531, 3996530531
java.sql.Time, true, true, true, true, java.sql.Time/831929183, 831929183
java.sql.Timestamp, true, true, true, true, java.sql.Timestamp/1769758459, 1769758459
java.util.Date, true, true, true, true, java.util.Date/1659716317, 1659716317
java.util.Stack, true, true, false, false, java.util.Stack/1031431137, 1031431137
java.util.Vector, true, true, false, false, java.util.Vector/3125574444, 3125574444

@ -0,0 +1,9 @@
com.evolute.siprp.client.panels.index.login.LoginService, false, false, false, false, _, 169399566
com.evolute.siprp.client.vo.Utilizador, true, true, false, false, com.evolute.siprp.client.vo.Utilizador/3153137530, 3153137530
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException, true, true, true, true, com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException/3936916533, 3936916533
java.lang.Exception, true, false, true, false, java.lang.Exception/1920171873, 1920171873
java.lang.Integer, true, true, false, false, java.lang.Integer/3438268394, 3438268394
java.lang.Number, true, false, false, false, java.lang.Number/300033342, 300033342
java.lang.RuntimeException, true, false, true, false, java.lang.RuntimeException/515124647, 515124647
java.lang.String, true, true, true, true, java.lang.String/2004016611, 2004016611
java.lang.Throwable, true, false, true, false, java.lang.Throwable/2953622131, 2953622131

@ -0,0 +1,6 @@
com.evolute.siprp.client.panels.index.recover_pwd.RecoverService, false, false, false, false, _, 3357099797
com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException, true, true, true, true, com.google.gwt.user.client.rpc.IncompatibleRemoteServiceException/3936916533, 3936916533
java.lang.Exception, true, false, true, false, java.lang.Exception/1920171873, 1920171873
java.lang.RuntimeException, true, false, true, false, java.lang.RuntimeException/515124647, 515124647
java.lang.String, true, true, true, true, java.lang.String/2004016611, 2004016611
java.lang.Throwable, true, false, true, false, java.lang.Throwable/2953622131, 2953622131

@ -85,4 +85,5 @@ a:hover {
width: 80%; width: 80%;
margin-left: auto; margin-left: auto;
margin-right: auto; margin-right: auto;
} }

Loading…
Cancel
Save