forked from Coded/SIPRP
				
			git-svn-id: https://svn.coded.pt/svn/SIPRP@1404 bb69d46d-e84e-40c8-a05a-06db0d633741
	
		
	
				
					
				
			
							parent
							
								
									9bf2edc644
								
							
						
					
					
						commit
						ad78b8bc54
					
				
											
												Binary file not shown.
											
										
									
								
											
												Binary file not shown.
											
										
									
								
											
												Binary file not shown.
											
										
									
								| @ -1,159 +0,0 @@ | |||||||
| package siprp.companydataloaders; |  | ||||||
| 
 |  | ||||||
| import siprp.CompanyDataLoader; |  | ||||||
| import siprp.SingletonConstants; |  | ||||||
| 
 |  | ||||||
| import com.evolute.properties.EvoPropertyKey; |  | ||||||
| import com.evolute.utils.Singleton; |  | ||||||
| 
 |  | ||||||
| /** |  | ||||||
|  * |  | ||||||
|  * @author  fpalma |  | ||||||
|  */ |  | ||||||
| public class SIPRPDataLoader implements CompanyDataLoader |  | ||||||
| { |  | ||||||
| 	 |  | ||||||
| 	/** Creates a new instance of SIPRPDataLoader */ |  | ||||||
| 	public SIPRPDataLoader() |  | ||||||
| 	{ |  | ||||||
| 	} |  | ||||||
| 	 |  | ||||||
| 	public void load() |  | ||||||
| 	{ |  | ||||||
| 		Singleton.setInstance( SingletonConstants.SOFTWARE_NAME, "SIPRPSoft" ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.COMPANY_NAME, "SIPRP - Sociedade Ib\u00e9rica de Preven\u00e7\u00e3o de Riscos Profissionais" ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.COMPANY_LOGO, "logo_combo.jpg" ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.COMPANY_ACRONYM, "SIPRP" ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.SUBJECT_CONSULTA, "SIPRP - Marca\u00E7\u00E3o de consulta de '" + NOME + "'"); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.LETTER_CONSULTA, "Vimos pelo presente informar que '" + NOME + "' dever\u00E1 comparecer " |  | ||||||
| 						+ "nas nossas instala\u00E7\u00F5es para a realiza\u00E7\u00E3o da consulta de Medicina " |  | ||||||
| 						+ "do Trabalho, no dia '" + DATA + "', pelas 08H30." |  | ||||||
| 						+ "%0A%0A" |  | ||||||
| 						+ "%0A%0A" |  | ||||||
| 						+ "Solicitamos, tamb\u00E9m, que o colaborador seja portador do Boletim de Vacinas e " |  | ||||||
| 						+ "dos \u00FAltimos exames complementares realizados." |  | ||||||
| 						+ "%0A%0A" |  | ||||||
| 						+ "%0A%0A" |  | ||||||
| 						+ "Caso n\u00E3o seja poss\u00EDvel a compar\u00EAncia deste colaborador na data " |  | ||||||
| 						+ "indicada, contacte-nos, por favor, atrav\u00E9s do telefone 21 350 45 40 " |  | ||||||
| 						+ "ou respondendo ao remetente desta mensagem." |  | ||||||
| 						+ "%0A%0A%0A" |  | ||||||
| 						+ "Cumprimentos," |  | ||||||
| 						+ "%0A%0ASIPRP" |  | ||||||
| 						+ "%0A%0AATRIUM SALDANHA" |  | ||||||
| 						+ "%0A%0APra\u00e7a Duque de Saldanha, 1 - 9\u00BAG" |  | ||||||
| 						+ "%0A%0A1050-094 Lisboa" ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.SUBJECT_EXAMES, "SIPRP - Marca\u00E7\u00E3o de exame de '" + NOME + "'"); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.LETTER_EXAMES, "Vimos pelo presente informar que '" + NOME + "' dever\u00E1 comparecer " |  | ||||||
| 						+ "nas nossas instala\u00E7\u00F5es para a realiza\u00E7\u00E3o dos exames de Medicina " |  | ||||||
| 						+ "do Trabalho, no dia '" + DATA + "', pelas 08H30." |  | ||||||
| 						+ "%0A%0A" |  | ||||||
| 						+ "Relembramos que o colaborador dever\u00E1 comparecer em jejum." |  | ||||||
| 						+ "%0A%0A" |  | ||||||
| 						+ "Caso n\u00E3o seja poss\u00EDvel a compar\u00EAncia deste colaborador na data " |  | ||||||
| 						+ "indicada, contacte-nos, por favor, atrav\u00E9s do telefone 21 350 45 40 " |  | ||||||
| 						+ "ou respondendo ao remetente desta mensagem." |  | ||||||
| 						+ "%0A%0A%0A" |  | ||||||
| 						+ "Cumprimentos,%0A%0ASIPRP" ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.SUBJECT_VISITA, "SIPRP - Marca\u00E7\u00E3o de visita de higiene e seguran\u00E7a a '" + NOME + "'" ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.LETTER_VISITA, "Vimos pelo presente informar que iremos efectuar a auditoria de Higiene e " |  | ||||||
| 					+ "Seguran\u00E7a \u00E0s vossas instala\u00E7\u00F5es de '" + NOME + "', no dia '" + DATA +  "'." |  | ||||||
| 					+ "%0A%0A" |  | ||||||
| 					+ "Agradecemos que nos confirme, pela mesma via, o nome do representante " |  | ||||||
| 					+ "da empresa que nos ir\u00E1 acompanhar e a vossa disponibilidade para a " |  | ||||||
| 					+ "realiza\u00E7\u00E3o da visita na data indicada." |  | ||||||
| 					+ "%0A%0A" |  | ||||||
| 					+ "Caso necessite de qualquer esclarecimento, contacte-nos, por favor, " |  | ||||||
| 					+ "atrav\u00E9s dos telefones 21 350 45 43 (Pedro Vieira), 21 350 45 44 " |  | ||||||
| 					+ "(Catarina Leonardo) ou responda ao remetente desta mensagem." |  | ||||||
| 					+ "%0A%0A%0A" |  | ||||||
| 					+ "Cumprimentos,%0A%0ASIPRP" ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.USES_HOUR, Boolean.FALSE ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.CODIGO_EMPRESA_FORMAT, "2 6 / 2" ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.FICHA_MARCA_EXAMES, Boolean.TRUE ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.EXCEL_FORMAT, new int[]{ 0, 2, 3, 1, -1, 4, 5, 7, 6, -1 } ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.EXCEL_FORMAT_DEMISSAO, new int[]{ 0, 1 } ); |  | ||||||
| 		 |  | ||||||
| 		Singleton.setInstance( SingletonConstants.MODULE_FICHA, Boolean.TRUE ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.MODULE_CLIENTES, Boolean.TRUE ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.WEB_AWARE, Boolean.TRUE ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.MODULE_RELATORIO, Boolean.TRUE ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.MODULE_LISTAGENS, Boolean.TRUE ); |  | ||||||
| 	 |  | ||||||
| 		Singleton.setInstance( SingletonConstants.WEB_USER, "siprp" ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.WEB_PASSWORD, "rg2h-opksiprp" ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.WEB_URL_PREFIX, "jdbc:postgresql://" ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.WEB_URL, "www.evolute.pt:5436" ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.WEB_DB_NAME, "siprp" ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.WEB_DRIVER_NAME, "org.postgresql.Driver" ); |  | ||||||
| 		 |  | ||||||
| 		Singleton.setInstance( SingletonConstants.LOCAL_USER, Singleton.getInstance( EvoPropertyKey.DB.USER ) ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.LOCAL_PASSWORD, Singleton.getInstance( EvoPropertyKey.DB.PASSWORD ) ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.LOCAL_URL_PREFIX, Singleton.getInstance( EvoPropertyKey.DB.CONNECTION.PREFIX ) ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.LOCAL_URL,  |  | ||||||
| 			Singleton.getInstance( EvoPropertyKey.DB.CONNECTION.HOSTNAME ) + ":" + Singleton.getInstance( EvoPropertyKey.DB.CONNECTION.PORT )   |  | ||||||
| 		); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.LOCAL_DB_NAME, Singleton.getInstance( EvoPropertyKey.DB.NAME ) ); |  | ||||||
| 		Singleton.setInstance( SingletonConstants.LOCAL_DRIVER_NAME, Singleton.getInstance( EvoPropertyKey.DB.CONNECTION.DRIVER_NAME ) ); |  | ||||||
| 		 |  | ||||||
| 		 |  | ||||||
| 		 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_USER, "postgres" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_PASSWORD, "Typein" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_URL_PREFIX, "jdbc:postgresql://" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_URL, "10.158.2.2:5432" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_DB_NAME, "siprp_local" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_DRIVER_NAME, "org.postgresql.Driver" );
 |  | ||||||
