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
2d17786e
Commit
2d17786e
authored
Nov 08, 2018
by
Juan José Rojas Rojas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[ADD] insert personal
parent
ae7e8b69
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
+6
-4
PersonaMysqlDAO.java
src/java/trismegistoplanilla/mysqldao/PersonaMysqlDAO.java
+6
-4
No files found.
src/java/trismegistoplanilla/mysqldao/PersonaMysqlDAO.java
View file @
2d17786e
...
...
@@ -146,6 +146,7 @@ public class PersonaMysqlDAO implements PersonaDAO {
+
" apellidoPaterno, "
// apellido_paterno
+
" apellidoMaterno, "
// apellido_materno
+
" nombre, "
+
" apellido, "
+
" codigo_tipo_documento, "
+
" dni, "
// numero_documento
+
" email, "
// correo
...
...
@@ -175,10 +176,11 @@ public class PersonaMysqlDAO implements PersonaDAO {
psPersona
.
setString
(
1
,
p
.
getApellidoPaterno
());
psPersona
.
setString
(
2
,
p
.
getApellidoMaterno
());
psPersona
.
setString
(
3
,
p
.
getNombre
());
psPersona
.
setInt
(
4
,
p
.
getCodigoTipoDocumento
());
psPersona
.
setString
(
5
,
p
.
getNumeroDocumento
());
psPersona
.
setString
(
6
,
p
.
getCorreo
());
psPersona
.
setInt
(
7
,
p
.
getIsDefaultMail
());
psPersona
.
setString
(
4
,
p
.
getApellidoPaterno
()
+
" "
+
p
.
getApellidoMaterno
());
psPersona
.
setInt
(
5
,
p
.
getCodigoTipoDocumento
());
psPersona
.
setString
(
6
,
p
.
getNumeroDocumento
());
psPersona
.
setString
(
7
,
p
.
getCorreo
());
psPersona
.
setInt
(
8
,
p
.
getIsDefaultMail
());
int
resultRegistrarPersona
=
psPersona
.
executeUpdate
();
...
...
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