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
ae7e8b69
Commit
ae7e8b69
authored
Nov 08, 2018
by
Juan José Rojas Rojas
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[EDIT] change sqlserverdao to mysqldao
parent
68af85cb
Hide whitespace changes
Inline
Side-by-side
Showing
28 changed files
with
65 additions
and
65 deletions
+65
-65
AreaCargoMysqlDAO.java
src/java/trismegistoplanilla/mysqldao/AreaCargoMysqlDAO.java
+1
-0
CorreoMysqlDAO.java
src/java/trismegistoplanilla/mysqldao/CorreoMysqlDAO.java
+1
-1
FichaMysqlDAO.java
src/java/trismegistoplanilla/mysqldao/FichaMysqlDAO.java
+1
-2
PersonaMysqlDAO.java
src/java/trismegistoplanilla/mysqldao/PersonaMysqlDAO.java
+1
-1
AreaCargoTipoPagoService.java
...gistoplanilla/servicesMysql/AreaCargoTipoPagoService.java
+1
-1
CargaFamiliarService.java
...ismegistoplanilla/servicesMysql/CargaFamiliarService.java
+1
-1
CarreraProfesionalService.java
...istoplanilla/servicesMysql/CarreraProfesionalService.java
+1
-1
DetalleLoteFichaDocenteService.java
...lanilla/servicesMysql/DetalleLoteFichaDocenteService.java
+1
-1
EscalafonService.java
...a/trismegistoplanilla/servicesMysql/EscalafonService.java
+1
-1
EstadoCivilService.java
...trismegistoplanilla/servicesMysql/EstadoCivilService.java
+1
-1
EstadoEstudioService.java
...ismegistoplanilla/servicesMysql/EstadoEstudioService.java
+1
-1
EstadoFichaService.java
...trismegistoplanilla/servicesMysql/EstadoFichaService.java
+1
-1
ExpedienteService.java
.../trismegistoplanilla/servicesMysql/ExpedienteService.java
+1
-1
ExperienciaLaboralService.java
...istoplanilla/servicesMysql/ExperienciaLaboralService.java
+1
-1
FichaLaboralService.java
...rismegistoplanilla/servicesMysql/FichaLaboralService.java
+1
-1
FondoPensionService.java
...rismegistoplanilla/servicesMysql/FondoPensionService.java
+1
-1
FormacionAcademicaService.java
...istoplanilla/servicesMysql/FormacionAcademicaService.java
+1
-1
LoteFichaService.java
...a/trismegistoplanilla/servicesMysql/LoteFichaService.java
+1
-1
NacionalidadService.java
...rismegistoplanilla/servicesMysql/NacionalidadService.java
+1
-1
NivelEstadoService.java
...trismegistoplanilla/servicesMysql/NivelEstadoService.java
+1
-1
NivelEstudioService.java
...rismegistoplanilla/servicesMysql/NivelEstudioService.java
+1
-1
ParentescoService.java
.../trismegistoplanilla/servicesMysql/ParentescoService.java
+1
-1
ReportePersonalService.java
...megistoplanilla/servicesMysql/ReportePersonalService.java
+1
-1
TipoEstadoFichaService.java
...megistoplanilla/servicesMysql/TipoEstadoFichaService.java
+1
-1
TipoExpedienteService.java
...smegistoplanilla/servicesMysql/TipoExpedienteService.java
+1
-1
TipoPagoService.java
...va/trismegistoplanilla/servicesMysql/TipoPagoService.java
+1
-1
TokenFichaService.java
.../trismegistoplanilla/servicesMysql/TokenFichaService.java
+38
-38
UbigeoService.java
...java/trismegistoplanilla/servicesMysql/UbigeoService.java
+1
-1
No files found.
src/java/trismegistoplanilla/mysqldao/AreaCargoMysqlDAO.java
View file @
ae7e8b69
...
@@ -68,6 +68,7 @@ public class AreaCargoMysqlDAO implements AreaCargoDAO {
...
@@ -68,6 +68,7 @@ public class AreaCargoMysqlDAO implements AreaCargoDAO {
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
}
}
JOObtenerAreaCargo
=
new
JSONObject
(
response
);
JOObtenerAreaCargo
=
new
JSONObject
(
response
);
return
JOObtenerAreaCargo
;
return
JOObtenerAreaCargo
;
...
...
src/java/trismegistoplanilla/mysqldao/CorreoMysqlDAO.java
View file @
ae7e8b69
...
@@ -17,7 +17,7 @@ public class CorreoMysqlDAO implements CorreoDAO {
...
@@ -17,7 +17,7 @@ public class CorreoMysqlDAO implements CorreoDAO {
@Override
@Override
public
boolean
enviarCorreo
(
Correo
c
)
{
public
boolean
enviarCorreo
(
Correo
c
)
{
System
.
out
.
println
(
"Correo
Sqlserver
DAO: enviarCorreo"
);
System
.
out
.
println
(
"Correo
Mysql
DAO: enviarCorreo"
);
boolean
envio
;
boolean
envio
;
try
{
try
{
...
...
src/java/trismegistoplanilla/mysqldao/FichaMysqlDAO.java
View file @
ae7e8b69
...
@@ -424,8 +424,7 @@ public class FichaMysqlDAO implements FichaDAO {
...
@@ -424,8 +424,7 @@ public class FichaMysqlDAO implements FichaDAO {
psDesactivarTokenFicha
=
null
;
psDesactivarTokenFicha
=
null
;
ResultSet
rsObtenerEstadoFicha
=
null
;
ResultSet
rsObtenerEstadoFicha
=
null
;
try
{
try
{
// conectarse a la Variables.BD_NAME de datos
conexion
=
MysqlDAOFactory
.
obtenerConexion
(
Variables
.
MYSQL_NUEVO_BD_NAME
);
conexion
=
MysqlDAOFactory
.
obtenerConexion
(
Variables
.
MYSQL_NUEVO_BD_NAME
);
conexion
.
setAutoCommit
(
false
);
conexion
.
setAutoCommit
(
false
);
...
...
src/java/trismegistoplanilla/mysqldao/PersonaMysqlDAO.java
View file @
ae7e8b69
...
@@ -179,7 +179,7 @@ public class PersonaMysqlDAO implements PersonaDAO {
...
@@ -179,7 +179,7 @@ public class PersonaMysqlDAO implements PersonaDAO {
psPersona
.
setString
(
5
,
p
.
getNumeroDocumento
());
psPersona
.
setString
(
5
,
p
.
getNumeroDocumento
());
psPersona
.
setString
(
6
,
p
.
getCorreo
());
psPersona
.
setString
(
6
,
p
.
getCorreo
());
psPersona
.
setInt
(
7
,
p
.
getIsDefaultMail
());
psPersona
.
setInt
(
7
,
p
.
getIsDefaultMail
());
System
.
out
.
println
(
psPersona
);
int
resultRegistrarPersona
=
psPersona
.
executeUpdate
();
int
resultRegistrarPersona
=
psPersona
.
executeUpdate
();
if
(
resultRegistrarPersona
>
0
)
{
if
(
resultRegistrarPersona
>
0
)
{
...
...
src/java/trismegistoplanilla/servicesMysql/AreaCargoTipoPagoService.java
View file @
ae7e8b69
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.DAOFactory;
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.DAOFactory;
public
class
AreaCargoTipoPagoService
{
public
class
AreaCargoTipoPagoService
{
DAOFactory
factory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
factory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
AreaCargoTipoPagoDAO
objAreaCargoTipoPagoDAO
=
factory
.
getAreaCargoTipoPagoDAO
();
AreaCargoTipoPagoDAO
objAreaCargoTipoPagoDAO
=
factory
.
getAreaCargoTipoPagoDAO
();
public
JSONObject
obtenerAreaCargoTipoPago
(
AreaCargoTipoPagoBean
actp
)
{
public
JSONObject
obtenerAreaCargoTipoPago
(
AreaCargoTipoPagoBean
actp
)
{
...
...
src/java/trismegistoplanilla/servicesMysql/CargaFamiliarService.java
View file @
ae7e8b69
...
@@ -8,7 +8,7 @@ import trismegistoplanilla.dao.DAOFactory;
...
@@ -8,7 +8,7 @@ import trismegistoplanilla.dao.DAOFactory;
public
class
CargaFamiliarService
{
public
class
CargaFamiliarService
{
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
CargaFamiliarDAO
service
=
daoFactory
.
getCargaFamiliarDAO
();
CargaFamiliarDAO
service
=
daoFactory
.
getCargaFamiliarDAO
();
public
JSONObject
validarExistenciaNumeroDocumento
(
CargaFamiliarBean
cargaFamiliar
)
{
public
JSONObject
validarExistenciaNumeroDocumento
(
CargaFamiliarBean
cargaFamiliar
)
{
...
...
src/java/trismegistoplanilla/servicesMysql/CarreraProfesionalService.java
View file @
ae7e8b69
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.DAOFactory;
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.DAOFactory;
public
class
CarreraProfesionalService
{
public
class
CarreraProfesionalService
{
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
CarreraProfesionalDAO
service
=
daoFactory
.
getCarreraProfesionalDAO
();
CarreraProfesionalDAO
service
=
daoFactory
.
getCarreraProfesionalDAO
();
public
JSONObject
listarCarreraProfesional
(
String
carrera
)
{
public
JSONObject
listarCarreraProfesional
(
String
carrera
)
{
...
...
src/java/trismegistoplanilla/servicesMysql/DetalleLoteFichaDocenteService.java
View file @
ae7e8b69
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.DetalleLoteFichaDocenteDAO;
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.DetalleLoteFichaDocenteDAO;
public
class
DetalleLoteFichaDocenteService
{
public
class
DetalleLoteFichaDocenteService
{
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
DetalleLoteFichaDocenteDAO
dao
=
daoFactory
.
getDetalleLoteFichaDocenteDAO
();
DetalleLoteFichaDocenteDAO
dao
=
daoFactory
.
getDetalleLoteFichaDocenteDAO
();
public
JSONObject
listarDetalleLoteFichaDocenteDT
(
LoteFichaBean
loteFicha
)
{
public
JSONObject
listarDetalleLoteFichaDocenteDT
(
LoteFichaBean
loteFicha
)
{
...
...
src/java/trismegistoplanilla/servicesMysql/EscalafonService.java
View file @
ae7e8b69
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.EscalafonDAO;
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.EscalafonDAO;
public
class
EscalafonService
{
public
class
EscalafonService
{
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
EscalafonDAO
dao
=
daoFactory
.
getEscalafonDAO
();
EscalafonDAO
dao
=
daoFactory
.
getEscalafonDAO
();
public
JSONObject
obtenerEscalafonAreaCargoTipoPago
(
AreaCargoTipoPagoBean
actp
)
{
public
JSONObject
obtenerEscalafonAreaCargoTipoPago
(
AreaCargoTipoPagoBean
actp
)
{
...
...
src/java/trismegistoplanilla/servicesMysql/EstadoCivilService.java
View file @
ae7e8b69
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.EstadoCivilDAO;
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.EstadoCivilDAO;
public
class
EstadoCivilService
{
public
class
EstadoCivilService
{
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
EstadoCivilDAO
service
=
daoFactory
.
getEstadoCivilDAO
();
EstadoCivilDAO
service
=
daoFactory
.
getEstadoCivilDAO
();
public
JSONObject
listarEstadoCivil
()
{
public
JSONObject
listarEstadoCivil
()
{
...
...
src/java/trismegistoplanilla/servicesMysql/EstadoEstudioService.java
View file @
ae7e8b69
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.EstadoEstudioDAO;
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.EstadoEstudioDAO;
public
class
EstadoEstudioService
{
public
class
EstadoEstudioService
{
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
EstadoEstudioDAO
service
=
daoFactory
.
getEstadoEstudioDAO
();
EstadoEstudioDAO
service
=
daoFactory
.
getEstadoEstudioDAO
();
public
JSONObject
validarExistenciaEstadoEstudio
(
EstadoEstudioBean
estadoEstudio
)
{
public
JSONObject
validarExistenciaEstadoEstudio
(
EstadoEstudioBean
estadoEstudio
)
{
...
...
src/java/trismegistoplanilla/servicesMysql/EstadoFichaService.java
View file @
ae7e8b69
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.EstadoFichaDAO;
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.EstadoFichaDAO;
public
class
EstadoFichaService
{
public
class
EstadoFichaService
{
DAOFactory
factory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
factory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
EstadoFichaDAO
objEstadoFichaDAO
=
factory
.
getEstadoFichaDAO
();
EstadoFichaDAO
objEstadoFichaDAO
=
factory
.
getEstadoFichaDAO
();
public
JSONObject
obtenerCodigoEstadoFicha
(
EstadoFichaBean
ef
)
{
public
JSONObject
obtenerCodigoEstadoFicha
(
EstadoFichaBean
ef
)
{
...
...
src/java/trismegistoplanilla/servicesMysql/ExpedienteService.java
View file @
ae7e8b69
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.ExpedienteDAO;
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.ExpedienteDAO;
public
class
ExpedienteService
{
public
class
ExpedienteService
{
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
ExpedienteDAO
dao
=
daoFactory
.
getExpedienteDAO
();
ExpedienteDAO
dao
=
daoFactory
.
getExpedienteDAO
();
public
JSONObject
listarTipoExpedientes
()
{
public
JSONObject
listarTipoExpedientes
()
{
...
...
src/java/trismegistoplanilla/servicesMysql/ExperienciaLaboralService.java
View file @
ae7e8b69
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.ExperienciaLaboralDAO;
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.ExperienciaLaboralDAO;
public
class
ExperienciaLaboralService
{
public
class
ExperienciaLaboralService
{
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
ExperienciaLaboralDAO
service
=
daoFactory
.
getExperienciaLaboralDAO
();
ExperienciaLaboralDAO
service
=
daoFactory
.
getExperienciaLaboralDAO
();
public
JSONObject
obtenerExperienciaLaboralPorPersona
(
PersonaBean
persona
)
{
public
JSONObject
obtenerExperienciaLaboralPorPersona
(
PersonaBean
persona
)
{
...
...
src/java/trismegistoplanilla/servicesMysql/FichaLaboralService.java
View file @
ae7e8b69
...
@@ -12,7 +12,7 @@ import trismegistoplanilla.dao.FichaLaboralDAO;
...
@@ -12,7 +12,7 @@ import trismegistoplanilla.dao.FichaLaboralDAO;
public
class
FichaLaboralService
{
public
class
FichaLaboralService
{
DAOFactory
factory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
factory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
FichaLaboralDAO
objFichaLaboralDAO
=
factory
.
getFichaLaboralDAO
();
FichaLaboralDAO
objFichaLaboralDAO
=
factory
.
getFichaLaboralDAO
();
public
JSONObject
registrarFichaLaboral
(
FichaLaboralBean
fl
,
PersonaBean
p
,
JSONArray
jaExpediente
,
SueldoAdministrativoBean
sa
,
SueldoDocenteBean
sd
,
UsuarioBean
u
)
{
public
JSONObject
registrarFichaLaboral
(
FichaLaboralBean
fl
,
PersonaBean
p
,
JSONArray
jaExpediente
,
SueldoAdministrativoBean
sa
,
SueldoDocenteBean
sd
,
UsuarioBean
u
)
{
...
...
src/java/trismegistoplanilla/servicesMysql/FondoPensionService.java
View file @
ae7e8b69
...
@@ -16,7 +16,7 @@ import trismegistoplanilla.dao.FondoPensionDAO;
...
@@ -16,7 +16,7 @@ import trismegistoplanilla.dao.FondoPensionDAO;
*/
*/
public
class
FondoPensionService
{
public
class
FondoPensionService
{
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
FondoPensionDAO
service
=
daoFactory
.
getFondoPensionDAO
();
FondoPensionDAO
service
=
daoFactory
.
getFondoPensionDAO
();
public
JSONObject
listarFondoPension
()
{
public
JSONObject
listarFondoPension
()
{
...
...
src/java/trismegistoplanilla/servicesMysql/FormacionAcademicaService.java
View file @
ae7e8b69
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.FormacionAcademicaDAO;
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.FormacionAcademicaDAO;
public
class
FormacionAcademicaService
{
public
class
FormacionAcademicaService
{
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
FormacionAcademicaDAO
service
=
daoFactory
.
getFormacionAcademicaDAO
();
FormacionAcademicaDAO
service
=
daoFactory
.
getFormacionAcademicaDAO
();
public
JSONObject
obtenerFormacionAcademicaPorPersona
(
PersonaBean
persona
)
{
public
JSONObject
obtenerFormacionAcademicaPorPersona
(
PersonaBean
persona
)
{
...
...
src/java/trismegistoplanilla/servicesMysql/LoteFichaService.java
View file @
ae7e8b69
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.LoteFichaDAO;
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.LoteFichaDAO;
public
class
LoteFichaService
{
public
class
LoteFichaService
{
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
LoteFichaDAO
dao
=
daoFactory
.
getLoteFichaDAO
();
LoteFichaDAO
dao
=
daoFactory
.
getLoteFichaDAO
();
public
JSONObject
listarFichasDT
(
String
draw
,
String
length
,
String
start
,
JSONObject
json
)
{
public
JSONObject
listarFichasDT
(
String
draw
,
String
length
,
String
start
,
JSONObject
json
)
{
...
...
src/java/trismegistoplanilla/servicesMysql/NacionalidadService.java
View file @
ae7e8b69
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.NacionalidadDAO;
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.NacionalidadDAO;
public
class
NacionalidadService
{
public
class
NacionalidadService
{
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
NacionalidadDAO
service
=
daoFactory
.
getNacionalidadDAO
();
NacionalidadDAO
service
=
daoFactory
.
getNacionalidadDAO
();
public
JSONObject
listarNacionalidad
()
{
public
JSONObject
listarNacionalidad
()
{
...
...
src/java/trismegistoplanilla/servicesMysql/NivelEstadoService.java
View file @
ae7e8b69
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.NivelEstadoDAO;
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.NivelEstadoDAO;
public
class
NivelEstadoService
{
public
class
NivelEstadoService
{
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
NivelEstadoDAO
service
=
daoFactory
.
getNivelEstadoDAO
();
NivelEstadoDAO
service
=
daoFactory
.
getNivelEstadoDAO
();
public
JSONObject
obtenerNivelEstado
(
NivelEstadoBean
nivelEstado
)
{
public
JSONObject
obtenerNivelEstado
(
NivelEstadoBean
nivelEstado
)
{
...
...
src/java/trismegistoplanilla/servicesMysql/NivelEstudioService.java
View file @
ae7e8b69
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.NivelEstudioDAO;
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.NivelEstudioDAO;
public
class
NivelEstudioService
{
public
class
NivelEstudioService
{
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
NivelEstudioDAO
service
=
daoFactory
.
getNivelEstudioDAO
();
NivelEstudioDAO
service
=
daoFactory
.
getNivelEstudioDAO
();
public
JSONObject
validarExistenciaNivelEstudio
(
NivelEstudioBean
nivelEstudio
)
{
public
JSONObject
validarExistenciaNivelEstudio
(
NivelEstudioBean
nivelEstudio
)
{
...
...
src/java/trismegistoplanilla/servicesMysql/ParentescoService.java
View file @
ae7e8b69
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.ParentescoDAO;
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.ParentescoDAO;
public
class
ParentescoService
{
public
class
ParentescoService
{
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
ParentescoDAO
service
=
daoFactory
.
getParentescoDAO
();
ParentescoDAO
service
=
daoFactory
.
getParentescoDAO
();
public
JSONObject
listarParentesco
()
{
public
JSONObject
listarParentesco
()
{
...
...
src/java/trismegistoplanilla/servicesMysql/ReportePersonalService.java
View file @
ae7e8b69
...
@@ -6,7 +6,7 @@ import trismegistoplanilla.dao.ReportePersonalDAO;
...
@@ -6,7 +6,7 @@ import trismegistoplanilla.dao.ReportePersonalDAO;
public
class
ReportePersonalService
{
public
class
ReportePersonalService
{
DAOFactory
factory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
factory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
ReportePersonalDAO
objReporte
=
factory
.
getReportePersonalDAO
();
ReportePersonalDAO
objReporte
=
factory
.
getReportePersonalDAO
();
public
JSONObject
validarExistenciaFilas
(
JSONObject
jsonResult
)
{
public
JSONObject
validarExistenciaFilas
(
JSONObject
jsonResult
)
{
...
...
src/java/trismegistoplanilla/servicesMysql/TipoEstadoFichaService.java
View file @
ae7e8b69
...
@@ -6,7 +6,7 @@ import trismegistoplanilla.dao.TipoEstadoFichaDAO;
...
@@ -6,7 +6,7 @@ import trismegistoplanilla.dao.TipoEstadoFichaDAO;
public
class
TipoEstadoFichaService
{
public
class
TipoEstadoFichaService
{
DAOFactory
factory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
factory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
TipoEstadoFichaDAO
objTipoEstadoFichaDAO
=
factory
.
getTipoEstadoFichaDAO
();
TipoEstadoFichaDAO
objTipoEstadoFichaDAO
=
factory
.
getTipoEstadoFichaDAO
();
public
JSONObject
listarTipoEstadoFicha
()
{
public
JSONObject
listarTipoEstadoFicha
()
{
...
...
src/java/trismegistoplanilla/servicesMysql/TipoExpedienteService.java
View file @
ae7e8b69
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.TipoExpedienteDAO;
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.TipoExpedienteDAO;
public
class
TipoExpedienteService
{
public
class
TipoExpedienteService
{
DAOFactory
factory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
factory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
TipoExpedienteDAO
obj
=
factory
.
getTipoExpedienteDAO
();
TipoExpedienteDAO
obj
=
factory
.
getTipoExpedienteDAO
();
public
JSONObject
listarTipoExpediente
()
{
public
JSONObject
listarTipoExpediente
()
{
...
...
src/java/trismegistoplanilla/servicesMysql/TipoPagoService.java
View file @
ae7e8b69
...
@@ -8,7 +8,7 @@ import trismegistoplanilla.dao.TipoPagoDAO;
...
@@ -8,7 +8,7 @@ import trismegistoplanilla.dao.TipoPagoDAO;
public
class
TipoPagoService
{
public
class
TipoPagoService
{
DAOFactory
factory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
factory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
TipoPagoDAO
objTipoPago
=
factory
.
getTipoPagoDAO
();
TipoPagoDAO
objTipoPago
=
factory
.
getTipoPagoDAO
();
public
JSONObject
listarTipoPago
(
AreaCargoBean
ac
)
{
public
JSONObject
listarTipoPago
(
AreaCargoBean
ac
)
{
...
...
src/java/trismegistoplanilla/servicesMysql/TokenFichaService.java
View file @
ae7e8b69
...
@@ -7,46 +7,46 @@ import trismegistoplanilla.dao.TokenFichaDAO;
...
@@ -7,46 +7,46 @@ import trismegistoplanilla.dao.TokenFichaDAO;
public
class
TokenFichaService
{
public
class
TokenFichaService
{
DAOFactory
factory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
DAOFactory
factory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
TokenFichaDAO
objTokenFichaDAO
=
factory
.
getTokenFichaDAO
();
TokenFichaDAO
objTokenFichaDAO
=
factory
.
getTokenFichaDAO
();
public
JSONObject
validarTokenURL
(
TokenFichaBean
tf
)
{
public
JSONObject
validarTokenURL
(
TokenFichaBean
tf
)
{
JSONObject
jsonObjValidarTokenURL
=
null
;
JSONObject
jsonObjValidarTokenURL
=
null
;
try
{
try
{
jsonObjValidarTokenURL
=
objTokenFichaDAO
.
validarTokenURL
(
tf
);
jsonObjValidarTokenURL
=
objTokenFichaDAO
.
validarTokenURL
(
tf
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
return
jsonObjValidarTokenURL
;
return
jsonObjValidarTokenURL
;
}
}
public
JSONObject
validarToken
(
TokenFichaBean
tf
)
{
public
JSONObject
validarToken
(
TokenFichaBean
tf
)
{
JSONObject
jsonObjValidarExistenciaToken
=
null
;
JSONObject
jsonObjValidarExistenciaToken
=
null
;
try
{
try
{
jsonObjValidarExistenciaToken
=
objTokenFichaDAO
.
validarToken
(
tf
);
jsonObjValidarExistenciaToken
=
objTokenFichaDAO
.
validarToken
(
tf
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
return
jsonObjValidarExistenciaToken
;
return
jsonObjValidarExistenciaToken
;
}
}
public
JSONObject
desactivarToken
(
TokenFichaBean
tf
)
{
public
JSONObject
desactivarToken
(
TokenFichaBean
tf
)
{
JSONObject
jsonObjDesactivarToken
=
null
;
JSONObject
jsonObjDesactivarToken
=
null
;
try
{
try
{
jsonObjDesactivarToken
=
objTokenFichaDAO
.
desactivarToken
(
tf
);
jsonObjDesactivarToken
=
objTokenFichaDAO
.
desactivarToken
(
tf
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
return
jsonObjDesactivarToken
;
return
jsonObjDesactivarToken
;
}
}
public
JSONObject
obtenerSedeAreaCargo
(
JSONObject
datos
)
{
public
JSONObject
obtenerSedeAreaCargo
(
JSONObject
datos
)
{
JSONObject
jsonReturn
=
null
;
JSONObject
jsonReturn
=
null
;
try
{
try
{
jsonReturn
=
objTokenFichaDAO
.
obtenerSedeAreaCargo
(
datos
);
jsonReturn
=
objTokenFichaDAO
.
obtenerSedeAreaCargo
(
datos
);
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
return
jsonReturn
;
return
jsonReturn
;
}
}
}
}
src/java/trismegistoplanilla/servicesMysql/UbigeoService.java
View file @
ae7e8b69
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.UbigeoDAO;
...
@@ -7,7 +7,7 @@ import trismegistoplanilla.dao.UbigeoDAO;
public
class
UbigeoService
{
public
class
UbigeoService
{
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
SQL_SERVER
);
DAOFactory
daoFactory
=
DAOFactory
.
getDAOFactory
(
DAOFactory
.
MYSQL
);
UbigeoDAO
service
=
daoFactory
.
getUbigeoDAO
();
UbigeoDAO
service
=
daoFactory
.
getUbigeoDAO
();
public
JSONObject
listarDepartamento
()
{
public
JSONObject
listarDepartamento
()
{
...
...
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