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
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
17 additions
and
15 deletions
+17
-15
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
+0
-0
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 @@
<counts>
<entry
key=
"project.closed"
value=
"2"
/>
<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>
</usages-collector>
<usages-collector
id=
"statistics.file.extensions.edit"
>
...
...
@@ -116,14 +117,15 @@
<workItem
from=
"1541626388621"
duration=
"785000"
/>
<workItem
from=
"1541776350897"
duration=
"159000"
/>
<workItem
from=
"1541776578549"
duration=
"539000"
/>
<workItem
from=
"1542033991862"
duration=
"249000"
/>
</task>
<servers
/>
</component>
<component
name=
"TimeTrackingManager"
>
<option
name=
"totallyTimeSpent"
value=
"3
222
000"
/>
<option
name=
"totallyTimeSpent"
value=
"3
471
000"
/>
</component>
<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>
<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"
/>
...
...
@@ -136,7 +138,7 @@
<window_info
anchor=
"bottom"
id=
"Inspection"
order=
"5"
weight=
"0.4"
/>
<window_info
anchor=
"bottom"
id=
"TODO"
order=
"6"
/>
<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=
"Event Log"
order=
"10"
side_tool=
"true"
/>
<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
+
"(codigo_ficha, codigo_area_cargo_tipo_pago, "
+
"costo_mensual, costo_a, costo_b, costo_c, "
+
"observacion, fecha_registro, estado_registro) "
+
"values (?, ?, ?, ?, ?, ?, LTRIM(RTRIM(UPPER(?))),
getdate
(), 1)"
;
+
"values (?, ?, ?, ?, ?, ?, LTRIM(RTRIM(UPPER(?))),
now
(), 1)"
;
psInsertarSueldoDocente
=
cnx
.
prepareStatement
(
sql
);
for
(
int
i
=
0
;
i
<
longitudJsonArrayFichas
;
i
++)
{
...
...
@@ -189,7 +189,7 @@ public class DetalleLoteFichaDocenteMysqlDAO implements DetalleLoteFichaDocenteD
+
"fecha_registro, "
+
"codigo_usuario, "
+
"estado_registro) "
+
"VALUES (?,?,
getdate
(),?,1)"
;
+
"VALUES (?,?,
now
(),?,1)"
;
psInsertarEstadoLote
=
cnx
.
prepareStatement
(
sql
);
psInsertarEstadoLote
.
setInt
(
1
,
data
.
getInt
(
"codigoLote"
));
if
(!
data
.
getBoolean
(
"estadoLote"
))
{
// No cambio los sueldos
...
...
@@ -223,7 +223,7 @@ public class DetalleLoteFichaDocenteMysqlDAO implements DetalleLoteFichaDocenteD
+
"fecha_registro, "
+
"codigo_usuario, "
+
"estado_registro) "
+
"VALUES (?, ? ,
getdate
() ,? ,1)"
;
+
"VALUES (?, ? ,
now
() ,? ,1)"
;
psInsertarEstadoFicha
=
cnx
.
prepareStatement
(
sql
);
for
(
int
i
=
0
;
i
<
longitudJsonArrayFichas
;
i
++)
{
...
...
@@ -435,7 +435,7 @@ public class DetalleLoteFichaDocenteMysqlDAO implements DetalleLoteFichaDocenteD
+
"(codigo_ficha, codigo_area_cargo_tipo_pago, "
+
"sueldo_escalafon, sueldo_mensual, sueldo_presidencia, observacion, "
+
"fecha_registro, estado_registro) "
+
"values (?,?,?,?,?,UPPER(RTRIM(LTRIM(?))),
getdate
(),1)"
;
+
"values (?,?,?,?,?,UPPER(RTRIM(LTRIM(?))),
now
(),1)"
;
ps
=
cnx
.
prepareStatement
(
sql
);
for
(
int
i
=
0
;
i
<
longitudJsonArrayFichas
;
i
++)
{
...
...
@@ -475,7 +475,7 @@ public class DetalleLoteFichaDocenteMysqlDAO implements DetalleLoteFichaDocenteD
+
"fecha_registro, "
+
"codigo_usuario, "
+
"estado_registro) "
+
"VALUES (?,?,
getdate
(),?,1)"
;
+
"VALUES (?,?,
now
(),?,1)"
;
ps
=
cnx
.
prepareStatement
(
sql
);
ps
.
setInt
(
1
,
data
.
getInt
(
"codigoLote"
));
...
...
@@ -510,7 +510,7 @@ public class DetalleLoteFichaDocenteMysqlDAO implements DetalleLoteFichaDocenteD
+
"fecha_registro, "
+
"codigo_usuario, "
+
"estado_registro) "
+
"VALUES (?, ? ,
getdate
() ,? ,1)"
;
+
"VALUES (?, ? ,
now
() ,? ,1)"
;
ps
=
cnx
.
prepareStatement
(
sql
);
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 {
+
") values ( "
+
" ? "
+
" ,? "
+
" ,
getdate
() "
+
" ,
now
() "
+
" ,? "
+
" ,1 "
+
")"
;
...
...
src/java/trismegistoplanilla/mysqldao/FichaMysqlDAO.java
View file @
ad08ec65
This source diff could not be displayed because it is too large. You can
view the blob
instead.
src/java/trismegistoplanilla/mysqldao/LoteFichaMysqlDAO.java
View file @
ad08ec65
...
...
@@ -245,7 +245,7 @@ public class LoteFichaMysqlDAO implements LoteFichaDAO {
String
sqlInsertarEstadoLote
=
"insert into estado_ficha_lote "
+
"(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
.
setInt
(
1
,
codigoLoteGenerado
);
...
...
@@ -273,7 +273,7 @@ public class LoteFichaMysqlDAO implements LoteFichaDAO {
String
sqlRegistrarEstadoFicha
=
"insert into estado_ficha "
+
"(codigo_ficha,codigo_tipo_estado_ficha,fecha_registro,codigo_usuario,estado_registro) "
+
"VALUES (?,6 ,
getdate
() ,? ,1)"
;
+
"VALUES (?,6 ,
now
() ,? ,1)"
;
psRegistrarEstadoFicha
=
cnx
.
prepareStatement
(
sqlRegistrarEstadoFicha
);
...
...
src/java/trismegistoplanilla/mysqldao/VacanteMysqlDAO.java
View file @
ad08ec65
...
...
@@ -203,7 +203,7 @@ public class VacanteMysqlDAO implements VacanteDAO {
sql
=
"insert into vacante "
+
"(codigo_sede_area, codigo_area_cargo, cantidad, fecha_creacion, estado_registro) "
+
"values (?,?,?,
getdate
(),1)"
;
+
"values (?,?,?,
now
(),1)"
;
ps
=
cnx
.
prepareStatement
(
sql
);
int
c
=
1
;
ps
.
setInt
(
c
++,
datos
.
getInt
(
"codigoSedeArea"
));
...
...
@@ -530,7 +530,7 @@ public class VacanteMysqlDAO implements VacanteDAO {
PreparedStatement
ps
=
null
;
ResultSet
rs
=
null
;
String
sql
=
"insert into vacante (codigo_sede_area,codigo_area_cargo,cantidad,fecha_creacion,estado_registro) "
+
"VALUES (?,?,?,
getdate
(),1)"
;
+
"VALUES (?,?,?,
now
(),1)"
;
int
resultado
;
try
{
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