Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
trismegisto-planilla
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Luis Gangas
trismegisto-planilla
Commits
1fef1f8d
Commit
1fef1f8d
authored
Nov 07, 2018
by
Luis Gangas
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
http://version.sacooliveros.edu.pe/lgangas/trismegisto-planilla
parents
e9bed16b
b2bb577d
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
5 additions
and
2 deletions
+5
-2
PersonaMysqlDAO.java
src/java/trismegistoplanilla/mysqldao/PersonaMysqlDAO.java
+1
-0
FichaServlet.java
src/java/trismegistoplanilla/servlets/FichaServlet.java
+2
-2
PersonaServlet.java
src/java/trismegistoplanilla/servlets/PersonaServlet.java
+2
-0
No files found.
src/java/trismegistoplanilla/mysqldao/PersonaMysqlDAO.java
View file @
1fef1f8d
...
...
@@ -179,6 +179,7 @@ public class PersonaMysqlDAO implements PersonaDAO {
psPersona
.
setString
(
5
,
p
.
getNumeroDocumento
());
psPersona
.
setString
(
6
,
p
.
getCorreo
());
psPersona
.
setInt
(
7
,
p
.
getIsDefaultMail
());
System
.
out
.
println
(
psPersona
);
int
resultRegistrarPersona
=
psPersona
.
executeUpdate
();
if
(
resultRegistrarPersona
>
0
)
{
...
...
src/java/trismegistoplanilla/servlets/FichaServlet.java
View file @
1fef1f8d
...
...
@@ -46,7 +46,7 @@ import trismegistoplanilla.servicesMysql.FichaServices;
import
trismegistoplanilla.services.FormacionAcademicaService
;
import
trismegistoplanilla.services.TokenFichaService
;
import
trismegistoplanilla.services.TrabajadorResponsableService
;
import
trismegistoplanilla.
sqlserverdao.CorreoSqlserver
DAO
;
import
trismegistoplanilla.
mysqldao.CorreoMysql
DAO
;
import
trismegistoplanilla.utilities.EmailDesign
;
import
trismegistoplanilla.utilities.ParamsValidation
;
...
...
@@ -235,7 +235,7 @@ public class FichaServlet extends HttpServlet {
c
.
setDestino
(
p
.
getCorreo
()
+
","
+
correoResponsable
);
c
.
setAsunto
(
"ENHORABUENA!, SU REGISTRO HA SIDO COMPLETADO CON ÉXITO"
);
c
.
setMensaje
(
EmailDesign
.
correoSuccess
(
p
.
getApellidoPaterno
(),
p
.
getApellidoMaterno
(),
p
.
getNombre
(),
p
.
getNombreTipoDocumento
(),
p
.
getNumeroDocumento
()));
Correo
SqlserverDAO
enviarCorreo
=
new
CorreoSqlserver
DAO
();
Correo
MysqlDAO
enviarCorreo
=
new
CorreoMysql
DAO
();
if
(
enviarCorreo
.
enviarCorreo
(
c
))
{
session
.
removeAttribute
(
"tokenFicha"
);
session
.
setAttribute
(
"fichaCompletada"
,
"ok"
);
...
...
src/java/trismegistoplanilla/servlets/PersonaServlet.java
View file @
1fef1f8d
...
...
@@ -115,6 +115,7 @@ public class PersonaServlet extends HttpServlet {
response
.
setContentType
(
"application/json"
);
PrintWriter
out
=
response
.
getWriter
();
JSONObject
JOFicha
=
new
JSONObject
();
if
(
request
.
getParameter
(
"json"
)
==
null
)
{
JOFicha
.
put
(
"status"
,
false
);
JOFicha
.
put
(
"message"
,
"El parámetro llegó nulo"
);
...
...
@@ -185,6 +186,7 @@ public class PersonaServlet extends HttpServlet {
PersonaService
service
=
new
PersonaService
();
JOFicha
=
service
.
registrarPersona
(
p
,
ef
,
tf
);
}
out
.
print
(
JOFicha
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment