Commit ad08ec65 by Luis Gangas

[Edit] mas querys fichaAdministrativa

parent 519b49a4
...@@ -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="3222000" /> <option name="totallyTimeSpent" value="3471000" />
</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.32997987" /> <window_info active="true" anchor="bottom" id="Version Control" order="8" visible="true" weight="0.32929516" />
<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" />
......
...@@ -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++) {
......
...@@ -134,7 +134,7 @@ public class EstadoFichaMysqlDAO implements EstadoFichaDAO { ...@@ -134,7 +134,7 @@ public class EstadoFichaMysqlDAO implements EstadoFichaDAO {
+ ") values ( " + ") values ( "
+ " ? " + " ? "
+ " ,? " + " ,? "
+ " ,getdate() " + " ,now() "
+ " ,? " + " ,? "
+ " ,1 " + " ,1 "
+ ")"; + ")";
......
...@@ -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()) "
+ " ,? " + " ,? "
+ " ,? " + " ,? "
......
...@@ -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);
......
...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment