Skip to content

Commit

Permalink
Primeiro commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mateus committed Feb 23, 2013
1 parent 2dd1dd1 commit f63cbf8
Show file tree
Hide file tree
Showing 94 changed files with 26,651 additions and 0 deletions.
71 changes: 71 additions & 0 deletions build.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- You may freely edit this file. See commented blocks below for -->
<!-- some examples of how to customize the build. -->
<!-- (If you delete it and reopen the project it will be recreated.) -->
<!-- By default, only the Clean and Build commands use this build script. -->
<!-- Commands such as Run, Debug, and Test only use this build script if -->
<!-- the Compile on Save feature is turned off for the project. -->
<!-- You can turn off the Compile on Save (or Deploy on Save) setting -->
<!-- in the project's Project Properties dialog box.-->
<project name="SAEC" default="default" basedir=".">
<description>Builds, tests, and runs the project SAEC.</description>
<import file="nbproject/build-impl.xml"/>
<!--
There exist several targets which are by default empty and which can be
used for execution of your tasks. These targets are usually executed
before and after some main targets. They are:
-pre-init: called before initialization of project properties
-post-init: called after initialization of project properties
-pre-compile: called before javac compilation
-post-compile: called after javac compilation
-pre-compile-single: called before javac compilation of single file
-post-compile-single: called after javac compilation of single file
-pre-compile-test: called before javac compilation of JUnit tests
-post-compile-test: called after javac compilation of JUnit tests
-pre-compile-test-single: called before javac compilation of single JUnit test
-post-compile-test-single: called after javac compilation of single JUunit test
-pre-dist: called before archive building
-post-dist: called after archive building
-post-clean: called after cleaning build products
-pre-run-deploy: called before deploying
-post-run-deploy: called after deploying
Example of pluging an obfuscator after the compilation could look like
<target name="-post-compile">
<obfuscate>
<fileset dir="${build.classes.dir}"/>
</obfuscate>
</target>
For list of available properties check the imported
nbproject/build-impl.xml file.
Other way how to customize the build is by overriding existing main targets.
The target of interest are:
init-macrodef-javac: defines macro for javac compilation
init-macrodef-junit: defines macro for junit execution
init-macrodef-debug: defines macro for class debugging
do-dist: archive building
run: execution of project
javadoc-build: javadoc generation
Example of overriding the target for project execution could look like
<target name="run" depends="<PROJNAME>-impl.jar">
<exec dir="bin" executable="launcher.exe">
<arg file="${dist.jar}"/>
</exec>
</target>
Notice that overridden target depends on jar target and not only on
compile target as regular run target does. Again, for list of available
properties which you can use check the target you are overriding in
nbproject/build-impl.xml file.
-->
</project>
2 changes: 2 additions & 0 deletions build/web/META-INF/MANIFEST.MF
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Manifest-Version: 1.0

Empty file.
Empty file.
13 changes: 13 additions & 0 deletions build/web/WEB-INF/classes/META-INF/persistence.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<persistence version="2.0" xmlns="http://java.sun.com/xml/ns/persistence" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persistence/persistence_2_0.xsd">
<persistence-unit name="SAECPU" transaction-type="RESOURCE_LOCAL">
<provider>org.hibernate.ejb.HibernatePersistence</provider>
<jta-data-source>db_saec</jta-data-source>
<exclude-unlisted-classes>false</exclude-unlisted-classes>
<properties>
<property name="eclipselink.ddl-generation" value="create-tables"/>
<property name="hibernate.archive.autodetection" value="class, model"/>
<property name="hibernate.show_sql" value="true"/>
</properties>
</persistence-unit>
</persistence>
26 changes: 26 additions & 0 deletions build/web/WEB-INF/faces-config.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version='1.0' encoding='UTF-8'?>

<!-- =========== FULL CONFIGURATION FILE ================================== -->

<faces-config version="2.1"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_2_1.xsd">

