dmencu 1.0.25 → 1.0.26
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.
- package/dist/client/client/client.js +13 -7
- package/dist/client/unlogged/render-formulario.tsx +4 -0
- package/dist/server/server/app-dmencu.d.ts +323 -448
- package/dist/server/server/app-dmencu.js +10 -5
- package/dist/server/server/def-config.d.ts +1 -1
- package/dist/server/server/def-config.js +2 -1
- package/dist/server/server/procedures-dmencu.js +34 -10
- package/dist/server/server/server-dmencu.js +3 -3
- package/dist/server/server/table-inconsistencias_cumplen_condicion.d.ts +2 -0
- package/dist/server/server/table-inconsistencias_cumplen_condicion.js +33 -0
- package/dist/server/server/table-inconsistencias_no_cumple_condicion.d.ts +2 -0
- package/dist/server/server/table-inconsistencias_no_cumple_condicion.js +31 -0
- package/dist/server/server/table-inconsistencias_no_cumplen_condicion.d.ts +3 -0
- package/dist/server/server/table-inconsistencias_no_cumplen_condicion.js +38 -0
- package/dist/server/server/table-momento_consistencia_tarea_rol.d.ts +2 -0
- package/dist/server/server/table-momento_consistencia_tarea_rol.js +34 -0
- package/dist/server/server/table-momento_consistencia_tarea_roles.d.ts +2 -0
- package/dist/server/server/table-momento_consistencia_tarea_roles.js +33 -0
- package/dist/server/server/table-roles copy.d.ts +2 -0
- package/dist/server/server/table-roles copy.js +33 -0
- package/dist/server/server/table-tareas_areas.js +3 -7
- package/dist/server/server/table-tareas_tem_fin_campo copy.d.ts +3 -0
- package/dist/server/server/table-tareas_tem_fin_campo copy.js +46 -0
- package/dist/unlogged/unlogged/render-formulario.js +6 -1
- package/dist/unlogged/unlogged/render-formulario.tsx +4 -0
- package/install/accion_cumple_condicion.sql +1 -1
- package/install/carga_inicial_tareas_tem.sql +3 -5
- package/install/momento_consistencia_cumple_condicion.sql +28 -0
- package/install/tarea_cumple_condicion.sql +1 -1
- package/install/usuarios.tab +6 -0
- package/package.json +2 -2
|
@@ -1719,6 +1719,10 @@ function FormularioDespliegue(props:{forPk:ForPk}){
|
|
|
1719
1719
|
);
|
|
1720
1720
|
}
|
|
1721
1721
|
}
|
|
1722
|
+
const idCaso = likeAr(props.forPk).find((_,k)=>{
|
|
1723
|
+
return k!='formulario'
|
|
1724
|
+
})?.toString();
|
|
1725
|
+
window.document.title = getEstructura().operativo + '- ' + idCaso;
|
|
1722
1726
|
window.addEventListener('scroll', controlScroll);
|
|
1723
1727
|
controlScroll();
|
|
1724
1728
|
return ()=>{
|
|
@@ -13,7 +13,7 @@ BEGIN
|
|
|
13
13
|
from base.tareas_tem t
|
|
14
14
|
inner join base.estados_acciones ea using (operativo, estado)
|
|
15
15
|
inner join tem te using (operativo,enc)
|
|
16
|
-
left join tokens tok on t.cargado_dm=tok.token
|
|
16
|
+
--left join tokens tok on t.cargado_dm=tok.token
|
|
17
17
|
left join no_rea nr on (te.norea::text = nr.no_rea)
|
|
18
18
|
left join tareas_tem tta on (te.operativo = tta.operativo and te.enc = tta.enc and te.tarea_actual = tta.tarea)
|
|
19
19
|
where t.operativo='||quote_literal(p_operativo)||
|
|
@@ -5,19 +5,17 @@
|
|
|
5
5
|
-- TODO reveer si agregamos campos asociados a las tareas supe y recu a areas
|
|
6
6
|
|
|
7
7
|
--delete from tareas_areas;
|
|
8
|
-
|
|
9
|
-
insert into tareas_areas(operativo, tarea, area, asignado, asignante, obs_asignante)
|
|
8
|
+
insert into tareas_areas(operativo, tarea, area, asignado, recepcionista, obs_recepcion)
|
|
10
9
|
select *
|
|
11
10
|
from (
|
|
12
11
|
select a.operativo, t.tarea, area, case when tarea='encu' then encuestador else null end asignado, recepcionista, obs_recepcionista
|
|
13
12
|
from areas a ,(select t.operativo, t.tarea
|
|
14
13
|
from tareas t join parametros p on unico_registro and t.operativo=p.operativo
|
|
15
14
|
)t
|
|
16
|
-
where a.operativo= t.operativo and a.operativo='UT_2022'
|
|
17
15
|
) n
|
|
18
|
-
|
|
16
|
+
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
17
|
order by 1,2,3;
|
|
20
|
-
|
|
18
|
+
|
|
21
19
|
--delete from tareas_tem;
|
|
22
20
|
insert into tareas_tem (operativo, enc, tarea)
|
|
23
21
|
select ta.operativo, ta.enc, ta.tarea
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
--set role to ggs2022_owner;
|
|
2
|
+
--set search_path=base;
|
|
3
|
+
CREATE OR REPLACE FUNCTION momento_consistencia_cumple_condicion(p_operativo text, p_enc text, p_usuario text, p_condicion text)
|
|
4
|
+
RETURNS boolean AS
|
|
5
|
+
$BODY$
|
|
6
|
+
DECLARE
|
|
7
|
+
v_sent text;
|
|
8
|
+
v_cond text;
|
|
9
|
+
v_salida integer;
|
|
10
|
+
BEGIN
|
|
11
|
+
v_cond=p_condicion;
|
|
12
|
+
v_sent='select 1
|
|
13
|
+
from usuarios u, tem t
|
|
14
|
+
where u.usuario = '||quote_literal(p_usuario)||
|
|
15
|
+
' and t.operativo = '||quote_literal(p_operativo)||
|
|
16
|
+
' and t.enc = '||quote_literal(p_enc)||
|
|
17
|
+
' and '||v_cond||';';
|
|
18
|
+
--raise notice 'esto %',vsent;
|
|
19
|
+
execute v_sent into v_salida;
|
|
20
|
+
IF v_salida=1 THEN
|
|
21
|
+
return true;
|
|
22
|
+
ELSE
|
|
23
|
+
return false;
|
|
24
|
+
END IF;
|
|
25
|
+
|
|
26
|
+
END;
|
|
27
|
+
$BODY$
|
|
28
|
+
LANGUAGE plpgsql VOLATILE;
|
|
@@ -13,7 +13,7 @@ BEGIN
|
|
|
13
13
|
from base.tareas_tem t
|
|
14
14
|
inner join base.tareas_proximas tp using (operativo, tarea, estado)
|
|
15
15
|
inner join tem te using (operativo,enc)
|
|
16
|
-
left join tokens tok on t.cargado_dm=tok.token
|
|
16
|
+
--left join tokens tok on t.cargado_dm=tok.token
|
|
17
17
|
left join no_rea nr on (te.norea::text = nr.no_rea)
|
|
18
18
|
where t.operativo='||quote_literal(p_operativo)||
|
|
19
19
|
' and t.tarea='||quote_literal(p_tarea)||
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
usuario|idper|rol|activo|md5clave
|
|
2
|
+
bob|11|admin|true|6bdb73cceeff578319840176854246e5
|
|
3
|
+
encu1|101|encuestador|true|c36445db3bfb8add74d4c3b5316de5ea
|
|
4
|
+
rece1|102|recepcionista|true|c36445db3bfb8add74d4c3b5316de5ea
|
|
5
|
+
recu1|103|recuperador|true|c36445db3bfb8add74d4c3b5316de5ea
|
|
6
|
+
supe1|104|supervisor|true|c36445db3bfb8add74d4c3b5316de5ea
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dmencu",
|
|
3
3
|
"description": "DM Encu - Encuestas en dispositivo móvil",
|
|
4
|
-
"version": "1.0.
|
|
4
|
+
"version": "1.0.26",
|
|
5
5
|
"author": "Codenautas <codenautas@googlegroups.com>",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"main": "dist/server/server/app-dmencu.js",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"@mui/material": "^5.16.7",
|
|
15
15
|
"memoize-one": "~6.0.0",
|
|
16
16
|
"meta-enc": "^1.4.9",
|
|
17
|
-
"procesamiento": "^
|
|
17
|
+
"procesamiento": "^2.0.3",
|
|
18
18
|
"backend-plus": "^2.0.3",
|
|
19
19
|
"qrcode": "^1.5.3",
|
|
20
20
|
"react": "~17.0.2",
|