diff --git a/trunk/SIPRPSoft/lib/cursos.jar b/trunk/SIPRPSoft/lib/cursos.jar index 47958ddc..ff237509 100644 Binary files a/trunk/SIPRPSoft/lib/cursos.jar and b/trunk/SIPRPSoft/lib/cursos.jar differ diff --git a/trunk/SIPRPSoft/src/siprp/cursos/provider/PessoasProvider.java b/trunk/SIPRPSoft/src/siprp/cursos/provider/PessoasProvider.java index 09cf2180..f0912af1 100644 --- a/trunk/SIPRPSoft/src/siprp/cursos/provider/PessoasProvider.java +++ b/trunk/SIPRPSoft/src/siprp/cursos/provider/PessoasProvider.java @@ -10,11 +10,13 @@ import com.evolute.genericpeople.PessoaInterface; import com.evolute.genericpeople.PessoasProviderInterface; import com.evolute.module.cursos.data.CurFormadoresData; import com.evolute.module.cursos.data.CurFormandosData; -import com.evolute.utils.arrays.Virtual2DArray; import com.evolute.utils.data.IDObject; import com.evolute.utils.data.Mappable; -import com.evolute.utils.ui.search.SearchDialog; +import com.evolute.utils.data.MappableObject; +import com.evolute.utils.ui.search.SearchExecuter; +import java.util.ArrayList; import java.util.List; +import siprp.data.outer.TrabalhadoresData; /** * @@ -24,6 +26,8 @@ public class PessoasProvider implements PessoasProviderInterface { private static PessoasProvider provider = null; + private final Mappable PAISES[] = new Mappable[]{ new MappableObject( 0, "Portugal" ) }; + private PessoasProvider() { } @@ -70,7 +74,7 @@ public class PessoasProvider implements PessoasProviderInterface public Mappable[] getPaises() throws Exception { - throw new UnsupportedOperationException("Not supported yet."); + return PAISES; } public String getNacionalidadeByPaisID(Integer intgr) throws Exception @@ -80,17 +84,18 @@ public class PessoasProvider implements PessoasProviderInterface public List getTiposDocumento() throws Exception { - throw new UnsupportedOperationException("Not supported yet."); + List list = new ArrayList(); + return list; } public PessoaDocumentoInterface[] getDocumentosForPessoa(Integer intgr) throws Exception { - throw new UnsupportedOperationException("Not supported yet."); + return new PessoaDocumentoInterface[ 0 ]; } - public PessoaInterface newPessoa() + public TrabalhadoresData newPessoa() { - throw new UnsupportedOperationException("Not supported yet."); + return new TrabalhadoresData(); } public PessoaDocumentoInterface newPessoaDocumento() @@ -98,27 +103,7 @@ public class PessoasProvider implements PessoasProviderInterface throw new UnsupportedOperationException("Not supported yet."); } - public Virtual2DArray search(String string) throws Exception - { - throw new UnsupportedOperationException("Not supported yet."); - } - - public boolean hasDetails() - { - throw new UnsupportedOperationException("Not supported yet."); - } - - public void showDetails(SearchDialog sd, Object o) throws Exception - { - throw new UnsupportedOperationException("Not supported yet."); - } - - public String getSearchTitle() - { - throw new UnsupportedOperationException("Not supported yet."); - } - - public String[] getColumnNames() + public SearchExecuter getSearcher() { throw new UnsupportedOperationException("Not supported yet."); } diff --git a/trunk/SIPRPSoft/src/siprp/data/outer/TrabalhadoresData.java b/trunk/SIPRPSoft/src/siprp/data/outer/TrabalhadoresData.java index 9087adce..c4998fc7 100644 --- a/trunk/SIPRPSoft/src/siprp/data/outer/TrabalhadoresData.java +++ b/trunk/SIPRPSoft/src/siprp/data/outer/TrabalhadoresData.java @@ -8,12 +8,14 @@ package siprp.data.outer; import java.sql.Timestamp; +import java.util.Date; import java.util.HashMap; import com.evolute.entity.evo.EvoDataException; +import com.evolute.genericpeople.PessoaInterface; -public final class TrabalhadoresData extends siprp.data.inner.Trabalhadores +public final class TrabalhadoresData extends siprp.data.inner.Trabalhadores implements PessoaInterface { public TrabalhadoresData() @@ -57,5 +59,140 @@ public final class TrabalhadoresData extends siprp.data.inner.Trabalhadores { return getNome(); } + + public void setNumero_bi(String string) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public String getNumero_bi() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void setData_bi(Date date) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public Date getData_bi() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void setArquivo_bi(String string) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public String getArquivo_bi() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void setMorada(String string) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public String getMorada() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void setCidade(String string) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public String getCidade() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void setLocalidade(String string) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public String getLocalidade() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void setCodigo_postal(String string) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public String getCodigo_postal() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void setEmail(String string) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public String getEmail() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void setTelefone(String string) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public String getTelefone() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void setTelemovel(Integer intgr) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public Integer getTelemovel() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void setNaturalidade(String string) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public String getNaturalidade() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void setNacionalidade_id(Integer intgr) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public Integer getNacionalidade_id() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void setProfissao(String string) + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public String getProfissao() + { + throw new UnsupportedOperationException("Not supported yet."); + } + + public void setFalecido(String string) + { + throw new UnsupportedOperationException("Not supported yet."); + } } diff --git a/trunk/SIPRPSoft/src/siprp/update/UpdateList.java b/trunk/SIPRPSoft/src/siprp/update/UpdateList.java index cc0a79f0..de75bd71 100644 --- a/trunk/SIPRPSoft/src/siprp/update/UpdateList.java +++ b/trunk/SIPRPSoft/src/siprp/update/UpdateList.java @@ -9,6 +9,9 @@ package siprp.update; +import com.evolute.module.cursos.EvoCursosInstallUpdate; +import com.evolute.module.cursos.EvoCursosUpdate1; +import com.evolute.module.cursos.EvoCursosUpdate2; import siprp.update.updates.V10_0_To_V10_1; import siprp.update.updates.V10_1_To_V10_2; import siprp.update.updates.V10_2_To_V10_3; @@ -116,6 +119,9 @@ public class UpdateList new V12_9_To_V13_0(), new V13_0_To_V13_1(), new V13_1_To_V13_2(), new V13_2_To_V13_3(), new V13_3_To_V13_4(), + new EvoCursosInstallUpdate( 13.4, 13.5 ), + new EvoCursosUpdate1( 13.5, 13.6 ), + new EvoCursosUpdate2( 13.6, 13.7 ) }; // // protected static Executer EXECUTER;