-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Admin
authored and
Admin
committed
Jul 24, 2018
1 parent
c0d37f8
commit 653e212
Showing
10 changed files
with
171 additions
and
83 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
5 changes: 5 additions & 0 deletions
5
src/main/java/com/br/apss/pedidovenda/bean/EnviarPedidoPorEmailBean.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
package com.br.apss.pedidovenda.bean; | ||
|
||
public class EnviarPedidoPorEmailBean { | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,25 +8,23 @@ public static void main(String[] args) throws EmailException { | |
SimpleEmail email = new SimpleEmail(); | ||
try { | ||
System.out.println("Enviando..."); | ||
// email.setDebug(true); | ||
email.setHostName("smtp.gmail.com"); | ||
email.setSmtpPort(465); | ||
email.setSSL(true); | ||
email.setAuthentication("[email protected]","*news2016*"); | ||
|
||
email.addTo("[email protected]"); //aqui voce coloca o seu email de destinatario. | ||
email.setFrom("[email protected]"); | ||
email.setSubject("Rescupera��o de Senha SimuladoOnline"); | ||
email.setMsg("Ol�, " | ||
+ "BUSCA NO BANCO"+"\n" | ||
+ "Estamos enviando conforme solicita��o seu Login e senha para acesso ao sistema. \n" | ||
+"\n"+ "Login:" + "BUSCA DO BANCO"+"\n" + "Senha:" | ||
+ "NOVA SENHA"); | ||
email.send(); | ||
// email.setDebug(true); | ||
email.setHostName("smtp.gmail.com"); | ||
email.setSmtpPort(465); | ||
email.setSSL(true); | ||
email.setAuthentication("[email protected]", "*news2016*"); | ||
|
||
email.addTo("[email protected]"); // aqui voce coloca o seu email de destinatario. | ||
email.setFrom("[email protected]"); | ||
email.setSubject("Rescupera��o de Senha SimuladoOnline"); | ||
email.setMsg("Ol�, " + "BUSCA NO BANCO" + "\n" | ||
+ "Estamos enviando conforme solicitação seu Login e senha para acesso ao sistema. \n" + "\n" | ||
+ "Login:" + "BUSCA DO BANCO" + "\n" + "Senha:" + "NOVA SENHA"); | ||
email.send(); | ||
System.out.println("Email enviado."); | ||
} catch (EmailException ex) { | ||
ex.printStackTrace(); | ||
System.out.println("Email n�o enviado."); | ||
System.out.println("Email não enviado."); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
61 changes: 61 additions & 0 deletions
61
src/main/webapp/pages/cadastros/pedido/graficoPedidoEmitido.xhtml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
<ui:composition template="/WEB-INF/template/layout-padrao.xhtml" | ||
xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:h="http://java.sun.com/jsf/html" | ||
xmlns:f="http://java.sun.com/jsf/core" | ||
xmlns:ui="http://java.sun.com/jsf/facelets" | ||
xmlns:p="http://primefaces.org/ui"> | ||
|
||
<ui:define name="titulo">Gráfico Pedido Emitido</ui:define> | ||
|
||
<ui:define name="corpo"> | ||
|
||
<style type="text/css"> | ||
<!-- | ||
.rotulo { | ||
width: 100px; | ||
} | ||
--> | ||
</style> | ||
|
||
<h:form prependId="false"> | ||
|
||
<h1>Gráfico Pedido Emitido</h1> | ||
|
||
<p:growl autoUpdate="true" showDetail="3000" /> | ||
|
||
<p:toolbar style="margin-top: 20px" styleClass="semPreenchimento"> | ||
|
||
<p:toolbarGroup> | ||
|
||
<p:outputLabel value="INFORME O PERIODO"/> | ||
|
||
<p:calendar size="8" pattern="dd/MM/yyyy" locale="pt_BR" | ||
style="margin-left:5px;" id="dtInicio" | ||
onfocus="mascaraDtCalendar('dtInicio')" styleClass="cssCalender"> | ||
</p:calendar> | ||
|
||
<p:outputLabel value="ATÉ" | ||
style="margin-left:5px; margin-right:5px; color:black" /> | ||
|
||
<p:calendar size="8" pattern="dd/MM/yyyy" locale="pt_BR" id="dtFim" | ||
onfocus="mascaraDtCalendar('dtFim')" styleClass="cssCalender"> | ||
<p:ajax event="dateSelect" process="@this" /> | ||
</p:calendar> | ||
|
||
<p:commandButton icon="fa fa-search" value="PESQUISA" | ||
style="margin-left:10px;" /> | ||
|
||
</p:toolbarGroup> | ||
|
||
<p:toolbarGroup align="right"> | ||
<p:button value="Fechar" icon="fa fa-power-off" outcome="/home" /> | ||
</p:toolbarGroup> | ||
|
||
</p:toolbar> | ||
|
||
</h:form> | ||
|
||
|
||
|
||
</ui:define> | ||
</ui:composition> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters