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
97bc494a
Commit
97bc494a
authored
Aug 08, 2025
by
Mauro Paolo Josue Zuñiga Mallqui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[EDIT] SELECT2 EN LA VISTA mantenimientoMenu.jsp
parent
a516109a
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
5 deletions
+7
-5
MenuMYSQLDAO.java
.../com/mycompany/moduloseguridad/mysqldao/MenuMYSQLDAO.java
+3
-3
MantenimientoMenu.js
src/main/webapp/js/pages/MantenimientoMenu.js
+2
-2
mantenimientoMenu.jsp
src/main/webapp/vistas/mantenimientoMenu.jsp
+2
-0
No files found.
src/main/java/com/mycompany/moduloseguridad/mysqldao/MenuMYSQLDAO.java
View file @
97bc494a
...
...
@@ -1895,7 +1895,7 @@ public class MenuMYSQLDAO implements MenuDAO {
+
" from modulo as a "
+
" where true "
+
condicion
+
"ORDER BY 1 desc limit "
+
start
+
","
+
length
+
" ; "
;
+
"
group by nom
ORDER BY 1 desc limit "
+
start
+
","
+
length
+
" ; "
;
pst
=
con
.
prepareStatement
(
sql
);
rsLlave
=
pst
.
executeQuery
();
while
(
rsLlave
.
next
())
{
...
...
@@ -1979,7 +1979,7 @@ public class MenuMYSQLDAO implements MenuDAO {
+
"from categoria as a "
+
"where true "
+
condicion
+
"ORDER BY 1 desc limit "
+
start
+
","
+
length
+
" ; "
;
+
"
group by nom
ORDER BY 1 desc limit "
+
start
+
","
+
length
+
" ; "
;
pst
=
con
.
prepareStatement
(
sql
);
rsLlave
=
pst
.
executeQuery
();
while
(
rsLlave
.
next
())
{
...
...
@@ -2063,7 +2063,7 @@ public class MenuMYSQLDAO implements MenuDAO {
+
"from subcategoria as a "
+
"where true "
+
condicion
+
"ORDER BY 1 desc limit "
+
start
+
","
+
length
+
" ; "
;
+
"
group by nom
ORDER BY 1 desc limit "
+
start
+
","
+
length
+
" ; "
;
pst
=
con
.
prepareStatement
(
sql
);
rsLlave
=
pst
.
executeQuery
();
while
(
rsLlave
.
next
())
{
...
...
src/main/webapp/js/pages/MantenimientoMenu.js
View file @
97bc494a
...
...
@@ -38,8 +38,8 @@ let tipo_usuario_nombre = "";
}
$
(
'#btnLimpiar'
).
click
(
function
()
{
$
(
'#cboTipoUsuario'
).
val
(
""
);
$
(
'#cboProyecto'
).
val
(
""
);
$
(
'#cboTipoUsuario'
).
val
(
null
).
trigger
(
'change'
);
$
(
'#cboProyecto'
).
val
(
null
).
trigger
(
'change'
);
$
(
'#cboTipoUsuario'
).
attr
(
'disabled'
,
true
);
$
(
'#btnBuscar'
).
attr
(
'disabled'
,
true
);
recargar
();
...
...
src/main/webapp/vistas/mantenimientoMenu.jsp
View file @
97bc494a
...
...
@@ -180,6 +180,8 @@
<script
src=
"../js/lib/jquery-editable-select.min.js"
type=
"text/javascript"
></script>
<script
src=
"../js/pages/MantenimientoMenu.js"
type=
"text/javascript"
></script>
<script>
$
(
'#cboProyecto'
).
select2
();
$
(
'#cboTipoUsuario'
).
select2
();
let
switchery
=
new
Switchery
(
document
.
querySelector
(
'#cbkEstado'
),
{
color
:
'red'
,
secondaryColor
:
'green'
});
let
switchery2
=
new
Switchery
(
document
.
querySelector
(
'#cbkPermisos'
),
{
color
:
'red'
,
secondaryColor
:
'green'
});
$
(
'.heading-elements'
).
css
(
'display'
,
'flex'
);
...
...
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