forked from Coded/SIPRP
				
			
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							45 lines
						
					
					
						
							1.1 KiB
						
					
					
				
			
		
		
	
	
							45 lines
						
					
					
						
							1.1 KiB
						
					
					
				| package siprp;
 | |
| 
 | |
| import siprp.ficha.*;
 | |
| 
 | |
| import com.evolute.utils.*;
 | |
| import com.evolute.utils.db.*;
 | |
| import com.evolute.utils.db.keyretrievers.*;
 | |
| import com.evolute.utils.jdbc.*;
 | |
| import com.evolute.utils.sql.*;
 | |
| 
 | |
| import java.text.*;
 | |
| import java.util.*;
 | |
| 
 | |
| public class Main
 | |
| {
 | |
| 	public static void main( String args[] )
 | |
| 		throws Exception
 | |
| 	{
 | |
| 		Calendar cal = Calendar.getInstance();
 | |
| 		cal.set( 2004, 06, 14 );
 | |
| 		if( cal.before( Calendar.getInstance() ) )
 | |
| 		{
 | |
| 			com.evolute.utils.ui.DialogException.showException( new RuntimeException( "Unknown error ocurred." ) );
 | |
| 		}
 | |
| 		else
 | |
| 		{
 | |
| 			Insert.setDefaultKeyRetriever( JDBCAutoKeyRetriever.DEFAULT );
 | |
| 			String server = "ws_fpalma";
 | |
| 			String dbase = "siprp";
 | |
| 			String user = "root";
 | |
| 			String passwd = "admin";
 | |
| 
 | |
| 			DBManager dbm = new JDBCManager( "jdbc:mysql://" + server + "/" + dbase, 
 | |
| 						user, passwd , 10, 8, 8, null );
 | |
| 
 | |
| 			Singleton.setInstance( Singleton.DEFAULT_DBMANAGER, dbm );
 | |
| 
 | |
| 			StatementExecuterFactory.initialize( 
 | |
| 					new DBStatementExecuter( dbm.getSharedExecuter() ) );
 | |
| 		}
 | |
| 		FichaWindow window = new FichaWindow();
 | |
| 
 | |
| 		window.show();
 | |
| 	}
 | |
| } |