<managed-bean>
<managed-bean-name>Usuario</managed-bean-name>
<managed-bean-class>com.control.UsuarioBean</managed-bean-class>
<managed-bean-scope>session</managed-bean-scope>
</managed-bean>
<navigation-rule>
<from-view-id>/index.xhtml</from-view-id>
<navigation-case>
<from-outcome>Login_OK</from-outcome>
<to-view-id>/menu.xhtml</to-view-id>
</navigation-case>
<navigation-case>
<from-outcome>Login_ERROR</from-outcome>
<to-view-id>/index.xhtml</to-view-id>
</navigation-case>
</navigation-rule>
</faces-config>
10 changes: 10 additions & 0 deletions build/web/WEB-INF/glassfish-web.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE glassfish-web-app PUBLIC "-//GlassFish.org//DTD GlassFish Application Server 3.1 Servlet 3.0//EN" "http://glassfish.org/dtds/glassfish-web-app_3_0-1.dtd">
<glassfish-web-app error-url="">
<class-loader delegate="true"/>
<jsp-config>
<property name="keepgenerated" value="true">
<description>Keep a copy of the generated servlet class' java code.</description>
</property>
</jsp-config>
</glassfish-web-app>
24 changes: 24 additions & 0 deletions build/web/WEB-INF/web.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
<?xml version="1.0" encoding="UTF-8"?>
<web-app version="3.0" xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd">
<context-param>
<param-name>javax.faces.PROJECT_STAGE</param-name>
<param-value>Development</param-value>
</context-param>
<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>
<servlet-mapping>
<servlet-name>Faces Servlet</servlet-name>
<url-pattern>/faces/*</url-pattern>
</servlet-mapping>
<session-config>
<session-timeout>
30
</session-timeout>
</session-config>
<welcome-file-list>
<welcome-file>faces/index.xhtml</welcome-file>
</welcome-file-list>
</web-app>
Empty file added build/web/gfv3ee6.dpf
Empty file.
59 changes: 59 additions & 0 deletions build/web/index.xhtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
<h:head>
<h:outputStylesheet name="style.css" library="css" />

<meta charset="utf-8" />
<title>SAEC - Login</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="Sistema para Agendamento de Exames Clínicos" />
<meta name="author" content="Mateus Ferreira Silva" />

<!-- <h:outputScript name="jquery.min.js" library="js" />
<h:outputScript name="login.js" library="js" />-->

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.2.6/jquery.min.js"></script>
<script type="text/javascript">
$(document).ready(function() {
$(".username").focus(function() {
$(".user-icon").css("left","-48px");
});
$(".username").blur(function() {
$(".user-icon").css("left","0px");
});

$(".password").focus(function() {
$(".pass-icon").css("left","-48px");
});
$(".password").blur(function() {
$(".pass-icon").css("left","0px");
});
});
</script>
</h:head>
<h:body>
<div id="wrapper">
<div class="user-icon"></div>
<div class="pass-icon"></div>
<h:form name="login-form" class="login-form" action="" method="post">
<div class="header">
<h2>SAEC - Login</h2>
</div>
<div class="content">
<h:inputText type="text" class="input username" value="#{Usuario.usuario.usuario}" onfocus="this.value=''" />
<h:inputText type="password" class="input password" value="#{Usuario.usuario.senha}" onfocus="this.value=''" />
</div>
<div class="footer">
<h:commandButton action="#{Usuario.verificaLogin()}" value="Entrar" class="button" />
<h:commandButton action="#{Usuario.cadastrar()}" value="Cadastrar" class="register" />
</div>
</h:form>
</div>
<footer>
<p>Desenvolvido por Mateus Ferreira Silva para a disciplina de Desenvolvimento de Aplicações Web</p>
<p>Instituto Federal de Educação, Ciência e Tecnologia do Sudeste de Minas - Câmpus Barbacena - TSI Turma 2011</p>
</footer>
</h:body>
</html>
125 changes: 125 additions & 0 deletions build/web/menu.xhtml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:ui="http://java.sun.com/jsf/facelets">
<head>
<meta charset="utf-8" />
<title>Template Bootstrap</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="description" content="" />
<meta name="author" content="" />

<!-- Le styles -->
<link href="resources/css/bootstrap.css" rel="stylesheet" />
<style type="text/css">
body{
padding-top: 10px;

}

.nav {
margin-bottom: -15px;
}

h3 {
margin: 0;
padding: 0;
padding-right: 25px;
font-size: 21.5px;
text-align: center;
}

h2 {
margin: 0;
padding: 0;
text-align: center;
}

.hero-unit {
padding: 10px;

}

</style>
<link href="resources/css/bootstrap-responsive.css" rel="stylesheet" />
</head>
<body>
<div class="container">
<div class="masthead">
<h3 class="muted pull-left">Bem-vindo Mateus</h3>
<ul class="nav nav-pills">
<li class="active"><a href="#">Início</a></li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
Agenda <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="#">Agendar</a></li>
<li><a href="#">Cancelar</a></li>
<li><a href="#">Listar</a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
Exâme <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="#">Cadastrar</a></li>
<li><a href="#">Consultar</a></li>
<li><a href="#">Alterar</a></li>
<li><a href="#">Excluir</a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
Médico <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="#">Cadastrar</a></li>
<li><a href="#">Consultar</a></li>
<li><a href="#">Alterar</a></li>
<li><a href="#">Excluir</a></li>
</ul>
</li>
<li class="dropdown">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">
Paciente <b class="caret"></b>
</a>
<ul class="dropdown-menu">
<li><a href="#">Cadastrar</a></li>
<li><a href="#">Consultar</a></li>
<li><a href="#">Alterar</a></li>
<li><a href="#">Excluir</a></li>
</ul>
</li>
<ul class="nav nav-pills pull-right">
<li><a href="#">Sobre</a></li>
<li><a href="#">Sair</a></li>
</ul>
</ul>
</div>
</div>
<hr />

<div class="container-fluid">
<div class="hero-unit">
<h2>Sistema de Agendamento de Exames Clínicos</h2>
</div>
</div>

<script src="resources/js/jquery.js"></script>
<script src="resources/js/bootstrap-transition.js"></script>
<script src="resources/js/bootstrap-alert.js"></script>
<script src="resources/js/bootstrap-modal.js"></script>
<script src="resources/js/bootstrap-dropdown.js"></script>
<script src="resources/js/bootstrap-scrollspy.js"></script>
<script src="resources/js/bootstrap-tab.js"></script>
<script src="resources/js/bootstrap-tooltip.js"></script>
<script src="resources/js/bootstrap-popover.js"></script>
<script src="resources/js/bootstrap-button.js"></script>
<script src="resources/js/bootstrap-collapse.js"></script>
<script src="resources/js/bootstrap-carousel.js"></script>
<script src="resources/js/bootstrap-typeahead.js"></script>

</body>
</html>
Loading

0 comments on commit f63cbf8

Please sign in to comment.