1487 - Criar relatório dinâmico para monitorar se a execução do pentaho foi realizada
This commit is contained in:
+585
-102
@@ -547,18 +547,143 @@
|
||||
</connection>
|
||||
<order>
|
||||
<hop>
|
||||
<from>Table input</from>
|
||||
<to>Add sequence</to>
|
||||
<from>Coletar Dados - Consinco</from>
|
||||
<to>Adicionar sequencias</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Add sequence</from>
|
||||
<to>Insert / Update</to>
|
||||
<from>Adicionar sequencias</from>
|
||||
<to>Inserir dados - Vitruvio</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Iniciar processo</from>
|
||||
<to>Coletar Dados - Consinco</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Adicionar data</from>
|
||||
<to>Adicionar Constantes</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Inserir dados - Vitruvio</from>
|
||||
<to>Adicionar Constantes Falha</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Adicionar Constantes Falha</from>
|
||||
<to>Adicionar data falha</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Adicionar data falha</from>
|
||||
<to>Atualizar Log 2</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Adicionar data sucesso</from>
|
||||
<to>Atualizar Log</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Adicionar Constantes Sucesso</from>
|
||||
<to>Adicionar data sucesso</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Adicionar Constantes</from>
|
||||
<to>Iniciar processo</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
<hop>
|
||||
<from>Inserir dados - Vitruvio</from>
|
||||
<to>Adicionar Constantes Sucesso</to>
|
||||
<enabled>Y</enabled>
|
||||
</hop>
|
||||
</order>
|
||||
<step>
|
||||
<name>Add sequence</name>
|
||||
<name>Adicionar Constantes</name>
|
||||
<type>Constant</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<fields>
|
||||
<field>
|
||||
<name>TIPO</name>
|
||||
<type>Number</type>
|
||||
<format/>
|
||||
<currency/>
|
||||
<decimal/>
|
||||
<group/>
|
||||
<nullif>1</nullif>
|
||||
<length>1</length>
|
||||
<precision>-1</precision>
|
||||
<set_empty_string>N</set_empty_string>
|
||||
</field>
|
||||
<field>
|
||||
<name>STATUS</name>
|
||||
<type>Number</type>
|
||||
<format/>
|
||||
<currency/>
|
||||
<decimal/>
|
||||
<group/>
|
||||
<nullif>1</nullif>
|
||||
<length>1</length>
|
||||
<precision>-1</precision>
|
||||
<set_empty_string>N</set_empty_string>
|
||||
</field>
|
||||
</fields>
|
||||
<cluster_schema/>
|
||||
<remotesteps>
|
||||
<input>
|
||||
</input>
|
||||
<output>
|
||||
</output>
|
||||
</remotesteps>
|
||||
<GUI>
|
||||
<xloc>64</xloc>
|
||||
<yloc>64</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
<step>
|
||||
<name>Adicionar data</name>
|
||||
<type>SystemInfo</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<fields>
|
||||
<field>
|
||||
<name>data</name>
|
||||
<type>system date (fixed)</type>
|
||||
</field>
|
||||
</fields>
|
||||
<cluster_schema/>
|
||||
<remotesteps>
|
||||
<input>
|
||||
</input>
|
||||
<output>
|
||||
</output>
|
||||
</remotesteps>
|
||||
<GUI>
|
||||
<xloc>64</xloc>
|
||||
<yloc>192</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
<step>
|
||||
<name>Adicionar sequencias</name>
|
||||
<type>Sequence</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
@@ -586,13 +711,299 @@
|
||||
</output>
|
||||
</remotesteps>
|
||||
<GUI>
|
||||
<xloc>256</xloc>
|
||||
<yloc>80</yloc>
|
||||
<xloc>464</xloc>
|
||||
<yloc>64</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
<step>
|
||||
<name>Insert / Update</name>
|
||||
<name>Atualizar Log</name>
|
||||
<type>InsertUpdate</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<connection>GF - Vitruvio</connection>
|
||||
<commit>100</commit>
|
||||
<update_bypassed>N</update_bypassed>
|
||||
<lookup>
|
||||
<schema/>
|
||||
<table>TB_SEMAFORO</table>
|
||||
<key>
|
||||
<name>TIPO</name>
|
||||
<field>TIPO</field>
|
||||
<condition>=</condition>
|
||||
<name2/>
|
||||
</key>
|
||||
<key>
|
||||
<name>TIPO</name>
|
||||
<field>CHAVE</field>
|
||||
<condition>=</condition>
|
||||
<name2/>
|
||||
</key>
|
||||
<value>
|
||||
<name>STATUS</name>
|
||||
<rename>STATUS_SUCESSO</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>DATA_ATUALIZACAO</name>
|
||||
<rename>data_sucesso</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>TIPO</name>
|
||||
<rename>TIPO</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
</lookup>
|
||||
<cluster_schema/>
|
||||
<remotesteps>
|
||||
<input>
|
||||
</input>
|
||||
<output>
|
||||
</output>
|
||||
</remotesteps>
|
||||
<GUI>
|
||||
<xloc>1056</xloc>
|
||||
<yloc>64</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
<step>
|
||||
<name>Atualizar Log 2</name>
|
||||
<type>InsertUpdate</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<connection>GF - Vitruvio</connection>
|
||||
<commit>100</commit>
|
||||
<update_bypassed>N</update_bypassed>
|
||||
<lookup>
|
||||
<schema/>
|
||||
<table>TB_SEMAFORO</table>
|
||||
<key>
|
||||
<name>TIPO</name>
|
||||
<field>TIPO</field>
|
||||
<condition>=</condition>
|
||||
<name2/>
|
||||
</key>
|
||||
<key>
|
||||
<name>TIPO</name>
|
||||
<field>CHAVE</field>
|
||||
<condition>=</condition>
|
||||
<name2/>
|
||||
</key>
|
||||
<value>
|
||||
<name>STATUS</name>
|
||||
<rename>STATUS_FALHA</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>DATA_ATUALIZACAO</name>
|
||||
<rename>data_falha</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>TIPO</name>
|
||||
<rename>TIPO</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
</lookup>
|
||||
<cluster_schema/>
|
||||
<remotesteps>
|
||||
<input>
|
||||
</input>
|
||||
<output>
|
||||
</output>
|
||||
</remotesteps>
|
||||
<GUI>
|
||||
<xloc>608</xloc>
|
||||
<yloc>400</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
<step>
|
||||
<name>Coletar Dados - Consinco</name>
|
||||
<type>TableInput</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<connection>GF - Consinco</connection>
|
||||
<sql>Select
|
||||
V.NROEMPRESA,
|
||||
(Select c.seqcategoria
|
||||
from map_categoria c
|
||||
inner join map_famdivcateg fc
|
||||
on fc.seqcategoria = c.seqcategoria
|
||||
where c.tipcategoria = 'M'
|
||||
and fc.status = 'A'
|
||||
and fc.seqfamilia = a.seqfamilia
|
||||
AND FC.NRODIVISAO = 2
|
||||
and c.nivelhierarquia = 1 and rownum = 1) chave_categoria_pai,
|
||||
(Select c.categoria
|
||||
from map_categoria c
|
||||
inner join map_famdivcateg fc
|
||||
on fc.seqcategoria = c.seqcategoria
|
||||
where c.tipcategoria = 'M'
|
||||
and fc.status = 'A'
|
||||
and fc.seqfamilia = a.seqfamilia
|
||||
AND FC.NRODIVISAO = 2
|
||||
and c.nivelhierarquia = 1 and rownum = 1) categoriapai,
|
||||
(Select c.seqcategoria
|
||||
from map_categoria c
|
||||
inner join map_famdivcateg fc
|
||||
on fc.seqcategoria = c.seqcategoria
|
||||
where c.tipcategoria = 'M'
|
||||
and fc.status = 'A'
|
||||
and fc.seqfamilia = a.seqfamilia
|
||||
AND FC.NRODIVISAO = 2
|
||||
and c.nivelhierarquia = 2 and rownum = 1) chave_categoria,
|
||||
(Select c.categoria
|
||||
from map_categoria c
|
||||
inner join map_famdivcateg fc
|
||||
on fc.seqcategoria = c.seqcategoria
|
||||
where c.tipcategoria = 'M'
|
||||
and fc.status = 'A'
|
||||
and fc.seqfamilia = a.seqfamilia
|
||||
AND FC.NRODIVISAO = 2
|
||||
and c.nivelhierarquia = 2 and rownum = 1) categoria,
|
||||
V.SEQPRODUTO,
|
||||
(Select desccompleta from map_produto where seqproduto = v.seqproduto) descricaoproduto,
|
||||
A.SEQFAMILIA,
|
||||
sum( round(( V.QTDITEM - V.QTDDEVOLITEM ) / K.QTDEMBALAGEM , 6) ) as QTDITEM,
|
||||
sum((( case when 'N' in ( 'S', 'V' ) then V.VLRITEMSEMDESC
|
||||
else V.VLRITEM
|
||||
end ) - ( V.VLRDEVOLITEM )) )
|
||||
as VLRITEM,
|
||||
sum(
|
||||
( ( Y.CMDIAVLRNF + Y.CMDIAIPI + Y.CMDIAICMSST + Y.CMDIADESPNF + Y.CMDIADESPFORANF - Y.CMDIADCTOFORANF ) *
|
||||
DECODE('S','N',1, NVL( a.propqtdprodutobase, 1) )
|
||||
- ( decode( Y.QTDVERBAVDA, 0, 0, Y.VLRVERBAVDA *
|
||||
DECODE('S','N',1, NVL( a.propqtdprodutobase, 1) ) / Y.QTDVDA ) ) )
|
||||
* ( V.QTDITEM - V.QTDDEVOLITEM ) )
|
||||
as CTOBRUTOVDA,
|
||||
trunc(sysdate,'MM') referencia
|
||||
from MRL_CUSTODIAFAM Y, MAXV_ABCDISTRIBBASE V, MAP_PRODUTO A, MAP_PRODUTO PB, MAP_FAMDIVISAO D, MAP_FAMFORNEC F, MAX_COMPRADOR O, MAP_FAMEMBALAGEM K, MAX_EMPRESA E, MAD_FAMSEGMENTO H, MAP_FAMEMBALAGEM K2, MAP_FAMEMBALAGEM K3
|
||||
where D.SEQFAMILIA = A.SEQFAMILIA
|
||||
and D.NRODIVISAO = 2
|
||||
and V.NROEMPRESA in ( 1,2,3,4,6,7,8,9,110,111,112,13,14,17 ,15)
|
||||
and V.SEQPRODUTO = A.SEQPRODUTO
|
||||
and V.SEQPRODUTOCUSTO = PB.SEQPRODUTO
|
||||
AND V.CODGERALOPER IN (502,515)
|
||||
and E.NROEMPRESA = V.NROEMPRESA
|
||||
and TRUNC(V.DTAVDA) between trunc(sysdate,'MM') and trunc(sysdate) - 1
|
||||
and Y.NROEMPRESA = nvl( E.NROEMPCUSTOABC, E.NROEMPRESA )
|
||||
and Y.DTAENTRADASAIDA = V.DTAVDA
|
||||
and K.SEQFAMILIA = A.SEQFAMILIA
|
||||
and K.QTDEMBALAGEM = H.PADRAOEMBVENDA
|
||||
and K2.SEQFAMILIA = D.SEQFAMILIA
|
||||
and K2.QTDEMBALAGEM = fpadraoembcompraprod(A.SEQPRODUTO, D.NRODIVISAO)
|
||||
and K3.SEQFAMILIA = D.SEQFAMILIA
|
||||
and K3.QTDEMBALAGEM = nvl(fpadraoembtransf( D.SEQFAMILIA, D.NRODIVISAO ),fPadraoEmbVenda( D.SEQFAMILIA, D.NRODIVISAO ))
|
||||
and F.SEQFAMILIA = D.SEQFAMILIA
|
||||
and F.PRINCIPAL = 'S'
|
||||
and D.SEQCOMPRADOR = O.SEQCOMPRADOR
|
||||
and Y.SEQFAMILIA = PB.SEQFAMILIA
|
||||
and H.SEQFAMILIA = A.SEQFAMILIA
|
||||
and H.NROSEGMENTO = V.NROSEGMENTO
|
||||
and DECODE(V.TIPTABELA, 'S', V.CGOACMCOMPRAVENDA, 'A', V.CGOACMCOMPRAVENDA, V.ACMCOMPRAVENDA) in ( 'S', 'I' ) and 1 = 2
|
||||
group by
|
||||
V.NROEMPRESA,
|
||||
V.SEQPRODUTO,
|
||||
A.SEQFAMILIA</sql>
|
||||
<limit>0</limit>
|
||||
<lookup/>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<variables_active>N</variables_active>
|
||||
<lazy_conversion_active>N</lazy_conversion_active>
|
||||
<cluster_schema/>
|
||||
<remotesteps>
|
||||
<input>
|
||||
</input>
|
||||
<output>
|
||||
</output>
|
||||
</remotesteps>
|
||||
<GUI>
|
||||
<xloc>320</xloc>
|
||||
<yloc>64</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
<step>
|
||||
<name>Iniciar processo</name>
|
||||
<type>InsertUpdate</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<connection>GF - Vitruvio</connection>
|
||||
<commit>100</commit>
|
||||
<update_bypassed>N</update_bypassed>
|
||||
<lookup>
|
||||
<schema/>
|
||||
<table>TB_SEMAFORO</table>
|
||||
<key>
|
||||
<name>TIPO</name>
|
||||
<field>TIPO</field>
|
||||
<condition>=</condition>
|
||||
<name2/>
|
||||
</key>
|
||||
<key>
|
||||
<name>TIPO</name>
|
||||
<field>CHAVE</field>
|
||||
<condition>=</condition>
|
||||
<name2/>
|
||||
</key>
|
||||
<value>
|
||||
<name>STATUS</name>
|
||||
<rename>STATUS</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>DATA_ATUALIZACAO</name>
|
||||
<rename>data</rename>
|
||||
<update>Y</update>
|
||||
</value>
|
||||
<value>
|
||||
<name>TIPO</name>
|
||||
<rename>TIPO</rename>
|
||||
<update>N</update>
|
||||
</value>
|
||||
</lookup>
|
||||
<cluster_schema/>
|
||||
<remotesteps>
|
||||
<input>
|
||||
</input>
|
||||
<output>
|
||||
</output>
|
||||
</remotesteps>
|
||||
<GUI>
|
||||
<xloc>192</xloc>
|
||||
<yloc>64</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
<step>
|
||||
<name>Inserir dados - Vitruvio</name>
|
||||
<type>InsertUpdate</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
@@ -718,14 +1129,14 @@
|
||||
</output>
|
||||
</remotesteps>
|
||||
<GUI>
|
||||
<xloc>400</xloc>
|
||||
<yloc>80</yloc>
|
||||
<xloc>608</xloc>
|
||||
<yloc>64</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
<step>
|
||||
<name>Table input</name>
|
||||
<type>TableInput</type>
|
||||
<name>Adicionar Constantes Falha</name>
|
||||
<type>Constant</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
@@ -734,94 +1145,32 @@
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<connection>GF - Consinco</connection>
|
||||
<sql>Select
|
||||
V.NROEMPRESA,
|
||||
(Select c.seqcategoria
|
||||
from map_categoria c
|
||||
inner join map_famdivcateg fc
|
||||
on fc.seqcategoria = c.seqcategoria
|
||||
where c.tipcategoria = 'M'
|
||||
and fc.status = 'A'
|
||||
and fc.seqfamilia = a.seqfamilia
|
||||
AND FC.NRODIVISAO = 2
|
||||
and c.nivelhierarquia = 1 and rownum = 1) chave_categoria_pai,
|
||||
(Select c.categoria
|
||||
from map_categoria c
|
||||
inner join map_famdivcateg fc
|
||||
on fc.seqcategoria = c.seqcategoria
|
||||
where c.tipcategoria = 'M'
|
||||
and fc.status = 'A'
|
||||
and fc.seqfamilia = a.seqfamilia
|
||||
AND FC.NRODIVISAO = 2
|
||||
and c.nivelhierarquia = 1 and rownum = 1) categoriapai,
|
||||
(Select c.seqcategoria
|
||||
from map_categoria c
|
||||
inner join map_famdivcateg fc
|
||||
on fc.seqcategoria = c.seqcategoria
|
||||
where c.tipcategoria = 'M'
|
||||
and fc.status = 'A'
|
||||
and fc.seqfamilia = a.seqfamilia
|
||||
AND FC.NRODIVISAO = 2
|
||||
and c.nivelhierarquia = 2 and rownum = 1) chave_categoria,
|
||||
(Select c.categoria
|
||||
from map_categoria c
|
||||
inner join map_famdivcateg fc
|
||||
on fc.seqcategoria = c.seqcategoria
|
||||
where c.tipcategoria = 'M'
|
||||
and fc.status = 'A'
|
||||
and fc.seqfamilia = a.seqfamilia
|
||||
AND FC.NRODIVISAO = 2
|
||||
and c.nivelhierarquia = 2 and rownum = 1) categoria,
|
||||
V.SEQPRODUTO,
|
||||
(Select desccompleta from map_produto where seqproduto = v.seqproduto) descricaoproduto,
|
||||
A.SEQFAMILIA,
|
||||
sum( round(( V.QTDITEM - V.QTDDEVOLITEM ) / K.QTDEMBALAGEM , 6) ) as QTDITEM,
|
||||
sum((( case when 'N' in ( 'S', 'V' ) then V.VLRITEMSEMDESC
|
||||
else V.VLRITEM
|
||||
end ) - ( V.VLRDEVOLITEM )) )
|
||||
as VLRITEM,
|
||||
sum(
|
||||
( ( Y.CMDIAVLRNF + Y.CMDIAIPI + Y.CMDIAICMSST + Y.CMDIADESPNF + Y.CMDIADESPFORANF - Y.CMDIADCTOFORANF ) *
|
||||
DECODE('S','N',1, NVL( a.propqtdprodutobase, 1) )
|
||||
- ( decode( Y.QTDVERBAVDA, 0, 0, Y.VLRVERBAVDA *
|
||||
DECODE('S','N',1, NVL( a.propqtdprodutobase, 1) ) / Y.QTDVDA ) ) )
|
||||
* ( V.QTDITEM - V.QTDDEVOLITEM ) )
|
||||
as CTOBRUTOVDA,
|
||||
trunc(sysdate,'MM') referencia
|
||||
from MRL_CUSTODIAFAM Y, MAXV_ABCDISTRIBBASE V, MAP_PRODUTO A, MAP_PRODUTO PB, MAP_FAMDIVISAO D, MAP_FAMFORNEC F, MAX_COMPRADOR O, MAP_FAMEMBALAGEM K, MAX_EMPRESA E, MAD_FAMSEGMENTO H, MAP_FAMEMBALAGEM K2, MAP_FAMEMBALAGEM K3
|
||||
where D.SEQFAMILIA = A.SEQFAMILIA
|
||||
and D.NRODIVISAO = 2
|
||||
and V.NROEMPRESA in ( 1,2,3,4,6,7,8,9,110,111,112,13,14,17 ,15)
|
||||
and V.SEQPRODUTO = A.SEQPRODUTO
|
||||
and V.SEQPRODUTOCUSTO = PB.SEQPRODUTO
|
||||
AND V.CODGERALOPER IN (502,515)
|
||||
and E.NROEMPRESA = V.NROEMPRESA
|
||||
and TRUNC(V.DTAVDA) between trunc(sysdate,'MM') and trunc(sysdate) - 1
|
||||
and Y.NROEMPRESA = nvl( E.NROEMPCUSTOABC, E.NROEMPRESA )
|
||||
and Y.DTAENTRADASAIDA = V.DTAVDA
|
||||
and K.SEQFAMILIA = A.SEQFAMILIA
|
||||
and K.QTDEMBALAGEM = H.PADRAOEMBVENDA
|
||||
and K2.SEQFAMILIA = D.SEQFAMILIA
|
||||
and K2.QTDEMBALAGEM = fpadraoembcompraprod(A.SEQPRODUTO, D.NRODIVISAO)
|
||||
and K3.SEQFAMILIA = D.SEQFAMILIA
|
||||
and K3.QTDEMBALAGEM = nvl(fpadraoembtransf( D.SEQFAMILIA, D.NRODIVISAO ),fPadraoEmbVenda( D.SEQFAMILIA, D.NRODIVISAO ))
|
||||
and F.SEQFAMILIA = D.SEQFAMILIA
|
||||
and F.PRINCIPAL = 'S'
|
||||
and D.SEQCOMPRADOR = O.SEQCOMPRADOR
|
||||
and Y.SEQFAMILIA = PB.SEQFAMILIA
|
||||
and H.SEQFAMILIA = A.SEQFAMILIA
|
||||
and H.NROSEGMENTO = V.NROSEGMENTO
|
||||
and DECODE(V.TIPTABELA, 'S', V.CGOACMCOMPRAVENDA, 'A', V.CGOACMCOMPRAVENDA, V.ACMCOMPRAVENDA) in ( 'S', 'I' )
|
||||
group by
|
||||
V.NROEMPRESA,
|
||||
V.SEQPRODUTO,
|
||||
A.SEQFAMILIA</sql>
|
||||
<limit>0</limit>
|
||||
<lookup/>
|
||||
<execute_each_row>N</execute_each_row>
|
||||
<variables_active>N</variables_active>
|
||||
<lazy_conversion_active>N</lazy_conversion_active>
|
||||
<fields>
|
||||
<field>
|
||||
<name>TIPO</name>
|
||||
<type>Number</type>
|
||||
<format/>
|
||||
<currency/>
|
||||
<decimal/>
|
||||
<group/>
|
||||
<nullif>1</nullif>
|
||||
<length>1</length>
|
||||
<precision>-1</precision>
|
||||
<set_empty_string>N</set_empty_string>
|
||||
</field>
|
||||
<field>
|
||||
<name>STATUS_FALHA</name>
|
||||
<type>Number</type>
|
||||
<format/>
|
||||
<currency/>
|
||||
<decimal/>
|
||||
<group/>
|
||||
<nullif>0</nullif>
|
||||
<length>1</length>
|
||||
<precision>-1</precision>
|
||||
<set_empty_string>N</set_empty_string>
|
||||
</field>
|
||||
</fields>
|
||||
<cluster_schema/>
|
||||
<remotesteps>
|
||||
<input>
|
||||
@@ -830,12 +1179,146 @@
|
||||
</output>
|
||||
</remotesteps>
|
||||
<GUI>
|
||||
<xloc>128</xloc>
|
||||
<yloc>80</yloc>
|
||||
<xloc>608</xloc>
|
||||
<yloc>176</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
<step>
|
||||
<name>Adicionar data falha</name>
|
||||
<type>SystemInfo</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<fields>
|
||||
<field>
|
||||
<name>data_falha</name>
|
||||
<type>system date (fixed)</type>
|
||||
</field>
|
||||
</fields>
|
||||
<cluster_schema/>
|
||||
<remotesteps>
|
||||
<input>
|
||||
</input>
|
||||
<output>
|
||||
</output>
|
||||
</remotesteps>
|
||||
<GUI>
|
||||
<xloc>608</xloc>
|
||||
<yloc>288</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
<step>
|
||||
<name>Adicionar Constantes Sucesso</name>
|
||||
<type>Constant</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<fields>
|
||||
<field>
|
||||
<name>TIPO</name>
|
||||
<type>Number</type>
|
||||
<format/>
|
||||
<currency/>
|
||||
<decimal/>
|
||||
<group/>
|
||||
<nullif>1</nullif>
|
||||
<length>1</length>
|
||||
<precision>-1</precision>
|
||||
<set_empty_string>N</set_empty_string>
|
||||
</field>
|
||||
<field>
|
||||
<name>STATUS_SUCESSO</name>
|
||||
<type>Number</type>
|
||||
<format/>
|
||||
<currency/>
|
||||
<decimal/>
|
||||
<group/>
|
||||
<nullif>2</nullif>
|
||||
<length>1</length>
|
||||
<precision>-1</precision>
|
||||
<set_empty_string>N</set_empty_string>
|
||||
</field>
|
||||
</fields>
|
||||
<cluster_schema/>
|
||||
<remotesteps>
|
||||
<input>
|
||||
</input>
|
||||
<output>
|
||||
</output>
|
||||
</remotesteps>
|
||||
<GUI>
|
||||
<xloc>752</xloc>
|
||||
<yloc>64</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
<step>
|
||||
<name>Adicionar data sucesso</name>
|
||||
<type>SystemInfo</type>
|
||||
<description/>
|
||||
<distribute>Y</distribute>
|
||||
<custom_distribution/>
|
||||
<copies>1</copies>
|
||||
<partitioning>
|
||||
<method>none</method>
|
||||
<schema_name/>
|
||||
</partitioning>
|
||||
<fields>
|
||||
<field>
|
||||
<name>data_sucesso</name>
|
||||
<type>system date (fixed)</type>
|
||||
</field>
|
||||
</fields>
|
||||
<cluster_schema/>
|
||||
<remotesteps>
|
||||
<input>
|
||||
</input>
|
||||
<output>
|
||||
</output>
|
||||
</remotesteps>
|
||||
<GUI>
|
||||
<xloc>912</xloc>
|
||||
<yloc>64</yloc>
|
||||
<draw>Y</draw>
|
||||
</GUI>
|
||||
</step>
|
||||
<step_error_handling>
|
||||
<error>
|
||||
<source_step>Atualizar Log 2</source_step>
|
||||
<target_step>Inserir dados - Vitruvio</target_step>
|
||||
<is_enabled>Y</is_enabled>
|
||||
<nr_valuename/>
|
||||
<descriptions_valuename/>
|
||||
<fields_valuename/>
|
||||
<codes_valuename/>
|
||||
<max_errors/>
|
||||
<max_pct_errors/>
|
||||
<min_pct_rows/>
|
||||
</error>
|
||||
<error>
|
||||
<source_step>Inserir dados - Vitruvio</source_step>
|
||||
<target_step>Adicionar Constantes Falha</target_step>
|
||||
<is_enabled>Y</is_enabled>
|
||||
<nr_valuename/>
|
||||
<descriptions_valuename/>
|
||||
<fields_valuename/>
|
||||
<codes_valuename/>
|
||||
<max_errors/>
|
||||
<max_pct_errors/>
|
||||
<min_pct_rows/>
|
||||
</error>
|
||||
</step_error_handling>
|
||||
<slave-step-copy-partition-distribution>
|
||||
</slave-step-copy-partition-distribution>
|
||||
|
||||
Reference in New Issue
Block a user