Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
securityRemake
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
Juan Guevara Mayta
securityRemake
Commits
d439e02c
Commit
d439e02c
authored
Oct 15, 2022
by
Aaron Josue Yaya Maza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FIXED] LISTAR USUARIOS
parent
8750b183
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
21 additions
and
10 deletions
+21
-10
UsuarioServlet.class
...INF/classes/moduloSeguridad/servlets/UsuarioServlet.class
+0
-0
general.js
build/web/js/general.js
+1
-1
usuario.js
build/web/js/pages/usuario.js
+3
-1
private.xml
nbproject/private/private.xml
+8
-1
UsuarioServlet.java
src/java/moduloSeguridad/servlets/UsuarioServlet.java
+5
-5
general.js
web/js/general.js
+1
-1
usuario.js
web/js/pages/usuario.js
+3
-1
No files found.
build/web/WEB-INF/classes/moduloSeguridad/servlets/UsuarioServlet.class
View file @
d439e02c
No preview for this file type
build/web/js/general.js
View file @
d439e02c
...
...
@@ -4,7 +4,7 @@
PATH_GENERAL
:
'http://localhost:8080/SolicitudRequerimientos/'
,
PATH_IP
:
'http://172.16.2.40:8080/SolicitudRequerimientos/'
,
CODIGO_PROYECTO_MATRICULA
:
'1'
,
PATH_SERVICIO_REST
:
'http://app9.sacooliveros.edu.pe:8080/security-rest/api/'
PATH_SERVICIO_REST
:
location
.
host
.
includes
(
"localhost"
)?
'http://'
+
location
.
host
+
'/security-rest/api/'
:
'http://app9.sacooliveros.edu.pe:8080/security-rest/api/'
})
let
getYearFooter
=
(
footer
)
=>
{
...
...
build/web/js/pages/usuario.js
View file @
d439e02c
...
...
@@ -217,7 +217,9 @@
"url"
:
'../servlet/UsuarioServlet?accion=listarUsuario'
,
data
:
{
json
:
JSON
.
stringify
(
json
)
}
},
beforeSend
:
function
()
{
load
(
'Cargando'
);
}
},
"bSort"
:
false
,
"bFilter"
:
false
,
...
...
nbproject/private/private.xml
View file @
d439e02c
...
...
@@ -2,6 +2,13 @@
<project-private
xmlns=
"http://www.netbeans.org/ns/project-private/1"
>
<editor-bookmarks
xmlns=
"http://www.netbeans.org/ns/editor-bookmarks/2"
lastBookmarkId=
"0"
/>
<open-files
xmlns=
"http://www.netbeans.org/ns/projectui-open-files/2"
>
<group/>
<group>
<file>
file:/D:/proyectosaco/securityRemake/src/java/moduloSeguridad/sqlserverdao/SqlServerDAOFactory.java
</file>
<file>
file:/D:/proyectosaco/securityRemake/src/java/moduloSeguridad/servlets/LoginServlet.java
</file>
<file>
file:/D:/proyectosaco/securityRemake/src/java/moduloSeguridad/filters/RequestsFilter.java
</file>
<file>
file:/D:/proyectosaco/securityRemake/src/java/moduloSeguridad/sqlserverdao/MenuSqlServerDAO.java
</file>
<file>
file:/D:/proyectosaco/securityRemake/src/java/moduloSeguridad/servlets/UsuarioServlet.java
</file>
<file>
file:/D:/proyectosaco/securityRemake/src/java/moduloSeguridad/config/RequestPath.java
</file>
</group>
</open-files>
</project-private>
src/java/moduloSeguridad/servlets/UsuarioServlet.java
View file @
d439e02c
...
...
@@ -123,16 +123,16 @@ public class UsuarioServlet extends HttpServlet {
JSONObject
objeto
=
new
JSONObject
();
JSONObject
obj
=
json
.
getJSONObject
(
i
);
String
codigoTrabajador
=
obj
.
getString
(
"codigoTrabajador"
);
JSONObject
prs
=
new
JSONObject
(
listarPersonalPorCodigo
(
codigoTrabajador
)
);
JSONObject
prs
=
listarPersonalPorCodigo
(
codigoTrabajador
);
objeto
.
put
(
"codigoUsuario"
,
obj
.
getInt
(
"codigoUsuario"
));
objeto
.
put
(
"numeral"
,
obj
.
getInt
(
"numeral"
));
objeto
.
put
(
"usuario"
,
obj
.
getString
(
"usuario"
));
objeto
.
put
(
"estadoUsuario"
,
obj
.
getInt
(
"estadoUsuario"
));
objeto
.
put
(
"nombreArea"
,
prs
.
getString
(
"nom
A
re"
));
objeto
.
put
(
"nombreCargo"
,
prs
.
getString
(
"nom
C
ar"
));
objeto
.
put
(
"nombreUsuario"
,
prs
.
getString
(
"nom
Per"
)
+
" "
+
prs
.
getString
(
"apePatPer"
)
+
" "
+
prs
.
getString
(
"apeMatP
er"
));
objeto
.
put
(
"nombreSede"
,
prs
.
getString
(
"nom
S
ed"
));
objeto
.
put
(
"nombreArea"
,
prs
.
getString
(
"nom
_a
re"
));
objeto
.
put
(
"nombreCargo"
,
prs
.
getString
(
"nom
_c
ar"
));
objeto
.
put
(
"nombreUsuario"
,
prs
.
getString
(
"nom
_per"
)
+
" "
+
prs
.
getString
(
"ape_pat_per"
)
+
" "
+
prs
.
getString
(
"ape_mat_p
er"
));
objeto
.
put
(
"nombreSede"
,
prs
.
getString
(
"nom
_s
ed"
));
lista
.
put
(
objeto
);
}
...
...
web/js/general.js
View file @
d439e02c
...
...
@@ -4,7 +4,7 @@
PATH_GENERAL
:
'http://localhost:8080/SolicitudRequerimientos/'
,
PATH_IP
:
'http://172.16.2.40:8080/SolicitudRequerimientos/'
,
CODIGO_PROYECTO_MATRICULA
:
'1'
,
PATH_SERVICIO_REST
:
'http://app9.sacooliveros.edu.pe:8080/security-rest/api/'
PATH_SERVICIO_REST
:
location
.
host
.
includes
(
"localhost"
)?
'http://'
+
location
.
host
+
'/security-rest/api/'
:
'http://app9.sacooliveros.edu.pe:8080/security-rest/api/'
})
let
getYearFooter
=
(
footer
)
=>
{
...
...
web/js/pages/usuario.js
View file @
d439e02c
...
...
@@ -217,7 +217,9 @@
"url"
:
'../servlet/UsuarioServlet?accion=listarUsuario'
,
data
:
{
json
:
JSON
.
stringify
(
json
)
}
},
beforeSend
:
function
()
{
load
(
'Cargando'
);
}
},
"bSort"
:
false
,
"bFilter"
:
false
,
...
...
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