| 		 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_USER, "postgres" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_PASSWORD, "Typein" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_URL_PREFIX, "jdbc:postgresql://" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_URL, "dbserver:5432" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_DB_NAME, "siprp_local3" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_DRIVER_NAME, "org.postgresql.Driver" );
 |  | ||||||
| 		 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_USER, "postgres" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_PASSWORD, "Typein" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_URL_PREFIX, "jdbc:postgresql://" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_URL, "dbserver:5432" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_DB_NAME, "siprp_local" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_DRIVER_NAME, "org.postgresql.Driver" );
 |  | ||||||
| 		 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_USER, "postgres" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_PASSWORD, "Typein" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_URL_PREFIX, "jdbc:postgresql://" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_URL, "dbserver:5432" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_DB_NAME, "siprp_local" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_DRIVER_NAME, "org.postgresql.Driver" );
 |  | ||||||
| 		 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_USER, "postgres" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_PASSWORD, "Typein" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_URL_PREFIX, "jdbc:postgresql://" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_URL, "dbserver:5432" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_DB_NAME, "siprp_local" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_DRIVER_NAME, "org.postgresql.Driver" );
 |  | ||||||
| 		 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_USER, "postgres" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_PASSWORD, "Typein" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_URL_PREFIX, "jdbc:postgresql://" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_URL, "storage:5432" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_DB_NAME, "siprp_local3" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_DRIVER_NAME, "org.postgresql.Driver" );
 |  | ||||||
| 		 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_USER, "postgres" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_PASSWORD, "Typein" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_URL_PREFIX, "jdbc:postgresql://" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_URL, "ws-fpalma.redeapdp:5432" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_DB_NAME, "siprp_local" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_DRIVER_NAME, "org.postgresql.Driver" );
 |  | ||||||
| 		 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_USER, "postgres" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_PASSWORD, "Typein" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_URL_PREFIX, "jdbc:postgresql://" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_URL, "192.168.1.1:5432" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_DB_NAME, "siprp_local" );
 |  | ||||||
| //		Singleton.setInstance( SingletonConstants.LOCAL_DRIVER_NAME, "org.postgresql.Driver" );
 |  | ||||||
| 		 |  | ||||||
| 	} |  | ||||||
| 	 |  | ||||||
| } |  | ||||||
					Loading…
					
					
				
		Reference in new issue