// JSONObject jsonReporte = new JSONObject(reporte);
// JSONObject jsonReporte = new JSONObject(reporte);
// jsonArrayListarDatosFicha.put(jsonReporte);
// jsonArrayListarDatosFicha.put(jsonReporte);
jsonReporte=newJSONObject(reporte);
jsonReporte=newJSONObject(reporte);
// }
// }
JSONObjectjsonObjListadoPersona=newJSONObject();
JSONObjectjsonObjListadoPersona=newJSONObject();
...
@@ -1257,43 +1257,85 @@ public class FichaMysqlDAO implements FichaDAO {
...
@@ -1257,43 +1257,85 @@ public class FichaMysqlDAO implements FichaDAO {
condicionPorUsuario=" and ficha.codigo_ficha in (select ef.codigo_ficha from estado_ficha ef where ef.codigo_usuario = "+u.getCodigoUsuario()+" and ef.codigo_tipo_estado_ficha not in (13))";
condicionPorUsuario=" and ficha.codigo_ficha in (select ef.codigo_ficha from estado_ficha ef where ef.codigo_usuario = "+u.getCodigoUsuario()+" and ef.codigo_tipo_estado_ficha not in (13))";
+" '<span class=\"'+tipo_estado_ficha.estilo+'\">'+tipo_estado_ficha.nombre+'</span>' estilo "
+" estado_ficha.fecha_registro, "
+"from ficha "
+" '%d/%m/%Y' "
+"inner join persona on persona.codigo_persona = ficha.codigo_persona "
+") + ' ' + INSERT ( "
+"inner join tipo_documento on tipo_documento.codigo_tipo_documento = persona.codigo_tipo_documento "
+" REPLACE ( "
+"inner join estado_ficha on estado_ficha.codigo_ficha = ficha.codigo_ficha "
+" RIGHT ( "
+"inner join tipo_estado_ficha on tipo_estado_ficha.codigo_tipo_estado_ficha = estado_ficha.codigo_tipo_estado_ficha "
+" DATE_FORMAT( "
+"left join ficha_laboral on ficha_laboral.codigo_ficha = ficha.codigo_ficha "
+" estado_ficha.fecha_registro, "
+"left join area_cargo on area_cargo.codigo_area_cargo = ficha_laboral.codigo_area_cargo "
+" 0 "
+"left join cargo on cargo.codigo_cargo = area_cargo.codigo_cargo "
+" ), "
+"where estado_ficha.estado_registro = 1 and ficha.estado_registro in (0,1) "
+" 7 "
+"and ficha.codigo_ficha not in (select top "+start+" f.codigo_ficha from ficha f inner join estado_ficha ef on ef.codigo_ficha = f.codigo_ficha where ef.estado_registro = 1 and f.estado_registro in (0,1) order by ef.fecha_registro desc) "