mirror of
https://github.com/KeymonSoft/jRDC-Multi.git
synced 2026-04-18 21:29:29 +00:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
524a9f268f |
@@ -1,110 +1,29 @@
|
|||||||
#Lines starting with '#' are comments.
|
#Lines starting with '#' are comments.
|
||||||
#Backslash character at the end of line means that the command continues in the next line.
|
#Backslash character at the end of line means that the command continues in the next line.
|
||||||
|
|
||||||
DriverClass=oracle.jdbc.driver.OracleDriver
|
#DATABASE CONFIGURATION
|
||||||
#JdbcUrl=jdbc:mysql://localhost/test?characterEncoding=utf8
|
DriverClass=com.mysql.jdbc.Driver
|
||||||
|
JdbcUrl=jdbc:mysql://localhost/$DB$?characterEncoding=utf8
|
||||||
|
User=root
|
||||||
|
Password=
|
||||||
|
#Java server port
|
||||||
|
ServerPort=17178
|
||||||
|
|
||||||
#SQL Server
|
#example of MS SQL Server configuration:
|
||||||
#DriverClass=net.sourceforge.jtds.jdbc.Driver
|
#DriverClass=net.sourceforge.jtds.jdbc.Driver
|
||||||
|
#JdbcUrl=jdbc:jtds:sqlserver://<server address>/<database>
|
||||||
|
|
||||||
# este para produccion GHAN JdbcUrl=jdbc:oracle:thin:@//192.168.15.53:1521/DBKMT
|
#example of postegres configuration:
|
||||||
#GOHAN ---> server
|
#JdbcUrl=jdbc:postgresql://localhost/test
|
||||||
#JdbcUrl=jdbc:oracle:thin:@//10.0.0.205:1521/DBKMT
|
#DriverClass=org.postgresql.Driver
|
||||||
#JdbcUrl=jdbc:oracle:thin:@//10.0.0.236:1521/DBKMT
|
|
||||||
JdbcUrl=jdbc:oracle:thin:@//192.168.101.13:1521/DBKMT?v$session.program=jRDC_Pruebas_Salma2
|
|
||||||
|
|
||||||
# Define el número de conexiones que se intentarán crear al iniciar el pool.
|
|
||||||
InitialPoolSize=1
|
|
||||||
# Fija el número mínimo de conexiones que el pool mantendrá abiertas.
|
|
||||||
MinPoolSize=1
|
|
||||||
# Define el número máximo de conexiones simultáneas.
|
|
||||||
MaxPoolSize=2
|
|
||||||
# Cuántas conexiones nuevas se añaden en lote si el pool se queda sin disponibles.
|
|
||||||
AcquireIncrement=1
|
|
||||||
# Tiempo máximo de inactividad de una conexión antes de cerrarse (segundos).
|
|
||||||
MaxConnectionAge=60
|
|
||||||
|
|
||||||
# Configuración de tolerancia de parámetros:
|
|
||||||
# 1 = Habilita la tolerancia a parámetros de más (se recortarán los excesivos).
|
|
||||||
# 0 = Deshabilita la tolerancia (el servidor será estricto y lanzará un error si hay parámetros de más).
|
|
||||||
# Por defecto, si no se especifica o el valor es diferente de 1, la tolerancia estará DESHABILITADA (modo estricto).
|
|
||||||
parameterTolerance=1
|
|
||||||
|
|
||||||
# Configuración de los logs de SQLite:
|
|
||||||
# 1 = Habilita el registro de logs de queries y errores en la base de datos SQLite (users.db).
|
|
||||||
# 0 = Deshabilita el registro de logs de queries y errores en SQLite para optimizar el rendimiento.
|
|
||||||
# Por defecto, si no se especifica o el valor es diferente de 1, los logs estarán DESHABILITADOS.
|
|
||||||
enableSQLiteLogs=1
|
|
||||||
|
|
||||||
# SVR-KEYMON-PRODUCCION--> Usuario
|
|
||||||
User=SALMA
|
|
||||||
Password=SALMAD2016M
|
|
||||||
|
|
||||||
#User=TORRADOCONAUTO
|
|
||||||
#Password=TORRADOCONAUTOD2016M
|
|
||||||
|
|
||||||
|
|
||||||
#--> Puertos
|
|
||||||
#SAC - DFR - MDA / GOHAN -->COBRANZA
|
|
||||||
#ServerPort=1783
|
|
||||||
#GUNA - SALMA - DURAKELO - DBC / SVR-KEYMON-PRODUCCION --> DISTRIBUIDORAS
|
|
||||||
ServerPort=9010
|
|
||||||
#CMG - TORRADO / TRUNKS -->COBRANZA/ GM
|
|
||||||
#ServerPort=1781
|
|
||||||
|
|
||||||
#If Debug is true then this file will be reloaded on every query.
|
|
||||||
#This is useful if you need to modify the queries.
|
|
||||||
Debug=true
|
|
||||||
|
|
||||||
#SQL COMMANDS
|
#SQL COMMANDS
|
||||||
|
sql.create_table=CREATE TABLE IF NOT EXISTS animals (\
|
||||||
##################
|
id INTEGER PRIMARY KEY AUTO_INCREMENT,\
|
||||||
#################
|
name CHAR(30) NOT NULL,\
|
||||||
################ S O P O R T E
|
image BLOB)
|
||||||
#################
|
sql.insert_animal=INSERT INTO animals VALUES (null, ?,?)
|
||||||
##################
|
sql.select_animal=SELECT name, image, id FROM animals WHERE id = ?;
|
||||||
|
sql.create_table=CREATE TABLE article (col1 numeric(10,4) ,col2 text);
|
||||||
sql.traeConexion=select 'DB2' as conexion from dual
|
sql.select=select * from article
|
||||||
sql.select_soporte=select * from GUNA.soporte
|
sql.insert=INSERT INTO article VALUES(?, ?)
|
||||||
sql.select_conexion=SELECT 'OK' AS VALOR FROM DUAL
|
|
||||||
sql.traeConexion4=SELECT 'DB2' as db, (?) AS p1, (?) AS p2, (?) AS p3 FROM DUAL
|
|
||||||
sql.select_version=select cat_ve_version from cat_version
|
|
||||||
sql.select_version_GV2=select cat_ve_version from GUNA.cat_version
|
|
||||||
sql.selectAlmacen=select * from cat_almacen where cat_al_id = ?
|
|
||||||
sql.sv=select * from cat_rutas where CAT_RU_RUTA = ?
|
|
||||||
sql.verify_device=select * from kelloggs.GUIDs where almacen = ? and ruta = ?
|
|
||||||
sql.registarMovil=insert into kelloggs.GUIDs (almacen, ruta, guid, estatus) values (?, ?, ?, 'ok')
|
|
||||||
sql.update_usuario_guna_nobajas=UPDATE GUNA.CAT_LOGINS SET CAT_LO_ESTATUS = 'Activo',CAT_LO_CONECTADO ='0' WHERE CAT_LO_ESTATUS != 'Baja' and CAT_LO_USUARIO = (?)
|
|
||||||
|
|
||||||
sql.proc_usuario=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN SP_ACTIVAR_USUARIO( '''||(?)||''',Cursor_SYS); end;'); END;
|
|
||||||
|
|
||||||
sql.select_almacenes_KELL=select CAT_AG_ID, CAT_AG_NOMBRE from KELLOGGS.cat_agencias order by CAT_AG_NOMBRE
|
|
||||||
sql.select_almacenes_GUNA=select CAT_AG_ID, CAT_AG_NOMBRE from GUNA.cat_agencias order by CAT_AG_NOMBRE
|
|
||||||
sql.select_almacenes_SALMA=select CAT_AG_ID, CAT_AG_NOMBRE from SALMA.cat_agencias order by CAT_AG_NOMBRE
|
|
||||||
sql.select_almacenes_DANVIT=select CAT_AG_ID, CAT_AG_NOMBRE from DANVIT.cat_agencias order by CAT_AG_NOMBRE
|
|
||||||
|
|
||||||
sql.proc_QUITAR_VENTA_KELL=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN KELLOGGS.SP_QUITAR_VENTA_X_TIPO( '''||(?)||''', '''||(?)||''', '''||(?)||''', '''||(?)||''', '''||(?)||''', Cursor_SYS); end;'); END;
|
|
||||||
sql.proc_QUITAR_VENTA_GUNA=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN GUNA.SP_QUITAR_VENTA( '''||(?)||''', '''||(?)||''', '''||(?)||''', Cursor_SYS, '''||(?)||'''); end;'); END;
|
|
||||||
sql.proc_QUITAR_VENTA_SALMA=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN SALMA.SP_QUITAR_VENTA( '''||(?)||''', '''||(?)||''', '''||(?)||''', Cursor_SYS); end;'); END;
|
|
||||||
sql.proc_QUITAR_VENTA_DANVIT=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN DANVIT.SP_QUITAR_VENTA( '''||(?)||''', '''||(?)||''', '''||(?)||''', Cursor_SYS); end;'); END;
|
|
||||||
sql.proc_QUITAR_PAGOPAGARE_KELLOGGS=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN KELLOGGS.SP_ELIMINAS_PAGOS_PAGARES_REP( '''||(?)||''', '''||(?)||''', '''||(?)||''', Cursor_SYS); end;'); END;
|
|
||||||
sql.proc_LIBERA_BANDERA_FACTURACION_KELLOGGS=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN KELLOGGS.SP_LIBERA_FACTURACION(Cursor_SYS); end;'); END;
|
|
||||||
sql.proc_LIBERA_BANDERA_CARGAFORANEA_KELLOGGS=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN KELLOGGS.SP_LLENAR_FILTROS ( '''||(?)||''', '''||(?)||''', Cursor_SYS); end;'); END;
|
|
||||||
|
|
||||||
|
|
||||||
sql.proc_QUITAR_TICKET_KELLOGGS=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN KELLOGGS.SP_QUITAR_TICKET( '''||(?)||''', '''||(?)||''', '''||(?)||''', Cursor_SYS); end;'); END;
|
|
||||||
|
|
||||||
sql.revisa_liquidada_Guna=SELECT COUNT(*) as liquidada FROM GUNA.HIST_VENTAS_DETALLE WHERE trunc(HVD_DTESYNC) = trunc(sysdate) and hvd_almacen = (?) and hvd_ruta = (?) AND (HVD_DESCUENTO != 0 or HVD_FECHA_AVION IS NOT NULL)
|
|
||||||
sql.revisa_liquidada_Kell=SELECT COUNT(*) as liquidada FROM KELLOGGS.HIST_VENTAS_DETALLE WHERE trunc(HVD_DTESYNC) = trunc(sysdate) and hvd_almacen = (?) and hvd_ruta = (?) and HVD_TIPOVENTA = (?) AND HVD_ESTATUS = 'Liquidado'
|
|
||||||
|
|
||||||
sql.select_todos_soporte=select cat_lo_usuario, cat_lo_estatus, cat_lo_nombre, cat_lo_contrasena, cat_lo_agencia, cat_agencias.cat_ag_nombre, cat_lo_ruta from cat_logins left join cat_agencias on cat_lo_agencia = cat_ag_id where (cat_lo_usuario LIKE ('%'||(?)||'%') or cat_lo_nombre LIKE ('%'||(?)||'%')) and cat_ag_nombre LIKE ('%'||(?)||'%') and cat_lo_ruta LIKE ('%'||(?)||'%') and rownum <= 20
|
|
||||||
sql.select_todosGUNA_soporte=select cat_lo_usuario, cat_lo_estatus, cat_lo_nombre, cat_lo_contrasena, cat_lo_agencia, cat_agencias.cat_ag_nombre, cat_ru_ruta from cat_logins left join cat_agencias on cat_lo_agencia = cat_ag_id left join cat_rutas on cat_lo_usuario = cat_ru_vendedor where (cat_lo_usuario LIKE ('%'||(?)||'%') or cat_lo_nombre LIKE ('%'||(?)||'%')) and cat_ag_nombre LIKE ('%'||(?)||'%') and cat_ru_ruta LIKE ('%'||(?)||'%') and rownum <= 20
|
|
||||||
sql.select_todosKELLOGGS_soporte=select cat_lo_usuario, cat_lo_estatus, cat_lo_nombre, cat_lo_contrasena, cat_lo_agencia, cat_agencias.cat_ag_nombre, cat_ru_ruta from KELLOGGS.cat_logins left join KELLOGGS.cat_agencias on cat_lo_agencia = cat_ag_id left join KELLOGGS.cat_rutas on cat_lo_usuario = cat_ru_vendedor where (cat_lo_usuario LIKE ('%'||(?)||'%') or cat_lo_nombre LIKE ('%'||(?)||'%')) and cat_ag_nombre LIKE ('%'||(?)||'%') and cat_ru_ruta LIKE ('%'||(?)||'%') and rownum <= 20
|
|
||||||
sql.select_todosSALMA_soporte=select cat_lo_usuario, cat_lo_estatus, cat_lo_nombre, cat_lo_contrasena, cat_lo_agencia, cat_agencias.cat_ag_nombre, cat_lo_ruta as cat_ru_ruta from SALMA.cat_logins left join SALMA.cat_agencias on cat_lo_agencia = cat_ag_id where (cat_lo_usuario LIKE ('%'||(?)||'%') or cat_lo_nombre LIKE ('%'||(?)||'%')) and cat_ag_nombre LIKE ('%'||(?)||'%') and cat_lo_ruta LIKE ('%'||(?)||'%') and rownum <= 20
|
|
||||||
sql.select_todosDANVIT_soporte=select cat_lo_usuario, cat_lo_estatus, cat_lo_nombre, cat_lo_contrasena, cat_lo_agencia, cat_agencias.cat_ag_nombre, cat_ru_ruta from DANVIT.cat_logins left join DANVIT.cat_agencias on cat_lo_agencia = cat_ag_id left join DANVIT.cat_rutas on cat_lo_usuario = cat_ru_vendedor where (cat_lo_usuario LIKE ('%'||(?)||'%') or cat_lo_nombre LIKE ('%'||(?)||'%')) and cat_ag_nombre LIKE ('%'||(?)||'%') and cat_ru_ruta LIKE ('%'||(?)||'%') and rownum <= 20
|
|
||||||
sql.select_ventaXrutaGuna_soporte=select hvd_ruta, sum(hvd_costo_tot) as monto, hvd_tipoventa from hist_ventas_detalle where trunc(hvd_fecha)=trunc(sysdate) and hvd_ruta=(?) and hvd_almacen=(?) AND hvd_codpromo <> 'BASICA' group by hvd_ruta, hvd_tipoventa
|
|
||||||
sql.select_ventaXrutaKelloggs_soporte=select hvd_ruta, sum(hvd_costo_tot) as monto, hvd_tipoventa from KELLOGGS.hist_ventas_detalle where trunc(hvd_fecha)=trunc(sysdate) and hvd_ruta=(?) and hvd_almacen=(?) and hvd_tipoventa=(?) AND hvd_codpromo <> 'BASICA' group by hvd_ruta, hvd_tipoventa
|
|
||||||
sql.select_ventaXrutaSalma_soporte=select hvd_ruta, sum(hvd_costo_tot) as monto, hvd_tipoventa from SALMA.hist_ventas_detalle where trunc(hvd_fecha)=trunc(sysdate) and hvd_ruta=(?) and hvd_almacen=(?) AND hvd_codpromo <> 'BASICA' group by hvd_ruta, hvd_tipoventa
|
|
||||||
sql.select_ventaXrutaDanvit_soporte=select hvd_ruta, sum(hvd_costo_tot) as monto, hvd_tipoventa from DANVIT.hist_ventas_detalle where trunc(hvd_fecha)=trunc(sysdate) and hvd_ruta=(?) and hvd_almacen=(?) AND hvd_codpromo <> 'BASICA' group by hvd_ruta, hvd_tipoventa
|
|
||||||
sql.select_prodsTicket_Kelloggs=SELECT HVD_CLIENTE CLIENTE, HVD_PROID PRODUCTO_ID, HVD_PRONOMBRE NOMBRE_PRODUCTO, HVD_CANT CANTIDAD, HVD_COSTO_TOT COSTO_TOTAL, HVD_RUTA RUTA, HVD_CODPROMO CODPROMO,NVL(HVD_TIPOVENTA,' ') TIPOVENTA, NVL(HVD_ESTATUS,' ') ESTATUS, hvd_cedis FROM KELLOGGS.HIST_VENTAS_DETALLE WHERE TRUNC(HVD_FECHA) = TRUNC(SYSDATE) AND HVD_ALMACEN = (?) AND HVD_CLIENTE = (?) and hvd_rechazo is null ORDER BY HVD_CODPROMO, HVD_PRONOMBRE
|
|
||||||
|
|
||||||
@@ -1,110 +1,29 @@
|
|||||||
#Lines starting with '#' are comments.
|
#Lines starting with '#' are comments.
|
||||||
#Backslash character at the end of line means that the command continues in the next line.
|
#Backslash character at the end of line means that the command continues in the next line.
|
||||||
|
|
||||||
DriverClass=oracle.jdbc.driver.OracleDriver
|
#DATABASE CONFIGURATION
|
||||||
#JdbcUrl=jdbc:mysql://localhost/test?characterEncoding=utf8
|
DriverClass=com.mysql.jdbc.Driver
|
||||||
|
JdbcUrl=jdbc:mysql://localhost/$DB$?characterEncoding=utf8
|
||||||
|
User=root
|
||||||
|
Password=
|
||||||
|
#Java server port
|
||||||
|
ServerPort=17178
|
||||||
|
|
||||||
#SQL Server
|
#example of MS SQL Server configuration:
|
||||||
#DriverClass=net.sourceforge.jtds.jdbc.Driver
|
#DriverClass=net.sourceforge.jtds.jdbc.Driver
|
||||||
|
#JdbcUrl=jdbc:jtds:sqlserver://<server address>/<database>
|
||||||
|
|
||||||
# este para produccion GHAN JdbcUrl=jdbc:oracle:thin:@//192.168.15.53:1521/DBKMT
|
#example of postegres configuration:
|
||||||
#GOHAN ---> server
|
#JdbcUrl=jdbc:postgresql://localhost/test
|
||||||
#JdbcUrl=jdbc:oracle:thin:@//10.0.0.205:1521/DBKMT
|
#DriverClass=org.postgresql.Driver
|
||||||
#JdbcUrl=jdbc:oracle:thin:@//10.0.0.236:1521/DBKMT
|
|
||||||
JdbcUrl=jdbc:oracle:thin:@//192.168.101.13:1521/DBKMT?v$session.program=jRDC_Pruebas_Salma3
|
|
||||||
|
|
||||||
# Define el número de conexiones que se intentarán crear al iniciar el pool.
|
|
||||||
InitialPoolSize=1
|
|
||||||
# Fija el número mínimo de conexiones que el pool mantendrá abiertas.
|
|
||||||
MinPoolSize=1
|
|
||||||
# Define el número máximo de conexiones simultáneas.
|
|
||||||
MaxPoolSize=2
|
|
||||||
# Cuántas conexiones nuevas se añaden en lote si el pool se queda sin disponibles.
|
|
||||||
AcquireIncrement=1
|
|
||||||
# Tiempo máximo de inactividad de una conexión antes de cerrarse (segundos).
|
|
||||||
MaxConnectionAge=60
|
|
||||||
|
|
||||||
# Configuración de tolerancia de parámetros:
|
|
||||||
# 1 = Habilita la tolerancia a parámetros de más (se recortarán los excesivos).
|
|
||||||
# 0 = Deshabilita la tolerancia (el servidor será estricto y lanzará un error si hay parámetros de más).
|
|
||||||
# Por defecto, si no se especifica o el valor es diferente de 1, la tolerancia estará DESHABILITADA (modo estricto).
|
|
||||||
parameterTolerance=1
|
|
||||||
|
|
||||||
# Configuración de los logs de SQLite:
|
|
||||||
# 1 = Habilita el registro de logs de queries y errores en la base de datos SQLite (users.db).
|
|
||||||
# 0 = Deshabilita el registro de logs de queries y errores en SQLite para optimizar el rendimiento.
|
|
||||||
# Por defecto, si no se especifica o el valor es diferente de 1, los logs estarán DESHABILITADOS.
|
|
||||||
enableSQLiteLogs=0
|
|
||||||
|
|
||||||
# SVR-KEYMON-PRODUCCION--> Usuario
|
|
||||||
User=SALMA
|
|
||||||
Password=SALMAD2016M
|
|
||||||
|
|
||||||
#User=TORRADOCONAUTO
|
|
||||||
#Password=TORRADOCONAUTOD2016M
|
|
||||||
|
|
||||||
|
|
||||||
#--> Puertos
|
|
||||||
#SAC - DFR - MDA / GOHAN -->COBRANZA
|
|
||||||
#ServerPort=1783
|
|
||||||
#GUNA - SALMA - DURAKELO - DBC / SVR-KEYMON-PRODUCCION --> DISTRIBUIDORAS
|
|
||||||
ServerPort=9010
|
|
||||||
#CMG - TORRADO / TRUNKS -->COBRANZA/ GM
|
|
||||||
#ServerPort=1781
|
|
||||||
|
|
||||||
#If Debug is true then this file will be reloaded on every query.
|
|
||||||
#This is useful if you need to modify the queries.
|
|
||||||
Debug=true
|
|
||||||
|
|
||||||
#SQL COMMANDS
|
#SQL COMMANDS
|
||||||
|
sql.create_table=CREATE TABLE IF NOT EXISTS animals (\
|
||||||
##################
|
id INTEGER PRIMARY KEY AUTO_INCREMENT,\
|
||||||
#################
|
name CHAR(30) NOT NULL,\
|
||||||
################ S O P O R T E
|
image BLOB)
|
||||||
#################
|
sql.insert_animal=INSERT INTO animals VALUES (null, ?,?)
|
||||||
##################
|
sql.select_animal=SELECT name, image, id FROM animals WHERE id = ?;
|
||||||
|
sql.create_table=CREATE TABLE article (col1 numeric(10,4) ,col2 text);
|
||||||
sql.traeConexion=select 'DB2' as conexion from dual
|
sql.select=select * from article
|
||||||
sql.select_soporte=select * from GUNA.soporte
|
sql.insert=INSERT INTO article VALUES(?, ?)
|
||||||
sql.select_conexion=SELECT 'OK' AS VALOR FROM DUAL
|
|
||||||
sql.traeConexion4=SELECT 'DB2' as db, (?) AS p1, (?) AS p2, (?) AS p3 FROM DUAL
|
|
||||||
sql.select_version=select cat_ve_version from cat_version
|
|
||||||
sql.select_version_GV2=select cat_ve_version from GUNA.cat_version
|
|
||||||
sql.selectAlmacen=select * from cat_almacen where cat_al_id = ?
|
|
||||||
sql.sv=select * from cat_rutas where CAT_RU_RUTA = ?
|
|
||||||
sql.verify_device=select * from kelloggs.GUIDs where almacen = ? and ruta = ?
|
|
||||||
sql.registarMovil=insert into kelloggs.GUIDs (almacen, ruta, guid, estatus) values (?, ?, ?, 'ok')
|
|
||||||
sql.update_usuario_guna_nobajas=UPDATE GUNA.CAT_LOGINS SET CAT_LO_ESTATUS = 'Activo',CAT_LO_CONECTADO ='0' WHERE CAT_LO_ESTATUS != 'Baja' and CAT_LO_USUARIO = (?)
|
|
||||||
|
|
||||||
sql.proc_usuario=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN SP_ACTIVAR_USUARIO( '''||(?)||''',Cursor_SYS); end;'); END;
|
|
||||||
|
|
||||||
sql.select_almacenes_KELL=select CAT_AG_ID, CAT_AG_NOMBRE from KELLOGGS.cat_agencias order by CAT_AG_NOMBRE
|
|
||||||
sql.select_almacenes_GUNA=select CAT_AG_ID, CAT_AG_NOMBRE from GUNA.cat_agencias order by CAT_AG_NOMBRE
|
|
||||||
sql.select_almacenes_SALMA=select CAT_AG_ID, CAT_AG_NOMBRE from SALMA.cat_agencias order by CAT_AG_NOMBRE
|
|
||||||
sql.select_almacenes_DANVIT=select CAT_AG_ID, CAT_AG_NOMBRE from DANVIT.cat_agencias order by CAT_AG_NOMBRE
|
|
||||||
|
|
||||||
sql.proc_QUITAR_VENTA_KELL=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN KELLOGGS.SP_QUITAR_VENTA_X_TIPO( '''||(?)||''', '''||(?)||''', '''||(?)||''', '''||(?)||''', '''||(?)||''', Cursor_SYS); end;'); END;
|
|
||||||
sql.proc_QUITAR_VENTA_GUNA=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN GUNA.SP_QUITAR_VENTA( '''||(?)||''', '''||(?)||''', '''||(?)||''', Cursor_SYS, '''||(?)||'''); end;'); END;
|
|
||||||
sql.proc_QUITAR_VENTA_SALMA=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN SALMA.SP_QUITAR_VENTA( '''||(?)||''', '''||(?)||''', '''||(?)||''', Cursor_SYS); end;'); END;
|
|
||||||
sql.proc_QUITAR_VENTA_DANVIT=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN DANVIT.SP_QUITAR_VENTA( '''||(?)||''', '''||(?)||''', '''||(?)||''', Cursor_SYS); end;'); END;
|
|
||||||
sql.proc_QUITAR_PAGOPAGARE_KELLOGGS=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN KELLOGGS.SP_ELIMINAS_PAGOS_PAGARES_REP( '''||(?)||''', '''||(?)||''', '''||(?)||''', Cursor_SYS); end;'); END;
|
|
||||||
sql.proc_LIBERA_BANDERA_FACTURACION_KELLOGGS=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN KELLOGGS.SP_LIBERA_FACTURACION(Cursor_SYS); end;'); END;
|
|
||||||
sql.proc_LIBERA_BANDERA_CARGAFORANEA_KELLOGGS=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN KELLOGGS.SP_LLENAR_FILTROS ( '''||(?)||''', '''||(?)||''', Cursor_SYS); end;'); END;
|
|
||||||
|
|
||||||
|
|
||||||
sql.proc_QUITAR_TICKET_KELLOGGS=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN KELLOGGS.SP_QUITAR_TICKET( '''||(?)||''', '''||(?)||''', '''||(?)||''', Cursor_SYS); end;'); END;
|
|
||||||
|
|
||||||
sql.revisa_liquidada_Guna=SELECT COUNT(*) as liquidada FROM GUNA.HIST_VENTAS_DETALLE WHERE trunc(HVD_DTESYNC) = trunc(sysdate) and hvd_almacen = (?) and hvd_ruta = (?) AND (HVD_DESCUENTO != 0 or HVD_FECHA_AVION IS NOT NULL)
|
|
||||||
sql.revisa_liquidada_Kell=SELECT COUNT(*) as liquidada FROM KELLOGGS.HIST_VENTAS_DETALLE WHERE trunc(HVD_DTESYNC) = trunc(sysdate) and hvd_almacen = (?) and hvd_ruta = (?) and HVD_TIPOVENTA = (?) AND HVD_ESTATUS = 'Liquidado'
|
|
||||||
|
|
||||||
sql.select_todos_soporte=select cat_lo_usuario, cat_lo_estatus, cat_lo_nombre, cat_lo_contrasena, cat_lo_agencia, cat_agencias.cat_ag_nombre, cat_lo_ruta from cat_logins left join cat_agencias on cat_lo_agencia = cat_ag_id where (cat_lo_usuario LIKE ('%'||(?)||'%') or cat_lo_nombre LIKE ('%'||(?)||'%')) and cat_ag_nombre LIKE ('%'||(?)||'%') and cat_lo_ruta LIKE ('%'||(?)||'%') and rownum <= 20
|
|
||||||
sql.select_todosGUNA_soporte=select cat_lo_usuario, cat_lo_estatus, cat_lo_nombre, cat_lo_contrasena, cat_lo_agencia, cat_agencias.cat_ag_nombre, cat_ru_ruta from cat_logins left join cat_agencias on cat_lo_agencia = cat_ag_id left join cat_rutas on cat_lo_usuario = cat_ru_vendedor where (cat_lo_usuario LIKE ('%'||(?)||'%') or cat_lo_nombre LIKE ('%'||(?)||'%')) and cat_ag_nombre LIKE ('%'||(?)||'%') and cat_ru_ruta LIKE ('%'||(?)||'%') and rownum <= 20
|
|
||||||
sql.select_todosKELLOGGS_soporte=select cat_lo_usuario, cat_lo_estatus, cat_lo_nombre, cat_lo_contrasena, cat_lo_agencia, cat_agencias.cat_ag_nombre, cat_ru_ruta from KELLOGGS.cat_logins left join KELLOGGS.cat_agencias on cat_lo_agencia = cat_ag_id left join KELLOGGS.cat_rutas on cat_lo_usuario = cat_ru_vendedor where (cat_lo_usuario LIKE ('%'||(?)||'%') or cat_lo_nombre LIKE ('%'||(?)||'%')) and cat_ag_nombre LIKE ('%'||(?)||'%') and cat_ru_ruta LIKE ('%'||(?)||'%') and rownum <= 20
|
|
||||||
sql.select_todosSALMA_soporte=select cat_lo_usuario, cat_lo_estatus, cat_lo_nombre, cat_lo_contrasena, cat_lo_agencia, cat_agencias.cat_ag_nombre, cat_lo_ruta as cat_ru_ruta from SALMA.cat_logins left join SALMA.cat_agencias on cat_lo_agencia = cat_ag_id where (cat_lo_usuario LIKE ('%'||(?)||'%') or cat_lo_nombre LIKE ('%'||(?)||'%')) and cat_ag_nombre LIKE ('%'||(?)||'%') and cat_lo_ruta LIKE ('%'||(?)||'%') and rownum <= 20
|
|
||||||
sql.select_todosDANVIT_soporte=select cat_lo_usuario, cat_lo_estatus, cat_lo_nombre, cat_lo_contrasena, cat_lo_agencia, cat_agencias.cat_ag_nombre, cat_ru_ruta from DANVIT.cat_logins left join DANVIT.cat_agencias on cat_lo_agencia = cat_ag_id left join DANVIT.cat_rutas on cat_lo_usuario = cat_ru_vendedor where (cat_lo_usuario LIKE ('%'||(?)||'%') or cat_lo_nombre LIKE ('%'||(?)||'%')) and cat_ag_nombre LIKE ('%'||(?)||'%') and cat_ru_ruta LIKE ('%'||(?)||'%') and rownum <= 20
|
|
||||||
sql.select_ventaXrutaGuna_soporte=select hvd_ruta, sum(hvd_costo_tot) as monto, hvd_tipoventa from hist_ventas_detalle where trunc(hvd_fecha)=trunc(sysdate) and hvd_ruta=(?) and hvd_almacen=(?) AND hvd_codpromo <> 'BASICA' group by hvd_ruta, hvd_tipoventa
|
|
||||||
sql.select_ventaXrutaKelloggs_soporte=select hvd_ruta, sum(hvd_costo_tot) as monto, hvd_tipoventa from KELLOGGS.hist_ventas_detalle where trunc(hvd_fecha)=trunc(sysdate) and hvd_ruta=(?) and hvd_almacen=(?) and hvd_tipoventa=(?) AND hvd_codpromo <> 'BASICA' group by hvd_ruta, hvd_tipoventa
|
|
||||||
sql.select_ventaXrutaSalma_soporte=select hvd_ruta, sum(hvd_costo_tot) as monto, hvd_tipoventa from SALMA.hist_ventas_detalle where trunc(hvd_fecha)=trunc(sysdate) and hvd_ruta=(?) and hvd_almacen=(?) AND hvd_codpromo <> 'BASICA' group by hvd_ruta, hvd_tipoventa
|
|
||||||
sql.select_ventaXrutaDanvit_soporte=select hvd_ruta, sum(hvd_costo_tot) as monto, hvd_tipoventa from DANVIT.hist_ventas_detalle where trunc(hvd_fecha)=trunc(sysdate) and hvd_ruta=(?) and hvd_almacen=(?) AND hvd_codpromo <> 'BASICA' group by hvd_ruta, hvd_tipoventa
|
|
||||||
sql.select_prodsTicket_Kelloggs=SELECT HVD_CLIENTE CLIENTE, HVD_PROID PRODUCTO_ID, HVD_PRONOMBRE NOMBRE_PRODUCTO, HVD_CANT CANTIDAD, HVD_COSTO_TOT COSTO_TOTAL, HVD_RUTA RUTA, HVD_CODPROMO CODPROMO,NVL(HVD_TIPOVENTA,' ') TIPOVENTA, NVL(HVD_ESTATUS,' ') ESTATUS, hvd_cedis FROM KELLOGGS.HIST_VENTAS_DETALLE WHERE TRUNC(HVD_FECHA) = TRUNC(SYSDATE) AND HVD_ALMACEN = (?) AND HVD_CLIENTE = (?) and hvd_rechazo is null ORDER BY HVD_CODPROMO, HVD_PRONOMBRE
|
|
||||||
|
|
||||||
@@ -1,110 +1,29 @@
|
|||||||
#Lines starting with '#' are comments.
|
#Lines starting with '#' are comments.
|
||||||
#Backslash character at the end of line means that the command continues in the next line.
|
#Backslash character at the end of line means that the command continues in the next line.
|
||||||
|
|
||||||
DriverClass=oracle.jdbc.driver.OracleDriver
|
#DATABASE CONFIGURATION
|
||||||
#JdbcUrl=jdbc:mysql://localhost/test?characterEncoding=utf8
|
DriverClass=com.mysql.jdbc.Driver
|
||||||
|
JdbcUrl=jdbc:mysql://localhost/$DB$?characterEncoding=utf8
|
||||||
|
User=root
|
||||||
|
Password=
|
||||||
|
#Java server port
|
||||||
|
ServerPort=17178
|
||||||
|
|
||||||
#SQL Server
|
#example of MS SQL Server configuration:
|
||||||
#DriverClass=net.sourceforge.jtds.jdbc.Driver
|
#DriverClass=net.sourceforge.jtds.jdbc.Driver
|
||||||
|
#JdbcUrl=jdbc:jtds:sqlserver://<server address>/<database>
|
||||||
|
|
||||||
# este para produccion GHAN JdbcUrl=jdbc:oracle:thin:@//192.168.15.53:1521/DBKMT
|
#example of postegres configuration:
|
||||||
#GOHAN ---> server
|
#JdbcUrl=jdbc:postgresql://localhost/test
|
||||||
#JdbcUrl=jdbc:oracle:thin:@//10.0.0.205:1521/DBKMT
|
#DriverClass=org.postgresql.Driver
|
||||||
#JdbcUrl=jdbc:oracle:thin:@//10.0.0.236:1521/DBKMT
|
|
||||||
JdbcUrl=jdbc:oracle:thin:@//192.168.101.13:1521/DBKMT?v$session.program=jRDC_Pruebas_Salma4
|
|
||||||
|
|
||||||
# Define el número de conexiones que se intentarán crear al iniciar el pool.
|
|
||||||
InitialPoolSize=1
|
|
||||||
# Fija el número mínimo de conexiones que el pool mantendrá abiertas.
|
|
||||||
MinPoolSize=1
|
|
||||||
# Define el número máximo de conexiones simultáneas.
|
|
||||||
MaxPoolSize=2
|
|
||||||
# Cuántas conexiones nuevas se añaden en lote si el pool se queda sin disponibles.
|
|
||||||
AcquireIncrement=1
|
|
||||||
# Tiempo máximo de inactividad de una conexión antes de cerrarse (segundos).
|
|
||||||
MaxConnectionAge=60
|
|
||||||
|
|
||||||
# Configuración de tolerancia de parámetros:
|
|
||||||
# 1 = Habilita la tolerancia a parámetros de más (se recortarán los excesivos).
|
|
||||||
# 0 = Deshabilita la tolerancia (el servidor será estricto y lanzará un error si hay parámetros de más).
|
|
||||||
# Por defecto, si no se especifica o el valor es diferente de 1, la tolerancia estará DESHABILITADA (modo estricto).
|
|
||||||
parameterTolerance=1
|
|
||||||
|
|
||||||
# Configuración de los logs de SQLite:
|
|
||||||
# 1 = Habilita el registro de logs de queries y errores en la base de datos SQLite (users.db).
|
|
||||||
# 0 = Deshabilita el registro de logs de queries y errores en SQLite para optimizar el rendimiento.
|
|
||||||
# Por defecto, si no se especifica o el valor es diferente de 1, los logs estarán DESHABILITADOS.
|
|
||||||
enableSQLiteLogs=0
|
|
||||||
|
|
||||||
# SVR-KEYMON-PRODUCCION--> Usuario
|
|
||||||
User=SALMA
|
|
||||||
Password=SALMAD2016M
|
|
||||||
|
|
||||||
#User=TORRADOCONAUTO
|
|
||||||
#Password=TORRADOCONAUTOD2016M
|
|
||||||
|
|
||||||
|
|
||||||
#--> Puertos
|
|
||||||
#SAC - DFR - MDA / GOHAN -->COBRANZA
|
|
||||||
#ServerPort=1783
|
|
||||||
#GUNA - SALMA - DURAKELO - DBC / SVR-KEYMON-PRODUCCION --> DISTRIBUIDORAS
|
|
||||||
ServerPort=9010
|
|
||||||
#CMG - TORRADO / TRUNKS -->COBRANZA/ GM
|
|
||||||
#ServerPort=1781
|
|
||||||
|
|
||||||
#If Debug is true then this file will be reloaded on every query.
|
|
||||||
#This is useful if you need to modify the queries.
|
|
||||||
Debug=true
|
|
||||||
|
|
||||||
#SQL COMMANDS
|
#SQL COMMANDS
|
||||||
|
sql.create_table=CREATE TABLE IF NOT EXISTS animals (\
|
||||||
##################
|
id INTEGER PRIMARY KEY AUTO_INCREMENT,\
|
||||||
#################
|
name CHAR(30) NOT NULL,\
|
||||||
################ S O P O R T E
|
image BLOB)
|
||||||
#################
|
sql.insert_animal=INSERT INTO animals VALUES (null, ?,?)
|
||||||
##################
|
sql.select_animal=SELECT name, image, id FROM animals WHERE id = ?;
|
||||||
|
sql.create_table=CREATE TABLE article (col1 numeric(10,4) ,col2 text);
|
||||||
sql.traeConexion=select 'DB2' as conexion from dual
|
sql.select=select * from article
|
||||||
sql.select_soporte=select * from GUNA.soporte
|
sql.insert=INSERT INTO article VALUES(?, ?)
|
||||||
sql.select_conexion=SELECT 'OK' AS VALOR FROM DUAL
|
|
||||||
sql.traeConexion4=SELECT 'DB2' as db, (?) AS p1, (?) AS p2, (?) AS p3 FROM DUAL
|
|
||||||
sql.select_version=select cat_ve_version from cat_version
|
|
||||||
sql.select_version_GV2=select cat_ve_version from GUNA.cat_version
|
|
||||||
sql.selectAlmacen=select * from cat_almacen where cat_al_id = ?
|
|
||||||
sql.sv=select * from cat_rutas where CAT_RU_RUTA = ?
|
|
||||||
sql.verify_device=select * from kelloggs.GUIDs where almacen = ? and ruta = ?
|
|
||||||
sql.registarMovil=insert into kelloggs.GUIDs (almacen, ruta, guid, estatus) values (?, ?, ?, 'ok')
|
|
||||||
sql.update_usuario_guna_nobajas=UPDATE GUNA.CAT_LOGINS SET CAT_LO_ESTATUS = 'Activo',CAT_LO_CONECTADO ='0' WHERE CAT_LO_ESTATUS != 'Baja' and CAT_LO_USUARIO = (?)
|
|
||||||
|
|
||||||
sql.proc_usuario=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN SP_ACTIVAR_USUARIO( '''||(?)||''',Cursor_SYS); end;'); END;
|
|
||||||
|
|
||||||
sql.select_almacenes_KELL=select CAT_AG_ID, CAT_AG_NOMBRE from KELLOGGS.cat_agencias order by CAT_AG_NOMBRE
|
|
||||||
sql.select_almacenes_GUNA=select CAT_AG_ID, CAT_AG_NOMBRE from GUNA.cat_agencias order by CAT_AG_NOMBRE
|
|
||||||
sql.select_almacenes_SALMA=select CAT_AG_ID, CAT_AG_NOMBRE from SALMA.cat_agencias order by CAT_AG_NOMBRE
|
|
||||||
sql.select_almacenes_DANVIT=select CAT_AG_ID, CAT_AG_NOMBRE from DANVIT.cat_agencias order by CAT_AG_NOMBRE
|
|
||||||
|
|
||||||
sql.proc_QUITAR_VENTA_KELL=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN KELLOGGS.SP_QUITAR_VENTA_X_TIPO( '''||(?)||''', '''||(?)||''', '''||(?)||''', '''||(?)||''', '''||(?)||''', Cursor_SYS); end;'); END;
|
|
||||||
sql.proc_QUITAR_VENTA_GUNA=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN GUNA.SP_QUITAR_VENTA( '''||(?)||''', '''||(?)||''', '''||(?)||''', Cursor_SYS, '''||(?)||'''); end;'); END;
|
|
||||||
sql.proc_QUITAR_VENTA_SALMA=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN SALMA.SP_QUITAR_VENTA( '''||(?)||''', '''||(?)||''', '''||(?)||''', Cursor_SYS); end;'); END;
|
|
||||||
sql.proc_QUITAR_VENTA_DANVIT=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN DANVIT.SP_QUITAR_VENTA( '''||(?)||''', '''||(?)||''', '''||(?)||''', Cursor_SYS); end;'); END;
|
|
||||||
sql.proc_QUITAR_PAGOPAGARE_KELLOGGS=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN KELLOGGS.SP_ELIMINAS_PAGOS_PAGARES_REP( '''||(?)||''', '''||(?)||''', '''||(?)||''', Cursor_SYS); end;'); END;
|
|
||||||
sql.proc_LIBERA_BANDERA_FACTURACION_KELLOGGS=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN KELLOGGS.SP_LIBERA_FACTURACION(Cursor_SYS); end;'); END;
|
|
||||||
sql.proc_LIBERA_BANDERA_CARGAFORANEA_KELLOGGS=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN KELLOGGS.SP_LLENAR_FILTROS ( '''||(?)||''', '''||(?)||''', Cursor_SYS); end;'); END;
|
|
||||||
|
|
||||||
|
|
||||||
sql.proc_QUITAR_TICKET_KELLOGGS=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN KELLOGGS.SP_QUITAR_TICKET( '''||(?)||''', '''||(?)||''', '''||(?)||''', Cursor_SYS); end;'); END;
|
|
||||||
|
|
||||||
sql.revisa_liquidada_Guna=SELECT COUNT(*) as liquidada FROM GUNA.HIST_VENTAS_DETALLE WHERE trunc(HVD_DTESYNC) = trunc(sysdate) and hvd_almacen = (?) and hvd_ruta = (?) AND (HVD_DESCUENTO != 0 or HVD_FECHA_AVION IS NOT NULL)
|
|
||||||
sql.revisa_liquidada_Kell=SELECT COUNT(*) as liquidada FROM KELLOGGS.HIST_VENTAS_DETALLE WHERE trunc(HVD_DTESYNC) = trunc(sysdate) and hvd_almacen = (?) and hvd_ruta = (?) and HVD_TIPOVENTA = (?) AND HVD_ESTATUS = 'Liquidado'
|
|
||||||
|
|
||||||
sql.select_todos_soporte=select cat_lo_usuario, cat_lo_estatus, cat_lo_nombre, cat_lo_contrasena, cat_lo_agencia, cat_agencias.cat_ag_nombre, cat_lo_ruta from cat_logins left join cat_agencias on cat_lo_agencia = cat_ag_id where (cat_lo_usuario LIKE ('%'||(?)||'%') or cat_lo_nombre LIKE ('%'||(?)||'%')) and cat_ag_nombre LIKE ('%'||(?)||'%') and cat_lo_ruta LIKE ('%'||(?)||'%') and rownum <= 20
|
|
||||||
sql.select_todosGUNA_soporte=select cat_lo_usuario, cat_lo_estatus, cat_lo_nombre, cat_lo_contrasena, cat_lo_agencia, cat_agencias.cat_ag_nombre, cat_ru_ruta from cat_logins left join cat_agencias on cat_lo_agencia = cat_ag_id left join cat_rutas on cat_lo_usuario = cat_ru_vendedor where (cat_lo_usuario LIKE ('%'||(?)||'%') or cat_lo_nombre LIKE ('%'||(?)||'%')) and cat_ag_nombre LIKE ('%'||(?)||'%') and cat_ru_ruta LIKE ('%'||(?)||'%') and rownum <= 20
|
|
||||||
sql.select_todosKELLOGGS_soporte=select cat_lo_usuario, cat_lo_estatus, cat_lo_nombre, cat_lo_contrasena, cat_lo_agencia, cat_agencias.cat_ag_nombre, cat_ru_ruta from KELLOGGS.cat_logins left join KELLOGGS.cat_agencias on cat_lo_agencia = cat_ag_id left join KELLOGGS.cat_rutas on cat_lo_usuario = cat_ru_vendedor where (cat_lo_usuario LIKE ('%'||(?)||'%') or cat_lo_nombre LIKE ('%'||(?)||'%')) and cat_ag_nombre LIKE ('%'||(?)||'%') and cat_ru_ruta LIKE ('%'||(?)||'%') and rownum <= 20
|
|
||||||
sql.select_todosSALMA_soporte=select cat_lo_usuario, cat_lo_estatus, cat_lo_nombre, cat_lo_contrasena, cat_lo_agencia, cat_agencias.cat_ag_nombre, cat_lo_ruta as cat_ru_ruta from SALMA.cat_logins left join SALMA.cat_agencias on cat_lo_agencia = cat_ag_id where (cat_lo_usuario LIKE ('%'||(?)||'%') or cat_lo_nombre LIKE ('%'||(?)||'%')) and cat_ag_nombre LIKE ('%'||(?)||'%') and cat_lo_ruta LIKE ('%'||(?)||'%') and rownum <= 20
|
|
||||||
sql.select_todosDANVIT_soporte=select cat_lo_usuario, cat_lo_estatus, cat_lo_nombre, cat_lo_contrasena, cat_lo_agencia, cat_agencias.cat_ag_nombre, cat_ru_ruta from DANVIT.cat_logins left join DANVIT.cat_agencias on cat_lo_agencia = cat_ag_id left join DANVIT.cat_rutas on cat_lo_usuario = cat_ru_vendedor where (cat_lo_usuario LIKE ('%'||(?)||'%') or cat_lo_nombre LIKE ('%'||(?)||'%')) and cat_ag_nombre LIKE ('%'||(?)||'%') and cat_ru_ruta LIKE ('%'||(?)||'%') and rownum <= 20
|
|
||||||
sql.select_ventaXrutaGuna_soporte=select hvd_ruta, sum(hvd_costo_tot) as monto, hvd_tipoventa from hist_ventas_detalle where trunc(hvd_fecha)=trunc(sysdate) and hvd_ruta=(?) and hvd_almacen=(?) AND hvd_codpromo <> 'BASICA' group by hvd_ruta, hvd_tipoventa
|
|
||||||
sql.select_ventaXrutaKelloggs_soporte=select hvd_ruta, sum(hvd_costo_tot) as monto, hvd_tipoventa from KELLOGGS.hist_ventas_detalle where trunc(hvd_fecha)=trunc(sysdate) and hvd_ruta=(?) and hvd_almacen=(?) and hvd_tipoventa=(?) AND hvd_codpromo <> 'BASICA' group by hvd_ruta, hvd_tipoventa
|
|
||||||
sql.select_ventaXrutaSalma_soporte=select hvd_ruta, sum(hvd_costo_tot) as monto, hvd_tipoventa from SALMA.hist_ventas_detalle where trunc(hvd_fecha)=trunc(sysdate) and hvd_ruta=(?) and hvd_almacen=(?) AND hvd_codpromo <> 'BASICA' group by hvd_ruta, hvd_tipoventa
|
|
||||||
sql.select_ventaXrutaDanvit_soporte=select hvd_ruta, sum(hvd_costo_tot) as monto, hvd_tipoventa from DANVIT.hist_ventas_detalle where trunc(hvd_fecha)=trunc(sysdate) and hvd_ruta=(?) and hvd_almacen=(?) AND hvd_codpromo <> 'BASICA' group by hvd_ruta, hvd_tipoventa
|
|
||||||
sql.select_prodsTicket_Kelloggs=SELECT HVD_CLIENTE CLIENTE, HVD_PROID PRODUCTO_ID, HVD_PRONOMBRE NOMBRE_PRODUCTO, HVD_CANT CANTIDAD, HVD_COSTO_TOT COSTO_TOTAL, HVD_RUTA RUTA, HVD_CODPROMO CODPROMO,NVL(HVD_TIPOVENTA,' ') TIPOVENTA, NVL(HVD_ESTATUS,' ') ESTATUS, hvd_cedis FROM KELLOGGS.HIST_VENTAS_DETALLE WHERE TRUNC(HVD_FECHA) = TRUNC(SYSDATE) AND HVD_ALMACEN = (?) AND HVD_CLIENTE = (?) and hvd_rechazo is null ORDER BY HVD_CODPROMO, HVD_PRONOMBRE
|
|
||||||
|
|
||||||
@@ -1,81 +1,29 @@
|
|||||||
#Lines starting with '#' are comments.
|
#Lines starting with '#' are comments.
|
||||||
#Backslash character at the end of line means that the command continues in the next line.
|
#Backslash character at the end of line means that the command continues in the next line.
|
||||||
|
|
||||||
DriverClass=oracle.jdbc.driver.OracleDriver
|
#DATABASE CONFIGURATION
|
||||||
#JdbcUrl=jdbc:mysql://localhost/test?characterEncoding=utf8
|
DriverClass=com.mysql.jdbc.Driver
|
||||||
|
JdbcUrl=jdbc:mysql://localhost/$DB$?characterEncoding=utf8
|
||||||
|
User=root
|
||||||
|
Password=
|
||||||
|
#Java server port
|
||||||
|
ServerPort=17178
|
||||||
|
|
||||||
#SQL Server
|
#example of MS SQL Server configuration:
|
||||||
#DriverClass=net.sourceforge.jtds.jdbc.Driver
|
#DriverClass=net.sourceforge.jtds.jdbc.Driver
|
||||||
|
#JdbcUrl=jdbc:jtds:sqlserver://<server address>/<database>
|
||||||
|
|
||||||
# este para produccion GHAN JdbcUrl=jdbc:oracle:thin:@//192.168.15.53:1521/DBKMT
|
#example of postegres configuration:
|
||||||
#GOHAN ---> server
|
#JdbcUrl=jdbc:postgresql://localhost/test
|
||||||
#JdbcUrl=jdbc:oracle:thin:@//10.0.0.205:1521/DBKMT
|
#DriverClass=org.postgresql.Driver
|
||||||
#JdbcUrl=jdbc:oracle:thin:@//10.0.0.236:1521/DBKMT
|
|
||||||
JdbcUrl=jdbc:oracle:thin:@//192.168.101.10:1521/DBKMT?v$session.program=jRDC_Pruebas_Guna1
|
|
||||||
|
|
||||||
# Define el número de conexiones que se intentarán crear al iniciar el pool.
|
|
||||||
InitialPoolSize=1
|
|
||||||
# Fija el número mínimo de conexiones que el pool mantendrá abiertas.
|
|
||||||
MinPoolSize=1
|
|
||||||
# Define el número máximo de conexiones simultáneas.
|
|
||||||
MaxPoolSize=2
|
|
||||||
# Cuántas conexiones nuevas se añaden en lote si el pool se queda sin disponibles.
|
|
||||||
AcquireIncrement=1
|
|
||||||
# Tiempo máximo de inactividad de una conexión antes de cerrarse (segundos).
|
|
||||||
MaxConnectionAge=60
|
|
||||||
|
|
||||||
# Configuración de tolerancia de parámetros:
|
|
||||||
# 1 = Habilita la tolerancia a parámetros de más (se ignoran los extras).
|
|
||||||
# 0 = Deshabilita la tolerancia (el servidor será estricto y lanzará un error si hay parámetros de más).
|
|
||||||
# Por defecto, si no se especifica o el valor es diferente de 1, la tolerancia estará DESHABILITADA (modo estricto).
|
|
||||||
parameterTolerance=1
|
|
||||||
|
|
||||||
# Configuración de los logs de SQLite:
|
|
||||||
# 1 = Habilita el registro de logs de queries y errores en la base de datos SQLite (users.db).
|
|
||||||
# 0 = Deshabilita el registro de logs de queries y errores en SQLite para optimizar el rendimiento.
|
|
||||||
# Por defecto, si no se especifica o el valor es diferente de 1, los logs estarán DESHABILITADOS.
|
|
||||||
enableSQLiteLogs=0
|
|
||||||
|
|
||||||
# SVR-KEYMON-PRODUCCION--> Usuario
|
|
||||||
User=GUNA
|
|
||||||
Password=GUNAD2015M
|
|
||||||
|
|
||||||
#User=TORRADOCONAUTO
|
|
||||||
#Password=TORRADOCONAUTOD2016M
|
|
||||||
|
|
||||||
|
|
||||||
#--> Puertos
|
|
||||||
#SAC - DFR - MDA / GOHAN -->COBRANZA
|
|
||||||
#ServerPort=1783
|
|
||||||
#GUNA - SALMA - DURAKELO - DBC / SVR-KEYMON-PRODUCCION --> DISTRIBUIDORAS
|
|
||||||
ServerPort=9010
|
|
||||||
#CMG - TORRADO / TRUNKS -->COBRANZA/ GM
|
|
||||||
#ServerPort=1781
|
|
||||||
|
|
||||||
#If Debug is true then this file will be reloaded on every query.
|
|
||||||
#This is useful if you need to modify the queries.
|
|
||||||
Debug=true
|
|
||||||
|
|
||||||
#SQL COMMANDS
|
#SQL COMMANDS
|
||||||
|
sql.create_table=CREATE TABLE IF NOT EXISTS animals (\
|
||||||
##################
|
id INTEGER PRIMARY KEY AUTO_INCREMENT,\
|
||||||
#################
|
name CHAR(30) NOT NULL,\
|
||||||
################ S O P O R T E
|
image BLOB)
|
||||||
#################
|
sql.insert_animal=INSERT INTO animals VALUES (null, ?,?)
|
||||||
##################
|
sql.select_animal=SELECT name, image, id FROM animals WHERE id = ?;
|
||||||
|
sql.create_table=CREATE TABLE article (col1 numeric(10,4) ,col2 text);
|
||||||
sql.select_revisaClienteCredito_GUNA2=select (select count(CAT_CL_CODIGO) from GUNA.CAT_CLIENTES where CAT_CL_CODIGO = ? and CAT_CL_IDALMACEN <> '100') as cuantos, (select count(ID_CLIENTE) from GUNA.CAT_CLIENTES_CREDITO where ID_CLIENTE = ?) as cuantosCredito from DUAL
|
sql.select=select * from article
|
||||||
|
sql.insert=INSERT INTO article VALUES(?, ?)
|
||||||
sql.traeConexion=select 'DB1' as conexion from dual
|
|
||||||
sql.traeConexion2=select 'DB1' as conexion from dual
|
|
||||||
sql.traeConexion3=select '1' as par1, 2 as par2 from dual
|
|
||||||
sql.traeConexion4=SELECT 'DB1' as db, (?) AS p1, (?) AS p2, (?) AS p3 FROM DUAL
|
|
||||||
sql.select_soporte=select * from GUNA.soporte
|
|
||||||
sql.select_conexion=SELECT 'OK' AS VALOR FROM DUAL
|
|
||||||
sql.selectAlmacen=select cat_al_id, cat_al_desc, cat_al_archftp from cat_almacen where cat_al_id = ?
|
|
||||||
sql.select_version=select cat_ve_version from cat_version
|
|
||||||
sql.select_version_GV2=select cat_ve_version from GUNA.cat_version
|
|
||||||
|
|
||||||
sql.update_usuario_guna_nobajas=UPDATE GUNA.CAT_LOGINS SET CAT_LO_ESTATUS = 'Activo',CAT_LO_CONECTADO ='0' WHERE CAT_LO_ESTATUS != 'Baja' and CAT_LO_USUARIO = (?)
|
|
||||||
|
|
||||||
sql.proc_usuario=BEGIN EXECUTE IMMEDIATE ('DECLARE Cursor_SYS Sys_Refcursor; BEGIN SP_ACTIVAR_USUARIO( '''||(?)||''',Cursor_SYS); end;'); END;
|
|
||||||
@@ -34,14 +34,14 @@ ModuleBreakpoints6=
|
|||||||
ModuleBreakpoints7=
|
ModuleBreakpoints7=
|
||||||
ModuleBreakpoints8=
|
ModuleBreakpoints8=
|
||||||
ModuleBreakpoints9=
|
ModuleBreakpoints9=
|
||||||
ModuleClosedNodes0=5,6,7,8,9,10,12,13
|
ModuleClosedNodes0=
|
||||||
ModuleClosedNodes1=
|
ModuleClosedNodes1=
|
||||||
ModuleClosedNodes10=
|
ModuleClosedNodes10=
|
||||||
ModuleClosedNodes11=
|
ModuleClosedNodes11=
|
||||||
ModuleClosedNodes12=
|
ModuleClosedNodes12=
|
||||||
ModuleClosedNodes13=
|
ModuleClosedNodes13=
|
||||||
ModuleClosedNodes14=
|
ModuleClosedNodes14=
|
||||||
ModuleClosedNodes15=3,5,6
|
ModuleClosedNodes15=
|
||||||
ModuleClosedNodes16=2,3
|
ModuleClosedNodes16=2,3
|
||||||
ModuleClosedNodes17=
|
ModuleClosedNodes17=
|
||||||
ModuleClosedNodes2=
|
ModuleClosedNodes2=
|
||||||
@@ -52,6 +52,6 @@ ModuleClosedNodes6=
|
|||||||
ModuleClosedNodes7=
|
ModuleClosedNodes7=
|
||||||
ModuleClosedNodes8=
|
ModuleClosedNodes8=
|
||||||
ModuleClosedNodes9=
|
ModuleClosedNodes9=
|
||||||
NavigationStack=Main,CopiarStreamManualmente,714,0,Main,GetThreadContextClassLoader,716,0,Main,borraArribaDe15000Logs,653,0,Main,WriteErrorLogsBatch,631,0,Main,InitializeSQLiteDatabase,332,0,Main,CopiarRecursoSiNoExiste,698,6,RDCConnector,Initialize,100,0,Manager,Handle,301,0,Cambios,Process_Globals,20,1,Main,AppStart,88,4
|
NavigationStack=Main,WriteQueryLogsBatch,522,0,RDCConnector,Initialize,93,0,DBHandlerB4X,Handle,171,0,Main,LogServerError,458,0,Main,WriteErrorLogsBatch,584,0,Main,TimerLogs_Tick,573,0,Main,ArchiveQueryLogsToDailyFile,777,0,Manager,Handle,522,0,Main,ArchiveErrorLogsToDailyFile,840,1,Cambios,Process_Globals,33,6
|
||||||
SelectedBuild=0
|
SelectedBuild=0
|
||||||
VisibleModules=3,4,14,1,10,15,16,17,13
|
VisibleModules=3,4,14,1,10,15,16,17,13,12
|
||||||
|
|||||||
Reference in New Issue
Block a user