dmencu 0.3.8 → 0.3.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const defConfig = "\nserver:\n port: 3068\n base-url: /dmencu\n session-store: memory\ndb:\n user: dmencu_admin\n motor: postgresql\n host: localhost\n database: dmencu_db\n schema: base\n search_path: \n - base\n - comun\ninstall:\n dump:\n db:\n owner: dmencu_owner\n apply-generic-user-replaces: true\n admin-can-create-tables: true\n enances: inline\n skip-content: true\n scripts:\n prepare:\n - ../node_modules/operativos/install/rel_tabla_relacionada.sql\n - esquema_comun.sql\n - esquema_comun_sin_dato.sql\n - esquema_comun_nsnc.sql\n - ../node_modules/meta-enc/install/prepare.sql\n - ../node_modules/varcal/install/wrappers.sql\n - ../node_modules/operativos/install/sql2tabla_datos.sql\n post-adapt: \n - para-install.sql\n - ../node_modules/pg-triggers/lib/recreate-his.sql\n - ../node_modules/pg-triggers/lib/table-changes.sql\n - ../node_modules/pg-triggers/lib/function-changes-trg.sql\n - ../node_modules/pg-triggers/lib/enance.sql\n - ../node_modules/datos-ext/install/controlar_modificacion_estructura_cerrada.sql\n - ../node_modules/meta-enc/install/casilleros_orden_total_fun.sql\n - ../node_modules/meta-enc/install/casilleros_jerarquizados_fun.sql\n - ../node_modules/consistencias/install/try_sql.sql\n - esquema_dbo.sql \n - varcal_manual/estructura.sql\n - varcal_manual/funcion_update.sql\n - fun_validar_tipodato.sql\n - desintegrarpk.sql\n - agregar_adjunto_carto_trg\n - sincro_tareas_areas_tareas_tem_trg.sql\n - sincronizacion_tareas_tem.sql\n - sincronizacion_tem.sql\n - control_disform_cerrado_trg.sql\n - control_cargado_tareas_tem_trg.sql\n - accion_cumple_condicion.sql\n - actualizar_estado_tem_trg.sql\nlogin:\n infoFieldList: [usuario, rol, idper]\n table: usuarios\n userFieldName: usuario\n passFieldName: md5clave\n rolFieldName: rol\n activeClausule: activo\n lockedClausule: not activo\n plus:\n maxAge-5-sec: 5000 \n maxAge: 864000000\n maxAge-10-day: 864000000\n allowHttpLogin: true\n fileStore: false\n skipCheckAlreadyLoggedIn: true\n loginForm:\n formTitle: dmencu\n usernameLabel: usuario\n passwordLabel: clave\n buttonLabel: entrar\n formImg: img/login-lock-icon.png\n chPassForm:\n usernameLabel: usuario\n oldPasswordLabel: clave anterior\n newPasswordLabel: nueva clave\n repPasswordLabel: repetir nueva clave\n buttonLabel: Cambiar\n formTitle: Cambio de clave\n messages:\n userOrPassFail: el nombre de usuario no existe o la clave no corresponde\n lockedFail: el usuario se encuentra bloqueado\n inactiveFail: es usuario est\u00E1 marcado como inactivo\nclient-setup:\n title: SIEH 2.0\n cursors: true\n lang: es\n menu: true\n background-img: ../img/background-test.png\n deviceWidthForMobile: device-width\n user-scalable: no\n grid-buffer: wsql\n";
|
|
1
|
+
export declare const defConfig = "\nserver:\n port: 3068\n base-url: /dmencu\n session-store: memory\ndb:\n user: dmencu_admin\n motor: postgresql\n host: localhost\n database: dmencu_db\n schema: base\n search_path: \n - base\n - comun\ninstall:\n dump:\n db:\n owner: dmencu_owner\n apply-generic-user-replaces: true\n admin-can-create-tables: true\n enances: inline\n skip-content: true\n scripts:\n prepare:\n - ../node_modules/operativos/install/rel_tabla_relacionada.sql\n - esquema_comun.sql\n - esquema_comun_sin_dato.sql\n - esquema_comun_nsnc.sql\n - ../node_modules/meta-enc/install/prepare.sql\n - ../node_modules/varcal/install/wrappers.sql\n - ../node_modules/operativos/install/sql2tabla_datos.sql\n post-adapt: \n - para-install.sql\n - ../node_modules/pg-triggers/lib/recreate-his.sql\n - ../node_modules/pg-triggers/lib/table-changes.sql\n - ../node_modules/pg-triggers/lib/function-changes-trg.sql\n - ../node_modules/pg-triggers/lib/enance.sql\n - ../node_modules/datos-ext/install/controlar_modificacion_estructura_cerrada.sql\n - ../node_modules/meta-enc/install/casilleros_orden_total_fun.sql\n - ../node_modules/meta-enc/install/casilleros_jerarquizados_fun.sql\n - ../node_modules/consistencias/install/try_sql.sql\n - esquema_dbo.sql \n - varcal_manual/estructura.sql\n - varcal_manual/funcion_update.sql\n - fun_validar_tipodato.sql\n - desintegrarpk.sql\n - agregar_adjunto_carto_trg\n - sincro_tareas_areas_tareas_tem_trg.sql\n - sincronizacion_tareas_tem.sql\n - sincronizacion_tem.sql\n - control_disform_cerrado_trg.sql\n - control_cargado_tareas_tem_trg.sql\n - accion_cumple_condicion.sql\n - actualizar_estado_tem_trg.sql\n - carga_inicial_tareas_tem.sql\nlogin:\n infoFieldList: [usuario, rol, idper]\n table: usuarios\n userFieldName: usuario\n passFieldName: md5clave\n rolFieldName: rol\n activeClausule: activo\n lockedClausule: not activo\n plus:\n maxAge-5-sec: 5000 \n maxAge: 864000000\n maxAge-10-day: 864000000\n allowHttpLogin: true\n fileStore: false\n skipCheckAlreadyLoggedIn: true\n loginForm:\n formTitle: dmencu\n usernameLabel: usuario\n passwordLabel: clave\n buttonLabel: entrar\n formImg: img/login-lock-icon.png\n chPassForm:\n usernameLabel: usuario\n oldPasswordLabel: clave anterior\n newPasswordLabel: nueva clave\n repPasswordLabel: repetir nueva clave\n buttonLabel: Cambiar\n formTitle: Cambio de clave\n messages:\n userOrPassFail: el nombre de usuario no existe o la clave no corresponde\n lockedFail: el usuario se encuentra bloqueado\n inactiveFail: es usuario est\u00E1 marcado como inactivo\nclient-setup:\n title: SIEH 2.0\n cursors: true\n lang: es\n menu: true\n background-img: ../img/background-test.png\n deviceWidthForMobile: device-width\n user-scalable: no\n grid-buffer: wsql\n";
|
|
@@ -64,6 +64,7 @@ install:
|
|
|
64
64
|
- control_cargado_tareas_tem_trg.sql
|
|
65
65
|
- accion_cumple_condicion.sql
|
|
66
66
|
- actualizar_estado_tem_trg.sql
|
|
67
|
+
- carga_inicial_tareas_tem.sql
|
|
67
68
|
login:
|
|
68
69
|
infoFieldList: [usuario, rol, idper]
|
|
69
70
|
table: usuarios
|
|
@@ -107,4 +108,4 @@ client-setup:
|
|
|
107
108
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JlIGRlIHVzdWFyaW8gbm8gZXhpc3RlIG8gbGEgY2xhdmUgbm8gY29ycmVzcG9uZGVcclxuICAgIGxvY2tlZEZhaWw6IGVsIHVzdWFyaW8gc2UgZW5jdWVudHJhIGJsb3F1ZWFkb1xyXG4gICAgaW5hY3RpdmVGYWlsOiBlcyB1c3VhcmlvIGVzdMOhIG1hcmNhZG8gY29tbyBpbmFjdGl2b1xyXG5jbGllbnQtc2V0dXA6XHJcbiAgdGl0bGU6IFNJRUggMi4wXHJcbiAgY3Vyc29yczogdHJ1ZVxyXG4gIGxhbmc6IGVzXHJcbiAgbWVudTogdHJ1ZVxyXG4gIGJhY2tncm91bmQtaW1nOiAuLi9pbWcvYmFja2dyb3VuZC10ZXN0LnBuZ1xyXG4gIGRldmljZVdpZHRoRm9yTW9iaWxlOiBkZXZpY2Utd2lkdGhcclxuICB1c2VyLXNjYWxhYmxlOiBub1xyXG4gIGdyaWQtYnVmZmVyOiB3c3FsXHJcbmAiXX0=
|
|
@@ -10,8 +10,8 @@ end;
|
|
|
10
10
|
$BODY$;
|
|
11
11
|
|
|
12
12
|
DROP trigger if exists actualizar_estado_tem_trg on base.tareas_tem;
|
|
13
|
-
CREATE TRIGGER actualizar_estado_tem_trg
|
|
14
|
-
AFTER
|
|
13
|
+
CREATE TRIGGER actualizar_estado_tem_trg
|
|
14
|
+
AFTER UPDATE OF estado, tarea
|
|
15
15
|
ON base.tareas_tem
|
|
16
16
|
FOR EACH ROW
|
|
17
17
|
EXECUTE FUNCTION base.actualizar_estado_tem_trg();
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
--set search_path=base;
|
|
2
|
+
--set role ut_owner;
|
|
3
|
+
|
|
4
|
+
-- Primer seteo con data de asignacion desde areas
|
|
5
|
+
-- TODO reveer si agregamos campos asociados a las tareas supe y recu a areas
|
|
6
|
+
|
|
7
|
+
--delete from tareas_areas;
|
|
8
|
+
/*
|
|
9
|
+
insert into tareas_areas(operativo, tarea, area, asignado, asignante, obs_asignante)
|
|
10
|
+
select *
|
|
11
|
+
from (
|
|
12
|
+
select a.operativo, t.tarea, area, case when tarea='encu' then encuestador else null end asignado, recepcionista, obs_recepcionista
|
|
13
|
+
from areas a ,(select t.operativo, t.tarea
|
|
14
|
+
from tareas t join parametros p on unico_registro and t.operativo=p.operativo
|
|
15
|
+
)t
|
|
16
|
+
where a.operativo= t.operativo and a.operativo='UT_2022'
|
|
17
|
+
) n
|
|
18
|
+
--where not exists (select 1 from tareas_areas t where t.operativo= n.operativo and t.tarea=n.tarea and t.area=n.area)
|
|
19
|
+
order by 1,2,3;
|
|
20
|
+
*/
|
|
21
|
+
--delete from tareas_tem;
|
|
22
|
+
insert into tareas_tem (operativo, enc, tarea, habilitada)
|
|
23
|
+
select ta.operativo, ta.enc, ta.tarea, case when ta.tarea='encu' then true else false end
|
|
24
|
+
from (select ta.*, t.enc,t.area from tareas ta, tem t where ta.operativo=t.operativo) ta
|
|
25
|
+
where ta.operativo= (select operativo from parametros where unico_registro)
|
|
26
|
+
and not (ta.operativo, ta.enc, ta.tarea) in (select operativo, enc, tarea from tareas_tem)
|
|
27
|
+
and ta.main_form is not null
|
|
28
|
+
order by 1,3,2;
|
|
29
|
+
|
|
30
|
+
update tem set tarea='encu';
|
package/package.json
CHANGED