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
ad08ec65
Commit
ad08ec65
authored
Nov 12, 2018
by
Luis Gangas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[Edit] mas querys fichaAdministrativa
parent
519b49a4
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
26 additions
and
24 deletions
+26
-24
workspace.xml
.idea/workspace.xml
+6
-4
DetalleLoteFichaDocenteMysqlDAO.java
...stoplanilla/mysqldao/DetalleLoteFichaDocenteMysqlDAO.java
+6
-6
EstadoFichaMysqlDAO.java
...ava/trismegistoplanilla/mysqldao/EstadoFichaMysqlDAO.java
+1
-1
FichaMysqlDAO.java
src/java/trismegistoplanilla/mysqldao/FichaMysqlDAO.java
+9
-9
LoteFichaMysqlDAO.java
src/java/trismegistoplanilla/mysqldao/LoteFichaMysqlDAO.java
+2
-2
VacanteMysqlDAO.java
src/java/trismegistoplanilla/mysqldao/VacanteMysqlDAO.java
+2
-2
No files found.
.idea/workspace.xml
View file @
ad08ec65
...
@@ -17,7 +17,8 @@
...
@@ -17,7 +17,8 @@
<counts>
<counts>
<entry
key=
"project.closed"
value=
"2"
/>
<entry
key=
"project.closed"
value=
"2"
/>
<entry
key=
"project.open.time.0"
value=
"1"
/>
<entry
key=
"project.open.time.0"
value=
"1"
/>
<entry
key=
"project.opened"
value=
"1"
/>
<entry
key=
"project.open.time.12"
value=
"1"
/>
<entry
key=
"project.opened"
value=
"2"
/>
</counts>
</counts>
</usages-collector>
</usages-collector>
<usages-collector
id=
"statistics.file.extensions.edit"
>
<usages-collector
id=
"statistics.file.extensions.edit"
>
...
@@ -116,14 +117,15 @@
...
@@ -116,14 +117,15 @@
<workItem
from=
"1541626388621"
duration=
"785000"
/>
<workItem
from=
"1541626388621"
duration=
"785000"
/>
<workItem
from=
"1541776350897"
duration=
"159000"
/>
<workItem
from=
"1541776350897"
duration=
"159000"
/>
<workItem
from=
"1541776578549"
duration=
"539000"
/>
<workItem
from=
"1541776578549"
duration=
"539000"
/>
<workItem
from=
"1542033991862"
duration=
"249000"
/>
</task>
</task>
<servers
/>
<servers
/>
</component>
</component>
<component
name=
"TimeTrackingManager"
>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"3
222
000"
/>
<option
name=
"totallyTimeSpent"
value=
"3
471
000"
/>
</component>
</component>
<component
name=
"ToolWindowManager"
>
<component
name=
"ToolWindowManager"
>
<frame
x=
"
0"
y=
"0"
width=
"1920"
height=
"1080"
extended-state=
"0
"
/>
<frame
x=
"
-8"
y=
"-8"
width=
"1936"
height=
"1056"
extended-state=
"6
"
/>
<layout>
<layout>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"0"
visible=
"true"
weight=
"0.24973656"
/>
<window_info
content_ui=
"combo"
id=
"Project"
order=
"0"
visible=
"true"
weight=
"0.24973656"
/>
<window_info
id=
"Structure"
order=
"1"
side_tool=
"true"
weight=
"0.25"
/>
<window_info
id=
"Structure"
order=
"1"
side_tool=
"true"
weight=
"0.25"
/>
...
@@ -136,7 +138,7 @@
...
@@ -136,7 +138,7 @@
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
/>
<window_info
anchor=
"bottom"
id=
"Docker"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
anchor=
"bottom"
id=
"Docker"
order=
"7"
show_stripe_button=
"false"
/>
<window_info
active=
"true"
anchor=
"bottom"
id=
"Version Control"
order=
"8"
visible=
"true"
weight=
"0.329
97987
"
/>
<window_info
active=
"true"
anchor=
"bottom"
id=
"Version Control"
order=
"8"
visible=
"true"
weight=
"0.329
29516
"
/>
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"9"
/>
<window_info
anchor=
"bottom"
id=
"Terminal"
order=
"9"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"10"
side_tool=
"true"
/>
<window_info
anchor=
"bottom"
id=
"Event Log"
order=
"10"
side_tool=
"true"
/>
<window_info
anchor=
"right"
id=
"Commander"
internal_type=
"SLIDING"
order=
"0"
type=
"SLIDING"
weight=
"0.4"
/>
<window_info
anchor=
"right"
id=
"Commander"
internal_type=
"SLIDING"
order=
"0"
type=
"SLIDING"
weight=
"0.4"
/>
...
...
src/java/trismegistoplanilla/mysqldao/DetalleLoteFichaDocenteMysqlDAO.java
View file @
ad08ec65
...
@@ -143,7 +143,7 @@ public class DetalleLoteFichaDocenteMysqlDAO implements DetalleLoteFichaDocenteD
...
@@ -143,7 +143,7 @@ public class DetalleLoteFichaDocenteMysqlDAO implements DetalleLoteFichaDocenteD
+
"(codigo_ficha, codigo_area_cargo_tipo_pago, "
+
"(codigo_ficha, codigo_area_cargo_tipo_pago, "
+
"costo_mensual, costo_a, costo_b, costo_c, "
+
"costo_mensual, costo_a, costo_b, costo_c, "
+
"observacion, fecha_registro, estado_registro) "
+
"observacion, fecha_registro, estado_registro) "
+
"values (?, ?, ?, ?, ?, ?, LTRIM(RTRIM(UPPER(?))),
getdate
(), 1)"
;
+
"values (?, ?, ?, ?, ?, ?, LTRIM(RTRIM(UPPER(?))),
now
(), 1)"
;
psInsertarSueldoDocente
=
cnx
.
prepareStatement
(
sql
);
psInsertarSueldoDocente
=
cnx
.
prepareStatement
(
sql
);
for
(
int
i
=
0
;
i
<
longitudJsonArrayFichas
;
i
++)
{
for
(
int
i
=
0
;
i
<
longitudJsonArrayFichas
;
i
++)
{
...
@@ -189,7 +189,7 @@ public class DetalleLoteFichaDocenteMysqlDAO implements DetalleLoteFichaDocenteD
...
@@ -189,7 +189,7 @@ public class DetalleLoteFichaDocenteMysqlDAO implements DetalleLoteFichaDocenteD
+
"fecha_registro, "
+
"fecha_registro, "
+
"codigo_usuario, "
+
"codigo_usuario, "
+
"estado_registro) "
+
"estado_registro) "
+
"VALUES (?,?,
getdate
(),?,1)"
;
+
"VALUES (?,?,
now
(),?,1)"
;
psInsertarEstadoLote
=
cnx
.
prepareStatement
(
sql
);
psInsertarEstadoLote
=
cnx
.
prepareStatement
(
sql
);
psInsertarEstadoLote
.
setInt
(
1
,
data
.
getInt
(
"codigoLote"
));
psInsertarEstadoLote
.
setInt
(
1
,
data
.
getInt
(
"codigoLote"
));
if
(!
data
.
getBoolean
(
"estadoLote"
))
{
// No cambio los sueldos
if
(!
data
.
getBoolean
(
"estadoLote"
))
{
// No cambio los sueldos
...
@@ -223,7 +223,7 @@ public class DetalleLoteFichaDocenteMysqlDAO implements DetalleLoteFichaDocenteD
...
@@ -223,7 +223,7 @@ public class DetalleLoteFichaDocenteMysqlDAO implements DetalleLoteFichaDocenteD
+
"fecha_registro, "
+
"fecha_registro, "
+
"codigo_usuario, "
+
"codigo_usuario, "
+
"estado_registro) "
+
"estado_registro) "
+
"VALUES (?, ? ,
getdate
() ,? ,1)"
;
+
"VALUES (?, ? ,
now
() ,? ,1)"
;
psInsertarEstadoFicha
=
cnx
.
prepareStatement
(
sql
);
psInsertarEstadoFicha
=
cnx
.
prepareStatement
(
sql
);
for
(
int
i
=
0
;
i
<
longitudJsonArrayFichas
;
i
++)
{
for
(
int
i
=
0
;
i
<
longitudJsonArrayFichas
;
i
++)
{
...
@@ -435,7 +435,7 @@ public class DetalleLoteFichaDocenteMysqlDAO implements DetalleLoteFichaDocenteD
...
@@ -435,7 +435,7 @@ public class DetalleLoteFichaDocenteMysqlDAO implements DetalleLoteFichaDocenteD
+
"(codigo_ficha, codigo_area_cargo_tipo_pago, "
+
"(codigo_ficha, codigo_area_cargo_tipo_pago, "
+
"sueldo_escalafon, sueldo_mensual, sueldo_presidencia, observacion, "
+
"sueldo_escalafon, sueldo_mensual, sueldo_presidencia, observacion, "
+
"fecha_registro, estado_registro) "
+
"fecha_registro, estado_registro) "
+
"values (?,?,?,?,?,UPPER(RTRIM(LTRIM(?))),
getdate
(),1)"
;
+
"values (?,?,?,?,?,UPPER(RTRIM(LTRIM(?))),
now
(),1)"
;
ps
=
cnx
.
prepareStatement
(
sql
);
ps
=
cnx
.
prepareStatement
(
sql
);
for
(
int
i
=
0
;
i
<
longitudJsonArrayFichas
;
i
++)
{
for
(
int
i
=
0
;
i
<
longitudJsonArrayFichas
;
i
++)
{
...
@@ -475,7 +475,7 @@ public class DetalleLoteFichaDocenteMysqlDAO implements DetalleLoteFichaDocenteD
...
@@ -475,7 +475,7 @@ public class DetalleLoteFichaDocenteMysqlDAO implements DetalleLoteFichaDocenteD
+
"fecha_registro, "
+
"fecha_registro, "
+
"codigo_usuario, "
+
"codigo_usuario, "
+
"estado_registro) "
+
"estado_registro) "
+
"VALUES (?,?,
getdate
(),?,1)"
;
+
"VALUES (?,?,
now
(),?,1)"
;
ps
=
cnx
.
prepareStatement
(
sql
);
ps
=
cnx
.
prepareStatement
(
sql
);
ps
.
setInt
(
1
,
data
.
getInt
(
"codigoLote"
));
ps
.
setInt
(
1
,
data
.
getInt
(
"codigoLote"
));
...
@@ -510,7 +510,7 @@ public class DetalleLoteFichaDocenteMysqlDAO implements DetalleLoteFichaDocenteD
...
@@ -510,7 +510,7 @@ public class DetalleLoteFichaDocenteMysqlDAO implements DetalleLoteFichaDocenteD
+
"fecha_registro, "
+
"fecha_registro, "
+
"codigo_usuario, "
+
"codigo_usuario, "
+
"estado_registro) "
+
"estado_registro) "
+
"VALUES (?, ? ,
getdate
() ,? ,1)"
;
+
"VALUES (?, ? ,
now
() ,? ,1)"
;
ps
=
cnx
.
prepareStatement
(
sql
);
ps
=
cnx
.
prepareStatement
(
sql
);
for
(
int
i
=
0
;
i
<
longitudJsonArrayFichas
;
i
++)
{
for
(
int
i
=
0
;
i
<
longitudJsonArrayFichas
;
i
++)
{
...
...
src/java/trismegistoplanilla/mysqldao/EstadoFichaMysqlDAO.java
View file @
ad08ec65
...
@@ -134,7 +134,7 @@ public class EstadoFichaMysqlDAO implements EstadoFichaDAO {
...
@@ -134,7 +134,7 @@ public class EstadoFichaMysqlDAO implements EstadoFichaDAO {
+
") values ( "
+
") values ( "
+
" ? "
+
" ? "
+
" ,? "
+
" ,? "
+
" ,
getdate
() "
+
" ,
now
() "
+
" ,? "
+
" ,? "
+
" ,1 "
+
" ,1 "
+
")"
;
+
")"
;
...
...
src/java/trismegistoplanilla/mysqldao/FichaMysqlDAO.java
View file @
ad08ec65
...
@@ -929,7 +929,7 @@ public class FichaMysqlDAO implements FichaDAO {
...
@@ -929,7 +929,7 @@ public class FichaMysqlDAO implements FichaDAO {
+
" estado_registro "
+
" estado_registro "
+
") "
+
") "
+
"VALUES "
+
"VALUES "
+
" (?, ?, getdate
(), 0, 1)"
;
+
" (?, ?, now
(), 0, 1)"
;
psRegistrarEstadoFicha
=
conexion
.
prepareStatement
(
sql
);
psRegistrarEstadoFicha
=
conexion
.
prepareStatement
(
sql
);
psRegistrarEstadoFicha
.
setInt
(
1
,
tf
.
getCodigoFicha
());
psRegistrarEstadoFicha
.
setInt
(
1
,
tf
.
getCodigoFicha
());
...
@@ -1793,7 +1793,7 @@ public class FichaMysqlDAO implements FichaDAO {
...
@@ -1793,7 +1793,7 @@ public class FichaMysqlDAO implements FichaDAO {
+
") VALUES ( "
+
") VALUES ( "
+
" ? "
+
" ? "
+
" ,9 "
// "RECHAZADO"
+
" ,9 "
// "RECHAZADO"
+
" ,getdate
() "
+
" ,now
() "
+
" ,? "
+
" ,? "
+
" ,1 "
+
" ,1 "
+
")"
;
+
")"
;
...
@@ -1979,7 +1979,7 @@ public class FichaMysqlDAO implements FichaDAO {
...
@@ -1979,7 +1979,7 @@ public class FichaMysqlDAO implements FichaDAO {
+
") VALUES ( "
+
") VALUES ( "
+
" ? "
+
" ? "
+
" ,10 "
// "APROBADO/ACEPTADO"
+
" ,10 "
// "APROBADO/ACEPTADO"
+
" ,getdate
() "
+
" ,now
() "
+
" ,? "
+
" ,? "
+
" ,1 "
+
" ,1 "
+
")"
;
+
")"
;
...
@@ -2101,8 +2101,8 @@ public class FichaMysqlDAO implements FichaDAO {
...
@@ -2101,8 +2101,8 @@ public class FichaMysqlDAO implements FichaDAO {
+
") values ( "
+
") values ( "
+
" ? "
+
" ? "
+
" ,? "
+
" ,? "
+
" ,getdate
() "
+
" ,now
() "
+
" ,dateadd(dd, 1, getdate
()) "
+
" ,dateadd(dd, 1, now
()) "
+
" ,lower(newid()) "
+
" ,lower(newid()) "
+
" , ?"
+
" , ?"
+
" , ?"
+
" , ?"
...
@@ -2278,7 +2278,7 @@ public class FichaMysqlDAO implements FichaDAO {
...
@@ -2278,7 +2278,7 @@ public class FichaMysqlDAO implements FichaDAO {
+
") values ( "
+
") values ( "
+
" ? "
+
" ? "
+
" ,13 "
// Ficha anulada
+
" ,13 "
// Ficha anulada
+
" ,getdate
() "
+
" ,now
() "
+
" ,? "
+
" ,? "
+
" ,1 "
+
" ,1 "
+
")"
;
+
")"
;
...
@@ -2913,7 +2913,7 @@ public class FichaMysqlDAO implements FichaDAO {
...
@@ -2913,7 +2913,7 @@ public class FichaMysqlDAO implements FichaDAO {
+
") values ( "
+
") values ( "
+
" ? "
+
" ? "
+
" ,1 "
+
" ,1 "
+
" ,getdate
() "
+
" ,now
() "
+
" ,? "
+
" ,? "
+
" ,1 "
+
" ,1 "
+
")"
;
+
")"
;
...
@@ -2938,8 +2938,8 @@ public class FichaMysqlDAO implements FichaDAO {
...
@@ -2938,8 +2938,8 @@ public class FichaMysqlDAO implements FichaDAO {
+
") values ( "
+
") values ( "
+
" ? "
+
" ? "
+
" ,? "
+
" ,? "
+
" ,getdate
() "
+
" ,now
() "
+
" ,dateadd(dd, 1, getdate
()) "
+
" ,dateadd(dd, 1, now
()) "
+
" ,lower(newid()) "
+
" ,lower(newid()) "
+
" ,? "
+
" ,? "
+
" ,? "
+
" ,? "
...
...
src/java/trismegistoplanilla/mysqldao/LoteFichaMysqlDAO.java
View file @
ad08ec65
...
@@ -245,7 +245,7 @@ public class LoteFichaMysqlDAO implements LoteFichaDAO {
...
@@ -245,7 +245,7 @@ public class LoteFichaMysqlDAO implements LoteFichaDAO {
String
sqlInsertarEstadoLote
String
sqlInsertarEstadoLote
=
"insert into estado_ficha_lote "
=
"insert into estado_ficha_lote "
+
"(codigo_ficha_lote,codigo_tipo_estado_ficha_lote,fecha_registro,codigo_usuario,estado_registro) "
+
"(codigo_ficha_lote,codigo_tipo_estado_ficha_lote,fecha_registro,codigo_usuario,estado_registro) "
+
"VALUES (?,?,
getdate
(),?,1)"
;
+
"VALUES (?,?,
now
(),?,1)"
;
psInsertarEstadoLote
=
cnx
.
prepareStatement
(
sqlInsertarEstadoLote
);
psInsertarEstadoLote
=
cnx
.
prepareStatement
(
sqlInsertarEstadoLote
);
psInsertarEstadoLote
.
setInt
(
1
,
codigoLoteGenerado
);
psInsertarEstadoLote
.
setInt
(
1
,
codigoLoteGenerado
);
...
@@ -273,7 +273,7 @@ public class LoteFichaMysqlDAO implements LoteFichaDAO {
...
@@ -273,7 +273,7 @@ public class LoteFichaMysqlDAO implements LoteFichaDAO {
String
sqlRegistrarEstadoFicha
String
sqlRegistrarEstadoFicha
=
"insert into estado_ficha "
=
"insert into estado_ficha "
+
"(codigo_ficha,codigo_tipo_estado_ficha,fecha_registro,codigo_usuario,estado_registro) "
+
"(codigo_ficha,codigo_tipo_estado_ficha,fecha_registro,codigo_usuario,estado_registro) "
+
"VALUES (?,6 ,
getdate
() ,? ,1)"
;
+
"VALUES (?,6 ,
now
() ,? ,1)"
;
psRegistrarEstadoFicha
=
cnx
.
prepareStatement
(
sqlRegistrarEstadoFicha
);
psRegistrarEstadoFicha
=
cnx
.
prepareStatement
(
sqlRegistrarEstadoFicha
);
...
...
src/java/trismegistoplanilla/mysqldao/VacanteMysqlDAO.java
View file @
ad08ec65
...
@@ -203,7 +203,7 @@ public class VacanteMysqlDAO implements VacanteDAO {
...
@@ -203,7 +203,7 @@ public class VacanteMysqlDAO implements VacanteDAO {
sql
sql
=
"insert into vacante "
=
"insert into vacante "
+
"(codigo_sede_area, codigo_area_cargo, cantidad, fecha_creacion, estado_registro) "
+
"(codigo_sede_area, codigo_area_cargo, cantidad, fecha_creacion, estado_registro) "
+
"values (?,?,?,
getdate
(),1)"
;
+
"values (?,?,?,
now
(),1)"
;
ps
=
cnx
.
prepareStatement
(
sql
);
ps
=
cnx
.
prepareStatement
(
sql
);
int
c
=
1
;
int
c
=
1
;
ps
.
setInt
(
c
++,
datos
.
getInt
(
"codigoSedeArea"
));
ps
.
setInt
(
c
++,
datos
.
getInt
(
"codigoSedeArea"
));
...
@@ -530,7 +530,7 @@ public class VacanteMysqlDAO implements VacanteDAO {
...
@@ -530,7 +530,7 @@ public class VacanteMysqlDAO implements VacanteDAO {
PreparedStatement
ps
=
null
;
PreparedStatement
ps
=
null
;
ResultSet
rs
=
null
;
ResultSet
rs
=
null
;
String
sql
=
"insert into vacante (codigo_sede_area,codigo_area_cargo,cantidad,fecha_creacion,estado_registro) "
String
sql
=
"insert into vacante (codigo_sede_area,codigo_area_cargo,cantidad,fecha_creacion,estado_registro) "
+
"VALUES (?,?,?,
getdate
(),1)"
;
+
"VALUES (?,?,?,
now
(),1)"
;
int
resultado
;
int
resultado
;
try
{
try
{
cnx
=
MysqlDAOFactory
.
obtenerConexion
(
Variables
.
MYSQL_NUEVO_BD_NAME
);
cnx
=
MysqlDAOFactory
.
obtenerConexion
(
Variables
.
MYSQL_NUEVO_BD_NAME
);
...
...
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