Commit ad08ec65 by Luis Gangas

[Edit] mas querys fichaAdministrativa

parent 519b49a4
......@@ -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="3222000" />
<option name="totallyTimeSpent" value="3471000" />
</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.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="Event Log" order="10" side_tool="true" />
<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
+ "(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++) {
......
......@@ -134,7 +134,7 @@ public class EstadoFichaMysqlDAO implements EstadoFichaDAO {
+ ") values ( "
+ " ? "
+ " ,? "
+ " ,getdate() "
+ " ,now() "
+ " ,? "
+ " ,1 "
+ ")";
......
This source diff could not be displayed because it is too large. You can view the blob instead.
......@@ -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);
......
......@@ -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);
......
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