forked from Coded/SIPRP
git-svn-id: https://svn.coded.pt/svn/SIPRP@1267 bb69d46d-e84e-40c8-a05a-06db0d633741
parent
6d8c9df149
commit
7beb1d5742
@ -1,5 +1,5 @@
|
||||
<project name="SIPRPSoft" basedir="." default="app-run">
|
||||
|
||||
<import file="ant/evo-app-build.xml" />
|
||||
<import file="ant/evo-app-multiple-client-build.xml" />
|
||||
|
||||
</project>
|
||||
Binary file not shown.
Binary file not shown.
@ -0,0 +1,75 @@
|
||||
#APP level
|
||||
app.appName = SIPRPSoft
|
||||
app.main-class = siprp.Main
|
||||
app.main = siprp.Main
|
||||
|
||||
db.url.prefix = jdbc:postgresql://
|
||||
db.user = postgres
|
||||
db.password = Typein
|
||||
#rg2h-opksiprp
|
||||
db.name = siprp_local_3
|
||||
db.connection.driver = org.postgresql.Driver
|
||||
|
||||
jnlp.resources.property.server.address = evoserver
|
||||
jnlp.resources.property.server.port = 5432
|
||||
|
||||
|
||||
#app.max.mem=512M
|
||||
#app.run.args=test 1 2 3
|
||||
|
||||
#app.resources.j2se.version = 1.0+
|
||||
#app.resources.j2se.initial-heap-size = 4m
|
||||
#app.resources.j2se.max-heap-size = 8m
|
||||
|
||||
#app.ws.dest.package=com.evolute.test-project.stubs
|
||||
#app.ws.wsdl.url=https://www.evolute.pt/test-project/test-endpoint?wsdl
|
||||
#app.ws.wsdl.url.protocol=https
|
||||
#app.ws.wsdl.url.host=www.evolute.pt
|
||||
#app.ws.wsdl.url.port=443
|
||||
#app.ws.wsdl.url.path=/test-project/test-endpoint?wsdl
|
||||
|
||||
#app.ssl.truststore.file=jssecacerts
|
||||
#app.ssl.truststore.pass=changeit
|
||||
|
||||
#JNLP level
|
||||
#jnlp.app.appName = test-project
|
||||
#jnlp.information.title = jnlp-Test Project
|
||||
#jnlp.resources.j2se.version = 1.1+
|
||||
#jnlp.test.url=http://www.evolute.pt/~software/test-project
|
||||
|
||||
|
||||
#JNLP + PRODUCTION level
|
||||
#jnlp.production.app.main-class = !com.evolute.test-project.TestProject2
|
||||
#jnlp.production.app.appName = test-project
|
||||
#jnlp.production.url=http://www.evolute.pt/~software/test-project
|
||||
|
||||
#jnlp.production.information.title = prod-Test Project
|
||||
#jnlp.production.information.vendor = prod-Evolute Lda
|
||||
#jnlp.production.information.description = prod-Tester Project for JNLP Generator
|
||||
#jnlp.production.information.description.short = prod-JNLP Tester
|
||||
#jnlp.production.information.icon = prod-logo.png
|
||||
|
||||
#jnlp.production.resources.j2se.version = 1.6.0+
|
||||
#jnlp.production.resources.j2se.initial-heap-size = 64m
|
||||
#jnlp.production.resources.j2se.max-heap-size = 512m
|
||||
|
||||
#jnlp.production.resources.property.jnlp.packEnabled = true
|
||||
#jnlp.production.resources.property.apple.laf.useScreenMenuBar = true
|
||||
#jnlp.production.resources.property.swing.defaultlaf = org.jvnet.substance.skin.SubstanceRavenGraphiteGlassLookAndFeel
|
||||
#jnlp.production.resources.property.evolute.ui.overridePaint = false
|
||||
|
||||
|
||||
#JNLP + TEST level
|
||||
#jnlp.test.app.main-class = com.evolute.test-project.TestProject3
|
||||
#jnlp.test.app.appName = project-test
|
||||
#jnlp.test.url=http://www.evolute.pt/~software/versoes_teste/test-project
|
||||
|
||||
#jnlp.test.information.title = test-Test Project
|
||||
#jnlp.test.information.vendor = test-Evolute Lda
|
||||
#jnlp.test.information.description = test-Tester Project for JNLP Generator
|
||||
#jnlp.test.information.description.short = test-JNLP Tester
|
||||
#jnlp.test.information.icon = test-logo.png
|
||||
|
||||
#jnlp.test.resources.j2se.version = 1.6.0+
|
||||
#jnlp.test.resources.j2se.initial-heap-size = 64m
|
||||
#jnlp.test.resources.j2se.max-heap-size = 512m
|
||||
@ -0,0 +1,74 @@
|
||||
#APP level
|
||||
app.appName = SIPRPSoft
|
||||
app.main-class = siprp.Main
|
||||
app.main = siprp.Main
|
||||
|
||||
db.url.prefix = jdbc:postgresql://
|
||||
db.user = siprp
|
||||
db.password = rg2h-opksiprp
|
||||
db.name = siprp_local_3
|
||||
db.connection.driver = org.postgresql.Driver
|
||||
|
||||
jnlp.resources.property.server.address = www.evolute.pt
|
||||
jnlp.resources.property.server.port = 5436
|
||||
|
||||
|
||||
#app.max.mem=512M
|
||||
#app.run.args=test 1 2 3
|
||||
|
||||
#app.resources.j2se.version = 1.0+
|
||||
#app.resources.j2se.initial-heap-size = 4m
|
||||
#app.resources.j2se.max-heap-size = 8m
|
||||
|
||||
#app.ws.dest.package=com.evolute.test-project.stubs
|
||||
#app.ws.wsdl.url=https://www.evolute.pt/test-project/test-endpoint?wsdl
|
||||
#app.ws.wsdl.url.protocol=https
|
||||
#app.ws.wsdl.url.host=www.evolute.pt
|
||||
#app.ws.wsdl.url.port=443
|
||||
#app.ws.wsdl.url.path=/test-project/test-endpoint?wsdl
|
||||
|
||||
#app.ssl.truststore.file=jssecacerts
|
||||
#app.ssl.truststore.pass=changeit
|
||||
|
||||
#JNLP level
|
||||
#jnlp.app.appName = test-project
|
||||
#jnlp.information.title = jnlp-Test Project
|
||||
#jnlp.resources.j2se.version = 1.1+
|
||||
#jnlp.test.url=http://www.evolute.pt/~software/test-project
|
||||
|
||||
|
||||
#JNLP + PRODUCTION level
|
||||
#jnlp.production.app.main-class = !com.evolute.test-project.TestProject2
|
||||
#jnlp.production.app.appName = test-project
|
||||
#jnlp.production.url=http://www.evolute.pt/~software/test-project
|
||||
|
||||
#jnlp.production.information.title = prod-Test Project
|
||||
#jnlp.production.information.vendor = prod-Evolute Lda
|
||||
#jnlp.production.information.description = prod-Tester Project for JNLP Generator
|
||||
#jnlp.production.information.description.short = prod-JNLP Tester
|
||||
#jnlp.production.information.icon = prod-logo.png
|
||||
|
||||
#jnlp.production.resources.j2se.version = 1.6.0+
|
||||
#jnlp.production.resources.j2se.initial-heap-size = 64m
|
||||
#jnlp.production.resources.j2se.max-heap-size = 512m
|
||||
|
||||
#jnlp.production.resources.property.jnlp.packEnabled = true
|
||||
#jnlp.production.resources.property.apple.laf.useScreenMenuBar = true
|
||||
#jnlp.production.resources.property.swing.defaultlaf = org.jvnet.substance.skin.SubstanceRavenGraphiteGlassLookAndFeel
|
||||
#jnlp.production.resources.property.evolute.ui.overridePaint = false
|
||||
|
||||
|
||||
#JNLP + TEST level
|
||||
#jnlp.test.app.main-class = com.evolute.test-project.TestProject3
|
||||
#jnlp.test.app.appName = project-test
|
||||
#jnlp.test.url=http://www.evolute.pt/~software/versoes_teste/test-project
|
||||
|
||||
#jnlp.test.information.title = test-Test Project
|
||||
#jnlp.test.information.vendor = test-Evolute Lda
|
||||
#jnlp.test.information.description = test-Tester Project for JNLP Generator
|
||||
#jnlp.test.information.description.short = test-JNLP Tester
|
||||
#jnlp.test.information.icon = test-logo.png
|
||||
|
||||
#jnlp.test.resources.j2se.version = 1.6.0+
|
||||
#jnlp.test.resources.j2se.initial-heap-size = 64m
|
||||
#jnlp.test.resources.j2se.max-heap-size = 512m
|
||||
@ -0,0 +1,38 @@
|
||||
package siprp.companydataloaders;
|
||||
|
||||
import com.evolute.properties.EvoAbstractPropertiesLoader;
|
||||
import com.evolute.properties.PropertiesException;
|
||||
|
||||
public class SIPRPPropertiesLoader extends EvoAbstractPropertiesLoader
|
||||
{
|
||||
|
||||
private static SIPRPPropertiesLoader instance;
|
||||
|
||||
private SIPRPPropertiesLoader()
|
||||
{
|
||||
this(null,null,null,null);
|
||||
}
|
||||
|
||||
public synchronized static SIPRPPropertiesLoader getInstance()
|
||||
{
|
||||
if (instance == null)
|
||||
{
|
||||
instance = new SIPRPPropertiesLoader();
|
||||
}
|
||||
return instance;
|
||||
}
|
||||
|
||||
public SIPRPPropertiesLoader(
|
||||
String[] mandatorySystemProperties,
|
||||
String[] mandatorySingletonProperties,
|
||||
String[] mandatoryJNLPProperties,
|
||||
String[] mandatoryAPPProperties)
|
||||
{
|
||||
super(mandatorySystemProperties, mandatorySingletonProperties, mandatoryJNLPProperties, mandatoryAPPProperties);
|
||||
}
|
||||
|
||||
@Override
|
||||
protected void postLoad() throws PropertiesException
|
||||
{
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,36 @@
|
||||
package siprp.update.updates;
|
||||
|
||||
import com.evolute.module.updater.AbstractUpdate;
|
||||
import com.evolute.utils.sql.Update;
|
||||
|
||||
public class V12_3_To_V12_4 extends AbstractUpdate
|
||||
{
|
||||
|
||||
public V12_3_To_V12_4( )
|
||||
{
|
||||
super( 12.3, 12.4, "Adicionar campos em algumas tabelas." );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doUpdate() throws Exception
|
||||
{
|
||||
|
||||
Update update = new Update(
|
||||
"ALTER TABLE trabalhadores ADD COLUMN nif CHARACTER VARYING( 255 );" +
|
||||
"ALTER TABLE trabalhadores ADD COLUMN numero_utente CHARACTER VARYING( 255 );"
|
||||
);
|
||||
executeQuery( update );
|
||||
|
||||
update = new Update(
|
||||
"ALTER TABLE marcacoes_trabalhador ADD COLUMN medico_id INTEGER;" +
|
||||
"ALTER TABLE marcacoes_trabalhador ADD COLUMN inserted_stamp TIMESTAMP WITHOUT TIME ZONE DEFAULT now();"
|
||||
);
|
||||
executeQuery( update );
|
||||
|
||||
update = new Update(
|
||||
"ALTER TABLE empresas ADD COLUMN codigo_relatorio_unico CHARACTER VARYING( 64 );"
|
||||
);
|
||||
executeQuery( update );
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,57 @@
|
||||
package siprp.update.updates;
|
||||
|
||||
import com.evolute.module.updater.AbstractUpdate;
|
||||
import com.evolute.utils.db.PSQLSequenceUtils;
|
||||
import com.evolute.utils.sql.Update;
|
||||
|
||||
public class V12_4_To_V12_5 extends AbstractUpdate
|
||||
{
|
||||
|
||||
public V12_4_To_V12_5()
|
||||
{
|
||||
super( 12.4, 12.5, "A adicionar novos pagamentos por empresa" );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doUpdate() throws Exception
|
||||
{
|
||||
Update update = new Update(
|
||||
"begin; " +
|
||||
"create table empresa_preco_periodicidade_tipo( " +
|
||||
" id serial primary key, " +
|
||||
" nome varchar(64) not null " +
|
||||
"); " +
|
||||
"insert into empresa_preco_periodicidade_tipo(id,nome) values(1,'Anual'); " +
|
||||
"insert into empresa_preco_periodicidade_tipo(id,nome) values(2,'Semestral'); " +
|
||||
"insert into empresa_preco_periodicidade_tipo(id,nome) values(3,'Trimestral'); " +
|
||||
"insert into empresa_preco_periodicidade_tipo(id,nome) values(4,'Mensal'); " +
|
||||
"insert into empresa_preco_periodicidade_tipo(id,nome) values(5,'Pontual'); " +
|
||||
"create table empresa_preco_servico_tipo( " +
|
||||
" id serial primary key, " +
|
||||
" nome varchar(64) not null " +
|
||||
"); " +
|
||||
"insert into empresa_preco_servico_tipo(id,nome) values(1,'Medicina'); " +
|
||||
"insert into empresa_preco_servico_tipo(id,nome) values(2,'Higiene e Seguran\\\\u00e7a'); " +
|
||||
"insert into empresa_preco_servico_tipo(id,nome) values(3,'Forma\\\\u00e7\\\\u00e3o'); " +
|
||||
"insert into empresa_preco_servico_tipo(id,nome) values(4,'Planos de Emergencia'); " +
|
||||
"insert into empresa_preco_servico_tipo(id,nome) values(5,'Avalia\\\\u00e7\\\\u00f5es de Risco'); " +
|
||||
"insert into empresa_preco_servico_tipo(id,nome) values(6,'Avalia\\\\u00e7\\\\u00f5es de Qualidade de Ar'); " +
|
||||
"insert into empresa_preco_servico_tipo(id,nome) values(7,'Ru\\\\u00eddo Laboral'); " +
|
||||
"insert into empresa_preco_servico_tipo(id,nome) values(8,'Outro'); " +
|
||||
"create table empresa_preco_servico( " +
|
||||
" id serial primary key, " +
|
||||
" empresa_preco_servico_tipo_id int4 not null references empresa_preco_servico_tipo(id), " +
|
||||
" empresa_preco_periodicidade_tipo_id int4 references empresa_preco_periodicidade_tipo(id), " +
|
||||
" tipo_outro varchar(64), " +
|
||||
" empresa_id int4 not null references empresas(id), " +
|
||||
" valor double precision, " +
|
||||
" iniciado timestamp, " +
|
||||
" activo boolean not null " +
|
||||
"); " +
|
||||
"commit; " );
|
||||
getExecuter().executeQuery( update );
|
||||
PSQLSequenceUtils.fixSequence("empresa_preco_periodicidade_tipo", "id");
|
||||
PSQLSequenceUtils.fixSequence("empresa_preco_servico_tipo", "id");
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,23 @@
|
||||
package siprp.update.updates;
|
||||
|
||||
import com.evolute.module.updater.AbstractUpdate;
|
||||
import com.evolute.utils.sql.Update;
|
||||
|
||||
public class V12_5_To_V12_6 extends AbstractUpdate
|
||||
{
|
||||
|
||||
public V12_5_To_V12_6()
|
||||
{
|
||||
super( 12.5, 12.6, "Adicionar campos em algumas tabelas." );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doUpdate() throws Exception
|
||||
{
|
||||
Update update = new Update(
|
||||
"ALTER TABLE exames ADD COLUMN impresso_stamp timestamp without time zone;"
|
||||
);
|
||||
executeQuery( update );
|
||||
}
|
||||
|
||||
}
|
||||
@ -0,0 +1,22 @@
|
||||
package siprp.update.updates;
|
||||
|
||||
import com.evolute.module.updater.AbstractUpdate;
|
||||
import com.evolute.sql.CreateFunctionPlainUpdate;
|
||||
|
||||
public class V12_6_To_V12_7 extends AbstractUpdate
|
||||
{
|
||||
|
||||
public V12_6_To_V12_7()
|
||||
{
|
||||
super( 12.6, 12.7, "Adicionar funcao plain()." );
|
||||
}
|
||||
|
||||
@Override
|
||||
public void doUpdate() throws Exception
|
||||
{
|
||||
|
||||
CreateFunctionPlainUpdate update = new CreateFunctionPlainUpdate( 12.6, 12.7 );
|
||||
update.doUpdate();
|
||||
}
|
||||
|
||||
}
|
||||
Loading…
Reference in new issue