20240702@222013.2050 slm8psd6mug71uqc970g5mu4o7 Query : use flama_phc
20240702@222013.2090 slm8psd6mug71uqc970g5mu4o7 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240702@222013.2270 slm8psd6mug71uqc970g5mu4o7 Query : use flama_phc
20240702@222013.2300 slm8psd6mug71uqc970g5mu4o7 Query : select no, estab,szadrsdesc from szadrs where u_coddest=743
20240702@222013.3090 slm8psd6mug71uqc970g5mu4o7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20240702@222013.3210 slm8psd6mug71uqc970g5mu4o7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404489 and bi.ref ='324.1705.00.1' and bi.lordem =1
20240702@222013.6640 slm8psd6mug71uqc970g5mu4o7 Query : use flama_phc
20240702@222013.6680 slm8psd6mug71uqc970g5mu4o7 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240702@222013.6830 slm8psd6mug71uqc970g5mu4o7 Query : use flama_phc
20240702@222013.6860 slm8psd6mug71uqc970g5mu4o7 Query : select top 1 1 valor from td where td.ndoc = 39
20240702@222013.6980 slm8psd6mug71uqc970g5mu4o7 Query : use flama_phc
20240702@222013.7010 slm8psd6mug71uqc970g5mu4o7 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240702@222013.1510 tnuov8uskj7ti9vjsmn5tepi2n Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240702@222013.1531 tnuov8uskj7ti9vjsmn5tepi2n Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240702@222013.1550 tnuov8uskj7ti9vjsmn5tepi2n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='752';
20240702@222013.1591 tnuov8uskj7ti9vjsmn5tepi2n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='752';
20240702@222013.1613 tnuov8uskj7ti9vjsmn5tepi2n Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='752';
20240702@222013.1627 tnuov8uskj7ti9vjsmn5tepi2n Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='752';
20240702@222013.1645 tnuov8uskj7ti9vjsmn5tepi2n Query : use flama_phc
20240702@222013.1649 tnuov8uskj7ti9vjsmn5tepi2n Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240702@222013.1665 tnuov8uskj7ti9vjsmn5tepi2n Query : use flama_phc
20240702@222013.1669 tnuov8uskj7ti9vjsmn5tepi2n Query : select no, estab,szadrsdesc from szadrs where u_coddest=2307
20240702@222013.1746 tnuov8uskj7ti9vjsmn5tepi2n Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20240702@222013.1759 tnuov8uskj7ti9vjsmn5tepi2n Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404490 and bi.ref ='324.1705.00.1' and bi.lordem =1
20240702@222013.2102 tnuov8uskj7ti9vjsmn5tepi2n Query : use flama_phc
20240702@222013.2106 tnuov8uskj7ti9vjsmn5tepi2n Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240702@222013.2120 tnuov8uskj7ti9vjsmn5tepi2n Query : use flama_phc
20240702@222013.2123 tnuov8uskj7ti9vjsmn5tepi2n Query : select top 1 1 valor from td where td.ndoc = 39
20240702@222013.2136 tnuov8uskj7ti9vjsmn5tepi2n Query : use flama_phc
20240702@222013.2140 tnuov8uskj7ti9vjsmn5tepi2n Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240702@222013.2715 m0nspii1jtnr1qn44oengp10fc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240702@222013.2735 m0nspii1jtnr1qn44oengp10fc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240702@222013.2754 m0nspii1jtnr1qn44oengp10fc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='753';
20240702@222013.2799 m0nspii1jtnr1qn44oengp10fc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='753';
20240702@222013.2816 m0nspii1jtnr1qn44oengp10fc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='753';
20240702@222013.2831 m0nspii1jtnr1qn44oengp10fc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='753';
20240702@222013.2850 m0nspii1jtnr1qn44oengp10fc Query : use flama_phc
20240702@222013.2854 m0nspii1jtnr1qn44oengp10fc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240702@222013.2872 m0nspii1jtnr1qn44oengp10fc Query : use flama_phc
20240702@222013.2875 m0nspii1jtnr1qn44oengp10fc Query : select no, estab,szadrsdesc from szadrs where u_coddest=410
20240702@222013.2954 m0nspii1jtnr1qn44oengp10fc Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20240702@222013.2966 m0nspii1jtnr1qn44oengp10fc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404491 and bi.ref ='324.1705.00.1' and bi.lordem =1
20240702@222013.3573 m0nspii1jtnr1qn44oengp10fc Query : use flama_phc
20240702@222013.3577 m0nspii1jtnr1qn44oengp10fc Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240702@222013.3591 m0nspii1jtnr1qn44oengp10fc Query : use flama_phc
20240702@222013.3595 m0nspii1jtnr1qn44oengp10fc Query : select top 1 1 valor from td where td.ndoc = 39
20240702@222013.3606 m0nspii1jtnr1qn44oengp10fc Query : use flama_phc
20240702@222013.3609 m0nspii1jtnr1qn44oengp10fc Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240702@222013.4402 q4mnt8v9qmh7gt04envsjvstk7 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240702@222013.4514 q4mnt8v9qmh7gt04envsjvstk7 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240702@222013.4624 q4mnt8v9qmh7gt04envsjvstk7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='754';
20240702@222013.4670 q4mnt8v9qmh7gt04envsjvstk7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='754';
20240702@222013.4687 q4mnt8v9qmh7gt04envsjvstk7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='754';
20240702@222013.4700 q4mnt8v9qmh7gt04envsjvstk7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='754';
20240702@222013.4713 q4mnt8v9qmh7gt04envsjvstk7 Query : use flama_phc
20240702@222013.4717 q4mnt8v9qmh7gt04envsjvstk7 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240702@222013.4734 q4mnt8v9qmh7gt04envsjvstk7 Query : use flama_phc
20240702@222013.4737 q4mnt8v9qmh7gt04envsjvstk7 Query : select no, estab,szadrsdesc from szadrs where u_coddest=557
20240702@222013.4817 q4mnt8v9qmh7gt04envsjvstk7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20240702@222013.4827 q4mnt8v9qmh7gt04envsjvstk7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404492 and bi.ref ='324.1705.00.1' and bi.lordem =1
20240702@222013.5170 q4mnt8v9qmh7gt04envsjvstk7 Query : use flama_phc
20240702@222013.5176 q4mnt8v9qmh7gt04envsjvstk7 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240702@222013.5206 q4mnt8v9qmh7gt04envsjvstk7 Query : use flama_phc
20240702@222013.5209 q4mnt8v9qmh7gt04envsjvstk7 Query : select top 1 1 valor from td where td.ndoc = 39
20240702@222013.5219 q4mnt8v9qmh7gt04envsjvstk7 Query : use flama_phc
20240702@222013.5222 q4mnt8v9qmh7gt04envsjvstk7 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240702@222013.5744 fm47k090tdo7n03bcaktrg6bbg Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240702@222013.5759 fm47k090tdo7n03bcaktrg6bbg Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240702@222013.5776 fm47k090tdo7n03bcaktrg6bbg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='755';
20240702@222013.5823 fm47k090tdo7n03bcaktrg6bbg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='755';
20240702@222013.5841 fm47k090tdo7n03bcaktrg6bbg Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='755';
20240702@222013.5854 fm47k090tdo7n03bcaktrg6bbg Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='755';
20240702@222013.5871 fm47k090tdo7n03bcaktrg6bbg Query : use flama_phc
20240702@222013.5874 fm47k090tdo7n03bcaktrg6bbg Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240702@222013.5892 fm47k090tdo7n03bcaktrg6bbg Query : use flama_phc
20240702@222013.5896 fm47k090tdo7n03bcaktrg6bbg Query : select no, estab,szadrsdesc from szadrs where u_coddest=635
20240702@222013.5974 fm47k090tdo7n03bcaktrg6bbg Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20240702@222013.5987 fm47k090tdo7n03bcaktrg6bbg Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404493 and bi.ref ='324.1705.00.1' and bi.lordem =1
20240702@222013.6331 fm47k090tdo7n03bcaktrg6bbg Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20240702@222013.6343 fm47k090tdo7n03bcaktrg6bbg Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404493 and bi.ref ='324.4970.00.1' and bi.lordem =2
20240702@222013.6682 fm47k090tdo7n03bcaktrg6bbg Query : use flama_phc
20240702@222013.6686 fm47k090tdo7n03bcaktrg6bbg Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240702@222013.6702 fm47k090tdo7n03bcaktrg6bbg Query : use flama_phc
20240702@222013.6705 fm47k090tdo7n03bcaktrg6bbg Query : select top 1 1 valor from td where td.ndoc = 39
20240702@222013.6715 fm47k090tdo7n03bcaktrg6bbg Query : use flama_phc
20240702@222013.6718 fm47k090tdo7n03bcaktrg6bbg Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240702@222013.7944 j84ouio2psk03mc9oivupp5msi Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240702@222013.7958 j84ouio2psk03mc9oivupp5msi Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240702@222013.7975 j84ouio2psk03mc9oivupp5msi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='756';
20240702@222013.8014 j84ouio2psk03mc9oivupp5msi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='756';
20240702@222013.8030 j84ouio2psk03mc9oivupp5msi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='756';
20240702@222013.8042 j84ouio2psk03mc9oivupp5msi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='756';
20240702@222013.8054 j84ouio2psk03mc9oivupp5msi Query : use flama_phc
20240702@222013.8057 j84ouio2psk03mc9oivupp5msi Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240702@222013.8073 j84ouio2psk03mc9oivupp5msi Query : use flama_phc
20240702@222013.8077 j84ouio2psk03mc9oivupp5msi Query : select no, estab,szadrsdesc from szadrs where u_coddest=2945
20240702@222013.8282 j84ouio2psk03mc9oivupp5msi Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.681.00.01'
20240702@222013.8295 j84ouio2psk03mc9oivupp5msi Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404494 and bi.ref ='324.681.00.01' and bi.lordem =1
20240702@222013.8640 j84ouio2psk03mc9oivupp5msi Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240702@222013.8655 j84ouio2psk03mc9oivupp5msi Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404494 and bi.ref ='324.1824.00.1' and bi.lordem =2
20240702@222013.9044 j84ouio2psk03mc9oivupp5msi Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240702@222013.9198 j84ouio2psk03mc9oivupp5msi Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404494 and bi.ref ='324.1824.00.1' and bi.lordem =3
20240702@222013.9686 j84ouio2psk03mc9oivupp5msi Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240702@222013.9699 j84ouio2psk03mc9oivupp5msi Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404494 and bi.ref ='324.1816.00.1' and bi.lordem =4
20240702@222014.3500 j84ouio2psk03mc9oivupp5msi Query : use flama_phc
20240702@222014.3800 j84ouio2psk03mc9oivupp5msi Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240702@222014.5300 j84ouio2psk03mc9oivupp5msi Query : use flama_phc
20240702@222014.5600 j84ouio2psk03mc9oivupp5msi Query : select top 1 1 valor from td where td.ndoc = 39
20240702@222014.6800 j84ouio2psk03mc9oivupp5msi Query : use flama_phc
20240702@222014.7100 j84ouio2psk03mc9oivupp5msi Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240702@222014.5760 i8n80m8fs90hfht3ofthbh8h28 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240702@222014.5890 i8n80m8fs90hfht3ofthbh8h28 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240702@222014.6080 i8n80m8fs90hfht3ofthbh8h28 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='757';
20240702@222014.6490 i8n80m8fs90hfht3ofthbh8h28 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='757';
20240702@222014.6640 i8n80m8fs90hfht3ofthbh8h28 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='757';
20240702@222014.6780 i8n80m8fs90hfht3ofthbh8h28 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='757';
20240702@222014.6910 i8n80m8fs90hfht3ofthbh8h28 Query : use flama_phc
20240702@222014.6940 i8n80m8fs90hfht3ofthbh8h28 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240702@222014.7110 i8n80m8fs90hfht3ofthbh8h28 Query : use flama_phc
20240702@222014.7140 i8n80m8fs90hfht3ofthbh8h28 Query : select no, estab,szadrsdesc from szadrs where u_coddest=3004
20240702@222014.7890 i8n80m8fs90hfht3ofthbh8h28 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1879.00.1'
20240702@222014.9760 i8n80m8fs90hfht3ofthbh8h28 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404495 and bi.ref ='324.1879.00.1' and bi.lordem =1
20240702@222014.1307 i8n80m8fs90hfht3ofthbh8h28 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1879.00.1'
20240702@222014.1319 i8n80m8fs90hfht3ofthbh8h28 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404495 and bi.ref ='324.1879.00.1' and bi.lordem =1
20240702@222014.1327 i8n80m8fs90hfht3ofthbh8h28 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1837.00.1'
20240702@222014.1484 i8n80m8fs90hfht3ofthbh8h28 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404495 and bi.ref ='324.1837.00.1' and bi.lordem =2
20240702@222014.1814 i8n80m8fs90hfht3ofthbh8h28 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4906.00.1'
20240702@222014.1977 i8n80m8fs90hfht3ofthbh8h28 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404495 and bi.ref ='324.4906.00.1' and bi.lordem =3
20240702@222014.2316 i8n80m8fs90hfht3ofthbh8h28 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4211.00.1'
20240702@222014.2480 i8n80m8fs90hfht3ofthbh8h28 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404495 and bi.ref ='304.4211.00.1' and bi.lordem =4
20240702@222014.2869 i8n80m8fs90hfht3ofthbh8h28 Query : use flama_phc
20240702@222014.2874 i8n80m8fs90hfht3ofthbh8h28 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240702@222014.2892 i8n80m8fs90hfht3ofthbh8h28 Query : use flama_phc
20240702@222014.2895 i8n80m8fs90hfht3ofthbh8h28 Query : select top 1 1 valor from td where td.ndoc = 39
20240702@222014.2907 i8n80m8fs90hfht3ofthbh8h28 Query : use flama_phc
20240702@222014.2910 i8n80m8fs90hfht3ofthbh8h28 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240702@222014.3450 f0hkig34s8pbr305jpdpqcm7cs Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240702@222014.3464 f0hkig34s8pbr305jpdpqcm7cs Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240702@222014.3483 f0hkig34s8pbr305jpdpqcm7cs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='758';
20240702@222014.3527 f0hkig34s8pbr305jpdpqcm7cs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='758';
20240702@222014.3544 f0hkig34s8pbr305jpdpqcm7cs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='758';
20240702@222014.3557 f0hkig34s8pbr305jpdpqcm7cs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='758';
20240702@222014.3571 f0hkig34s8pbr305jpdpqcm7cs Query : use flama_phc
20240702@222014.3574 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240702@222014.3590 f0hkig34s8pbr305jpdpqcm7cs Query : use flama_phc
20240702@222014.3593 f0hkig34s8pbr305jpdpqcm7cs Query : select no, estab,szadrsdesc from szadrs where u_coddest=8825
20240702@222014.3692 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4980.00.1'
20240702@222014.3861 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4906.00.1'
20240702@222014.3872 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4751.00.1'
20240702@222014.4030 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1716.00.1'
20240702@222014.4207 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.966.00.01'
20240702@222014.4356 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.945.00.01'
20240702@222014.4511 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.727.00.01'
20240702@222014.4662 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1608.00.1'
20240702@222014.4812 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1643.00.1'
20240702@222014.4974 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1690.00.1'
20240702@222014.4985 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1690.00.1'
20240702@222014.4995 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '325.16901.001'
20240702@222014.5153 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5501.00.1'
20240702@222014.5163 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.691.00.01'
20240702@222014.5327 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.691.00.01'
20240702@222014.5338 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240702@222014.5499 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.642.00.01'
20240702@222014.5511 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.642.00.01'
20240702@222014.5521 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1831.00.2'
20240702@222014.5532 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1832.00.2'
20240702@222014.5688 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240702@222014.5885 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8253.00.1'
20240702@222014.6101 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4751.00.1'
20240702@222014.6373 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.422.00.07'
20240702@222014.6388 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.421.00.04'
20240702@222014.6400 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2031.00.1'
20240702@222014.6562 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1406.00.1'
20240702@222014.6574 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1461.00.1'
20240702@222014.6920 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1461.00.1'
20240702@222014.6933 f0hkig34s8pbr305jpdpqcm7cs Query : use flama_phc
20240702@222014.6936 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240702@222014.6950 f0hkig34s8pbr305jpdpqcm7cs Query : use flama_phc
20240702@222014.6953 f0hkig34s8pbr305jpdpqcm7cs Query : select top 1 1 valor from td where td.ndoc = 39
20240702@222014.6964 f0hkig34s8pbr305jpdpqcm7cs Query : use flama_phc
20240702@222014.6967 f0hkig34s8pbr305jpdpqcm7cs Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240702@223609.5993 52kk5r30et2k0p8uac56o2rb3a Query : use flama_phc
20240702@223609.5998 52kk5r30et2k0p8uac56o2rb3a Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240702@223609.6016 52kk5r30et2k0p8uac56o2rb3a Query : use flama_phc
20240702@223609.6019 52kk5r30et2k0p8uac56o2rb3a Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240702@231909.4270 jbnitncqs69nlr45tr8iqk94di Query : use flama_phc
20240702@231909.4330 jbnitncqs69nlr45tr8iqk94di Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240702@231909.4530 jbnitncqs69nlr45tr8iqk94di Query : use flama_phc
20240702@231909.4570 jbnitncqs69nlr45tr8iqk94di Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240702@233609.3390 q33suq7h72eali02umuif9t5c4 Query : use flama_phc
20240702@233609.3480 q33suq7h72eali02umuif9t5c4 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240702@233609.3730 q33suq7h72eali02umuif9t5c4 Query : use flama_phc
20240702@233609.3770 q33suq7h72eali02umuif9t5c4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@071917.2174 juth26n5vihmlm67ivdbonlpih Query : use flama_phc
20240703@071917.2180 juth26n5vihmlm67ivdbonlpih Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@071917.2239 juth26n5vihmlm67ivdbonlpih Query : use flama_phc
20240703@071917.2243 juth26n5vihmlm67ivdbonlpih Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@073631.5488 u1h82ihc3923nmigr3jrc887t4 Query : use flama_phc
20240703@073631.5493 u1h82ihc3923nmigr3jrc887t4 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@073631.5551 u1h82ihc3923nmigr3jrc887t4 Query : use flama_phc
20240703@073631.5554 u1h82ihc3923nmigr3jrc887t4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@080412.4270 vgme77citfq7foeoe910gjultf Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240703@080412.4620 vgme77citfq7foeoe910gjultf Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240703@080412.5950 vgme77citfq7foeoe910gjultf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='759';
20240703@080412.7590 vgme77citfq7foeoe910gjultf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='759';
20240703@080412.7980 vgme77citfq7foeoe910gjultf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='759';
20240703@080412.8140 vgme77citfq7foeoe910gjultf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='759';
20240703@080412.8300 vgme77citfq7foeoe910gjultf Query : use flama_phc
20240703@080412.8330 vgme77citfq7foeoe910gjultf Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240703@080412.8920 vgme77citfq7foeoe910gjultf Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9075.00.1'
20240703@080412.1065 vgme77citfq7foeoe910gjultf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =002 and bo.boano =2024 and bo.obrano = 2400212 and bi.ref ='328.9075.00.1' and bi.lordem =150000
20240703@080412.1871 vgme77citfq7foeoe910gjultf Query : select bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.obranome ,bi.bostamp ,bo.moeda ,bi.vumoeda ,isnull(bi.vumoeda/nullif(bi.edebito,0),1) cambio ,bi.tabiva from bi inner join bo on bi.bostamp = bo.bostamp where bi.bistamp = 'cps24022741246,565000006 ' 
20240703@080412.2764 vgme77citfq7foeoe910gjultf Query : use flama_phc
20240703@080412.2888 vgme77citfq7foeoe910gjultf Query : select top 1 1 valor from ts where ts.ndos = 61
20240703@080412.3099 vgme77citfq7foeoe910gjultf Query : use flama_phc
20240703@080412.3103 vgme77citfq7foeoe910gjultf Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240703@080412.3158 vgme77citfq7foeoe910gjultf Query : select top 1 assinadoc issigned ,ts.stocks ,ts.bdempresas origin ,case when (cmstocks between 1 and 50 or cm2stocks between 1 and 50 ) then 1 else 0 end entrada ,case when cmstocks>50 or (cm2stocks>50 and trfa =1) then 1 else 0 end saida ,stneg validatestock ,tiposaft ,veserie useserialnumber ,foserie assetin ,ftserie assetout ,veserie assets ,trfarm assetstransfer ,grelha usegridfields from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos =61
20240703@080412.3911 vgme77citfq7foeoe910gjultf Query : use flama_phc
20240703@080412.3994 vgme77citfq7foeoe910gjultf Query : select top 1 ~inactivo valor from fl where no = '202530' and estab = 00 order by inactivo desc
20240703@080412.4823 vgme77citfq7foeoe910gjultf Query : use flama_phc
20240703@080412.4904 vgme77citfq7foeoe910gjultf Query : select 1 valor from ts where ndos = 61
20240703@080412.5781 vgme77citfq7foeoe910gjultf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@080412.6197 vgme77citfq7foeoe910gjultf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240703@080412.6262 vgme77citfq7foeoe910gjultf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@080412.6278 vgme77citfq7foeoe910gjultf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240703@080412.6287 vgme77citfq7foeoe910gjultf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@080412.6301 vgme77citfq7foeoe910gjultf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240703@080412.6308 vgme77citfq7foeoe910gjultf Query : select top 1 ts2.manternumero, ts.tiposaft, ts.idserie,ts.nmdos,ts.bdempresas from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos = 61
20240703@080412.6463 vgme77citfq7foeoe910gjultf Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240703@080412.6590 vgme77citfq7foeoe910gjultf Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240703@080412.6607 vgme77citfq7foeoe910gjultf Query : use flama_phc
20240703@080412.6610 vgme77citfq7foeoe910gjultf Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202530' and estab=00
20240703@080412.6706 vgme77citfq7foeoe910gjultf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@080412.6722 vgme77citfq7foeoe910gjultf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240703@080412.6754 vgme77citfq7foeoe910gjultf Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6684f188386684f7eca1',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240703@080412.6827 vgme77citfq7foeoe910gjultf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@080412.6842 vgme77citfq7foeoe910gjultf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240703@080412.6849 vgme77citfq7foeoe910gjultf Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6684f188386684f7eca1','--','bo',7.7918670747704416265 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240703@080412.7133 vgme77citfq7foeoe910gjultf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@080412.7161 vgme77citfq7foeoe910gjultf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240703@080412.7172 vgme77citfq7foeoe910gjultf Query : insert into bo (bostamp, nmdos, dataobra, ndos, obrano, no, estab, nome, ncont, morada, local, codpost, moeda, boano, memissao,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6684f188386684f7eca1','guia r. fornecedor','2024-07-03',61,2401929,?,?,?,?,?,?,?,?,2024, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240703@080412.8119 vgme77citfq7foeoe910gjultf Query : use flama_phc
20240703@080412.8123 vgme77citfq7foeoe910gjultf Query : select st.usalote valor from st where st.ref = '328.9075.00.1'
20240703@080412.8281 vgme77citfq7foeoe910gjultf Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9075.00.1'
20240703@080412.8454 vgme77citfq7foeoe910gjultf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@080412.8469 vgme77citfq7foeoe910gjultf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240703@080412.8483 vgme77citfq7foeoe910gjultf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@080412.8496 vgme77citfq7foeoe910gjultf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240703@080412.8504 vgme77citfq7foeoe910gjultf Query : select sestamp valor from se where ref ='328.9075.00.1' and lote = 'r2400212150a'
20240703@080412.8564 vgme77citfq7foeoe910gjultf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@080412.8577 vgme77citfq7foeoe910gjultf Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240703@080412.8585 vgme77citfq7foeoe910gjultf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@080412.8599 vgme77citfq7foeoe910gjultf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240703@080412.8606 vgme77citfq7foeoe910gjultf Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6684f987626684f7ecd1',?,?,'20240703',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240703@080412.8694 vgme77citfq7foeoe910gjultf Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240703@080412.8744 vgme77citfq7foeoe910gjultf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@080412.8760 vgme77citfq7foeoe910gjultf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240703@080412.8768 vgme77citfq7foeoe910gjultf Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6684f456486684f7ecd5','aut6684f188386684f7eca1',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from bo bo where bo.bostamp = 'aut6684f188386684f7eca1'
20240703@080412.8977 vgme77citfq7foeoe910gjultf Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@080412.8994 vgme77citfq7foeoe910gjultf Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240703@080412.9007 vgme77citfq7foeoe910gjultf Query : insert into bi (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,obistamp ,stipo) select 'aut6684f456486684f7ecd5',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 250, 250*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,68.61,68.61*200.48,68.61,68.61*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,68.61*250,68.61*250*200.48 ,.000000,.000000*200.48 ,.000000,.000000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,68.61,68.61*200.48,68.61*250,68.61*250*200.48,'cps24022741246,565000006 ',534.6,534.6*250,534.6,534.6*250,?,?,?,4 from bo bo where bo.bostamp = 'aut6684f188386684f7eca1'
20240703@080413.1746 vgme77citfq7foeoe910gjultf Query : use flama_phc
20240703@080413.1752 vgme77citfq7foeoe910gjultf Query : declare @bostamp varchar(25) = 'aut6684f188386684f7eca1' ,@bistamp varchar(25) = '' update bi set tecoval = qtt * ecoval ,etecoval = qtt * eecoval ,tecoval2 = qtt * ecoval2 ,etecoval2 = qtt * eecoval2 where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end -- se tiver classificação e não for normal, não calcula nada update bi set ttdeb = 0 ,ettdeb = 0 ,ttmoeda = 0 where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and bi.classifc <> '' and bi.classifc <> 'normal' -- no caso normal com moeda euro if exists ( select 1 from bo cross apply ( select valor moeda from para1 where descricao = 'ge_pteoueuro' ) par where bo.bostamp = @bostamp and bo.moeda = par.moeda ) begin -- sem ecovalores update bi set ettdeb = round(bi.qtt * ((bi.edebito * (1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100))), 6) ,ttdeb = round(bi.qtt * ((bi.debito * (1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100))), 6) ,ttmoeda = 0 from bi inner join bo on bi.bostamp = bo.bostamp where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) and bi.econotcalc = 1 -- com ecovalores update bi set ettdeb = round(bi.qtt * ( ( bi.edebito + ( iif(p.st_econotdesc = 1, - bi.eecoval2, bi.eecoval) * ( 1 + iif(bi.ivaincl = 1 and tiva.taxa <> 0, tiva.taxa / 100, 0) ) ) ) * (1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) ), 6) + ( bi.qtt * iif(p.st_econotdesc = 1, (bi.eecoval + bi.eecoval2) * ( 1 + iif(bi.ivaincl = 1 and tiva.taxa <> 0, tiva.taxa / 100, 0) ), 0) ) ,ttdeb = round(bi.qtt * ( ( bi.debito + ( iif(p.st_econotdesc = 1, - bi.ecoval2, bi.ecoval) * ( 1 + iif(bi.ivaincl = 1 and tiva.taxa <> 0, tiva.taxa / 100, 0) ) ) ) * (1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) ), 6) + ( bi.qtt * iif(p.st_econotdesc = 1, (bi.ecoval + bi.ecoval2) * ( 1 + iif(bi.ivaincl = 1 and tiva.taxa <> 0, tiva.taxa / 100, 0) ), 0) ) ,ttmoeda = 0 from bi inner join bo on bi.bostamp = bo.bostamp left join st on bi.ref = st.ref left join taxasiva tiva on bi.tabiva = tiva.codigo cross apply ( select max(valor) st_econotdesc from ( select case when valor = 's' then 1 else 0 end valor from para1 where descricao = 'st_econotdesc' union all select 0 ) a ) p where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) and bi.econotcalc = 0 --acrescenta os descontos em valor, caso existam: update bi set ettdeb = round(bi.ettdeb - (bi.qtt * bi.evaldesc), 2) ,ttdeb = round(bi.ttdeb - (bi.qtt * bi.valdesc), 2) ,ttmoeda = 0 from bi where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) and bi.valdesc <> 0 end else begin update bi set ttmoeda = round((1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) * bi.qtt * bi.vumoeda, 2) ,ettdeb = case when bo2.cambio <> 0 then round((round((1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) * bi.qtt * bi.vumoeda, 2)) / bo2.cambio, 2) else 0 end ,edebito = case when bi.qtt = 0 then 0 else round(abs(( case when bo2.cambio <> 0 then round((round((1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) * bi.qtt * bi.vumoeda, 2)) / bo2.cambio, 2) else 0 end ) / (1 - bi.desconto / 100) / (1 - bi.desc2 / 100) / (1 - bi.desc3 / 100) / (1 - bi.desc4 / 100) / (1 - bi.desc5 / 100) / (1 - bi.desc6 / 100) / bi.qtt), 2) end ,debito = case when bi.qtt = 0 then 0 else round(abs(( case when bo2.cambio <> 0 then round((round((1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) * bi.qtt * bi.vumoeda, 2)) / bo2.cambio, 2) else 0 end ) / (1 - bi.desconto / 100) / (1 - bi.desc2 / 100) / (1 - bi.desc3 / 100) / (1 - bi.desc4 / 100) / (1 - bi.desc5 / 100) / (1 - bi.desc6 / 100) / bi.qtt), 2) end * 200.482 from bi inner join bo2 on bi.bostamp = bo2.bo2stamp where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) update bi set ttdeb = round(bi.ttdeb - (bi.qtt * bi.valdesc), 2) ,ettdeb = round(bi.ettdeb - (bi.qtt * bi.evaldesc), 0) ,debito = round(bi.debito - (bi.qtt * bi.valdesc), 2) ,edebito = round(bi.edebito - (bi.qtt * bi.evaldesc), 2) where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) and bi.valdesc <> 0 end 
20240703@080413.4091 vgme77citfq7foeoe910gjultf Query : use flama_phc
20240703@080413.4096 vgme77citfq7foeoe910gjultf Query : select 1 valor from bo where bo.bostamp = 'aut6684f188386684f7eca1'
20240703@080413.4222 vgme77citfq7foeoe910gjultf Query : declare @errno int ,@errmsg varchar(255) ,@prod bit ,@nrdec numeric(10, 0) ,@totaldeb numeric(18, 5) ,@etotaldeb numeric(19, 6) ,@total numeric(18, 5) ,@etotal numeric(19, 6) ,@custo numeric(18, 5) ,@ecusto numeric(19, 6) ,@bo_1iliq numeric(19, 6) ,@bo_2iliq numeric(19, 6) ,@base1 numeric(19, 6) ,@base2 numeric(19, 6) ,@moetotal numeric(13, 3) ,@smoe1 numeric(13, 3) ,@smoe2 numeric(13, 3) ,@smoe3 numeric(13, 3) ,@smoe4 numeric(13, 3) ,@bo11_bins numeric(18, 5) ,@bo21_bins numeric(18, 5) ,@bo31_bins numeric(18, 5) ,@bo41_bins numeric(18, 5) ,@bo51_bins numeric(18, 5) ,@bo61_bins numeric(18, 5) ,@bo71_bins numeric(18, 5) ,@bo81_bins numeric(18, 5) ,@bo91_bins numeric(18, 5) ,@bo12_bins numeric(18, 5) ,@bo22_bins numeric(18, 5) ,@bo32_bins numeric(18, 5) ,@bo42_bins numeric(18, 5) ,@bo52_bins numeric(18, 5) ,@bo62_bins numeric(18, 5) ,@bo72_bins numeric(18, 5) ,@bo82_bins numeric(18, 5) ,@bo92_bins numeric(18, 5) ,@ebo11_bins numeric(19, 6) ,@ebo21_bins numeric(19, 6) ,@ebo31_bins numeric(19, 6) ,@ebo41_bins numeric(19, 6) ,@ebo51_bins numeric(19, 6) ,@ebo61_bins numeric(19, 6) ,@ebo71_bins numeric(18, 5) ,@ebo81_bins numeric(18, 5) ,@ebo91_bins numeric(18, 5) ,@ebo12_bins numeric(19, 6) ,@ebo22_bins numeric(19, 6) ,@ebo32_bins numeric(19, 6) ,@ebo42_bins numeric(19, 6) ,@ebo52_bins numeric(19, 6) ,@ebo62_bins numeric(19, 6) ,@ebo72_bins numeric(18, 5) ,@ebo82_bins numeric(18, 5) ,@ebo92_bins numeric(18, 5) ,@bo11_iva numeric(18, 5) ,@bo21_iva numeric(18, 5) ,@bo31_iva numeric(18, 5) ,@bo41_iva numeric(18, 5) ,@bo51_iva numeric(18, 5) ,@bo61_iva numeric(18, 5) ,@bo71_iva numeric(18, 5) ,@bo81_iva numeric(18, 5) ,@bo91_iva numeric(18, 5) ,@bo12_iva numeric(18, 5) ,@bo22_iva numeric(18, 5) ,@bo32_iva numeric(18, 5) ,@bo42_iva numeric(18, 5) ,@bo52_iva numeric(18, 5) ,@bo62_iva numeric(18, 5) ,@bo72_iva numeric(18, 5) ,@bo82_iva numeric(18, 5) ,@bo92_iva numeric(18, 5) ,@ebo11_iva numeric(19, 6) ,@ebo21_iva numeric(19, 6) ,@ebo31_iva numeric(19, 6) ,@ebo41_iva numeric(19, 6) ,@ebo51_iva numeric(19, 6) ,@ebo61_iva numeric(19, 6) ,@ebo71_iva numeric(18, 5) ,@ebo81_iva numeric(18, 5) ,@ebo91_iva numeric(18, 5) ,@ebo12_iva numeric(19, 6) ,@ebo22_iva numeric(19, 6) ,@ebo32_iva numeric(19, 6) ,@ebo42_iva numeric(19, 6) ,@ebo52_iva numeric(19, 6) ,@ebo62_iva numeric(19, 6) ,@ebo72_iva numeric(18, 5) ,@ebo82_iva numeric(18, 5) ,@ebo92_iva numeric(18, 5) ,@esdeb1 numeric(19, 6) ,@esdeb2 numeric(19, 6) ,@esdeb3 numeric(19, 6) ,@esdeb4 numeric(19, 6) ,@sdeb1 numeric(18, 5) ,@sdeb2 numeric(18, 5) ,@sdeb3 numeric(18, 5) ,@sdeb4 numeric(18, 5) ,@estot1 numeric(19, 6) ,@estot2 numeric(19, 6) ,@estot3 numeric(19, 6) ,@estot4 numeric(19, 6) ,@stot1 numeric(18, 5) ,@stot2 numeric(18, 5) ,@stot3 numeric(18, 5) ,@stot4 numeric(18, 5) ,@ebo_1tvall numeric(19, 6) ,@ebo_2tvall numeric(19, 6) ,@bo_1tvall numeric(18, 5) ,@bo_2tvall numeric(18, 5) ,@ebo_totp1 numeric(19, 6) ,@ebo_totp2 numeric(19, 6) ,@bo_totp1 numeric(18, 5) ,@bo_totp2 numeric(18, 5) ,@sqtt11 numeric(13, 3) ,@sqtt21 numeric(13, 3) ,@sqtt12 numeric(13, 3) ,@sqtt22 numeric(13, 3) ,@sqtt13 numeric(13, 3) ,@sqtt23 numeric(13, 3) ,@sqtt14 numeric(13, 3) ,@sqtt24 numeric(13, 3) ,@userinis varchar (30) ,@mybostamp char(25) = 'aut6684f188386684f7eca1' declare @totaisiva table ( bostamp varchar (25), codigo numeric(1), taxa numeric (5,2), ebaseinc numeric (19,6), baseinc numeric (18,5), evalor numeric (19,6), valor numeric (18,5) ) set @prod = ( select ts.producao from bo(nolock) inner join ts(nolock) on bo.ndos = ts.ndos and bo.bostamp = @mybostamp ) set @nrdec = ( select convert(numeric(10, 0), valor) from para1(nolock) where descricao = 'de_euro' ) --set @prod = 0 --set @nrdec = 2 select @ecusto = sum(bi.epcusto * bi.qtt) ,@custo = sum(bi.pcusto * bi.qtt) ,@bo11_bins = sum(case when bi.tabiva = 1 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo21_bins = sum(case when bi.tabiva = 2 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo31_bins = sum(case when bi.tabiva = 3 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo41_bins = sum(case when bi.tabiva = 4 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo51_bins = sum(case when bi.tabiva = 5 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo61_bins = sum(case when bi.tabiva = 6 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo71_bins = sum(case when bi.tabiva = 7 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo81_bins = sum(case when bi.tabiva = 8 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo91_bins = sum(case when bi.tabiva = 9 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo12_bins = sum(case when bi.tabiva = 1 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo22_bins = sum(case when bi.tabiva = 2 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo32_bins = sum(case when bi.tabiva = 3 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo42_bins = sum(case when bi.tabiva = 4 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo52_bins = sum(case when bi.tabiva = 5 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo62_bins = sum(case when bi.tabiva = 6 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo72_bins = sum(case when bi.tabiva = 7 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo82_bins = sum(case when bi.tabiva = 8 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo92_bins = sum(case when bi.tabiva = 9 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo11_bins = sum(case when bi.tabiva = 1 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo21_bins = sum(case when bi.tabiva = 2 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo31_bins = sum(case when bi.tabiva = 3 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo41_bins = sum(case when bi.tabiva = 4 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo51_bins = sum(case when bi.tabiva = 5 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo61_bins = sum(case when bi.tabiva = 6 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo71_bins = sum(case when bi.tabiva = 7 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo81_bins = sum(case when bi.tabiva = 8 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo91_bins = sum(case when bi.tabiva = 9 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo12_bins = sum(case when bi.tabiva = 1 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo22_bins = sum(case when bi.tabiva = 2 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo32_bins = sum(case when bi.tabiva = 3 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo42_bins = sum(case when bi.tabiva = 4 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo52_bins = sum(case when bi.tabiva = 5 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo62_bins = sum(case when bi.tabiva = 6 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo72_bins = sum(case when bi.tabiva = 7 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo82_bins = sum(case when bi.tabiva = 8 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo92_bins = sum(case when bi.tabiva = 9 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo_1iliq = round(sum(bi.qtt * bi.epu), @nrdec) ,@bo_2iliq = round(sum(bi.ettdeb), @nrdec) ,@bo11_iva = sum(case when bi.tabiva = 1 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo12_iva = sum(case when bi.tabiva = 1 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo21_iva = sum(case when bi.tabiva = 2 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo22_iva = sum(case when bi.tabiva = 2 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo31_iva = sum(case when bi.tabiva = 3 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo32_iva = sum(case when bi.tabiva = 3 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo41_iva = sum(case when bi.tabiva = 4 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo42_iva = sum(case when bi.tabiva = 4 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo51_iva = sum(case when bi.tabiva = 5 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo52_iva = sum(case when bi.tabiva = 5 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo61_iva = sum(case when bi.tabiva = 6 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo62_iva = sum(case when bi.tabiva = 6 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo71_iva = sum(case when bi.tabiva = 7 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo72_iva = sum(case when bi.tabiva = 7 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo81_iva = sum(case when bi.tabiva = 8 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo82_iva = sum(case when bi.tabiva = 8 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo91_iva = sum(case when bi.tabiva = 9 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo92_iva = sum(case when bi.tabiva = 9 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo11_iva = sum(case when bi.tabiva = 1 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo12_iva = sum(case when bi.tabiva = 1 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo21_iva = sum(case when bi.tabiva = 2 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo22_iva = sum(case when bi.tabiva = 2 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo31_iva = sum(case when bi.tabiva = 3 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo32_iva = sum(case when bi.tabiva = 3 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo41_iva = sum(case when bi.tabiva = 4 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo42_iva = sum(case when bi.tabiva = 4 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo51_iva = sum(case when bi.tabiva = 5 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo52_iva = sum(case when bi.tabiva = 5 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo61_iva = sum(case when bi.tabiva = 6 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo62_iva = sum(case when bi.tabiva = 6 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo71_iva = sum(case when bi.tabiva = 7 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo72_iva = sum(case when bi.tabiva = 7 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo81_iva = sum(case when bi.tabiva = 8 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo82_iva = sum(case when bi.tabiva = 8 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo91_iva = sum(case when bi.tabiva = 9 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else bi.ettdeb - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo92_iva = sum(case when bi.tabiva = 9 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@esdeb1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.ettdeb else bi.ettdeb - round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@esdeb2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.ettdeb else bi.ettdeb - round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@esdeb3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.ettdeb else bi.ettdeb - round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@esdeb4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) * bi.iva / 100, @nrdec) end else 0 end) ,@sdeb1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.ttdeb else bi.ttdeb - round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@sdeb2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.ttdeb else bi.ttdeb - round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@sdeb3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.ttdeb else bi.ttdeb - round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@sdeb4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) * bi.iva / 100, @nrdec) end else 0 end) ,@smoe1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.ttmoeda else round(bi.ttmoeda / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@smoe2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.ttmoeda else round(bi.ttmoeda / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@smoe3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.ttmoeda else round(bi.ttmoeda / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@smoe4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.ttmoeda else round(bi.ttmoeda / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@estot1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@estot2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@estot3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@estot4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@stot1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@stot2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@stot3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@stot4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@total = @stot1 + @stot2 + @stot3 + @stot4 ,@etotal = @estot1 + @estot2 + @estot3 + @estot4 ,@totaldeb = @sdeb1 + @sdeb2 + @sdeb3 + @sdeb4 ,@etotaldeb = @esdeb1 + @esdeb2 + @esdeb3 + @esdeb4 ,@moetotal = @smoe1 + @smoe2 + @smoe3 + @smoe4 ,@ebo_1tvall = @ebo11_bins + @ebo21_bins + @ebo31_bins + @ebo41_bins + @ebo51_bins + @ebo61_bins + @ebo71_bins + @ebo81_bins + @ebo91_bins ,@ebo_2tvall = @ebo12_bins + @ebo22_bins + @ebo32_bins + @ebo42_bins + @ebo52_bins + @ebo62_bins + @ebo72_bins + @ebo82_bins + @ebo92_bins ,@bo_1tvall = @bo11_bins + @bo21_bins + @bo31_bins + @bo41_bins + @bo51_bins + @bo61_bins + @bo71_bins + @bo81_bins + @bo91_bins ,@bo_2tvall = @bo12_bins + @bo22_bins + @bo32_bins + @bo42_bins + @bo52_bins + @bo62_bins + @bo72_bins + @bo82_bins + @bo92_bins ,@ebo_totp1 = sum(case when bi.ivaincl = 0 then (bi.epu * bi.qtt) else round((bi.epu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end) ,@ebo_totp2 = sum(case when bi.ivaincl = 0 then (bi.edebito * bi.qtt) else round((bi.edebito * bi.qtt) / (1 + bi.iva / 100), @nrdec) end) ,@bo_totp1 = sum(case when bi.ivaincl = 0 then (bi.pu * bi.qtt) else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end) ,@bo_totp2 = sum(case when bi.ivaincl = 0 then (bi.debito * bi.qtt) else round((bi.debito * bi.qtt) / (1 + bi.iva / 100), @nrdec) end) ,@sqtt11 = sum(case when bi.stipo = 1 then bi.qtt else 0 end) ,@sqtt21 = sum(case when bi.stipo = 1 then bi.qtt else 0 end) ,@sqtt12 = sum(case when bi.stipo = 2 then bi.qtt else 0 end) ,@sqtt22 = sum(case when bi.stipo = 2 then bi.qtt else 0 end) ,@sqtt13 = sum(case when bi.stipo = 3 then bi.qtt else 0 end) ,@sqtt23 = sum(case when bi.stipo = 3 then bi.qtt else 0 end) ,@sqtt14 = sum(case when bi.stipo = 4 then bi.qtt else 0 end) ,@sqtt24 = sum(case when bi.stipo = 5 then bi.qtt else 0 end) from bi(nolock) where bi.bostamp = @mybostamp and bi.producao = case when @prod = 1 then 1 else bi.producao end and bi.composto = 0 and bi.qtt <> 0 update bo set bo.totaldeb = isnull(@totaldeb, 0) ,bo.total = isnull(@total, 0) ,bo.etotaldeb = isnull(@etotaldeb, 0) ,bo.moetotal = isnull(@moetotal, 0) ,bo.etotal = isnull(@etotal, 0) ,bo.ecusto = isnull(@ecusto, 0) ,bo.custo = isnull(@custo, 0) ,bo.bo11_bins = isnull(@bo11_bins, 0) ,bo.bo12_bins = isnull(@bo12_bins, 0) ,bo.bo21_bins = isnull(@bo21_bins, 0) ,bo.bo22_bins = isnull(@bo22_bins, 0) ,bo.bo31_bins = isnull(@bo31_bins, 0) ,bo.bo32_bins = isnull(@bo32_bins, 0) ,bo.bo41_bins = isnull(@bo41_bins, 0) ,bo.bo42_bins = isnull(@bo42_bins, 0) ,bo.bo51_bins = isnull(@bo51_bins, 0) ,bo.bo52_bins = isnull(@bo52_bins, 0) ,bo.bo61_bins = isnull(@bo61_bins, 0) ,bo.bo62_bins = isnull(@bo62_bins, 0) ,bo.ebo11_bins = isnull(@ebo11_bins, 0) ,bo.ebo12_bins = isnull(@ebo12_bins, 0) ,bo.ebo21_bins = isnull(@ebo21_bins, 0) ,bo.ebo22_bins = isnull(@ebo22_bins, 0) ,bo.ebo31_bins = isnull(@ebo31_bins, 0) ,bo.ebo32_bins = isnull(@ebo32_bins, 0) ,bo.ebo41_bins = isnull(@ebo41_bins, 0) ,bo.ebo42_bins = isnull(@ebo42_bins, 0) ,bo.ebo51_bins = isnull(@ebo51_bins, 0) ,bo.ebo52_bins = isnull(@ebo52_bins, 0) ,bo.ebo61_bins = isnull(@ebo61_bins, 0) ,bo.ebo62_bins = isnull(@ebo62_bins, 0) ,bo.bo11_iva = isnull(@bo11_iva, 0) ,bo.bo12_iva = isnull(@bo12_iva, 0) ,bo.bo21_iva = isnull(@bo21_iva, 0) ,bo.bo22_iva = isnull(@bo22_iva, 0) ,bo.bo31_iva = isnull(@bo31_iva, 0) ,bo.bo32_iva = isnull(@bo32_iva, 0) ,bo.bo41_iva = isnull(@bo41_iva, 0) ,bo.bo42_iva = isnull(@bo42_iva, 0) ,bo.bo51_iva = isnull(@bo51_iva, 0) ,bo.bo52_iva = isnull(@bo52_iva, 0) ,bo.bo61_iva = isnull(@bo61_iva, 0) ,bo.bo62_iva = isnull(@bo62_iva, 0) ,bo.ebo11_iva = isnull(@ebo11_iva, 0) ,bo.ebo12_iva = isnull(@ebo12_iva, 0) ,bo.ebo21_iva = isnull(@ebo21_iva, 0) ,bo.ebo22_iva = isnull(@ebo22_iva, 0) ,bo.ebo31_iva = isnull(@ebo31_iva, 0) ,bo.ebo32_iva = isnull(@ebo32_iva, 0) ,bo.ebo41_iva = isnull(@ebo41_iva, 0) ,bo.ebo42_iva = isnull(@ebo42_iva, 0) ,bo.ebo51_iva = isnull(@ebo51_iva, 0) ,bo.ebo52_iva = isnull(@ebo52_iva, 0) ,bo.ebo61_iva = isnull(@ebo61_iva, 0) ,bo.ebo62_iva = isnull(@ebo62_iva, 0) ,bo.esdeb1 = isnull(@esdeb1, 0) ,bo.esdeb2 = isnull(@esdeb2, 0) ,bo.esdeb3 = isnull(@esdeb3, 0) ,bo.esdeb4 = isnull(@esdeb4, 0) ,bo.sdeb1 = isnull(@sdeb1, 0) ,bo.sdeb2 = isnull(@sdeb2, 0) ,bo.sdeb3 = isnull(@sdeb3, 0) ,bo.sdeb4 = isnull(@sdeb4, 0) ,bo.smoe1 = isnull(@smoe1, 0) ,bo.smoe2 = isnull(@smoe2, 0) ,bo.smoe3 = isnull(@smoe3, 0) ,bo.smoe4 = isnull(@smoe4, 0) ,bo.estot1 = isnull(@estot1, 0) ,bo.estot2 = isnull(@estot2, 0) ,bo.estot3 = isnull(@estot3, 0) ,bo.estot4 = isnull(@estot4, 0) ,bo.stot1 = isnull(@stot1, 0) ,bo.stot2 = isnull(@stot2, 0) ,bo.stot3 = isnull(@stot3, 0) ,bo.stot4 = isnull(@stot4, 0) ,bo.ebo_1tvall = isnull(@ebo_1tvall, 0) ,bo.ebo_2tvall = isnull(@ebo_2tvall, 0) ,bo.bo_1tvall = isnull(@bo_1tvall, 0) ,bo.bo_2tvall = isnull(@bo_2tvall, 0) ,bo.ebo_totp1 = isnull(@ebo_totp1, 0) ,bo.ebo_totp2 = isnull(@ebo_totp2, 0) ,bo.bo_totp1 = isnull(@bo_totp1, 0) ,bo.bo_totp2 = isnull(@bo_totp2, 0) ,bo.sqtt11 = isnull(@sqtt11, 0) ,bo.sqtt21 = isnull(@sqtt21, 0) ,bo.sqtt12 = isnull(@sqtt12, 0) ,bo.sqtt22 = isnull(@sqtt22, 0) ,bo.sqtt13 = isnull(@sqtt13, 0) ,bo.sqtt23 = isnull(@sqtt23, 0) ,bo.sqtt14 = isnull(@sqtt14, 0) ,bo.sqtt24 = isnull(@sqtt24, 0) where bostamp = @mybostamp update bo2 set bo2.bo71_bins = isnull(@bo71_bins, 0) ,bo2.bo72_bins = isnull(@bo72_bins, 0) ,bo2.bo81_bins = isnull(@bo81_bins, 0) ,bo2.bo82_bins = isnull(@bo82_bins, 0) ,bo2.bo91_bins = isnull(@bo91_bins, 0) ,bo2.bo92_bins = isnull(@bo92_bins, 0) ,bo2.ebo71_bins = isnull(@ebo71_bins, 0) ,bo2.ebo72_bins = isnull(@ebo72_bins, 0) ,bo2.ebo81_bins = isnull(@ebo81_bins, 0) ,bo2.ebo82_bins = isnull(@ebo82_bins, 0) ,bo2.ebo91_bins = isnull(@ebo91_bins, 0) ,bo2.ebo92_bins = isnull(@ebo92_bins, 0) ,bo2.bo71_iva = isnull(@bo71_iva, 0) ,bo2.bo72_iva = isnull(@bo72_iva, 0) ,bo2.bo81_iva = isnull(@bo81_iva, 0) ,bo2.bo82_iva = isnull(@bo82_iva, 0) ,bo2.bo91_iva = isnull(@bo91_iva, 0) ,bo2.bo92_iva = isnull(@bo92_iva, 0) ,bo2.ebo71_iva = isnull(@ebo71_iva, 0) ,bo2.ebo72_iva = isnull(@ebo72_iva, 0) ,bo2.ebo81_iva = isnull(@ebo81_iva, 0) ,bo2.ebo82_iva = isnull(@ebo82_iva, 0) ,bo2.ebo91_iva = isnull(@ebo91_iva, 0) ,bo2.ebo92_iva = isnull(@ebo92_iva, 0) ,bo2.etotalciva = isnull(@etotaldeb, 0) + isnull(@ebo12_iva, 0) +isnull(@ebo22_iva, 0) +isnull(@ebo32_iva, 0) +isnull(@ebo42_iva, 0) +isnull(@ebo52_iva, 0) +isnull(@ebo62_iva, 0) +isnull(@ebo72_iva, 0) +isnull(@ebo82_iva, 0) +isnull(@ebo92_iva, 0) --,bo2.mtotalciva =isnull(@moetotal, 0) where bo2stamp = @mybostamp -- trata os bot select @userinis = usrinis from bo where bo.bostamp=@mybostamp insert into @totaisiva ( bostamp, codigo, taxa, ebaseinc, baseinc, evalor, valor ) select @mybostamp,codigo,taxa ,case when (@ebo11_bins <>0) then @ebo11_bins else @ebo12_bins end ,case when (@ebo11_bins <>0) then @bo11_bins else @bo12_bins end ,case when (@ebo11_bins <>0) then @ebo11_iva else @ebo12_iva end ,case when (@ebo11_bins <>0) then @bo11_iva else @bo12_iva end from taxasiva where codigo = 1 union all select @mybostamp,codigo,taxa ,case when (@ebo21_bins <>0) then @ebo21_bins else @ebo22_bins end ,case when (@ebo21_bins <>0) then @bo21_bins else @bo22_bins end ,case when (@ebo21_bins <>0) then @ebo21_iva else @ebo22_iva end ,case when (@ebo21_bins <>0) then @bo21_iva else @bo22_iva end from taxasiva where codigo = 2 union all select @mybostamp,codigo,taxa ,case when (@ebo31_bins <>0) then @ebo31_bins else @ebo32_bins end ,case when (@ebo31_bins <>0) then @bo31_bins else @bo32_bins end ,case when (@ebo31_bins <>0) then @ebo31_iva else @ebo32_iva end ,case when (@ebo31_bins <>0) then @bo31_iva else @bo32_iva end from taxasiva where codigo = 3 union all select @mybostamp,codigo,taxa ,case when (@ebo41_bins <>0) then @ebo41_bins else @ebo42_bins end ,case when (@ebo41_bins <>0) then @bo41_bins else @bo42_bins end ,case when (@ebo41_bins <>0) then @ebo41_iva else @ebo42_iva end ,case when (@ebo41_bins <>0) then @bo41_iva else @bo42_iva end from taxasiva where codigo = 4 union all select @mybostamp,codigo,taxa ,case when (@ebo51_bins <>0) then @ebo51_bins else @ebo52_bins end ,case when (@ebo51_bins <>0) then @bo51_bins else @bo52_bins end ,case when (@ebo51_bins <>0) then @ebo51_iva else @ebo52_iva end ,case when (@ebo51_bins <>0) then @bo51_iva else @bo52_iva end from taxasiva where codigo = 5 union all select @mybostamp,codigo,taxa ,case when (@ebo61_bins <>0) then @ebo61_bins else @ebo62_bins end ,case when (@ebo61_bins <>0) then @bo61_bins else @bo62_bins end ,case when (@ebo61_bins <>0) then @ebo61_iva else @ebo62_iva end ,case when (@ebo61_bins <>0) then @bo61_iva else @bo62_iva end from taxasiva where codigo = 6 union all select @mybostamp,codigo,taxa ,case when (@ebo71_bins <>0) then @ebo71_bins else @ebo72_bins end ,case when (@ebo71_bins <>0) then @bo71_bins else @bo72_bins end ,case when (@ebo71_bins <>0) then @ebo71_iva else @ebo72_iva end ,case when (@ebo71_bins <>0) then @bo71_iva else @bo72_iva end from taxasiva where codigo = 7 union all select @mybostamp,codigo,taxa ,case when (@ebo81_bins <>0) then @ebo81_bins else @ebo82_bins end ,case when (@ebo81_bins <>0) then @bo81_bins else @bo82_bins end ,case when (@ebo81_bins <>0) then @ebo81_iva else @ebo82_iva end ,case when (@ebo81_bins <>0) then @bo81_iva else @bo82_iva end from taxasiva where codigo = 8 union all select @mybostamp,codigo,taxa ,case when (@ebo91_bins <>0) then @ebo91_bins else @ebo92_bins end ,case when (@ebo91_bins <>0) then @bo91_bins else @bo92_bins end ,case when (@ebo91_bins <>0) then @ebo91_iva else @ebo92_iva end ,case when (@ebo91_bins <>0) then @bo91_iva else @bo92_iva end from taxasiva where codigo = 9 update bot set ebaseinc = totiva.ebaseinc, baseinc = totiva.baseinc, evalor = totiva.evalor, valor = totiva.valor, usrinis = @userinis, usrdata = convert (date,getdate()), usrhora = convert (time,getdate()) from @totaisiva totiva inner join bot on totiva.bostamp = bot.bostamp and totiva.codigo = bot.codigo insert into bot ( botstamp ,bostamp ,codigo ,taxa ,ebaseinc ,baseinc ,evalor ,valor ,ousrinis ,ousrdata ,ousrhora ,usrinis ,usrdata ,usrhora ) select ( left(@userinis,3) + 'tt' + left(newid(),5) + right(newid(),5) + left(newid(),5) + right(newid(),5)) stamp ,@mybostamp stampbo ,totiva.codigo ,totiva.taxa ,totiva.ebaseinc ,totiva.baseinc ,totiva.evalor ,totiva.valor ,@userinis ,convert (date,getdate()) ,convert (time,getdate()) ,@userinis ,convert (date,getdate()) ,convert (time,getdate()) from @totaisiva totiva left join bot on totiva.bostamp = bot.bostamp and totiva.codigo = bot.codigo where bot.botstamp is null -- atualiza os campo bi.series e bi.series2, caso tenha equipamentos update bi set series = s1, series2=s2 from bi inner join ( select distinct bistamp,ser.s1, ser.s2 from boma cross apply (select stuff ( ( select ',' + rtrim(serie) from boma myboma where myboma.bistamp = boma.bistamp order by serie for xml path('') ), 1, 1, '' ) s1 , stuff ( ( select ',' + rtrim(serie2) from boma myboma where myboma.bistamp = boma.bistamp order by serie for xml path('') ), 1, 1, '' ) s2 ) ser where boma.bostamp = @mybostamp ) myboma on bi.bistamp = myboma.bistamp where bi.bostamp = @mybostamp 
20240703@080413.7742 vgme77citfq7foeoe910gjultf Query : use flama_phc
20240703@080413.7746 vgme77citfq7foeoe910gjultf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@080413.7780 vgme77citfq7foeoe910gjultf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='759';
20240703@080413.7795 vgme77citfq7foeoe910gjultf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='759';
20240703@081910.8925 csr02n7hnb5t0vkisfpbiahh9g Query : use flama_phc
20240703@081910.8930 csr02n7hnb5t0vkisfpbiahh9g Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@081910.8999 csr02n7hnb5t0vkisfpbiahh9g Query : use flama_phc
20240703@081910.9002 csr02n7hnb5t0vkisfpbiahh9g Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@081911.7847 usld229th2cbiorqg2crg2mpft Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240703@081911.7871 usld229th2cbiorqg2crg2mpft Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240703@081911.7912 usld229th2cbiorqg2crg2mpft Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='760';
20240703@081911.7949 usld229th2cbiorqg2crg2mpft Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='760';
20240703@081911.7976 usld229th2cbiorqg2crg2mpft Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='760';
20240703@081911.7988 usld229th2cbiorqg2crg2mpft Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='760';
20240703@081911.8001 usld229th2cbiorqg2crg2mpft Query : use flama_phc
20240703@081911.8005 usld229th2cbiorqg2crg2mpft Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240703@081911.8052 usld229th2cbiorqg2crg2mpft Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9036.00.1'
20240703@081911.8165 usld229th2cbiorqg2crg2mpft Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =002 and bo.boano =2024 and bo.obrano = 2400212 and bi.ref ='328.9036.00.1' and bi.lordem =120000
20240703@081911.8490 usld229th2cbiorqg2crg2mpft Query : select bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.obranome ,bi.bostamp ,bo.moeda ,bi.vumoeda ,isnull(bi.vumoeda/nullif(bi.edebito,0),1) cambio ,bi.tabiva from bi inner join bo on bi.bostamp = bo.bostamp where bi.bistamp = 'cps24022741246,320000005 ' 
20240703@081911.8807 usld229th2cbiorqg2crg2mpft Query : use flama_phc
20240703@081911.8810 usld229th2cbiorqg2crg2mpft Query : select top 1 1 valor from ts where ts.ndos = 61
20240703@081911.8886 usld229th2cbiorqg2crg2mpft Query : use flama_phc
20240703@081911.8890 usld229th2cbiorqg2crg2mpft Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240703@081911.8941 usld229th2cbiorqg2crg2mpft Query : select top 1 assinadoc issigned ,ts.stocks ,ts.bdempresas origin ,case when (cmstocks between 1 and 50 or cm2stocks between 1 and 50 ) then 1 else 0 end entrada ,case when cmstocks>50 or (cm2stocks>50 and trfa =1) then 1 else 0 end saida ,stneg validatestock ,tiposaft ,veserie useserialnumber ,foserie assetin ,ftserie assetout ,veserie assets ,trfarm assetstransfer ,grelha usegridfields from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos =61
20240703@081911.9084 usld229th2cbiorqg2crg2mpft Query : use flama_phc
20240703@081911.9087 usld229th2cbiorqg2crg2mpft Query : select top 1 ~inactivo valor from fl where no = '202530' and estab = 00 order by inactivo desc
20240703@081911.9241 usld229th2cbiorqg2crg2mpft Query : use flama_phc
20240703@081911.9244 usld229th2cbiorqg2crg2mpft Query : select 1 valor from ts where ndos = 61
20240703@081911.9324 usld229th2cbiorqg2crg2mpft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@081911.9610 usld229th2cbiorqg2crg2mpft Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240703@081911.9644 usld229th2cbiorqg2crg2mpft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@081911.9658 usld229th2cbiorqg2crg2mpft Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240703@081911.9665 usld229th2cbiorqg2crg2mpft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@081911.9678 usld229th2cbiorqg2crg2mpft Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240703@081911.9685 usld229th2cbiorqg2crg2mpft Query : select top 1 ts2.manternumero, ts.tiposaft, ts.idserie,ts.nmdos,ts.bdempresas from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos = 61
20240703@081911.9828 usld229th2cbiorqg2crg2mpft Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240703@081911.9940 usld229th2cbiorqg2crg2mpft Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240703@081911.9957 usld229th2cbiorqg2crg2mpft Query : use flama_phc
20240703@081911.9960 usld229th2cbiorqg2crg2mpft Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202530' and estab=00
20240703@081912.4900 usld229th2cbiorqg2crg2mpft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@081912.6200 usld229th2cbiorqg2crg2mpft Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240703@081912.9600 usld229th2cbiorqg2crg2mpft Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6684f809856684fb6ff3',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240703@081912.1620 usld229th2cbiorqg2crg2mpft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@081912.1770 usld229th2cbiorqg2crg2mpft Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240703@081912.1840 usld229th2cbiorqg2crg2mpft Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6684f809856684fb6ff3','--','bo',7.7924865831842576028 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240703@081912.3870 usld229th2cbiorqg2crg2mpft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@081912.4010 usld229th2cbiorqg2crg2mpft Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240703@081912.4090 usld229th2cbiorqg2crg2mpft Query : insert into bo (bostamp, nmdos, dataobra, ndos, obrano, no, estab, nome, ncont, morada, local, codpost, moeda, boano, memissao,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6684f809856684fb6ff3','guia r. fornecedor','2024-07-03',61,2401930,?,?,?,?,?,?,?,?,2024, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240703@081912.1154 usld229th2cbiorqg2crg2mpft Query : use flama_phc
20240703@081912.1159 usld229th2cbiorqg2crg2mpft Query : select st.usalote valor from st where st.ref = '328.9036.00.1'
20240703@081912.1285 usld229th2cbiorqg2crg2mpft Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '328.9036.00.1'
20240703@081912.1436 usld229th2cbiorqg2crg2mpft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@081912.1450 usld229th2cbiorqg2crg2mpft Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240703@081912.1463 usld229th2cbiorqg2crg2mpft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@081912.1477 usld229th2cbiorqg2crg2mpft Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240703@081912.1485 usld229th2cbiorqg2crg2mpft Query : select sestamp valor from se where ref ='328.9036.00.1' and lote = 'r2400212120a'
20240703@081912.1549 usld229th2cbiorqg2crg2mpft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@081912.1578 usld229th2cbiorqg2crg2mpft Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240703@081912.1586 usld229th2cbiorqg2crg2mpft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@081912.1602 usld229th2cbiorqg2crg2mpft Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240703@081912.1610 usld229th2cbiorqg2crg2mpft Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6684f820266684fb7026',?,?,'20240703',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240703@081912.1681 usld229th2cbiorqg2crg2mpft Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240703@081912.1849 usld229th2cbiorqg2crg2mpft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@081912.1863 usld229th2cbiorqg2crg2mpft Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240703@081912.1871 usld229th2cbiorqg2crg2mpft Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6684f479336684fb702d','aut6684f809856684fb6ff3',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from bo bo where bo.bostamp = 'aut6684f809856684fb6ff3'
20240703@081912.2058 usld229th2cbiorqg2crg2mpft Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240703@081912.2072 usld229th2cbiorqg2crg2mpft Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240703@081912.2087 usld229th2cbiorqg2crg2mpft Query : insert into bi (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,obistamp ,stipo) select 'aut6684f479336684fb702d',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 400, 400*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,50.31,50.31*200.48,50.31,50.31*200.48 ,0,0,'un ','' ,bo.marcada,1 ,50.31*400,50.31*400*200.48 ,.000000,.000000*200.48 ,.000000,.000000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,50.31,50.31*200.48,50.31*400,50.31*400*200.48,'cps24022741246,320000005 ',392.04,392.04*400,392.04,392.04*400,?,?,?,4 from bo bo where bo.bostamp = 'aut6684f809856684fb6ff3'
20240703@081912.2823 usld229th2cbiorqg2crg2mpft Query : use flama_phc
20240703@081912.2827 usld229th2cbiorqg2crg2mpft Query : declare @bostamp varchar(25) = 'aut6684f809856684fb6ff3' ,@bistamp varchar(25) = '' update bi set tecoval = qtt * ecoval ,etecoval = qtt * eecoval ,tecoval2 = qtt * ecoval2 ,etecoval2 = qtt * eecoval2 where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end -- se tiver classificação e não for normal, não calcula nada update bi set ttdeb = 0 ,ettdeb = 0 ,ttmoeda = 0 where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and bi.classifc <> '' and bi.classifc <> 'normal' -- no caso normal com moeda euro if exists ( select 1 from bo cross apply ( select valor moeda from para1 where descricao = 'ge_pteoueuro' ) par where bo.bostamp = @bostamp and bo.moeda = par.moeda ) begin -- sem ecovalores update bi set ettdeb = round(bi.qtt * ((bi.edebito * (1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100))), 6) ,ttdeb = round(bi.qtt * ((bi.debito * (1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100))), 6) ,ttmoeda = 0 from bi inner join bo on bi.bostamp = bo.bostamp where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) and bi.econotcalc = 1 -- com ecovalores update bi set ettdeb = round(bi.qtt * ( ( bi.edebito + ( iif(p.st_econotdesc = 1, - bi.eecoval2, bi.eecoval) * ( 1 + iif(bi.ivaincl = 1 and tiva.taxa <> 0, tiva.taxa / 100, 0) ) ) ) * (1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) ), 6) + ( bi.qtt * iif(p.st_econotdesc = 1, (bi.eecoval + bi.eecoval2) * ( 1 + iif(bi.ivaincl = 1 and tiva.taxa <> 0, tiva.taxa / 100, 0) ), 0) ) ,ttdeb = round(bi.qtt * ( ( bi.debito + ( iif(p.st_econotdesc = 1, - bi.ecoval2, bi.ecoval) * ( 1 + iif(bi.ivaincl = 1 and tiva.taxa <> 0, tiva.taxa / 100, 0) ) ) ) * (1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) ), 6) + ( bi.qtt * iif(p.st_econotdesc = 1, (bi.ecoval + bi.ecoval2) * ( 1 + iif(bi.ivaincl = 1 and tiva.taxa <> 0, tiva.taxa / 100, 0) ), 0) ) ,ttmoeda = 0 from bi inner join bo on bi.bostamp = bo.bostamp left join st on bi.ref = st.ref left join taxasiva tiva on bi.tabiva = tiva.codigo cross apply ( select max(valor) st_econotdesc from ( select case when valor = 's' then 1 else 0 end valor from para1 where descricao = 'st_econotdesc' union all select 0 ) a ) p where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) and bi.econotcalc = 0 --acrescenta os descontos em valor, caso existam: update bi set ettdeb = round(bi.ettdeb - (bi.qtt * bi.evaldesc), 2) ,ttdeb = round(bi.ttdeb - (bi.qtt * bi.valdesc), 2) ,ttmoeda = 0 from bi where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) and bi.valdesc <> 0 end else begin update bi set ttmoeda = round((1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) * bi.qtt * bi.vumoeda, 2) ,ettdeb = case when bo2.cambio <> 0 then round((round((1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) * bi.qtt * bi.vumoeda, 2)) / bo2.cambio, 2) else 0 end ,edebito = case when bi.qtt = 0 then 0 else round(abs(( case when bo2.cambio <> 0 then round((round((1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) * bi.qtt * bi.vumoeda, 2)) / bo2.cambio, 2) else 0 end ) / (1 - bi.desconto / 100) / (1 - bi.desc2 / 100) / (1 - bi.desc3 / 100) / (1 - bi.desc4 / 100) / (1 - bi.desc5 / 100) / (1 - bi.desc6 / 100) / bi.qtt), 2) end ,debito = case when bi.qtt = 0 then 0 else round(abs(( case when bo2.cambio <> 0 then round((round((1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) * bi.qtt * bi.vumoeda, 2)) / bo2.cambio, 2) else 0 end ) / (1 - bi.desconto / 100) / (1 - bi.desc2 / 100) / (1 - bi.desc3 / 100) / (1 - bi.desc4 / 100) / (1 - bi.desc5 / 100) / (1 - bi.desc6 / 100) / bi.qtt), 2) end * 200.482 from bi inner join bo2 on bi.bostamp = bo2.bo2stamp where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) update bi set ttdeb = round(bi.ttdeb - (bi.qtt * bi.valdesc), 2) ,ettdeb = round(bi.ettdeb - (bi.qtt * bi.evaldesc), 0) ,debito = round(bi.debito - (bi.qtt * bi.valdesc), 2) ,edebito = round(bi.edebito - (bi.qtt * bi.evaldesc), 2) where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) and bi.valdesc <> 0 end 
20240703@081912.4523 usld229th2cbiorqg2crg2mpft Query : use flama_phc
20240703@081912.4527 usld229th2cbiorqg2crg2mpft Query : select 1 valor from bo where bo.bostamp = 'aut6684f809856684fb6ff3'
20240703@081912.5198 usld229th2cbiorqg2crg2mpft Query : declare @errno int ,@errmsg varchar(255) ,@prod bit ,@nrdec numeric(10, 0) ,@totaldeb numeric(18, 5) ,@etotaldeb numeric(19, 6) ,@total numeric(18, 5) ,@etotal numeric(19, 6) ,@custo numeric(18, 5) ,@ecusto numeric(19, 6) ,@bo_1iliq numeric(19, 6) ,@bo_2iliq numeric(19, 6) ,@base1 numeric(19, 6) ,@base2 numeric(19, 6) ,@moetotal numeric(13, 3) ,@smoe1 numeric(13, 3) ,@smoe2 numeric(13, 3) ,@smoe3 numeric(13, 3) ,@smoe4 numeric(13, 3) ,@bo11_bins numeric(18, 5) ,@bo21_bins numeric(18, 5) ,@bo31_bins numeric(18, 5) ,@bo41_bins numeric(18, 5) ,@bo51_bins numeric(18, 5) ,@bo61_bins numeric(18, 5) ,@bo71_bins numeric(18, 5) ,@bo81_bins numeric(18, 5) ,@bo91_bins numeric(18, 5) ,@bo12_bins numeric(18, 5) ,@bo22_bins numeric(18, 5) ,@bo32_bins numeric(18, 5) ,@bo42_bins numeric(18, 5) ,@bo52_bins numeric(18, 5) ,@bo62_bins numeric(18, 5) ,@bo72_bins numeric(18, 5) ,@bo82_bins numeric(18, 5) ,@bo92_bins numeric(18, 5) ,@ebo11_bins numeric(19, 6) ,@ebo21_bins numeric(19, 6) ,@ebo31_bins numeric(19, 6) ,@ebo41_bins numeric(19, 6) ,@ebo51_bins numeric(19, 6) ,@ebo61_bins numeric(19, 6) ,@ebo71_bins numeric(18, 5) ,@ebo81_bins numeric(18, 5) ,@ebo91_bins numeric(18, 5) ,@ebo12_bins numeric(19, 6) ,@ebo22_bins numeric(19, 6) ,@ebo32_bins numeric(19, 6) ,@ebo42_bins numeric(19, 6) ,@ebo52_bins numeric(19, 6) ,@ebo62_bins numeric(19, 6) ,@ebo72_bins numeric(18, 5) ,@ebo82_bins numeric(18, 5) ,@ebo92_bins numeric(18, 5) ,@bo11_iva numeric(18, 5) ,@bo21_iva numeric(18, 5) ,@bo31_iva numeric(18, 5) ,@bo41_iva numeric(18, 5) ,@bo51_iva numeric(18, 5) ,@bo61_iva numeric(18, 5) ,@bo71_iva numeric(18, 5) ,@bo81_iva numeric(18, 5) ,@bo91_iva numeric(18, 5) ,@bo12_iva numeric(18, 5) ,@bo22_iva numeric(18, 5) ,@bo32_iva numeric(18, 5) ,@bo42_iva numeric(18, 5) ,@bo52_iva numeric(18, 5) ,@bo62_iva numeric(18, 5) ,@bo72_iva numeric(18, 5) ,@bo82_iva numeric(18, 5) ,@bo92_iva numeric(18, 5) ,@ebo11_iva numeric(19, 6) ,@ebo21_iva numeric(19, 6) ,@ebo31_iva numeric(19, 6) ,@ebo41_iva numeric(19, 6) ,@ebo51_iva numeric(19, 6) ,@ebo61_iva numeric(19, 6) ,@ebo71_iva numeric(18, 5) ,@ebo81_iva numeric(18, 5) ,@ebo91_iva numeric(18, 5) ,@ebo12_iva numeric(19, 6) ,@ebo22_iva numeric(19, 6) ,@ebo32_iva numeric(19, 6) ,@ebo42_iva numeric(19, 6) ,@ebo52_iva numeric(19, 6) ,@ebo62_iva numeric(19, 6) ,@ebo72_iva numeric(18, 5) ,@ebo82_iva numeric(18, 5) ,@ebo92_iva numeric(18, 5) ,@esdeb1 numeric(19, 6) ,@esdeb2 numeric(19, 6) ,@esdeb3 numeric(19, 6) ,@esdeb4 numeric(19, 6) ,@sdeb1 numeric(18, 5) ,@sdeb2 numeric(18, 5) ,@sdeb3 numeric(18, 5) ,@sdeb4 numeric(18, 5) ,@estot1 numeric(19, 6) ,@estot2 numeric(19, 6) ,@estot3 numeric(19, 6) ,@estot4 numeric(19, 6) ,@stot1 numeric(18, 5) ,@stot2 numeric(18, 5) ,@stot3 numeric(18, 5) ,@stot4 numeric(18, 5) ,@ebo_1tvall numeric(19, 6) ,@ebo_2tvall numeric(19, 6) ,@bo_1tvall numeric(18, 5) ,@bo_2tvall numeric(18, 5) ,@ebo_totp1 numeric(19, 6) ,@ebo_totp2 numeric(19, 6) ,@bo_totp1 numeric(18, 5) ,@bo_totp2 numeric(18, 5) ,@sqtt11 numeric(13, 3) ,@sqtt21 numeric(13, 3) ,@sqtt12 numeric(13, 3) ,@sqtt22 numeric(13, 3) ,@sqtt13 numeric(13, 3) ,@sqtt23 numeric(13, 3) ,@sqtt14 numeric(13, 3) ,@sqtt24 numeric(13, 3) ,@userinis varchar (30) ,@mybostamp char(25) = 'aut6684f809856684fb6ff3' declare @totaisiva table ( bostamp varchar (25), codigo numeric(1), taxa numeric (5,2), ebaseinc numeric (19,6), baseinc numeric (18,5), evalor numeric (19,6), valor numeric (18,5) ) set @prod = ( select ts.producao from bo(nolock) inner join ts(nolock) on bo.ndos = ts.ndos and bo.bostamp = @mybostamp ) set @nrdec = ( select convert(numeric(10, 0), valor) from para1(nolock) where descricao = 'de_euro' ) --set @prod = 0 --set @nrdec = 2 select @ecusto = sum(bi.epcusto * bi.qtt) ,@custo = sum(bi.pcusto * bi.qtt) ,@bo11_bins = sum(case when bi.tabiva = 1 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo21_bins = sum(case when bi.tabiva = 2 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo31_bins = sum(case when bi.tabiva = 3 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo41_bins = sum(case when bi.tabiva = 4 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo51_bins = sum(case when bi.tabiva = 5 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo61_bins = sum(case when bi.tabiva = 6 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo71_bins = sum(case when bi.tabiva = 7 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo81_bins = sum(case when bi.tabiva = 8 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo91_bins = sum(case when bi.tabiva = 9 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo12_bins = sum(case when bi.tabiva = 1 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo22_bins = sum(case when bi.tabiva = 2 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo32_bins = sum(case when bi.tabiva = 3 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo42_bins = sum(case when bi.tabiva = 4 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo52_bins = sum(case when bi.tabiva = 5 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo62_bins = sum(case when bi.tabiva = 6 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo72_bins = sum(case when bi.tabiva = 7 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo82_bins = sum(case when bi.tabiva = 8 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo92_bins = sum(case when bi.tabiva = 9 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo11_bins = sum(case when bi.tabiva = 1 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo21_bins = sum(case when bi.tabiva = 2 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo31_bins = sum(case when bi.tabiva = 3 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo41_bins = sum(case when bi.tabiva = 4 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo51_bins = sum(case when bi.tabiva = 5 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo61_bins = sum(case when bi.tabiva = 6 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo71_bins = sum(case when bi.tabiva = 7 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo81_bins = sum(case when bi.tabiva = 8 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo91_bins = sum(case when bi.tabiva = 9 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo12_bins = sum(case when bi.tabiva = 1 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo22_bins = sum(case when bi.tabiva = 2 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo32_bins = sum(case when bi.tabiva = 3 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo42_bins = sum(case when bi.tabiva = 4 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo52_bins = sum(case when bi.tabiva = 5 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo62_bins = sum(case when bi.tabiva = 6 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo72_bins = sum(case when bi.tabiva = 7 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo82_bins = sum(case when bi.tabiva = 8 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo92_bins = sum(case when bi.tabiva = 9 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo_1iliq = round(sum(bi.qtt * bi.epu), @nrdec) ,@bo_2iliq = round(sum(bi.ettdeb), @nrdec) ,@bo11_iva = sum(case when bi.tabiva = 1 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo12_iva = sum(case when bi.tabiva = 1 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo21_iva = sum(case when bi.tabiva = 2 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo22_iva = sum(case when bi.tabiva = 2 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo31_iva = sum(case when bi.tabiva = 3 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo32_iva = sum(case when bi.tabiva = 3 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo41_iva = sum(case when bi.tabiva = 4 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo42_iva = sum(case when bi.tabiva = 4 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo51_iva = sum(case when bi.tabiva = 5 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo52_iva = sum(case when bi.tabiva = 5 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo61_iva = sum(case when bi.tabiva = 6 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo62_iva = sum(case when bi.tabiva = 6 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo71_iva = sum(case when bi.tabiva = 7 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo72_iva = sum(case when bi.tabiva = 7 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo81_iva = sum(case when bi.tabiva = 8 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo82_iva = sum(case when bi.tabiva = 8 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo91_iva = sum(case when bi.tabiva = 9 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo92_iva = sum(case when bi.tabiva = 9 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo11_iva = sum(case when bi.tabiva = 1 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo12_iva = sum(case when bi.tabiva = 1 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo21_iva = sum(case when bi.tabiva = 2 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo22_iva = sum(case when bi.tabiva = 2 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo31_iva = sum(case when bi.tabiva = 3 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo32_iva = sum(case when bi.tabiva = 3 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo41_iva = sum(case when bi.tabiva = 4 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo42_iva = sum(case when bi.tabiva = 4 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo51_iva = sum(case when bi.tabiva = 5 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo52_iva = sum(case when bi.tabiva = 5 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo61_iva = sum(case when bi.tabiva = 6 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo62_iva = sum(case when bi.tabiva = 6 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo71_iva = sum(case when bi.tabiva = 7 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo72_iva = sum(case when bi.tabiva = 7 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo81_iva = sum(case when bi.tabiva = 8 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo82_iva = sum(case when bi.tabiva = 8 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo91_iva = sum(case when bi.tabiva = 9 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else bi.ettdeb - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo92_iva = sum(case when bi.tabiva = 9 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@esdeb1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.ettdeb else bi.ettdeb - round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@esdeb2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.ettdeb else bi.ettdeb - round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@esdeb3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.ettdeb else bi.ettdeb - round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@esdeb4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) * bi.iva / 100, @nrdec) end else 0 end) ,@sdeb1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.ttdeb else bi.ttdeb - round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@sdeb2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.ttdeb else bi.ttdeb - round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@sdeb3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.ttdeb else bi.ttdeb - round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@sdeb4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) * bi.iva / 100, @nrdec) end else 0 end) ,@smoe1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.ttmoeda else round(bi.ttmoeda / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@smoe2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.ttmoeda else round(bi.ttmoeda / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@smoe3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.ttmoeda else round(bi.ttmoeda / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@smoe4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.ttmoeda else round(bi.ttmoeda / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@estot1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@estot2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@estot3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@estot4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@stot1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@stot2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@stot3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@stot4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@total = @stot1 + @stot2 + @stot3 + @stot4 ,@etotal = @estot1 + @estot2 + @estot3 + @estot4 ,@totaldeb = @sdeb1 + @sdeb2 + @sdeb3 + @sdeb4 ,@etotaldeb = @esdeb1 + @esdeb2 + @esdeb3 + @esdeb4 ,@moetotal = @smoe1 + @smoe2 + @smoe3 + @smoe4 ,@ebo_1tvall = @ebo11_bins + @ebo21_bins + @ebo31_bins + @ebo41_bins + @ebo51_bins + @ebo61_bins + @ebo71_bins + @ebo81_bins + @ebo91_bins ,@ebo_2tvall = @ebo12_bins + @ebo22_bins + @ebo32_bins + @ebo42_bins + @ebo52_bins + @ebo62_bins + @ebo72_bins + @ebo82_bins + @ebo92_bins ,@bo_1tvall = @bo11_bins + @bo21_bins + @bo31_bins + @bo41_bins + @bo51_bins + @bo61_bins + @bo71_bins + @bo81_bins + @bo91_bins ,@bo_2tvall = @bo12_bins + @bo22_bins + @bo32_bins + @bo42_bins + @bo52_bins + @bo62_bins + @bo72_bins + @bo82_bins + @bo92_bins ,@ebo_totp1 = sum(case when bi.ivaincl = 0 then (bi.epu * bi.qtt) else round((bi.epu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end) ,@ebo_totp2 = sum(case when bi.ivaincl = 0 then (bi.edebito * bi.qtt) else round((bi.edebito * bi.qtt) / (1 + bi.iva / 100), @nrdec) end) ,@bo_totp1 = sum(case when bi.ivaincl = 0 then (bi.pu * bi.qtt) else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end) ,@bo_totp2 = sum(case when bi.ivaincl = 0 then (bi.debito * bi.qtt) else round((bi.debito * bi.qtt) / (1 + bi.iva / 100), @nrdec) end) ,@sqtt11 = sum(case when bi.stipo = 1 then bi.qtt else 0 end) ,@sqtt21 = sum(case when bi.stipo = 1 then bi.qtt else 0 end) ,@sqtt12 = sum(case when bi.stipo = 2 then bi.qtt else 0 end) ,@sqtt22 = sum(case when bi.stipo = 2 then bi.qtt else 0 end) ,@sqtt13 = sum(case when bi.stipo = 3 then bi.qtt else 0 end) ,@sqtt23 = sum(case when bi.stipo = 3 then bi.qtt else 0 end) ,@sqtt14 = sum(case when bi.stipo = 4 then bi.qtt else 0 end) ,@sqtt24 = sum(case when bi.stipo = 5 then bi.qtt else 0 end) from bi(nolock) where bi.bostamp = @mybostamp and bi.producao = case when @prod = 1 then 1 else bi.producao end and bi.composto = 0 and bi.qtt <> 0 update bo set bo.totaldeb = isnull(@totaldeb, 0) ,bo.total = isnull(@total, 0) ,bo.etotaldeb = isnull(@etotaldeb, 0) ,bo.moetotal = isnull(@moetotal, 0) ,bo.etotal = isnull(@etotal, 0) ,bo.ecusto = isnull(@ecusto, 0) ,bo.custo = isnull(@custo, 0) ,bo.bo11_bins = isnull(@bo11_bins, 0) ,bo.bo12_bins = isnull(@bo12_bins, 0) ,bo.bo21_bins = isnull(@bo21_bins, 0) ,bo.bo22_bins = isnull(@bo22_bins, 0) ,bo.bo31_bins = isnull(@bo31_bins, 0) ,bo.bo32_bins = isnull(@bo32_bins, 0) ,bo.bo41_bins = isnull(@bo41_bins, 0) ,bo.bo42_bins = isnull(@bo42_bins, 0) ,bo.bo51_bins = isnull(@bo51_bins, 0) ,bo.bo52_bins = isnull(@bo52_bins, 0) ,bo.bo61_bins = isnull(@bo61_bins, 0) ,bo.bo62_bins = isnull(@bo62_bins, 0) ,bo.ebo11_bins = isnull(@ebo11_bins, 0) ,bo.ebo12_bins = isnull(@ebo12_bins, 0) ,bo.ebo21_bins = isnull(@ebo21_bins, 0) ,bo.ebo22_bins = isnull(@ebo22_bins, 0) ,bo.ebo31_bins = isnull(@ebo31_bins, 0) ,bo.ebo32_bins = isnull(@ebo32_bins, 0) ,bo.ebo41_bins = isnull(@ebo41_bins, 0) ,bo.ebo42_bins = isnull(@ebo42_bins, 0) ,bo.ebo51_bins = isnull(@ebo51_bins, 0) ,bo.ebo52_bins = isnull(@ebo52_bins, 0) ,bo.ebo61_bins = isnull(@ebo61_bins, 0) ,bo.ebo62_bins = isnull(@ebo62_bins, 0) ,bo.bo11_iva = isnull(@bo11_iva, 0) ,bo.bo12_iva = isnull(@bo12_iva, 0) ,bo.bo21_iva = isnull(@bo21_iva, 0) ,bo.bo22_iva = isnull(@bo22_iva, 0) ,bo.bo31_iva = isnull(@bo31_iva, 0) ,bo.bo32_iva = isnull(@bo32_iva, 0) ,bo.bo41_iva = isnull(@bo41_iva, 0) ,bo.bo42_iva = isnull(@bo42_iva, 0) ,bo.bo51_iva = isnull(@bo51_iva, 0) ,bo.bo52_iva = isnull(@bo52_iva, 0) ,bo.bo61_iva = isnull(@bo61_iva, 0) ,bo.bo62_iva = isnull(@bo62_iva, 0) ,bo.ebo11_iva = isnull(@ebo11_iva, 0) ,bo.ebo12_iva = isnull(@ebo12_iva, 0) ,bo.ebo21_iva = isnull(@ebo21_iva, 0) ,bo.ebo22_iva = isnull(@ebo22_iva, 0) ,bo.ebo31_iva = isnull(@ebo31_iva, 0) ,bo.ebo32_iva = isnull(@ebo32_iva, 0) ,bo.ebo41_iva = isnull(@ebo41_iva, 0) ,bo.ebo42_iva = isnull(@ebo42_iva, 0) ,bo.ebo51_iva = isnull(@ebo51_iva, 0) ,bo.ebo52_iva = isnull(@ebo52_iva, 0) ,bo.ebo61_iva = isnull(@ebo61_iva, 0) ,bo.ebo62_iva = isnull(@ebo62_iva, 0) ,bo.esdeb1 = isnull(@esdeb1, 0) ,bo.esdeb2 = isnull(@esdeb2, 0) ,bo.esdeb3 = isnull(@esdeb3, 0) ,bo.esdeb4 = isnull(@esdeb4, 0) ,bo.sdeb1 = isnull(@sdeb1, 0) ,bo.sdeb2 = isnull(@sdeb2, 0) ,bo.sdeb3 = isnull(@sdeb3, 0) ,bo.sdeb4 = isnull(@sdeb4, 0) ,bo.smoe1 = isnull(@smoe1, 0) ,bo.smoe2 = isnull(@smoe2, 0) ,bo.smoe3 = isnull(@smoe3, 0) ,bo.smoe4 = isnull(@smoe4, 0) ,bo.estot1 = isnull(@estot1, 0) ,bo.estot2 = isnull(@estot2, 0) ,bo.estot3 = isnull(@estot3, 0) ,bo.estot4 = isnull(@estot4, 0) ,bo.stot1 = isnull(@stot1, 0) ,bo.stot2 = isnull(@stot2, 0) ,bo.stot3 = isnull(@stot3, 0) ,bo.stot4 = isnull(@stot4, 0) ,bo.ebo_1tvall = isnull(@ebo_1tvall, 0) ,bo.ebo_2tvall = isnull(@ebo_2tvall, 0) ,bo.bo_1tvall = isnull(@bo_1tvall, 0) ,bo.bo_2tvall = isnull(@bo_2tvall, 0) ,bo.ebo_totp1 = isnull(@ebo_totp1, 0) ,bo.ebo_totp2 = isnull(@ebo_totp2, 0) ,bo.bo_totp1 = isnull(@bo_totp1, 0) ,bo.bo_totp2 = isnull(@bo_totp2, 0) ,bo.sqtt11 = isnull(@sqtt11, 0) ,bo.sqtt21 = isnull(@sqtt21, 0) ,bo.sqtt12 = isnull(@sqtt12, 0) ,bo.sqtt22 = isnull(@sqtt22, 0) ,bo.sqtt13 = isnull(@sqtt13, 0) ,bo.sqtt23 = isnull(@sqtt23, 0) ,bo.sqtt14 = isnull(@sqtt14, 0) ,bo.sqtt24 = isnull(@sqtt24, 0) where bostamp = @mybostamp update bo2 set bo2.bo71_bins = isnull(@bo71_bins, 0) ,bo2.bo72_bins = isnull(@bo72_bins, 0) ,bo2.bo81_bins = isnull(@bo81_bins, 0) ,bo2.bo82_bins = isnull(@bo82_bins, 0) ,bo2.bo91_bins = isnull(@bo91_bins, 0) ,bo2.bo92_bins = isnull(@bo92_bins, 0) ,bo2.ebo71_bins = isnull(@ebo71_bins, 0) ,bo2.ebo72_bins = isnull(@ebo72_bins, 0) ,bo2.ebo81_bins = isnull(@ebo81_bins, 0) ,bo2.ebo82_bins = isnull(@ebo82_bins, 0) ,bo2.ebo91_bins = isnull(@ebo91_bins, 0) ,bo2.ebo92_bins = isnull(@ebo92_bins, 0) ,bo2.bo71_iva = isnull(@bo71_iva, 0) ,bo2.bo72_iva = isnull(@bo72_iva, 0) ,bo2.bo81_iva = isnull(@bo81_iva, 0) ,bo2.bo82_iva = isnull(@bo82_iva, 0) ,bo2.bo91_iva = isnull(@bo91_iva, 0) ,bo2.bo92_iva = isnull(@bo92_iva, 0) ,bo2.ebo71_iva = isnull(@ebo71_iva, 0) ,bo2.ebo72_iva = isnull(@ebo72_iva, 0) ,bo2.ebo81_iva = isnull(@ebo81_iva, 0) ,bo2.ebo82_iva = isnull(@ebo82_iva, 0) ,bo2.ebo91_iva = isnull(@ebo91_iva, 0) ,bo2.ebo92_iva = isnull(@ebo92_iva, 0) ,bo2.etotalciva = isnull(@etotaldeb, 0) + isnull(@ebo12_iva, 0) +isnull(@ebo22_iva, 0) +isnull(@ebo32_iva, 0) +isnull(@ebo42_iva, 0) +isnull(@ebo52_iva, 0) +isnull(@ebo62_iva, 0) +isnull(@ebo72_iva, 0) +isnull(@ebo82_iva, 0) +isnull(@ebo92_iva, 0) --,bo2.mtotalciva =isnull(@moetotal, 0) where bo2stamp = @mybostamp -- trata os bot select @userinis = usrinis from bo where bo.bostamp=@mybostamp insert into @totaisiva ( bostamp, codigo, taxa, ebaseinc, baseinc, evalor, valor ) select @mybostamp,codigo,taxa ,case when (@ebo11_bins <>0) then @ebo11_bins else @ebo12_bins end ,case when (@ebo11_bins <>0) then @bo11_bins else @bo12_bins end ,case when (@ebo11_bins <>0) then @ebo11_iva else @ebo12_iva end ,case when (@ebo11_bins <>0) then @bo11_iva else @bo12_iva end from taxasiva where codigo = 1 union all select @mybostamp,codigo,taxa ,case when (@ebo21_bins <>0) then @ebo21_bins else @ebo22_bins end ,case when (@ebo21_bins <>0) then @bo21_bins else @bo22_bins end ,case when (@ebo21_bins <>0) then @ebo21_iva else @ebo22_iva end ,case when (@ebo21_bins <>0) then @bo21_iva else @bo22_iva end from taxasiva where codigo = 2 union all select @mybostamp,codigo,taxa ,case when (@ebo31_bins <>0) then @ebo31_bins else @ebo32_bins end ,case when (@ebo31_bins <>0) then @bo31_bins else @bo32_bins end ,case when (@ebo31_bins <>0) then @ebo31_iva else @ebo32_iva end ,case when (@ebo31_bins <>0) then @bo31_iva else @bo32_iva end from taxasiva where codigo = 3 union all select @mybostamp,codigo,taxa ,case when (@ebo41_bins <>0) then @ebo41_bins else @ebo42_bins end ,case when (@ebo41_bins <>0) then @bo41_bins else @bo42_bins end ,case when (@ebo41_bins <>0) then @ebo41_iva else @ebo42_iva end ,case when (@ebo41_bins <>0) then @bo41_iva else @bo42_iva end from taxasiva where codigo = 4 union all select @mybostamp,codigo,taxa ,case when (@ebo51_bins <>0) then @ebo51_bins else @ebo52_bins end ,case when (@ebo51_bins <>0) then @bo51_bins else @bo52_bins end ,case when (@ebo51_bins <>0) then @ebo51_iva else @ebo52_iva end ,case when (@ebo51_bins <>0) then @bo51_iva else @bo52_iva end from taxasiva where codigo = 5 union all select @mybostamp,codigo,taxa ,case when (@ebo61_bins <>0) then @ebo61_bins else @ebo62_bins end ,case when (@ebo61_bins <>0) then @bo61_bins else @bo62_bins end ,case when (@ebo61_bins <>0) then @ebo61_iva else @ebo62_iva end ,case when (@ebo61_bins <>0) then @bo61_iva else @bo62_iva end from taxasiva where codigo = 6 union all select @mybostamp,codigo,taxa ,case when (@ebo71_bins <>0) then @ebo71_bins else @ebo72_bins end ,case when (@ebo71_bins <>0) then @bo71_bins else @bo72_bins end ,case when (@ebo71_bins <>0) then @ebo71_iva else @ebo72_iva end ,case when (@ebo71_bins <>0) then @bo71_iva else @bo72_iva end from taxasiva where codigo = 7 union all select @mybostamp,codigo,taxa ,case when (@ebo81_bins <>0) then @ebo81_bins else @ebo82_bins end ,case when (@ebo81_bins <>0) then @bo81_bins else @bo82_bins end ,case when (@ebo81_bins <>0) then @ebo81_iva else @ebo82_iva end ,case when (@ebo81_bins <>0) then @bo81_iva else @bo82_iva end from taxasiva where codigo = 8 union all select @mybostamp,codigo,taxa ,case when (@ebo91_bins <>0) then @ebo91_bins else @ebo92_bins end ,case when (@ebo91_bins <>0) then @bo91_bins else @bo92_bins end ,case when (@ebo91_bins <>0) then @ebo91_iva else @ebo92_iva end ,case when (@ebo91_bins <>0) then @bo91_iva else @bo92_iva end from taxasiva where codigo = 9 update bot set ebaseinc = totiva.ebaseinc, baseinc = totiva.baseinc, evalor = totiva.evalor, valor = totiva.valor, usrinis = @userinis, usrdata = convert (date,getdate()), usrhora = convert (time,getdate()) from @totaisiva totiva inner join bot on totiva.bostamp = bot.bostamp and totiva.codigo = bot.codigo insert into bot ( botstamp ,bostamp ,codigo ,taxa ,ebaseinc ,baseinc ,evalor ,valor ,ousrinis ,ousrdata ,ousrhora ,usrinis ,usrdata ,usrhora ) select ( left(@userinis,3) + 'tt' + left(newid(),5) + right(newid(),5) + left(newid(),5) + right(newid(),5)) stamp ,@mybostamp stampbo ,totiva.codigo ,totiva.taxa ,totiva.ebaseinc ,totiva.baseinc ,totiva.evalor ,totiva.valor ,@userinis ,convert (date,getdate()) ,convert (time,getdate()) ,@userinis ,convert (date,getdate()) ,convert (time,getdate()) from @totaisiva totiva left join bot on totiva.bostamp = bot.bostamp and totiva.codigo = bot.codigo where bot.botstamp is null -- atualiza os campo bi.series e bi.series2, caso tenha equipamentos update bi set series = s1, series2=s2 from bi inner join ( select distinct bistamp,ser.s1, ser.s2 from boma cross apply (select stuff ( ( select ',' + rtrim(serie) from boma myboma where myboma.bistamp = boma.bistamp order by serie for xml path('') ), 1, 1, '' ) s1 , stuff ( ( select ',' + rtrim(serie2) from boma myboma where myboma.bistamp = boma.bistamp order by serie for xml path('') ), 1, 1, '' ) s2 ) ser where boma.bostamp = @mybostamp ) myboma on bi.bistamp = myboma.bistamp where bi.bostamp = @mybostamp 
20240703@081912.7439 usld229th2cbiorqg2crg2mpft Query : use flama_phc
20240703@081912.7443 usld229th2cbiorqg2crg2mpft Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@081912.7457 usld229th2cbiorqg2crg2mpft Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='760';
20240703@081912.7473 usld229th2cbiorqg2crg2mpft Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='760';
20240703@083610.9316 o3lh7q6m8mum836k54nkd30vpn Query : use flama_phc
20240703@083610.9322 o3lh7q6m8mum836k54nkd30vpn Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@083610.9341 o3lh7q6m8mum836k54nkd30vpn Query : use flama_phc
20240703@083610.9345 o3lh7q6m8mum836k54nkd30vpn Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@091908.8665 9vj0i9vem1rr5fpgd1bu4fi4u2 Query : use flama_phc
20240703@091908.8670 9vj0i9vem1rr5fpgd1bu4fi4u2 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@091908.8723 9vj0i9vem1rr5fpgd1bu4fi4u2 Query : use flama_phc
20240703@091908.8726 9vj0i9vem1rr5fpgd1bu4fi4u2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@093609.4215 qb09jq3ncj8t91qp8i562ckopf Query : use flama_phc
20240703@093609.4220 qb09jq3ncj8t91qp8i562ckopf Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@093609.4297 qb09jq3ncj8t91qp8i562ckopf Query : use flama_phc
20240703@093609.4301 qb09jq3ncj8t91qp8i562ckopf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@094213.4110 ib9hnasin79af3g31j0ng0po7v Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240703@094213.5010 ib9hnasin79af3g31j0ng0po7v Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240703@094213.7230 ib9hnasin79af3g31j0ng0po7v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='761';
20240703@094213.7650 ib9hnasin79af3g31j0ng0po7v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='761';
20240703@094213.8010 ib9hnasin79af3g31j0ng0po7v Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='761';
20240703@094213.8150 ib9hnasin79af3g31j0ng0po7v Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='761';
20240703@094213.1635 vkcl81t40in75ebdv2pulsnljt Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240703@094213.1650 vkcl81t40in75ebdv2pulsnljt Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240703@094213.1670 vkcl81t40in75ebdv2pulsnljt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='762';
20240703@094213.1711 vkcl81t40in75ebdv2pulsnljt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='762';
20240703@094213.1727 vkcl81t40in75ebdv2pulsnljt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='762';
20240703@094213.1739 vkcl81t40in75ebdv2pulsnljt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='762';
20240703@094213.1752 vkcl81t40in75ebdv2pulsnljt Query : use flama_phc
20240703@094213.1756 vkcl81t40in75ebdv2pulsnljt Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240703@094213.1841 vkcl81t40in75ebdv2pulsnljt Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20240703@094213.1920 vkcl81t40in75ebdv2pulsnljt Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1705.00.1'
20240703@094213.2046 vkcl81t40in75ebdv2pulsnljt Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9036.00.1'
20240703@094213.2164 vkcl81t40in75ebdv2pulsnljt Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '328.9075.00.1'
20240703@094213.2281 vkcl81t40in75ebdv2pulsnljt Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1816.00.1'
20240703@094213.2402 vkcl81t40in75ebdv2pulsnljt Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1816.00.1'
20240703@094213.2412 vkcl81t40in75ebdv2pulsnljt Query : use flama_phc
20240703@094213.2415 vkcl81t40in75ebdv2pulsnljt Query : select top 1 1 valor from ts where ts.ndos = 5
20240703@094213.2498 vkcl81t40in75ebdv2pulsnljt Query : use flama_phc
20240703@094213.2501 vkcl81t40in75ebdv2pulsnljt Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240703@094213.2554 vkcl81t40in75ebdv2pulsnljt Query : select top 1 assinadoc issigned ,ts.stocks ,ts.bdempresas origin ,case when (cmstocks between 1 and 50 or cm2stocks between 1 and 50 ) then 1 else 0 end entrada ,case when cmstocks>50 or (cm2stocks>50 and trfa =1) then 1 else 0 end saida ,stneg validatestock ,tiposaft ,veserie useserialnumber ,foserie assetin ,ftserie assetout ,veserie assets ,trfarm assetstransfer ,grelha usegridfields from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos =5
20240703@094213.2706 vkcl81t40in75ebdv2pulsnljt Query : use flama_phc
20240703@094213.2709 vkcl81t40in75ebdv2pulsnljt Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20240703@094213.2797 vkcl81t40in75ebdv2pulsnljt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='762';
20240703@094213.2809 vkcl81t40in75ebdv2pulsnljt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='762';
20240703@101911.2610 78dh0tam7k9b5ice6pr33f7ctf Query : use flama_phc
20240703@101911.2660 78dh0tam7k9b5ice6pr33f7ctf Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@101911.2850 78dh0tam7k9b5ice6pr33f7ctf Query : use flama_phc
20240703@101911.2880 78dh0tam7k9b5ice6pr33f7ctf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@103610.4046 jo3sesn660n0j79879n8on59bk Query : use flama_phc
20240703@103610.4273 jo3sesn660n0j79879n8on59bk Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@103610.4301 jo3sesn660n0j79879n8on59bk Query : use flama_phc
20240703@103610.4332 jo3sesn660n0j79879n8on59bk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@111914.2500 3pcuiq5idgg3epj0u29d5ueqe4 Query : use flama_phc
20240703@111914.2560 3pcuiq5idgg3epj0u29d5ueqe4 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@111914.2750 3pcuiq5idgg3epj0u29d5ueqe4 Query : use flama_phc
20240703@111914.2780 3pcuiq5idgg3epj0u29d5ueqe4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@113614.2510 fdb1711bbk67epdgjft2p8alg2 Query : use flama_phc
20240703@113614.2570 fdb1711bbk67epdgjft2p8alg2 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@113614.2790 fdb1711bbk67epdgjft2p8alg2 Query : use flama_phc
20240703@113614.2840 fdb1711bbk67epdgjft2p8alg2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@115451.4494 d7no4h40jneiba0n755gjp68u5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240703@115451.4519 d7no4h40jneiba0n755gjp68u5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240703@115451.4571 d7no4h40jneiba0n755gjp68u5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='763';
20240703@115451.4623 d7no4h40jneiba0n755gjp68u5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='763';
20240703@115451.4643 d7no4h40jneiba0n755gjp68u5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='763';
20240703@115451.4657 d7no4h40jneiba0n755gjp68u5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='763';
20240703@115451.4671 d7no4h40jneiba0n755gjp68u5 Query : use flama_phc
20240703@115451.4674 d7no4h40jneiba0n755gjp68u5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240703@115451.4696 d7no4h40jneiba0n755gjp68u5 Query : use flama_phc
20240703@115451.4699 d7no4h40jneiba0n755gjp68u5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2427
20240703@115451.4772 d7no4h40jneiba0n755gjp68u5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4930.00.1'
20240703@115451.4939 d7no4h40jneiba0n755gjp68u5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4930.00.1'
20240703@115451.4950 d7no4h40jneiba0n755gjp68u5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4930.00.1'
20240703@115451.4962 d7no4h40jneiba0n755gjp68u5 Query : use flama_phc
20240703@115451.4965 d7no4h40jneiba0n755gjp68u5 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240703@115451.5162 d7no4h40jneiba0n755gjp68u5 Query : use flama_phc
20240703@115451.5165 d7no4h40jneiba0n755gjp68u5 Query : select top 1 1 valor from td where td.ndoc = 39
20240703@115451.5215 d7no4h40jneiba0n755gjp68u5 Query : use flama_phc
20240703@115451.5218 d7no4h40jneiba0n755gjp68u5 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240703@121908.8333 694c9on16dni0tlhsqjfd7jg5f Query : use flama_phc
20240703@121908.8339 694c9on16dni0tlhsqjfd7jg5f Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@121908.8836 694c9on16dni0tlhsqjfd7jg5f Query : use flama_phc
20240703@121908.8884 694c9on16dni0tlhsqjfd7jg5f Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@123608.4935 4uqggusiuoo9evncohdc7056et Query : use flama_phc
20240703@123608.4946 4uqggusiuoo9evncohdc7056et Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@123608.5030 4uqggusiuoo9evncohdc7056et Query : use flama_phc
20240703@123608.5033 4uqggusiuoo9evncohdc7056et Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@131910.1113 rqdk4d7pi86crobr99rl5pto5p Query : use flama_phc
20240703@131910.1118 rqdk4d7pi86crobr99rl5pto5p Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@131910.1136 rqdk4d7pi86crobr99rl5pto5p Query : use flama_phc
20240703@131910.1139 rqdk4d7pi86crobr99rl5pto5p Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@133610.3644 omupdl6qoj1k88kdd6d190r88u Query : use flama_phc
20240703@133610.3648 omupdl6qoj1k88kdd6d190r88u Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@133610.3665 omupdl6qoj1k88kdd6d190r88u Query : use flama_phc
20240703@133610.3668 omupdl6qoj1k88kdd6d190r88u Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@141911.8615 vptpn378guplgha4ncq7m3g48a Query : use flama_phc
20240703@141911.8633 vptpn378guplgha4ncq7m3g48a Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@141911.8794 vptpn378guplgha4ncq7m3g48a Query : use flama_phc
20240703@141911.8815 vptpn378guplgha4ncq7m3g48a Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@143611.9887 77m45f1capjkobl2cmdkltmmb0 Query : use flama_phc
20240703@143611.9892 77m45f1capjkobl2cmdkltmmb0 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@143611.9910 77m45f1capjkobl2cmdkltmmb0 Query : use flama_phc
20240703@143611.9913 77m45f1capjkobl2cmdkltmmb0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@151914.5439 f4ba29q6pqhpmuh2r1qb4u488t Query : use flama_phc
20240703@151914.5485 f4ba29q6pqhpmuh2r1qb4u488t Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@151914.5897 f4ba29q6pqhpmuh2r1qb4u488t Query : use flama_phc
20240703@151914.5973 f4ba29q6pqhpmuh2r1qb4u488t Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@153614.7066 9qgraqapgs6j33jmm8kenhc8t0 Query : use flama_phc
20240703@153614.7071 9qgraqapgs6j33jmm8kenhc8t0 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@153614.7087 9qgraqapgs6j33jmm8kenhc8t0 Query : use flama_phc
20240703@153614.7090 9qgraqapgs6j33jmm8kenhc8t0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@161912.1116 626b2mg2a1ree1g1e2vbddvg32 Query : use flama_phc
20240703@161912.1120 626b2mg2a1ree1g1e2vbddvg32 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@161912.1138 626b2mg2a1ree1g1e2vbddvg32 Query : use flama_phc
20240703@161912.1142 626b2mg2a1ree1g1e2vbddvg32 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@163612.8490 6qr65apn57uea88tsrsd9s73ut Query : use flama_phc
20240703@163612.8540 6qr65apn57uea88tsrsd9s73ut Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@163612.8720 6qr65apn57uea88tsrsd9s73ut Query : use flama_phc
20240703@163612.8750 6qr65apn57uea88tsrsd9s73ut Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@171911.2288 jda1fg48vudvmb24pkjb953fi0 Query : use flama_phc
20240703@171911.2294 jda1fg48vudvmb24pkjb953fi0 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@171911.2311 jda1fg48vudvmb24pkjb953fi0 Query : use flama_phc
20240703@171911.2314 jda1fg48vudvmb24pkjb953fi0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@173611.5760 04t5sb70s4407tkhf50cj8a4e5 Query : use flama_phc
20240703@173611.5766 04t5sb70s4407tkhf50cj8a4e5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@173611.5787 04t5sb70s4407tkhf50cj8a4e5 Query : use flama_phc
20240703@173611.5790 04t5sb70s4407tkhf50cj8a4e5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@181912.8164 cns9dqsuchmr9n7rscgb8bf12g Query : use flama_phc
20240703@181912.8169 cns9dqsuchmr9n7rscgb8bf12g Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@181912.8187 cns9dqsuchmr9n7rscgb8bf12g Query : use flama_phc
20240703@181912.8197 cns9dqsuchmr9n7rscgb8bf12g Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@183612.9957 4pb3veo9olqfmvu5h51aarlcla Query : use flama_phc
20240703@183612.9962 4pb3veo9olqfmvu5h51aarlcla Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@183612.9995 4pb3veo9olqfmvu5h51aarlcla Query : use flama_phc
20240703@183612.9998 4pb3veo9olqfmvu5h51aarlcla Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@191922.8274 2msqqdq2op1g1bds5pue137s71 Query : use flama_phc
20240703@191922.8280 2msqqdq2op1g1bds5pue137s71 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@191922.8299 2msqqdq2op1g1bds5pue137s71 Query : use flama_phc
20240703@191922.8302 2msqqdq2op1g1bds5pue137s71 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@193622.6568 mgrhj62kcdjjria60p5gutf4ou Query : use flama_phc
20240703@193622.6600 mgrhj62kcdjjria60p5gutf4ou Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@193622.6618 mgrhj62kcdjjria60p5gutf4ou Query : use flama_phc
20240703@193622.6636 mgrhj62kcdjjria60p5gutf4ou Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@201912.9682 0o1f3imn94akrf0fjar818d07g Query : use flama_phc
20240703@201912.9687 0o1f3imn94akrf0fjar818d07g Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@201912.9704 0o1f3imn94akrf0fjar818d07g Query : use flama_phc
20240703@201912.9707 0o1f3imn94akrf0fjar818d07g Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@203612.5727 g3hv98j3jb0r8dq08ktuehpoea Query : use flama_phc
20240703@203612.5731 g3hv98j3jb0r8dq08ktuehpoea Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@203612.5749 g3hv98j3jb0r8dq08ktuehpoea Query : use flama_phc
20240703@203612.5753 g3hv98j3jb0r8dq08ktuehpoea Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@211910.6201 38pl2lhaeuqu1metho09g7je3s Query : use flama_phc
20240703@211910.6207 38pl2lhaeuqu1metho09g7je3s Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@211910.6231 38pl2lhaeuqu1metho09g7je3s Query : use flama_phc
20240703@211910.6235 38pl2lhaeuqu1metho09g7je3s Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@213610.7900 4tml421851ano20dlsml34fgbk Query : use flama_phc
20240703@213610.7905 4tml421851ano20dlsml34fgbk Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@213610.7927 4tml421851ano20dlsml34fgbk Query : use flama_phc
20240703@213610.7930 4tml421851ano20dlsml34fgbk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@214419.1524 38ekd4m4mecid238behb3hunv3 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240703@214419.1558 38ekd4m4mecid238behb3hunv3 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240703@214419.1681 38ekd4m4mecid238behb3hunv3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='764';
20240703@214419.1731 38ekd4m4mecid238behb3hunv3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='764';
20240703@214419.1764 38ekd4m4mecid238behb3hunv3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='764';
20240703@214419.1778 38ekd4m4mecid238behb3hunv3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='764';
20240703@214419.1793 38ekd4m4mecid238behb3hunv3 Query : use flama_phc
20240703@214419.1797 38ekd4m4mecid238behb3hunv3 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240703@214419.1861 38ekd4m4mecid238behb3hunv3 Query : use flama_phc
20240703@214419.1865 38ekd4m4mecid238behb3hunv3 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2138
20240703@214419.3018 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1834.00.1'
20240703@214419.3207 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.1834.00.1' and bi.lordem =1
20240703@214419.3565 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20240703@214419.3741 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.4970.00.1' and bi.lordem =2
20240703@214419.4184 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4743.00.1'
20240703@214419.4368 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.4743.00.1' and bi.lordem =3
20240703@214419.4740 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1266.00.1'
20240703@214419.4910 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.1266.00.1' and bi.lordem =4
20240703@214419.5263 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4860.00.1'
20240703@214419.5437 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='304.4860.00.1' and bi.lordem =5
20240703@214419.5794 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4751.00.1'
20240703@214419.5971 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.4751.00.1' and bi.lordem =6
20240703@214419.6324 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4723.00.2'
20240703@214419.6499 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.4723.00.2' and bi.lordem =7
20240703@214419.6893 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4910.00.1'
20240703@214419.7060 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.4910.00.1' and bi.lordem =8
20240703@214419.7433 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1578.00.1'
20240703@214419.7602 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.1578.00.1' and bi.lordem =9
20240703@214419.7952 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1528.00.1'
20240703@214419.8127 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.1528.00.1' and bi.lordem =10
20240703@214419.8778 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1528.00.1'
20240703@214419.8792 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.1528.00.1' and bi.lordem =10
20240703@214419.8802 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.711.00.01'
20240703@214419.9014 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.711.00.01' and bi.lordem =11
20240703@214419.9379 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2223.00.1'
20240703@214419.9713 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.2223.00.1' and bi.lordem =12
20240703@214420.3960 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2224.00.1'
20240703@214420.6840 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.2224.00.1' and bi.lordem =13
20240703@214420.1054 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4840.00.1'
20240703@214420.1218 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.4840.00.1' and bi.lordem =14
20240703@214420.1551 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2221.00.1'
20240703@214420.1717 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.2221.00.1' and bi.lordem =15
20240703@214420.2092 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2222.00.1'
20240703@214420.2273 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.2222.00.1' and bi.lordem =16
20240703@214420.2617 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2222.00.1'
20240703@214420.2631 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.2222.00.1' and bi.lordem =16
20240703@214420.2638 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1832.00.2'
20240703@214420.2827 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.1832.00.2' and bi.lordem =17
20240703@214420.3176 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1833.00.2'
20240703@214420.3341 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.1833.00.2' and bi.lordem =18
20240703@214420.3689 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1833.00.2'
20240703@214420.3701 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.1833.00.2' and bi.lordem =18
20240703@214420.3710 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.945.00.01'
20240703@214420.3870 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.945.00.01' and bi.lordem =19
20240703@214420.4221 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20240703@214420.4393 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.657.00.01' and bi.lordem =20
20240703@214420.4767 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.692.00.01'
20240703@214420.4935 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.692.00.01' and bi.lordem =21
20240703@214420.5289 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.692.00.01'
20240703@214420.5302 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.692.00.01' and bi.lordem =21
20240703@214420.5313 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4968.00.1'
20240703@214420.5487 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.4968.00.1' and bi.lordem =22
20240703@214420.5848 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4965.00.1'
20240703@214420.6027 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.4965.00.1' and bi.lordem =23
20240703@214420.6403 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4966.00.1'
20240703@214420.6625 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.4966.00.1' and bi.lordem =24
20240703@214420.7058 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.698.00.01'
20240703@214420.7229 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.698.00.01' and bi.lordem =25
20240703@214420.7580 38ekd4m4mecid238behb3hunv3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.698.00.01'
20240703@214420.7593 38ekd4m4mecid238behb3hunv3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404519 and bi.ref ='324.698.00.01' and bi.lordem =25
20240703@214420.7603 38ekd4m4mecid238behb3hunv3 Query : use flama_phc
20240703@214420.7607 38ekd4m4mecid238behb3hunv3 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240703@214420.7810 38ekd4m4mecid238behb3hunv3 Query : use flama_phc
20240703@214420.7814 38ekd4m4mecid238behb3hunv3 Query : select top 1 1 valor from td where td.ndoc = 39
20240703@214420.7866 38ekd4m4mecid238behb3hunv3 Query : use flama_phc
20240703@214420.7870 38ekd4m4mecid238behb3hunv3 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240703@214420.8462 l8a7gl5l3u1fkncmbdc1c3ghlp Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240703@214420.8478 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240703@214420.8498 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='765';
20240703@214420.8545 l8a7gl5l3u1fkncmbdc1c3ghlp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='765';
20240703@214420.8562 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='765';
20240703@214420.8575 l8a7gl5l3u1fkncmbdc1c3ghlp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='765';
20240703@214420.8590 l8a7gl5l3u1fkncmbdc1c3ghlp Query : use flama_phc
20240703@214420.8594 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240703@214420.8612 l8a7gl5l3u1fkncmbdc1c3ghlp Query : use flama_phc
20240703@214420.8616 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select no, estab,szadrsdesc from szadrs where u_coddest=4743
20240703@214420.8694 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240703@214420.8862 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404473 and bi.ref ='324.646.00.01' and bi.lordem =1
20240703@214420.9234 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240703@214420.9248 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404473 and bi.ref ='324.646.00.01' and bi.lordem =1
20240703@214420.9258 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240703@214420.9270 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404473 and bi.ref ='324.646.00.01' and bi.lordem =1
20240703@214420.9279 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240703@214420.9289 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404473 and bi.ref ='324.646.00.01' and bi.lordem =1
20240703@214420.9298 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240703@214420.9310 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404473 and bi.ref ='324.646.00.01' and bi.lordem =1
20240703@214420.9318 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240703@214420.9331 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404473 and bi.ref ='324.646.00.01' and bi.lordem =1
20240703@214420.9339 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240703@214420.9378 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404473 and bi.ref ='324.646.00.01' and bi.lordem =1
20240703@214420.9387 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240703@214420.9398 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404473 and bi.ref ='324.646.00.01' and bi.lordem =1
20240703@214420.9405 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240703@214420.9417 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404473 and bi.ref ='324.646.00.01' and bi.lordem =1
20240703@214420.9914 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.646.00.01'
20240703@214421.1460 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404473 and bi.ref ='324.646.00.01' and bi.lordem =1
20240703@214421.1470 l8a7gl5l3u1fkncmbdc1c3ghlp Query : use flama_phc
20240703@214421.1473 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240703@214421.1488 l8a7gl5l3u1fkncmbdc1c3ghlp Query : use flama_phc
20240703@214421.1491 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select top 1 1 valor from td where td.ndoc = 39
20240703@214421.1502 l8a7gl5l3u1fkncmbdc1c3ghlp Query : use flama_phc
20240703@214421.1505 l8a7gl5l3u1fkncmbdc1c3ghlp Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240703@214421.2099 r2rqmpceq6026vrtmbb6pqfg08 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240703@214421.2112 r2rqmpceq6026vrtmbb6pqfg08 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240703@214421.2129 r2rqmpceq6026vrtmbb6pqfg08 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='766';
20240703@214421.2168 r2rqmpceq6026vrtmbb6pqfg08 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='766';
20240703@214421.2183 r2rqmpceq6026vrtmbb6pqfg08 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='766';
20240703@214421.2195 r2rqmpceq6026vrtmbb6pqfg08 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='766';
20240703@214421.2209 r2rqmpceq6026vrtmbb6pqfg08 Query : use flama_phc
20240703@214421.2212 r2rqmpceq6026vrtmbb6pqfg08 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240703@214421.2226 r2rqmpceq6026vrtmbb6pqfg08 Query : use flama_phc
20240703@214421.2229 r2rqmpceq6026vrtmbb6pqfg08 Query : select no, estab,szadrsdesc from szadrs where u_coddest=16
20240703@214421.2310 r2rqmpceq6026vrtmbb6pqfg08 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20240703@214421.2466 r2rqmpceq6026vrtmbb6pqfg08 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404496 and bi.ref ='324.1705.00.1' and bi.lordem =1
20240703@214421.2793 r2rqmpceq6026vrtmbb6pqfg08 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20240703@214421.2806 r2rqmpceq6026vrtmbb6pqfg08 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404496 and bi.ref ='324.1705.00.1' and bi.lordem =1
20240703@214421.2816 r2rqmpceq6026vrtmbb6pqfg08 Query : use flama_phc
20240703@214421.2819 r2rqmpceq6026vrtmbb6pqfg08 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240703@214421.2835 r2rqmpceq6026vrtmbb6pqfg08 Query : use flama_phc
20240703@214421.2839 r2rqmpceq6026vrtmbb6pqfg08 Query : select top 1 1 valor from td where td.ndoc = 39
20240703@214421.2853 r2rqmpceq6026vrtmbb6pqfg08 Query : use flama_phc
20240703@214421.2856 r2rqmpceq6026vrtmbb6pqfg08 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240703@214421.3362 bfqi10jqa7j5qvodaphk9lrh5c Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240703@214421.3375 bfqi10jqa7j5qvodaphk9lrh5c Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240703@214421.3393 bfqi10jqa7j5qvodaphk9lrh5c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='767';
20240703@214421.3435 bfqi10jqa7j5qvodaphk9lrh5c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='767';
20240703@214421.3451 bfqi10jqa7j5qvodaphk9lrh5c Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='767';
20240703@214421.3468 bfqi10jqa7j5qvodaphk9lrh5c Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='767';
20240703@214421.3482 bfqi10jqa7j5qvodaphk9lrh5c Query : use flama_phc
20240703@214421.3485 bfqi10jqa7j5qvodaphk9lrh5c Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240703@214421.3502 bfqi10jqa7j5qvodaphk9lrh5c Query : use flama_phc
20240703@214421.3505 bfqi10jqa7j5qvodaphk9lrh5c Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240703@214421.3581 bfqi10jqa7j5qvodaphk9lrh5c Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.698.00.01'
20240703@214421.3593 bfqi10jqa7j5qvodaphk9lrh5c Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404503 and bi.ref ='324.698.00.01' and bi.lordem =1
20240703@214421.3920 bfqi10jqa7j5qvodaphk9lrh5c Query : use flama_phc
20240703@214421.3924 bfqi10jqa7j5qvodaphk9lrh5c Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240703@214421.3939 bfqi10jqa7j5qvodaphk9lrh5c Query : use flama_phc
20240703@214421.3943 bfqi10jqa7j5qvodaphk9lrh5c Query : select top 1 1 valor from td where td.ndoc = 39
20240703@214421.3956 bfqi10jqa7j5qvodaphk9lrh5c Query : use flama_phc
20240703@214421.3958 bfqi10jqa7j5qvodaphk9lrh5c Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240703@214421.4626 8krffqrbuho6psdr5i2390chu1 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240703@214421.4674 8krffqrbuho6psdr5i2390chu1 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240703@214421.4791 8krffqrbuho6psdr5i2390chu1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='768';
20240703@214421.4834 8krffqrbuho6psdr5i2390chu1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='768';
20240703@214421.4853 8krffqrbuho6psdr5i2390chu1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='768';
20240703@214421.4866 8krffqrbuho6psdr5i2390chu1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='768';
20240703@214421.4889 8krffqrbuho6psdr5i2390chu1 Query : use flama_phc
20240703@214421.4892 8krffqrbuho6psdr5i2390chu1 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240703@214421.4909 8krffqrbuho6psdr5i2390chu1 Query : use flama_phc
20240703@214421.4912 8krffqrbuho6psdr5i2390chu1 Query : select no, estab,szadrsdesc from szadrs where u_coddest=227
20240703@214421.4983 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240703@214421.5161 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1824.00.1' and bi.lordem =1
20240703@214421.6441 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240703@214421.6705 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1824.00.1' and bi.lordem =1
20240703@214421.6714 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240703@214421.6725 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1824.00.1' and bi.lordem =2
20240703@214421.7082 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240703@214421.7096 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1824.00.1' and bi.lordem =2
20240703@214421.7105 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240703@214421.7116 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1824.00.1' and bi.lordem =2
20240703@214421.7124 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240703@214421.7138 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1824.00.1' and bi.lordem =2
20240703@214421.7146 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240703@214421.7159 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1824.00.1' and bi.lordem =2
20240703@214421.7171 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240703@214421.7184 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1824.00.1' and bi.lordem =2
20240703@214421.7193 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240703@214421.7206 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1824.00.1' and bi.lordem =2
20240703@214421.7216 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240703@214421.7228 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1824.00.1' and bi.lordem =2
20240703@214421.7235 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240703@214421.7249 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1824.00.1' and bi.lordem =2
20240703@214421.7258 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240703@214421.7271 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1824.00.1' and bi.lordem =2
20240703@214421.7280 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240703@214421.7291 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1824.00.1' and bi.lordem =3
20240703@214421.7685 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240703@214421.7856 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1816.00.1' and bi.lordem =4
20240703@214421.8328 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240703@214421.8358 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1816.00.1' and bi.lordem =4
20240703@214421.8365 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240703@214421.8379 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1816.00.1' and bi.lordem =4
20240703@214421.8390 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240703@214421.8402 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1816.00.1' and bi.lordem =4
20240703@214421.8411 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240703@214421.8423 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1816.00.1' and bi.lordem =4
20240703@214421.8432 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240703@214421.8445 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1816.00.1' and bi.lordem =4
20240703@214421.8453 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240703@214421.8465 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1816.00.1' and bi.lordem =4
20240703@214421.8475 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240703@214421.8488 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1816.00.1' and bi.lordem =4
20240703@214421.8498 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240703@214421.8514 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1816.00.1' and bi.lordem =4
20240703@214421.8522 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240703@214421.8534 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1816.00.1' and bi.lordem =4
20240703@214421.8545 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240703@214421.8556 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1816.00.1' and bi.lordem =5
20240703@214421.8930 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20240703@214421.8942 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.1705.00.1' and bi.lordem =6
20240703@214421.9316 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5501.00.1'
20240703@214421.9479 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.5501.00.1' and bi.lordem =7
20240703@214421.9812 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5501.00.1'
20240703@214421.9828 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.5501.00.1' and bi.lordem =7
20240703@214421.9839 8krffqrbuho6psdr5i2390chu1 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5500.00.1'
20240703@214422.1300 8krffqrbuho6psdr5i2390chu1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404507 and bi.ref ='324.5500.00.1' and bi.lordem =8
20240703@214422.3710 8krffqrbuho6psdr5i2390chu1 Query : use flama_phc
20240703@214422.3750 8krffqrbuho6psdr5i2390chu1 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240703@214422.3930 8krffqrbuho6psdr5i2390chu1 Query : use flama_phc
20240703@214422.3970 8krffqrbuho6psdr5i2390chu1 Query : select top 1 1 valor from td where td.ndoc = 39
20240703@214422.4110 8krffqrbuho6psdr5i2390chu1 Query : use flama_phc
20240703@214422.4140 8krffqrbuho6psdr5i2390chu1 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240703@214422.9180 t3c1gdg1s1256n83ovu9k73ggv Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240703@214422.9340 t3c1gdg1s1256n83ovu9k73ggv Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240703@214422.9550 t3c1gdg1s1256n83ovu9k73ggv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='769';
20240703@214422.9980 t3c1gdg1s1256n83ovu9k73ggv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='769';
20240703@214422.1042 t3c1gdg1s1256n83ovu9k73ggv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='769';
20240703@214422.1055 t3c1gdg1s1256n83ovu9k73ggv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='769';
20240703@214422.1070 t3c1gdg1s1256n83ovu9k73ggv Query : use flama_phc
20240703@214422.1074 t3c1gdg1s1256n83ovu9k73ggv Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240703@214422.1091 t3c1gdg1s1256n83ovu9k73ggv Query : use flama_phc
20240703@214422.1094 t3c1gdg1s1256n83ovu9k73ggv Query : select no, estab,szadrsdesc from szadrs where u_coddest=1052
20240703@214422.1171 t3c1gdg1s1256n83ovu9k73ggv Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20240703@214422.1182 t3c1gdg1s1256n83ovu9k73ggv Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404508 and bi.ref ='324.1705.00.1' and bi.lordem =1
20240703@214422.1519 t3c1gdg1s1256n83ovu9k73ggv Query : use flama_phc
20240703@214422.1523 t3c1gdg1s1256n83ovu9k73ggv Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240703@214422.1539 t3c1gdg1s1256n83ovu9k73ggv Query : use flama_phc
20240703@214422.1542 t3c1gdg1s1256n83ovu9k73ggv Query : select top 1 1 valor from td where td.ndoc = 39
20240703@214422.1556 t3c1gdg1s1256n83ovu9k73ggv Query : use flama_phc
20240703@214422.1559 t3c1gdg1s1256n83ovu9k73ggv Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240703@214422.2226 a3r2vs07c6ogdh1qab045u917e Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240703@214422.2240 a3r2vs07c6ogdh1qab045u917e Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240703@214422.2261 a3r2vs07c6ogdh1qab045u917e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='770';
20240703@214422.2305 a3r2vs07c6ogdh1qab045u917e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='770';
20240703@214422.2321 a3r2vs07c6ogdh1qab045u917e Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='770';
20240703@214422.2336 a3r2vs07c6ogdh1qab045u917e Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='770';
20240703@214422.2351 a3r2vs07c6ogdh1qab045u917e Query : use flama_phc
20240703@214422.2354 a3r2vs07c6ogdh1qab045u917e Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240703@214422.2372 a3r2vs07c6ogdh1qab045u917e Query : use flama_phc
20240703@214422.2376 a3r2vs07c6ogdh1qab045u917e Query : select no, estab,szadrsdesc from szadrs where u_coddest=2427
20240703@214422.2454 a3r2vs07c6ogdh1qab045u917e Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20240703@214422.2472 a3r2vs07c6ogdh1qab045u917e Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404509 and bi.ref ='324.1705.00.1' and bi.lordem =1
20240703@214422.2823 a3r2vs07c6ogdh1qab045u917e Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20240703@214422.2837 a3r2vs07c6ogdh1qab045u917e Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404509 and bi.ref ='324.1705.00.1' and bi.lordem =1
20240703@214422.2845 a3r2vs07c6ogdh1qab045u917e Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8261.00.1'
20240703@214422.3044 a3r2vs07c6ogdh1qab045u917e Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404509 and bi.ref ='327.8261.00.1' and bi.lordem =2
20240703@214422.3378 a3r2vs07c6ogdh1qab045u917e Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8261.00.1'
20240703@214422.3390 a3r2vs07c6ogdh1qab045u917e Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404509 and bi.ref ='327.8261.00.1' and bi.lordem =3
20240703@214422.3745 a3r2vs07c6ogdh1qab045u917e Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8261.00.1'
20240703@214422.3755 a3r2vs07c6ogdh1qab045u917e Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404509 and bi.ref ='327.8261.00.1' and bi.lordem =3
20240703@214422.3763 a3r2vs07c6ogdh1qab045u917e Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8261.00.1'
20240703@214422.3773 a3r2vs07c6ogdh1qab045u917e Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404509 and bi.ref ='327.8261.00.1' and bi.lordem =3
20240703@214422.3780 a3r2vs07c6ogdh1qab045u917e Query : use flama_phc
20240703@214422.3783 a3r2vs07c6ogdh1qab045u917e Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240703@214422.3797 a3r2vs07c6ogdh1qab045u917e Query : use flama_phc
20240703@214422.3800 a3r2vs07c6ogdh1qab045u917e Query : select top 1 1 valor from td where td.ndoc = 39
20240703@214422.3811 a3r2vs07c6ogdh1qab045u917e Query : use flama_phc
20240703@214422.3814 a3r2vs07c6ogdh1qab045u917e Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240703@214422.4306 ava82jc25g6b68f9getilnu7lo Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240703@214422.4320 ava82jc25g6b68f9getilnu7lo Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240703@214422.4364 ava82jc25g6b68f9getilnu7lo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='771';
20240703@214422.4422 ava82jc25g6b68f9getilnu7lo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='771';
20240703@214422.4439 ava82jc25g6b68f9getilnu7lo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='771';
20240703@214422.4452 ava82jc25g6b68f9getilnu7lo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='771';
20240703@214422.4467 ava82jc25g6b68f9getilnu7lo Query : use flama_phc
20240703@214422.4471 ava82jc25g6b68f9getilnu7lo Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240703@214422.4491 ava82jc25g6b68f9getilnu7lo Query : use flama_phc
20240703@214422.4494 ava82jc25g6b68f9getilnu7lo Query : select no, estab,szadrsdesc from szadrs where u_coddest=1761
20240703@214422.4575 ava82jc25g6b68f9getilnu7lo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9205.00.1'
20240703@214422.4732 ava82jc25g6b68f9getilnu7lo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404512 and bi.ref ='328.9205.00.1' and bi.lordem =1
20240703@214422.5053 ava82jc25g6b68f9getilnu7lo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9205.00.1'
20240703@214422.5065 ava82jc25g6b68f9getilnu7lo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404512 and bi.ref ='328.9205.00.1' and bi.lordem =1
20240703@214422.5073 ava82jc25g6b68f9getilnu7lo Query : use flama_phc
20240703@214422.5076 ava82jc25g6b68f9getilnu7lo Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240703@214422.5091 ava82jc25g6b68f9getilnu7lo Query : use flama_phc
20240703@214422.5098 ava82jc25g6b68f9getilnu7lo Query : select top 1 1 valor from td where td.ndoc = 39
20240703@214422.5115 ava82jc25g6b68f9getilnu7lo Query : use flama_phc
20240703@214422.5117 ava82jc25g6b68f9getilnu7lo Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240703@214422.5606 b3vk6ikritv5ujd2fdqs3mhngf Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240703@214422.5621 b3vk6ikritv5ujd2fdqs3mhngf Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240703@214422.5641 b3vk6ikritv5ujd2fdqs3mhngf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='772';
20240703@214422.5729 b3vk6ikritv5ujd2fdqs3mhngf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='772';
20240703@214422.5747 b3vk6ikritv5ujd2fdqs3mhngf Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='772';
20240703@214422.5762 b3vk6ikritv5ujd2fdqs3mhngf Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='772';
20240703@214422.5780 b3vk6ikritv5ujd2fdqs3mhngf Query : use flama_phc
20240703@214422.5783 b3vk6ikritv5ujd2fdqs3mhngf Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240703@214422.5799 b3vk6ikritv5ujd2fdqs3mhngf Query : use flama_phc
20240703@214422.5803 b3vk6ikritv5ujd2fdqs3mhngf Query : select no, estab,szadrsdesc from szadrs where u_coddest=1761
20240703@214422.5832 b3vk6ikritv5ujd2fdqs3mhngf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240703@214422.5843 b3vk6ikritv5ujd2fdqs3mhngf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404513 and bi.ref ='324.1816.00.1' and bi.lordem =1
20240703@214422.6176 b3vk6ikritv5ujd2fdqs3mhngf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240703@214422.6188 b3vk6ikritv5ujd2fdqs3mhngf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404513 and bi.ref ='324.1816.00.1' and bi.lordem =2
20240703@214422.6690 b3vk6ikritv5ujd2fdqs3mhngf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1803.00.1'
20240703@214422.6873 b3vk6ikritv5ujd2fdqs3mhngf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404513 and bi.ref ='324.1803.00.1' and bi.lordem =3
20240703@214422.7205 b3vk6ikritv5ujd2fdqs3mhngf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1803.00.1'
20240703@214422.7217 b3vk6ikritv5ujd2fdqs3mhngf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404513 and bi.ref ='324.1803.00.1' and bi.lordem =4
20240703@214422.7606 b3vk6ikritv5ujd2fdqs3mhngf Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1646.00.1'
20240703@214422.7762 b3vk6ikritv5ujd2fdqs3mhngf Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404513 and bi.ref ='324.1646.00.1' and bi.lordem =5
20240703@214422.8095 b3vk6ikritv5ujd2fdqs3mhngf Query : use flama_phc
20240703@214422.8098 b3vk6ikritv5ujd2fdqs3mhngf Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240703@214422.8112 b3vk6ikritv5ujd2fdqs3mhngf Query : use flama_phc
20240703@214422.8115 b3vk6ikritv5ujd2fdqs3mhngf Query : select top 1 1 valor from td where td.ndoc = 39
20240703@214422.8129 b3vk6ikritv5ujd2fdqs3mhngf Query : use flama_phc
20240703@214422.8133 b3vk6ikritv5ujd2fdqs3mhngf Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240703@214422.8648 f5q9hoao2dn3ng669mpg8dquh3 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240703@214422.8662 f5q9hoao2dn3ng669mpg8dquh3 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240703@214422.8680 f5q9hoao2dn3ng669mpg8dquh3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='773';
20240703@214422.8722 f5q9hoao2dn3ng669mpg8dquh3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='773';
20240703@214422.8738 f5q9hoao2dn3ng669mpg8dquh3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='773';
20240703@214422.8753 f5q9hoao2dn3ng669mpg8dquh3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='773';
20240703@214422.8769 f5q9hoao2dn3ng669mpg8dquh3 Query : use flama_phc
20240703@214422.8772 f5q9hoao2dn3ng669mpg8dquh3 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240703@214422.8790 f5q9hoao2dn3ng669mpg8dquh3 Query : use flama_phc
20240703@214422.8793 f5q9hoao2dn3ng669mpg8dquh3 Query : select no, estab,szadrsdesc from szadrs where u_coddest=416
20240703@214422.8868 f5q9hoao2dn3ng669mpg8dquh3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1461.00.1'
20240703@214422.9027 f5q9hoao2dn3ng669mpg8dquh3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404514 and bi.ref ='324.1461.00.1' and bi.lordem =1
20240703@214422.9373 f5q9hoao2dn3ng669mpg8dquh3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1461.00.1'
20240703@214422.9385 f5q9hoao2dn3ng669mpg8dquh3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404514 and bi.ref ='324.1461.00.1' and bi.lordem =2
20240703@214422.9743 f5q9hoao2dn3ng669mpg8dquh3 Query : use flama_phc
20240703@214422.9747 f5q9hoao2dn3ng669mpg8dquh3 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240703@214422.9761 f5q9hoao2dn3ng669mpg8dquh3 Query : use flama_phc
20240703@214422.9764 f5q9hoao2dn3ng669mpg8dquh3 Query : select top 1 1 valor from td where td.ndoc = 39
20240703@214422.9776 f5q9hoao2dn3ng669mpg8dquh3 Query : use flama_phc
20240703@214422.9779 f5q9hoao2dn3ng669mpg8dquh3 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240703@214423.2850 v23v1q33d817r1drtir791nqsv Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240703@214423.3010 v23v1q33d817r1drtir791nqsv Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240703@214423.3200 v23v1q33d817r1drtir791nqsv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='774';
20240703@214423.3730 v23v1q33d817r1drtir791nqsv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='774';
20240703@214423.4000 v23v1q33d817r1drtir791nqsv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='774';
20240703@214423.4150 v23v1q33d817r1drtir791nqsv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='774';
20240703@214423.4290 v23v1q33d817r1drtir791nqsv Query : use flama_phc
20240703@214423.4320 v23v1q33d817r1drtir791nqsv Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240703@214423.4480 v23v1q33d817r1drtir791nqsv Query : use flama_phc
20240703@214423.4510 v23v1q33d817r1drtir791nqsv Query : select no, estab,szadrsdesc from szadrs where u_coddest=201
20240703@214423.5330 v23v1q33d817r1drtir791nqsv Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1667.00.1'
20240703@214423.6940 v23v1q33d817r1drtir791nqsv Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404523 and bi.ref ='324.1667.00.1' and bi.lordem =1
20240703@214423.1065 v23v1q33d817r1drtir791nqsv Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '325.1675.3015'
20240703@214423.1229 v23v1q33d817r1drtir791nqsv Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404523 and bi.ref ='325.1675.3015' and bi.lordem =2
20240703@214423.1561 v23v1q33d817r1drtir791nqsv Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9006.00.1'
20240703@214423.1781 v23v1q33d817r1drtir791nqsv Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404523 and bi.ref ='328.9006.00.1' and bi.lordem =3
20240703@214423.2125 v23v1q33d817r1drtir791nqsv Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9345.00.1'
20240703@214423.2295 v23v1q33d817r1drtir791nqsv Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404523 and bi.ref ='328.9345.00.1' and bi.lordem =4
20240703@214423.2651 v23v1q33d817r1drtir791nqsv Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8253.00.1'
20240703@214423.2815 v23v1q33d817r1drtir791nqsv Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404523 and bi.ref ='327.8253.00.1' and bi.lordem =5
20240703@214423.3234 v23v1q33d817r1drtir791nqsv Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.422.00.07'
20240703@214423.3504 v23v1q33d817r1drtir791nqsv Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404523 and bi.ref ='304.422.00.07' and bi.lordem =6
20240703@214423.3857 v23v1q33d817r1drtir791nqsv Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.421.00.04'
20240703@214423.4026 v23v1q33d817r1drtir791nqsv Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404523 and bi.ref ='304.421.00.04' and bi.lordem =7
20240703@214423.4426 v23v1q33d817r1drtir791nqsv Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1834.00.1'
20240703@214423.4439 v23v1q33d817r1drtir791nqsv Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404523 and bi.ref ='324.1834.00.1' and bi.lordem =8
20240703@214423.4779 v23v1q33d817r1drtir791nqsv Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1834.00.1'
20240703@214423.4790 v23v1q33d817r1drtir791nqsv Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404523 and bi.ref ='324.1834.00.1' and bi.lordem =8
20240703@214423.4798 v23v1q33d817r1drtir791nqsv Query : use flama_phc
20240703@214423.4800 v23v1q33d817r1drtir791nqsv Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240703@214423.4816 v23v1q33d817r1drtir791nqsv Query : use flama_phc
20240703@214423.4819 v23v1q33d817r1drtir791nqsv Query : select top 1 1 valor from td where td.ndoc = 39
20240703@214423.4830 v23v1q33d817r1drtir791nqsv Query : use flama_phc
20240703@214423.4833 v23v1q33d817r1drtir791nqsv Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240703@214423.5340 dchksaqb56bfm3a95mni6pf3ml Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240703@214423.5353 dchksaqb56bfm3a95mni6pf3ml Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240703@214423.5376 dchksaqb56bfm3a95mni6pf3ml Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='775';
20240703@214423.5415 dchksaqb56bfm3a95mni6pf3ml Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='775';
20240703@214423.5431 dchksaqb56bfm3a95mni6pf3ml Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='775';
20240703@214423.5443 dchksaqb56bfm3a95mni6pf3ml Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='775';
20240703@214423.5456 dchksaqb56bfm3a95mni6pf3ml Query : use flama_phc
20240703@214423.5459 dchksaqb56bfm3a95mni6pf3ml Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240703@214423.5474 dchksaqb56bfm3a95mni6pf3ml Query : use flama_phc
20240703@214423.5477 dchksaqb56bfm3a95mni6pf3ml Query : select no, estab,szadrsdesc from szadrs where u_coddest=1030
20240703@214423.5558 dchksaqb56bfm3a95mni6pf3ml Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1685.00.1'
20240703@214423.5713 dchksaqb56bfm3a95mni6pf3ml Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404530 and bi.ref ='324.1685.00.1' and bi.lordem =1
20240703@214423.6042 dchksaqb56bfm3a95mni6pf3ml Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1646.00.1'
20240703@214423.6053 dchksaqb56bfm3a95mni6pf3ml Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404530 and bi.ref ='324.1646.00.1' and bi.lordem =2
20240703@214423.6384 dchksaqb56bfm3a95mni6pf3ml Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1643.00.1'
20240703@214423.6548 dchksaqb56bfm3a95mni6pf3ml Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404530 and bi.ref ='324.1643.00.1' and bi.lordem =3
20240703@214423.6899 dchksaqb56bfm3a95mni6pf3ml Query : use flama_phc
20240703@214423.6902 dchksaqb56bfm3a95mni6pf3ml Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240703@214423.6918 dchksaqb56bfm3a95mni6pf3ml Query : use flama_phc
20240703@214423.6921 dchksaqb56bfm3a95mni6pf3ml Query : select top 1 1 valor from td where td.ndoc = 39
20240703@214423.6933 dchksaqb56bfm3a95mni6pf3ml Query : use flama_phc
20240703@214423.6936 dchksaqb56bfm3a95mni6pf3ml Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240703@214423.7476 0q19uqm79tg1u9opc2vereivtq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240703@214423.7490 0q19uqm79tg1u9opc2vereivtq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240703@214423.7507 0q19uqm79tg1u9opc2vereivtq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='776';
20240703@214423.7551 0q19uqm79tg1u9opc2vereivtq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='776';
20240703@214423.7569 0q19uqm79tg1u9opc2vereivtq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='776';
20240703@214423.7584 0q19uqm79tg1u9opc2vereivtq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='776';
20240703@214423.7598 0q19uqm79tg1u9opc2vereivtq Query : use flama_phc
20240703@214423.7602 0q19uqm79tg1u9opc2vereivtq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240703@214423.7619 0q19uqm79tg1u9opc2vereivtq Query : use flama_phc
20240703@214423.7622 0q19uqm79tg1u9opc2vereivtq Query : select no, estab,szadrsdesc from szadrs where u_coddest=1447
20240703@214423.7704 0q19uqm79tg1u9opc2vereivtq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5540.00.1'
20240703@214423.7867 0q19uqm79tg1u9opc2vereivtq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404532 and bi.ref ='324.5540.00.1' and bi.lordem =1
20240703@214423.8205 0q19uqm79tg1u9opc2vereivtq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5501.00.1'
20240703@214423.8218 0q19uqm79tg1u9opc2vereivtq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404532 and bi.ref ='324.5501.00.1' and bi.lordem =2
20240703@214423.8726 0q19uqm79tg1u9opc2vereivtq Query : use flama_phc
20240703@214423.8729 0q19uqm79tg1u9opc2vereivtq Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240703@214423.8745 0q19uqm79tg1u9opc2vereivtq Query : use flama_phc
20240703@214423.8748 0q19uqm79tg1u9opc2vereivtq Query : select top 1 1 valor from td where td.ndoc = 39
20240703@214423.8760 0q19uqm79tg1u9opc2vereivtq Query : use flama_phc
20240703@214423.8763 0q19uqm79tg1u9opc2vereivtq Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240703@214423.9348 5cu2sgr5g12gsurr8klbp5uirs Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240703@214423.9363 5cu2sgr5g12gsurr8klbp5uirs Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240703@214423.9383 5cu2sgr5g12gsurr8klbp5uirs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='777';
20240703@214424.6400 5cu2sgr5g12gsurr8klbp5uirs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='777';
20240703@214424.6600 5cu2sgr5g12gsurr8klbp5uirs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='777';
20240703@214424.6740 5cu2sgr5g12gsurr8klbp5uirs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='777';
20240703@214424.2127 fg48d7nevungljfcad0tcqjn0g Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240703@214424.2141 fg48d7nevungljfcad0tcqjn0g Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240703@214424.2158 fg48d7nevungljfcad0tcqjn0g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='778';
20240703@214424.2200 fg48d7nevungljfcad0tcqjn0g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='778';
20240703@214424.2218 fg48d7nevungljfcad0tcqjn0g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='778';
20240703@214424.2230 fg48d7nevungljfcad0tcqjn0g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='778';
20240703@214424.2248 fg48d7nevungljfcad0tcqjn0g Query : use flama_phc
20240703@214424.2251 fg48d7nevungljfcad0tcqjn0g Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240703@214424.2266 fg48d7nevungljfcad0tcqjn0g Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20240703@214424.2491 fg48d7nevungljfcad0tcqjn0g Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.948.00.01'
20240703@214424.2631 fg48d7nevungljfcad0tcqjn0g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 024/360 and bi.ref ='324.948.00.01' and bi.lordem =1
20240703@221913.6982 m3hj4uf0uk9hoh9v5q63mlkvs0 Query : use flama_phc
20240703@221913.6987 m3hj4uf0uk9hoh9v5q63mlkvs0 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@221913.7049 m3hj4uf0uk9hoh9v5q63mlkvs0 Query : use flama_phc
20240703@221913.7052 m3hj4uf0uk9hoh9v5q63mlkvs0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@223613.4037 p2vdfhl218s1askkhbl48i3ph4 Query : use flama_phc
20240703@223613.4041 p2vdfhl218s1askkhbl48i3ph4 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@223613.4062 p2vdfhl218s1askkhbl48i3ph4 Query : use flama_phc
20240703@223613.4064 p2vdfhl218s1askkhbl48i3ph4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@231910.9124 6rg9onjn8cfkkd0age7vt5maa6 Query : use flama_phc
20240703@231910.9129 6rg9onjn8cfkkd0age7vt5maa6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@231910.9148 6rg9onjn8cfkkd0age7vt5maa6 Query : use flama_phc
20240703@231910.9151 6rg9onjn8cfkkd0age7vt5maa6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240703@233611.5330 il4e8utbs2eb1cr4agnbhevt09 Query : use flama_phc
20240703@233611.5380 il4e8utbs2eb1cr4agnbhevt09 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240703@233611.5560 il4e8utbs2eb1cr4agnbhevt09 Query : use flama_phc
20240703@233611.5590 il4e8utbs2eb1cr4agnbhevt09 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@071912.2528 5h68vu0uiiulrtqongheeqicd9 Query : use flama_phc
20240704@071912.2533 5h68vu0uiiulrtqongheeqicd9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@071912.2599 5h68vu0uiiulrtqongheeqicd9 Query : use flama_phc
20240704@071912.2602 5h68vu0uiiulrtqongheeqicd9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@073613.9367 kfm5e9o7qr1vvd3l7egprodpag Query : use flama_phc
20240704@073613.9372 kfm5e9o7qr1vvd3l7egprodpag Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@073613.9453 kfm5e9o7qr1vvd3l7egprodpag Query : use flama_phc
20240704@073613.9456 kfm5e9o7qr1vvd3l7egprodpag Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@081909.3137 ippc1hg8sq83s062qaooaivngh Query : use flama_phc
20240704@081909.3141 ippc1hg8sq83s062qaooaivngh Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@081909.3208 ippc1hg8sq83s062qaooaivngh Query : use flama_phc
20240704@081909.3211 ippc1hg8sq83s062qaooaivngh Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@083609.1862 d9bmfpqc4cqo62nflr1tr0gcdg Query : use flama_phc
20240704@083609.1867 d9bmfpqc4cqo62nflr1tr0gcdg Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@083609.1885 d9bmfpqc4cqo62nflr1tr0gcdg Query : use flama_phc
20240704@083609.1888 d9bmfpqc4cqo62nflr1tr0gcdg Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@090602.3169 uphs8dd0ps2alg9jm19blasiac Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240704@090602.3200 uphs8dd0ps2alg9jm19blasiac Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240704@090602.3702 uphs8dd0ps2alg9jm19blasiac Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='779';
20240704@090602.4357 uphs8dd0ps2alg9jm19blasiac Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='779';
20240704@090602.4613 uphs8dd0ps2alg9jm19blasiac Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='779';
20240704@090602.4629 uphs8dd0ps2alg9jm19blasiac Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='779';
20240704@090602.4646 uphs8dd0ps2alg9jm19blasiac Query : use flama_phc
20240704@090602.4650 uphs8dd0ps2alg9jm19blasiac Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240704@090602.4703 uphs8dd0ps2alg9jm19blasiac Query : use flama_phc
20240704@090602.4706 uphs8dd0ps2alg9jm19blasiac Query : select no, estab,szadrsdesc from szadrs where u_coddest=7778
20240704@090602.4779 uphs8dd0ps2alg9jm19blasiac Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.422.00.07'
20240704@090602.4929 uphs8dd0ps2alg9jm19blasiac Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.422.00.07'
20240704@090602.4941 uphs8dd0ps2alg9jm19blasiac Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20240704@090602.5106 uphs8dd0ps2alg9jm19blasiac Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20240704@090602.5118 uphs8dd0ps2alg9jm19blasiac Query : use flama_phc
20240704@090602.5121 uphs8dd0ps2alg9jm19blasiac Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240704@090602.5302 uphs8dd0ps2alg9jm19blasiac Query : use flama_phc
20240704@090602.5305 uphs8dd0ps2alg9jm19blasiac Query : select top 1 1 valor from td where td.ndoc = 39
20240704@090602.5348 uphs8dd0ps2alg9jm19blasiac Query : use flama_phc
20240704@090602.5351 uphs8dd0ps2alg9jm19blasiac Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240704@091910.4783 re0762ajmdo0eub1o74lqgskkc Query : use flama_phc
20240704@091910.4788 re0762ajmdo0eub1o74lqgskkc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@091910.4846 re0762ajmdo0eub1o74lqgskkc Query : use flama_phc
20240704@091910.4850 re0762ajmdo0eub1o74lqgskkc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@093610.6165 42nkdjq5ngtdsdtfhboof1go3c Query : use flama_phc
20240704@093610.6170 42nkdjq5ngtdsdtfhboof1go3c Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@093610.6188 42nkdjq5ngtdsdtfhboof1go3c Query : use flama_phc
20240704@093610.6191 42nkdjq5ngtdsdtfhboof1go3c Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@101909.3180 01va3410o7peint3lsislkeeqp Query : use flama_phc
20240704@101909.3214 01va3410o7peint3lsislkeeqp Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@101909.3358 01va3410o7peint3lsislkeeqp Query : use flama_phc
20240704@101909.3364 01va3410o7peint3lsislkeeqp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@103609.5655 7kvks56vtgvk6e0v35k1moheah Query : use flama_phc
20240704@103609.5660 7kvks56vtgvk6e0v35k1moheah Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@103609.5677 7kvks56vtgvk6e0v35k1moheah Query : use flama_phc
20240704@103609.5680 7kvks56vtgvk6e0v35k1moheah Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@111910.7437 f7j8avulhffbvi303d21i592u4 Query : use flama_phc
20240704@111910.7468 f7j8avulhffbvi303d21i592u4 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@111910.7813 f7j8avulhffbvi303d21i592u4 Query : use flama_phc
20240704@111910.7854 f7j8avulhffbvi303d21i592u4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@112204.7822 en4ck5umb976f43qg57tjechrp Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240704@112204.7855 en4ck5umb976f43qg57tjechrp Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240704@112204.7974 en4ck5umb976f43qg57tjechrp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='780';
20240704@112204.8022 en4ck5umb976f43qg57tjechrp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='780';
20240704@112204.8051 en4ck5umb976f43qg57tjechrp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='780';
20240704@112204.8062 en4ck5umb976f43qg57tjechrp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='780';
20240704@112204.8076 en4ck5umb976f43qg57tjechrp Query : use flama_phc
20240704@112204.8080 en4ck5umb976f43qg57tjechrp Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240704@112204.8129 en4ck5umb976f43qg57tjechrp Query : use flama_phc
20240704@112204.8132 en4ck5umb976f43qg57tjechrp Query : select no, estab,szadrsdesc from szadrs where u_coddest=1474
20240704@112204.8201 en4ck5umb976f43qg57tjechrp Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '327.8261.00.1'
20240704@112204.8363 en4ck5umb976f43qg57tjechrp Query : use flama_phc
20240704@112204.8366 en4ck5umb976f43qg57tjechrp Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240704@112204.8548 en4ck5umb976f43qg57tjechrp Query : use flama_phc
20240704@112204.8551 en4ck5umb976f43qg57tjechrp Query : select top 1 1 valor from td where td.ndoc = 39
20240704@112204.8600 en4ck5umb976f43qg57tjechrp Query : use flama_phc
20240704@112204.8603 en4ck5umb976f43qg57tjechrp Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240704@113610.6271 4n4acr77btuo2t61gqk10rrgu0 Query : use flama_phc
20240704@113610.6278 4n4acr77btuo2t61gqk10rrgu0 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@113610.6296 4n4acr77btuo2t61gqk10rrgu0 Query : use flama_phc
20240704@113610.6298 4n4acr77btuo2t61gqk10rrgu0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@121908.6468 56oucvrbtf1nhna5cnf8mqltcb Query : use flama_phc
20240704@121908.6542 56oucvrbtf1nhna5cnf8mqltcb Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@121908.6719 56oucvrbtf1nhna5cnf8mqltcb Query : use flama_phc
20240704@121908.6722 56oucvrbtf1nhna5cnf8mqltcb Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@123608.8785 45tv633f6koacvcm355omlggri Query : use flama_phc
20240704@123608.8790 45tv633f6koacvcm355omlggri Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@123608.8807 45tv633f6koacvcm355omlggri Query : use flama_phc
20240704@123608.8809 45tv633f6koacvcm355omlggri Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@131909.5200 7cvuv1v128rqisjl25cgu49hks Query : use flama_phc
20240704@131909.5240 7cvuv1v128rqisjl25cgu49hks Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@131909.5420 7cvuv1v128rqisjl25cgu49hks Query : use flama_phc
20240704@131909.5450 7cvuv1v128rqisjl25cgu49hks Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@133609.2969 en271if5nvu629kt1jb2t8maff Query : use flama_phc
20240704@133609.2983 en271if5nvu629kt1jb2t8maff Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@133609.3001 en271if5nvu629kt1jb2t8maff Query : use flama_phc
20240704@133609.3004 en271if5nvu629kt1jb2t8maff Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@141912.3118 lgt3vqd6gvgpivabf8s0m18mg5 Query : use flama_phc
20240704@141912.3122 lgt3vqd6gvgpivabf8s0m18mg5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@141912.3142 lgt3vqd6gvgpivabf8s0m18mg5 Query : use flama_phc
20240704@141912.3145 lgt3vqd6gvgpivabf8s0m18mg5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@143612.9740 0h8u0dnh8hp9douquci3lteven Query : use flama_phc
20240704@143612.9790 0h8u0dnh8hp9douquci3lteven Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@143612.1075 0h8u0dnh8hp9douquci3lteven Query : use flama_phc
20240704@143612.1078 0h8u0dnh8hp9douquci3lteven Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@151910.5985 utciac9jba1m9ce045prep0rk1 Query : use flama_phc
20240704@151910.5990 utciac9jba1m9ce045prep0rk1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@151910.6007 utciac9jba1m9ce045prep0rk1 Query : use flama_phc
20240704@151910.6010 utciac9jba1m9ce045prep0rk1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@153610.9821 tumlgth8f2fsgb0a8qlmtofllm Query : use flama_phc
20240704@153610.9826 tumlgth8f2fsgb0a8qlmtofllm Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@153610.9843 tumlgth8f2fsgb0a8qlmtofllm Query : use flama_phc
20240704@153610.9846 tumlgth8f2fsgb0a8qlmtofllm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@155228.3104 k9fa0bpr857jnvkbeo84joo4g1 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240704@155228.3129 k9fa0bpr857jnvkbeo84joo4g1 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240704@155228.3179 k9fa0bpr857jnvkbeo84joo4g1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='781';
20240704@155228.3225 k9fa0bpr857jnvkbeo84joo4g1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='781';
20240704@155228.3241 k9fa0bpr857jnvkbeo84joo4g1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='781';
20240704@155228.3252 k9fa0bpr857jnvkbeo84joo4g1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='781';
20240704@155228.3266 k9fa0bpr857jnvkbeo84joo4g1 Query : use flama_phc
20240704@155228.3269 k9fa0bpr857jnvkbeo84joo4g1 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240704@155228.3289 k9fa0bpr857jnvkbeo84joo4g1 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '326.595.00.01'
20240704@155228.3405 k9fa0bpr857jnvkbeo84joo4g1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 024/365 and bi.ref ='326.595.00.01' and bi.lordem =1
20240704@160728.4850 3kkbp161n09kl2dki704fan4q1 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240704@160728.5110 3kkbp161n09kl2dki704fan4q1 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240704@160728.5880 3kkbp161n09kl2dki704fan4q1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='782';
20240704@160728.6260 3kkbp161n09kl2dki704fan4q1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='782';
20240704@160728.6420 3kkbp161n09kl2dki704fan4q1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='782';
20240704@160728.6590 3kkbp161n09kl2dki704fan4q1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='782';
20240704@160728.6720 3kkbp161n09kl2dki704fan4q1 Query : use flama_phc
20240704@160728.6760 3kkbp161n09kl2dki704fan4q1 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240704@160728.7330 3kkbp161n09kl2dki704fan4q1 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1416.00.1'
20240704@160728.8730 3kkbp161n09kl2dki704fan4q1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =002 and bo.boano =2024 and bo.obrano = 2400079 and bi.ref ='324.1416.00.1' and bi.lordem =20000
20240704@160728.1248 3kkbp161n09kl2dki704fan4q1 Query : select bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.obranome ,bi.bostamp ,bo.moeda ,bi.vumoeda ,isnull(bi.vumoeda/nullif(bi.edebito,0),1) cambio ,bi.tabiva from bi inner join bo on bi.bostamp = bo.bostamp where bi.bistamp = 'cps24012255067,328000002 ' 
20240704@160728.1582 3kkbp161n09kl2dki704fan4q1 Query : use flama_phc
20240704@160728.1585 3kkbp161n09kl2dki704fan4q1 Query : select top 1 1 valor from ts where ts.ndos = 61
20240704@160728.1665 3kkbp161n09kl2dki704fan4q1 Query : use flama_phc
20240704@160728.1668 3kkbp161n09kl2dki704fan4q1 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240704@160728.1737 3kkbp161n09kl2dki704fan4q1 Query : select top 1 assinadoc issigned ,ts.stocks ,ts.bdempresas origin ,case when (cmstocks between 1 and 50 or cm2stocks between 1 and 50 ) then 1 else 0 end entrada ,case when cmstocks>50 or (cm2stocks>50 and trfa =1) then 1 else 0 end saida ,stneg validatestock ,tiposaft ,veserie useserialnumber ,foserie assetin ,ftserie assetout ,veserie assets ,trfarm assetstransfer ,grelha usegridfields from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos =61
20240704@160728.1892 3kkbp161n09kl2dki704fan4q1 Query : use flama_phc
20240704@160728.1895 3kkbp161n09kl2dki704fan4q1 Query : select top 1 ~inactivo valor from fl where no = '202406' and estab = 00 order by inactivo desc
20240704@160728.1983 3kkbp161n09kl2dki704fan4q1 Query : use flama_phc
20240704@160728.1986 3kkbp161n09kl2dki704fan4q1 Query : select 1 valor from ts where ndos = 61
20240704@160728.2061 3kkbp161n09kl2dki704fan4q1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240704@160728.2383 3kkbp161n09kl2dki704fan4q1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240704@160728.2462 3kkbp161n09kl2dki704fan4q1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240704@160728.2474 3kkbp161n09kl2dki704fan4q1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240704@160728.2481 3kkbp161n09kl2dki704fan4q1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240704@160728.2493 3kkbp161n09kl2dki704fan4q1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240704@160728.2499 3kkbp161n09kl2dki704fan4q1 Query : select top 1 ts2.manternumero, ts.tiposaft, ts.idserie,ts.nmdos,ts.bdempresas from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos = 61
20240704@160728.2642 3kkbp161n09kl2dki704fan4q1 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240704@160728.2752 3kkbp161n09kl2dki704fan4q1 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240704@160728.2769 3kkbp161n09kl2dki704fan4q1 Query : use flama_phc
20240704@160728.2772 3kkbp161n09kl2dki704fan4q1 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202406' and estab=00
20240704@160728.2880 3kkbp161n09kl2dki704fan4q1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240704@160728.2902 3kkbp161n09kl2dki704fan4q1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240704@160728.2942 3kkbp161n09kl2dki704fan4q1 Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6686b061916686bab043',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240704@160728.3025 3kkbp161n09kl2dki704fan4q1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240704@160728.3039 3kkbp161n09kl2dki704fan4q1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240704@160728.3047 3kkbp161n09kl2dki704fan4q1 Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6686b061916686bab043','--','bo',1.1161387631975867269 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240704@160728.3288 3kkbp161n09kl2dki704fan4q1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240704@160728.3312 3kkbp161n09kl2dki704fan4q1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240704@160728.3320 3kkbp161n09kl2dki704fan4q1 Query : insert into bo (bostamp, nmdos, dataobra, ndos, obrano, no, estab, nome, ncont, morada, local, codpost, moeda, boano, memissao,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6686b061916686bab043','guia r. fornecedor','2024-07-04',61,2401955,?,?,?,?,?,?,?,?,2024, (select valor from para1 where descricao = 'ge_euro') ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240704@160728.3937 3kkbp161n09kl2dki704fan4q1 Query : use flama_phc
20240704@160728.3941 3kkbp161n09kl2dki704fan4q1 Query : select st.usalote valor from st where st.ref = '324.1416.00.1'
20240704@160728.4065 3kkbp161n09kl2dki704fan4q1 Query : select top 1 st.tabiva ,st.ivaincl ,st.stns ,st.uni2 ,st.familia ,isnull(tx.taxa, 0) txiva ,unidade ,usalote ,epcpond ,noserie ,conversao ,st.texteis from st left join taxasiva tx on st.tabiva = tx.codigo where st.ref = '324.1416.00.1'
20240704@160728.5299 3kkbp161n09kl2dki704fan4q1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240704@160728.5312 3kkbp161n09kl2dki704fan4q1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240704@160728.5323 3kkbp161n09kl2dki704fan4q1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240704@160728.5335 3kkbp161n09kl2dki704fan4q1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240704@160728.5342 3kkbp161n09kl2dki704fan4q1 Query : select sestamp valor from se where ref ='324.1416.00.1' and lote = 'r2400079200a'
20240704@160728.5397 3kkbp161n09kl2dki704fan4q1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240704@160728.5410 3kkbp161n09kl2dki704fan4q1 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240704@160728.5417 3kkbp161n09kl2dki704fan4q1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240704@160728.5428 3kkbp161n09kl2dki704fan4q1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240704@160728.5435 3kkbp161n09kl2dki704fan4q1 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6686b550446686bab084',?,?,'20240704',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240704@160728.6008 3kkbp161n09kl2dki704fan4q1 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240704@160728.6047 3kkbp161n09kl2dki704fan4q1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240704@160728.6060 3kkbp161n09kl2dki704fan4q1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240704@160728.6067 3kkbp161n09kl2dki704fan4q1 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6686b642966686bab093','aut6686b061916686bab043',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from bo bo where bo.bostamp = 'aut6686b061916686bab043'
20240704@160728.6278 3kkbp161n09kl2dki704fan4q1 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240704@160728.6294 3kkbp161n09kl2dki704fan4q1 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240704@160728.6308 3kkbp161n09kl2dki704fan4q1 Query : insert into bi (bistamp,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis ,obrano, qtt,uni2qtt ,no, estab,nmdos ,ndos, obranome,fechada, dataobra ,rdata ,dataopen, datafecho,local, morada ,codpost, nome,bostamp,lordem ,edebito,debito, epu,pu ,ivaincl,stns,unidade, unidad2 ,marcada,usalote ,ettdeb,ttdeb,epcusto, pcusto ,ecustoind,custoind ,vendedor,vendnm, ccusto,ncusto ,noserie,tabiva,iva ,ref,design,familia,desconto,desc2,desc3,desc4,eslvu,slvu,esltt,sltt,oobistamp,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,obistamp ,stipo) select 'aut6686b642966686bab093',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 3224, 3224*.0000000 ,bo.no, bo.estab,bo.nmdos ,bo.ndos, bo.obranome,bo.fechada, bo.dataobra ,bo.dataobra ,bo.dataopen,bo.datafecho,bo.local, bo.morada ,bo.codpost, bo.nome,bo.bostamp,10000 ,13.26,13.26*200.48,13.26,13.26*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,13.26*3224,13.26*3224*200.48 ,16.152000,16.152000*200.48 ,16.152000,16.152000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,13.26,13.26*200.48,13.26*3224,13.26*3224*200.48,'cps24012255067,328000002 ',14.8,14.8*3224,14.8,14.8*3224,?,?,?,4 from bo bo where bo.bostamp = 'aut6686b061916686bab043'
20240704@160735.5580 3kkbp161n09kl2dki704fan4q1 Query : use flama_phc
20240704@160735.5630 3kkbp161n09kl2dki704fan4q1 Query : declare @bostamp varchar(25) = 'aut6686b061916686bab043' ,@bistamp varchar(25) = '' update bi set tecoval = qtt * ecoval ,etecoval = qtt * eecoval ,tecoval2 = qtt * ecoval2 ,etecoval2 = qtt * eecoval2 where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end -- se tiver classificação e não for normal, não calcula nada update bi set ttdeb = 0 ,ettdeb = 0 ,ttmoeda = 0 where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and bi.classifc <> '' and bi.classifc <> 'normal' -- no caso normal com moeda euro if exists ( select 1 from bo cross apply ( select valor moeda from para1 where descricao = 'ge_pteoueuro' ) par where bo.bostamp = @bostamp and bo.moeda = par.moeda ) begin -- sem ecovalores update bi set ettdeb = round(bi.qtt * ((bi.edebito * (1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100))), 6) ,ttdeb = round(bi.qtt * ((bi.debito * (1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100))), 6) ,ttmoeda = 0 from bi inner join bo on bi.bostamp = bo.bostamp where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) and bi.econotcalc = 1 -- com ecovalores update bi set ettdeb = round(bi.qtt * ( ( bi.edebito + ( iif(p.st_econotdesc = 1, - bi.eecoval2, bi.eecoval) * ( 1 + iif(bi.ivaincl = 1 and tiva.taxa <> 0, tiva.taxa / 100, 0) ) ) ) * (1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) ), 6) + ( bi.qtt * iif(p.st_econotdesc = 1, (bi.eecoval + bi.eecoval2) * ( 1 + iif(bi.ivaincl = 1 and tiva.taxa <> 0, tiva.taxa / 100, 0) ), 0) ) ,ttdeb = round(bi.qtt * ( ( bi.debito + ( iif(p.st_econotdesc = 1, - bi.ecoval2, bi.ecoval) * ( 1 + iif(bi.ivaincl = 1 and tiva.taxa <> 0, tiva.taxa / 100, 0) ) ) ) * (1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) ), 6) + ( bi.qtt * iif(p.st_econotdesc = 1, (bi.ecoval + bi.ecoval2) * ( 1 + iif(bi.ivaincl = 1 and tiva.taxa <> 0, tiva.taxa / 100, 0) ), 0) ) ,ttmoeda = 0 from bi inner join bo on bi.bostamp = bo.bostamp left join st on bi.ref = st.ref left join taxasiva tiva on bi.tabiva = tiva.codigo cross apply ( select max(valor) st_econotdesc from ( select case when valor = 's' then 1 else 0 end valor from para1 where descricao = 'st_econotdesc' union all select 0 ) a ) p where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) and bi.econotcalc = 0 --acrescenta os descontos em valor, caso existam: update bi set ettdeb = round(bi.ettdeb - (bi.qtt * bi.evaldesc), 2) ,ttdeb = round(bi.ttdeb - (bi.qtt * bi.valdesc), 2) ,ttmoeda = 0 from bi where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) and bi.valdesc <> 0 end else begin update bi set ttmoeda = round((1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) * bi.qtt * bi.vumoeda, 2) ,ettdeb = case when bo2.cambio <> 0 then round((round((1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) * bi.qtt * bi.vumoeda, 2)) / bo2.cambio, 2) else 0 end ,edebito = case when bi.qtt = 0 then 0 else round(abs(( case when bo2.cambio <> 0 then round((round((1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) * bi.qtt * bi.vumoeda, 2)) / bo2.cambio, 2) else 0 end ) / (1 - bi.desconto / 100) / (1 - bi.desc2 / 100) / (1 - bi.desc3 / 100) / (1 - bi.desc4 / 100) / (1 - bi.desc5 / 100) / (1 - bi.desc6 / 100) / bi.qtt), 2) end ,debito = case when bi.qtt = 0 then 0 else round(abs(( case when bo2.cambio <> 0 then round((round((1 - bi.desconto / 100) * (1 - bi.desc2 / 100) * (1 - bi.desc3 / 100) * (1 - bi.desc4 / 100) * (1 - bi.desc5 / 100) * (1 - bi.desc6 / 100) * bi.qtt * bi.vumoeda, 2)) / bo2.cambio, 2) else 0 end ) / (1 - bi.desconto / 100) / (1 - bi.desc2 / 100) / (1 - bi.desc3 / 100) / (1 - bi.desc4 / 100) / (1 - bi.desc5 / 100) / (1 - bi.desc6 / 100) / bi.qtt), 2) end * 200.482 from bi inner join bo2 on bi.bostamp = bo2.bo2stamp where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) update bi set ttdeb = round(bi.ttdeb - (bi.qtt * bi.valdesc), 2) ,ettdeb = round(bi.ettdeb - (bi.qtt * bi.evaldesc), 0) ,debito = round(bi.debito - (bi.qtt * bi.valdesc), 2) ,edebito = round(bi.edebito - (bi.qtt * bi.evaldesc), 2) where bi.bostamp = @bostamp and bi.bistamp = case when @bistamp <> '' then @bistamp else bi.bistamp end and ( bi.classifc = '' or bi.classifc = 'normal' ) and bi.valdesc <> 0 end 
20240704@160742.2815 3kkbp161n09kl2dki704fan4q1 Query : use flama_phc
20240704@160742.2819 3kkbp161n09kl2dki704fan4q1 Query : select 1 valor from bo where bo.bostamp = 'aut6686b061916686bab043'
20240704@160742.2951 3kkbp161n09kl2dki704fan4q1 Query : declare @errno int ,@errmsg varchar(255) ,@prod bit ,@nrdec numeric(10, 0) ,@totaldeb numeric(18, 5) ,@etotaldeb numeric(19, 6) ,@total numeric(18, 5) ,@etotal numeric(19, 6) ,@custo numeric(18, 5) ,@ecusto numeric(19, 6) ,@bo_1iliq numeric(19, 6) ,@bo_2iliq numeric(19, 6) ,@base1 numeric(19, 6) ,@base2 numeric(19, 6) ,@moetotal numeric(13, 3) ,@smoe1 numeric(13, 3) ,@smoe2 numeric(13, 3) ,@smoe3 numeric(13, 3) ,@smoe4 numeric(13, 3) ,@bo11_bins numeric(18, 5) ,@bo21_bins numeric(18, 5) ,@bo31_bins numeric(18, 5) ,@bo41_bins numeric(18, 5) ,@bo51_bins numeric(18, 5) ,@bo61_bins numeric(18, 5) ,@bo71_bins numeric(18, 5) ,@bo81_bins numeric(18, 5) ,@bo91_bins numeric(18, 5) ,@bo12_bins numeric(18, 5) ,@bo22_bins numeric(18, 5) ,@bo32_bins numeric(18, 5) ,@bo42_bins numeric(18, 5) ,@bo52_bins numeric(18, 5) ,@bo62_bins numeric(18, 5) ,@bo72_bins numeric(18, 5) ,@bo82_bins numeric(18, 5) ,@bo92_bins numeric(18, 5) ,@ebo11_bins numeric(19, 6) ,@ebo21_bins numeric(19, 6) ,@ebo31_bins numeric(19, 6) ,@ebo41_bins numeric(19, 6) ,@ebo51_bins numeric(19, 6) ,@ebo61_bins numeric(19, 6) ,@ebo71_bins numeric(18, 5) ,@ebo81_bins numeric(18, 5) ,@ebo91_bins numeric(18, 5) ,@ebo12_bins numeric(19, 6) ,@ebo22_bins numeric(19, 6) ,@ebo32_bins numeric(19, 6) ,@ebo42_bins numeric(19, 6) ,@ebo52_bins numeric(19, 6) ,@ebo62_bins numeric(19, 6) ,@ebo72_bins numeric(18, 5) ,@ebo82_bins numeric(18, 5) ,@ebo92_bins numeric(18, 5) ,@bo11_iva numeric(18, 5) ,@bo21_iva numeric(18, 5) ,@bo31_iva numeric(18, 5) ,@bo41_iva numeric(18, 5) ,@bo51_iva numeric(18, 5) ,@bo61_iva numeric(18, 5) ,@bo71_iva numeric(18, 5) ,@bo81_iva numeric(18, 5) ,@bo91_iva numeric(18, 5) ,@bo12_iva numeric(18, 5) ,@bo22_iva numeric(18, 5) ,@bo32_iva numeric(18, 5) ,@bo42_iva numeric(18, 5) ,@bo52_iva numeric(18, 5) ,@bo62_iva numeric(18, 5) ,@bo72_iva numeric(18, 5) ,@bo82_iva numeric(18, 5) ,@bo92_iva numeric(18, 5) ,@ebo11_iva numeric(19, 6) ,@ebo21_iva numeric(19, 6) ,@ebo31_iva numeric(19, 6) ,@ebo41_iva numeric(19, 6) ,@ebo51_iva numeric(19, 6) ,@ebo61_iva numeric(19, 6) ,@ebo71_iva numeric(18, 5) ,@ebo81_iva numeric(18, 5) ,@ebo91_iva numeric(18, 5) ,@ebo12_iva numeric(19, 6) ,@ebo22_iva numeric(19, 6) ,@ebo32_iva numeric(19, 6) ,@ebo42_iva numeric(19, 6) ,@ebo52_iva numeric(19, 6) ,@ebo62_iva numeric(19, 6) ,@ebo72_iva numeric(18, 5) ,@ebo82_iva numeric(18, 5) ,@ebo92_iva numeric(18, 5) ,@esdeb1 numeric(19, 6) ,@esdeb2 numeric(19, 6) ,@esdeb3 numeric(19, 6) ,@esdeb4 numeric(19, 6) ,@sdeb1 numeric(18, 5) ,@sdeb2 numeric(18, 5) ,@sdeb3 numeric(18, 5) ,@sdeb4 numeric(18, 5) ,@estot1 numeric(19, 6) ,@estot2 numeric(19, 6) ,@estot3 numeric(19, 6) ,@estot4 numeric(19, 6) ,@stot1 numeric(18, 5) ,@stot2 numeric(18, 5) ,@stot3 numeric(18, 5) ,@stot4 numeric(18, 5) ,@ebo_1tvall numeric(19, 6) ,@ebo_2tvall numeric(19, 6) ,@bo_1tvall numeric(18, 5) ,@bo_2tvall numeric(18, 5) ,@ebo_totp1 numeric(19, 6) ,@ebo_totp2 numeric(19, 6) ,@bo_totp1 numeric(18, 5) ,@bo_totp2 numeric(18, 5) ,@sqtt11 numeric(13, 3) ,@sqtt21 numeric(13, 3) ,@sqtt12 numeric(13, 3) ,@sqtt22 numeric(13, 3) ,@sqtt13 numeric(13, 3) ,@sqtt23 numeric(13, 3) ,@sqtt14 numeric(13, 3) ,@sqtt24 numeric(13, 3) ,@userinis varchar (30) ,@mybostamp char(25) = 'aut6686b061916686bab043' declare @totaisiva table ( bostamp varchar (25), codigo numeric(1), taxa numeric (5,2), ebaseinc numeric (19,6), baseinc numeric (18,5), evalor numeric (19,6), valor numeric (18,5) ) set @prod = ( select ts.producao from bo(nolock) inner join ts(nolock) on bo.ndos = ts.ndos and bo.bostamp = @mybostamp ) set @nrdec = ( select convert(numeric(10, 0), valor) from para1(nolock) where descricao = 'de_euro' ) --set @prod = 0 --set @nrdec = 2 select @ecusto = sum(bi.epcusto * bi.qtt) ,@custo = sum(bi.pcusto * bi.qtt) ,@bo11_bins = sum(case when bi.tabiva = 1 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo21_bins = sum(case when bi.tabiva = 2 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo31_bins = sum(case when bi.tabiva = 3 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo41_bins = sum(case when bi.tabiva = 4 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo51_bins = sum(case when bi.tabiva = 5 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo61_bins = sum(case when bi.tabiva = 6 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo71_bins = sum(case when bi.tabiva = 7 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo81_bins = sum(case when bi.tabiva = 8 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo91_bins = sum(case when bi.tabiva = 9 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.qtt * bi.pu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo12_bins = sum(case when bi.tabiva = 1 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo22_bins = sum(case when bi.tabiva = 2 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo32_bins = sum(case when bi.tabiva = 3 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo42_bins = sum(case when bi.tabiva = 4 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo52_bins = sum(case when bi.tabiva = 5 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo62_bins = sum(case when bi.tabiva = 6 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo72_bins = sum(case when bi.tabiva = 7 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo82_bins = sum(case when bi.tabiva = 8 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo92_bins = sum(case when bi.tabiva = 9 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo11_bins = sum(case when bi.tabiva = 1 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo21_bins = sum(case when bi.tabiva = 2 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo31_bins = sum(case when bi.tabiva = 3 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo41_bins = sum(case when bi.tabiva = 4 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo51_bins = sum(case when bi.tabiva = 5 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo61_bins = sum(case when bi.tabiva = 6 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo71_bins = sum(case when bi.tabiva = 7 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo81_bins = sum(case when bi.tabiva = 8 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo91_bins = sum(case when bi.tabiva = 9 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo12_bins = sum(case when bi.tabiva = 1 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo22_bins = sum(case when bi.tabiva = 2 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo32_bins = sum(case when bi.tabiva = 3 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo42_bins = sum(case when bi.tabiva = 4 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo52_bins = sum(case when bi.tabiva = 5 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo62_bins = sum(case when bi.tabiva = 6 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo72_bins = sum(case when bi.tabiva = 7 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo82_bins = sum(case when bi.tabiva = 8 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@ebo92_bins = sum(case when bi.tabiva = 9 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@bo_1iliq = round(sum(bi.qtt * bi.epu), @nrdec) ,@bo_2iliq = round(sum(bi.ettdeb), @nrdec) ,@bo11_iva = sum(case when bi.tabiva = 1 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo12_iva = sum(case when bi.tabiva = 1 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo21_iva = sum(case when bi.tabiva = 2 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo22_iva = sum(case when bi.tabiva = 2 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo31_iva = sum(case when bi.tabiva = 3 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo32_iva = sum(case when bi.tabiva = 3 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo41_iva = sum(case when bi.tabiva = 4 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo42_iva = sum(case when bi.tabiva = 4 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo51_iva = sum(case when bi.tabiva = 5 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo52_iva = sum(case when bi.tabiva = 5 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo61_iva = sum(case when bi.tabiva = 6 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo62_iva = sum(case when bi.tabiva = 6 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo71_iva = sum(case when bi.tabiva = 7 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo72_iva = sum(case when bi.tabiva = 7 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo81_iva = sum(case when bi.tabiva = 8 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo82_iva = sum(case when bi.tabiva = 8 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo91_iva = sum(case when bi.tabiva = 9 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.pu) * (bi.iva / 100) else (bi.qtt * bi.pu) - ((bi.qtt * bi.pu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@bo92_iva = sum(case when bi.tabiva = 9 then round(case when bi.ivaincl = 0 then bi.ttdeb * (bi.iva / 100) else bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo11_iva = sum(case when bi.tabiva = 1 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo12_iva = sum(case when bi.tabiva = 1 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo21_iva = sum(case when bi.tabiva = 2 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo22_iva = sum(case when bi.tabiva = 2 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo31_iva = sum(case when bi.tabiva = 3 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo32_iva = sum(case when bi.tabiva = 3 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo41_iva = sum(case when bi.tabiva = 4 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo42_iva = sum(case when bi.tabiva = 4 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo51_iva = sum(case when bi.tabiva = 5 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo52_iva = sum(case when bi.tabiva = 5 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo61_iva = sum(case when bi.tabiva = 6 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo62_iva = sum(case when bi.tabiva = 6 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo71_iva = sum(case when bi.tabiva = 7 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo72_iva = sum(case when bi.tabiva = 7 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo81_iva = sum(case when bi.tabiva = 8 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else (bi.qtt * bi.epu) - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo82_iva = sum(case when bi.tabiva = 8 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo91_iva = sum(case when bi.tabiva = 9 then round(case when bi.ivaincl = 0 then (bi.qtt * bi.epu) * (bi.iva / 100) else bi.ettdeb - ((bi.qtt * bi.epu) / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@ebo92_iva = sum(case when bi.tabiva = 9 then round(case when bi.ivaincl = 0 then bi.ettdeb * (bi.iva / 100) else bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) end, @nrdec) else 0 end) ,@esdeb1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.ettdeb else bi.ettdeb - round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@esdeb2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.ettdeb else bi.ettdeb - round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@esdeb3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.ettdeb else bi.ettdeb - round(bi.ettdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@esdeb4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.ettdeb else round(bi.ettdeb - (bi.ettdeb / (1 + bi.iva / 100)) * bi.iva / 100, @nrdec) end else 0 end) ,@sdeb1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.ttdeb else bi.ttdeb - round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@sdeb2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.ttdeb else bi.ttdeb - round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@sdeb3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.ttdeb else bi.ttdeb - round(bi.ttdeb / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@sdeb4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.ttdeb else round(bi.ttdeb - (bi.ttdeb / (1 + bi.iva / 100)) * bi.iva / 100, @nrdec) end else 0 end) ,@smoe1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.ttmoeda else round(bi.ttmoeda / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@smoe2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.ttmoeda else round(bi.ttmoeda / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@smoe3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.ttmoeda else round(bi.ttmoeda / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@smoe4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.ttmoeda else round(bi.ttmoeda / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@estot1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@estot2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@estot3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@estot4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.qtt * bi.epu else round((bi.qtt * bi.epu) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@stot1 = sum(case when bi.stipo <= 1 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@stot2 = sum(case when bi.stipo = 2 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@stot3 = sum(case when bi.stipo = 3 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@stot4 = sum(case when bi.stipo = 4 then case when bi.ivaincl = 0 then bi.qtt * bi.pu else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end else 0 end) ,@total = @stot1 + @stot2 + @stot3 + @stot4 ,@etotal = @estot1 + @estot2 + @estot3 + @estot4 ,@totaldeb = @sdeb1 + @sdeb2 + @sdeb3 + @sdeb4 ,@etotaldeb = @esdeb1 + @esdeb2 + @esdeb3 + @esdeb4 ,@moetotal = @smoe1 + @smoe2 + @smoe3 + @smoe4 ,@ebo_1tvall = @ebo11_bins + @ebo21_bins + @ebo31_bins + @ebo41_bins + @ebo51_bins + @ebo61_bins + @ebo71_bins + @ebo81_bins + @ebo91_bins ,@ebo_2tvall = @ebo12_bins + @ebo22_bins + @ebo32_bins + @ebo42_bins + @ebo52_bins + @ebo62_bins + @ebo72_bins + @ebo82_bins + @ebo92_bins ,@bo_1tvall = @bo11_bins + @bo21_bins + @bo31_bins + @bo41_bins + @bo51_bins + @bo61_bins + @bo71_bins + @bo81_bins + @bo91_bins ,@bo_2tvall = @bo12_bins + @bo22_bins + @bo32_bins + @bo42_bins + @bo52_bins + @bo62_bins + @bo72_bins + @bo82_bins + @bo92_bins ,@ebo_totp1 = sum(case when bi.ivaincl = 0 then (bi.epu * bi.qtt) else round((bi.epu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end) ,@ebo_totp2 = sum(case when bi.ivaincl = 0 then (bi.edebito * bi.qtt) else round((bi.edebito * bi.qtt) / (1 + bi.iva / 100), @nrdec) end) ,@bo_totp1 = sum(case when bi.ivaincl = 0 then (bi.pu * bi.qtt) else round((bi.pu * bi.qtt) / (1 + bi.iva / 100), @nrdec) end) ,@bo_totp2 = sum(case when bi.ivaincl = 0 then (bi.debito * bi.qtt) else round((bi.debito * bi.qtt) / (1 + bi.iva / 100), @nrdec) end) ,@sqtt11 = sum(case when bi.stipo = 1 then bi.qtt else 0 end) ,@sqtt21 = sum(case when bi.stipo = 1 then bi.qtt else 0 end) ,@sqtt12 = sum(case when bi.stipo = 2 then bi.qtt else 0 end) ,@sqtt22 = sum(case when bi.stipo = 2 then bi.qtt else 0 end) ,@sqtt13 = sum(case when bi.stipo = 3 then bi.qtt else 0 end) ,@sqtt23 = sum(case when bi.stipo = 3 then bi.qtt else 0 end) ,@sqtt14 = sum(case when bi.stipo = 4 then bi.qtt else 0 end) ,@sqtt24 = sum(case when bi.stipo = 5 then bi.qtt else 0 end) from bi(nolock) where bi.bostamp = @mybostamp and bi.producao = case when @prod = 1 then 1 else bi.producao end and bi.composto = 0 and bi.qtt <> 0 update bo set bo.totaldeb = isnull(@totaldeb, 0) ,bo.total = isnull(@total, 0) ,bo.etotaldeb = isnull(@etotaldeb, 0) ,bo.moetotal = isnull(@moetotal, 0) ,bo.etotal = isnull(@etotal, 0) ,bo.ecusto = isnull(@ecusto, 0) ,bo.custo = isnull(@custo, 0) ,bo.bo11_bins = isnull(@bo11_bins, 0) ,bo.bo12_bins = isnull(@bo12_bins, 0) ,bo.bo21_bins = isnull(@bo21_bins, 0) ,bo.bo22_bins = isnull(@bo22_bins, 0) ,bo.bo31_bins = isnull(@bo31_bins, 0) ,bo.bo32_bins = isnull(@bo32_bins, 0) ,bo.bo41_bins = isnull(@bo41_bins, 0) ,bo.bo42_bins = isnull(@bo42_bins, 0) ,bo.bo51_bins = isnull(@bo51_bins, 0) ,bo.bo52_bins = isnull(@bo52_bins, 0) ,bo.bo61_bins = isnull(@bo61_bins, 0) ,bo.bo62_bins = isnull(@bo62_bins, 0) ,bo.ebo11_bins = isnull(@ebo11_bins, 0) ,bo.ebo12_bins = isnull(@ebo12_bins, 0) ,bo.ebo21_bins = isnull(@ebo21_bins, 0) ,bo.ebo22_bins = isnull(@ebo22_bins, 0) ,bo.ebo31_bins = isnull(@ebo31_bins, 0) ,bo.ebo32_bins = isnull(@ebo32_bins, 0) ,bo.ebo41_bins = isnull(@ebo41_bins, 0) ,bo.ebo42_bins = isnull(@ebo42_bins, 0) ,bo.ebo51_bins = isnull(@ebo51_bins, 0) ,bo.ebo52_bins = isnull(@ebo52_bins, 0) ,bo.ebo61_bins = isnull(@ebo61_bins, 0) ,bo.ebo62_bins = isnull(@ebo62_bins, 0) ,bo.bo11_iva = isnull(@bo11_iva, 0) ,bo.bo12_iva = isnull(@bo12_iva, 0) ,bo.bo21_iva = isnull(@bo21_iva, 0) ,bo.bo22_iva = isnull(@bo22_iva, 0) ,bo.bo31_iva = isnull(@bo31_iva, 0) ,bo.bo32_iva = isnull(@bo32_iva, 0) ,bo.bo41_iva = isnull(@bo41_iva, 0) ,bo.bo42_iva = isnull(@bo42_iva, 0) ,bo.bo51_iva = isnull(@bo51_iva, 0) ,bo.bo52_iva = isnull(@bo52_iva, 0) ,bo.bo61_iva = isnull(@bo61_iva, 0) ,bo.bo62_iva = isnull(@bo62_iva, 0) ,bo.ebo11_iva = isnull(@ebo11_iva, 0) ,bo.ebo12_iva = isnull(@ebo12_iva, 0) ,bo.ebo21_iva = isnull(@ebo21_iva, 0) ,bo.ebo22_iva = isnull(@ebo22_iva, 0) ,bo.ebo31_iva = isnull(@ebo31_iva, 0) ,bo.ebo32_iva = isnull(@ebo32_iva, 0) ,bo.ebo41_iva = isnull(@ebo41_iva, 0) ,bo.ebo42_iva = isnull(@ebo42_iva, 0) ,bo.ebo51_iva = isnull(@ebo51_iva, 0) ,bo.ebo52_iva = isnull(@ebo52_iva, 0) ,bo.ebo61_iva = isnull(@ebo61_iva, 0) ,bo.ebo62_iva = isnull(@ebo62_iva, 0) ,bo.esdeb1 = isnull(@esdeb1, 0) ,bo.esdeb2 = isnull(@esdeb2, 0) ,bo.esdeb3 = isnull(@esdeb3, 0) ,bo.esdeb4 = isnull(@esdeb4, 0) ,bo.sdeb1 = isnull(@sdeb1, 0) ,bo.sdeb2 = isnull(@sdeb2, 0) ,bo.sdeb3 = isnull(@sdeb3, 0) ,bo.sdeb4 = isnull(@sdeb4, 0) ,bo.smoe1 = isnull(@smoe1, 0) ,bo.smoe2 = isnull(@smoe2, 0) ,bo.smoe3 = isnull(@smoe3, 0) ,bo.smoe4 = isnull(@smoe4, 0) ,bo.estot1 = isnull(@estot1, 0) ,bo.estot2 = isnull(@estot2, 0) ,bo.estot3 = isnull(@estot3, 0) ,bo.estot4 = isnull(@estot4, 0) ,bo.stot1 = isnull(@stot1, 0) ,bo.stot2 = isnull(@stot2, 0) ,bo.stot3 = isnull(@stot3, 0) ,bo.stot4 = isnull(@stot4, 0) ,bo.ebo_1tvall = isnull(@ebo_1tvall, 0) ,bo.ebo_2tvall = isnull(@ebo_2tvall, 0) ,bo.bo_1tvall = isnull(@bo_1tvall, 0) ,bo.bo_2tvall = isnull(@bo_2tvall, 0) ,bo.ebo_totp1 = isnull(@ebo_totp1, 0) ,bo.ebo_totp2 = isnull(@ebo_totp2, 0) ,bo.bo_totp1 = isnull(@bo_totp1, 0) ,bo.bo_totp2 = isnull(@bo_totp2, 0) ,bo.sqtt11 = isnull(@sqtt11, 0) ,bo.sqtt21 = isnull(@sqtt21, 0) ,bo.sqtt12 = isnull(@sqtt12, 0) ,bo.sqtt22 = isnull(@sqtt22, 0) ,bo.sqtt13 = isnull(@sqtt13, 0) ,bo.sqtt23 = isnull(@sqtt23, 0) ,bo.sqtt14 = isnull(@sqtt14, 0) ,bo.sqtt24 = isnull(@sqtt24, 0) where bostamp = @mybostamp update bo2 set bo2.bo71_bins = isnull(@bo71_bins, 0) ,bo2.bo72_bins = isnull(@bo72_bins, 0) ,bo2.bo81_bins = isnull(@bo81_bins, 0) ,bo2.bo82_bins = isnull(@bo82_bins, 0) ,bo2.bo91_bins = isnull(@bo91_bins, 0) ,bo2.bo92_bins = isnull(@bo92_bins, 0) ,bo2.ebo71_bins = isnull(@ebo71_bins, 0) ,bo2.ebo72_bins = isnull(@ebo72_bins, 0) ,bo2.ebo81_bins = isnull(@ebo81_bins, 0) ,bo2.ebo82_bins = isnull(@ebo82_bins, 0) ,bo2.ebo91_bins = isnull(@ebo91_bins, 0) ,bo2.ebo92_bins = isnull(@ebo92_bins, 0) ,bo2.bo71_iva = isnull(@bo71_iva, 0) ,bo2.bo72_iva = isnull(@bo72_iva, 0) ,bo2.bo81_iva = isnull(@bo81_iva, 0) ,bo2.bo82_iva = isnull(@bo82_iva, 0) ,bo2.bo91_iva = isnull(@bo91_iva, 0) ,bo2.bo92_iva = isnull(@bo92_iva, 0) ,bo2.ebo71_iva = isnull(@ebo71_iva, 0) ,bo2.ebo72_iva = isnull(@ebo72_iva, 0) ,bo2.ebo81_iva = isnull(@ebo81_iva, 0) ,bo2.ebo82_iva = isnull(@ebo82_iva, 0) ,bo2.ebo91_iva = isnull(@ebo91_iva, 0) ,bo2.ebo92_iva = isnull(@ebo92_iva, 0) ,bo2.etotalciva = isnull(@etotaldeb, 0) + isnull(@ebo12_iva, 0) +isnull(@ebo22_iva, 0) +isnull(@ebo32_iva, 0) +isnull(@ebo42_iva, 0) +isnull(@ebo52_iva, 0) +isnull(@ebo62_iva, 0) +isnull(@ebo72_iva, 0) +isnull(@ebo82_iva, 0) +isnull(@ebo92_iva, 0) --,bo2.mtotalciva =isnull(@moetotal, 0) where bo2stamp = @mybostamp -- trata os bot select @userinis = usrinis from bo where bo.bostamp=@mybostamp insert into @totaisiva ( bostamp, codigo, taxa, ebaseinc, baseinc, evalor, valor ) select @mybostamp,codigo,taxa ,case when (@ebo11_bins <>0) then @ebo11_bins else @ebo12_bins end ,case when (@ebo11_bins <>0) then @bo11_bins else @bo12_bins end ,case when (@ebo11_bins <>0) then @ebo11_iva else @ebo12_iva end ,case when (@ebo11_bins <>0) then @bo11_iva else @bo12_iva end from taxasiva where codigo = 1 union all select @mybostamp,codigo,taxa ,case when (@ebo21_bins <>0) then @ebo21_bins else @ebo22_bins end ,case when (@ebo21_bins <>0) then @bo21_bins else @bo22_bins end ,case when (@ebo21_bins <>0) then @ebo21_iva else @ebo22_iva end ,case when (@ebo21_bins <>0) then @bo21_iva else @bo22_iva end from taxasiva where codigo = 2 union all select @mybostamp,codigo,taxa ,case when (@ebo31_bins <>0) then @ebo31_bins else @ebo32_bins end ,case when (@ebo31_bins <>0) then @bo31_bins else @bo32_bins end ,case when (@ebo31_bins <>0) then @ebo31_iva else @ebo32_iva end ,case when (@ebo31_bins <>0) then @bo31_iva else @bo32_iva end from taxasiva where codigo = 3 union all select @mybostamp,codigo,taxa ,case when (@ebo41_bins <>0) then @ebo41_bins else @ebo42_bins end ,case when (@ebo41_bins <>0) then @bo41_bins else @bo42_bins end ,case when (@ebo41_bins <>0) then @ebo41_iva else @ebo42_iva end ,case when (@ebo41_bins <>0) then @bo41_iva else @bo42_iva end from taxasiva where codigo = 4 union all select @mybostamp,codigo,taxa ,case when (@ebo51_bins <>0) then @ebo51_bins else @ebo52_bins end ,case when (@ebo51_bins <>0) then @bo51_bins else @bo52_bins end ,case when (@ebo51_bins <>0) then @ebo51_iva else @ebo52_iva end ,case when (@ebo51_bins <>0) then @bo51_iva else @bo52_iva end from taxasiva where codigo = 5 union all select @mybostamp,codigo,taxa ,case when (@ebo61_bins <>0) then @ebo61_bins else @ebo62_bins end ,case when (@ebo61_bins <>0) then @bo61_bins else @bo62_bins end ,case when (@ebo61_bins <>0) then @ebo61_iva else @ebo62_iva end ,case when (@ebo61_bins <>0) then @bo61_iva else @bo62_iva end from taxasiva where codigo = 6 union all select @mybostamp,codigo,taxa ,case when (@ebo71_bins <>0) then @ebo71_bins else @ebo72_bins end ,case when (@ebo71_bins <>0) then @bo71_bins else @bo72_bins end ,case when (@ebo71_bins <>0) then @ebo71_iva else @ebo72_iva end ,case when (@ebo71_bins <>0) then @bo71_iva else @bo72_iva end from taxasiva where codigo = 7 union all select @mybostamp,codigo,taxa ,case when (@ebo81_bins <>0) then @ebo81_bins else @ebo82_bins end ,case when (@ebo81_bins <>0) then @bo81_bins else @bo82_bins end ,case when (@ebo81_bins <>0) then @ebo81_iva else @ebo82_iva end ,case when (@ebo81_bins <>0) then @bo81_iva else @bo82_iva end from taxasiva where codigo = 8 union all select @mybostamp,codigo,taxa ,case when (@ebo91_bins <>0) then @ebo91_bins else @ebo92_bins end ,case when (@ebo91_bins <>0) then @bo91_bins else @bo92_bins end ,case when (@ebo91_bins <>0) then @ebo91_iva else @ebo92_iva end ,case when (@ebo91_bins <>0) then @bo91_iva else @bo92_iva end from taxasiva where codigo = 9 update bot set ebaseinc = totiva.ebaseinc, baseinc = totiva.baseinc, evalor = totiva.evalor, valor = totiva.valor, usrinis = @userinis, usrdata = convert (date,getdate()), usrhora = convert (time,getdate()) from @totaisiva totiva inner join bot on totiva.bostamp = bot.bostamp and totiva.codigo = bot.codigo insert into bot ( botstamp ,bostamp ,codigo ,taxa ,ebaseinc ,baseinc ,evalor ,valor ,ousrinis ,ousrdata ,ousrhora ,usrinis ,usrdata ,usrhora ) select ( left(@userinis,3) + 'tt' + left(newid(),5) + right(newid(),5) + left(newid(),5) + right(newid(),5)) stamp ,@mybostamp stampbo ,totiva.codigo ,totiva.taxa ,totiva.ebaseinc ,totiva.baseinc ,totiva.evalor ,totiva.valor ,@userinis ,convert (date,getdate()) ,convert (time,getdate()) ,@userinis ,convert (date,getdate()) ,convert (time,getdate()) from @totaisiva totiva left join bot on totiva.bostamp = bot.bostamp and totiva.codigo = bot.codigo where bot.botstamp is null -- atualiza os campo bi.series e bi.series2, caso tenha equipamentos update bi set series = s1, series2=s2 from bi inner join ( select distinct bistamp,ser.s1, ser.s2 from boma cross apply (select stuff ( ( select ',' + rtrim(serie) from boma myboma where myboma.bistamp = boma.bistamp order by serie for xml path('') ), 1, 1, '' ) s1 , stuff ( ( select ',' + rtrim(serie2) from boma myboma where myboma.bistamp = boma.bistamp order by serie for xml path('') ), 1, 1, '' ) s2 ) ser where boma.bostamp = @mybostamp ) myboma on bi.bistamp = myboma.bistamp where bi.bostamp = @mybostamp 
20240704@160742.5692 3kkbp161n09kl2dki704fan4q1 Query : use flama_phc
20240704@160742.5696 3kkbp161n09kl2dki704fan4q1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@160742.5727 3kkbp161n09kl2dki704fan4q1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='782';
20240704@160742.5757 3kkbp161n09kl2dki704fan4q1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='782';
20240704@161913.1665 n8bn1r4tjfnjff59fovdj8kkv1 Query : use flama_phc
20240704@161913.1669 n8bn1r4tjfnjff59fovdj8kkv1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@161913.1723 n8bn1r4tjfnjff59fovdj8kkv1 Query : use flama_phc
20240704@161913.1726 n8bn1r4tjfnjff59fovdj8kkv1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@163613.2681 1psvedv0e4ppq3d6rf767a7u7h Query : use flama_phc
20240704@163613.2687 1psvedv0e4ppq3d6rf767a7u7h Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@163613.2704 1psvedv0e4ppq3d6rf767a7u7h Query : use flama_phc
20240704@163613.2708 1psvedv0e4ppq3d6rf767a7u7h Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@163729.9406 7avv54n69h0b9smoa87f0t0g9g Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240704@163729.9422 7avv54n69h0b9smoa87f0t0g9g Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240704@163729.9444 7avv54n69h0b9smoa87f0t0g9g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='783';
20240704@163729.9498 7avv54n69h0b9smoa87f0t0g9g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='783';
20240704@163729.9514 7avv54n69h0b9smoa87f0t0g9g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='783';
20240704@163729.9527 7avv54n69h0b9smoa87f0t0g9g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='783';
20240704@163729.9540 7avv54n69h0b9smoa87f0t0g9g Query : use flama_phc
20240704@163729.9543 7avv54n69h0b9smoa87f0t0g9g Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240704@163729.9560 7avv54n69h0b9smoa87f0t0g9g Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '326.595.00.01'
20240704@163729.9571 7avv54n69h0b9smoa87f0t0g9g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =005 and bo.boano =2024 and bo.obrano = 0000365 and bi.ref ='326.595.00.01' and bi.lordem =10000
20240704@163729.9953 7avv54n69h0b9smoa87f0t0g9g Query : select bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.obranome ,bi.bostamp ,bo.moeda ,bi.vumoeda ,isnull(bi.vumoeda/nullif(bi.edebito,0),1) cambio ,bi.tabiva from bi inner join bo on bi.bostamp = bo.bostamp where bi.bistamp = 'az24070450646,299000001 ' 
20240704@163730.2800 7avv54n69h0b9smoa87f0t0g9g Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1837.00.1'
20240704@163730.4120 7avv54n69h0b9smoa87f0t0g9g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =005 and bo.boano =2024 and bo.obrano = 0000365 and bi.ref ='324.1837.00.1' and bi.lordem =20000
20240704@163730.7720 7avv54n69h0b9smoa87f0t0g9g Query : select bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.obranome ,bi.bostamp ,bo.moeda ,bi.vumoeda ,isnull(bi.vumoeda/nullif(bi.edebito,0),1) cambio ,bi.tabiva from bi inner join bo on bi.bostamp = bo.bostamp where bi.bistamp = 'az24070450682,309000002 ' 
20240704@163730.1091 7avv54n69h0b9smoa87f0t0g9g Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.421.00.04'
20240704@163730.1256 7avv54n69h0b9smoa87f0t0g9g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =005 and bo.boano =2024 and bo.obrano = 0000365 and bi.ref ='304.421.00.04' and bi.lordem =30000
20240704@163730.1600 7avv54n69h0b9smoa87f0t0g9g Query : select bi.edebito ,bi.desconto ,bi.desc2 ,bi.desc3 ,bi.desc4 ,bi.obranome ,bi.bostamp ,bo.moeda ,bi.vumoeda ,isnull(bi.vumoeda/nullif(bi.edebito,0),1) cambio ,bi.tabiva from bi inner join bo on bi.bostamp = bo.bostamp where bi.bistamp = 'az24070450713,170000005 ' 
20240704@163730.1938 7avv54n69h0b9smoa87f0t0g9g Query : use flama_phc
20240704@163730.1941 7avv54n69h0b9smoa87f0t0g9g Query : select top 1 1 valor from ts where ts.ndos = 61
20240704@163730.1951 7avv54n69h0b9smoa87f0t0g9g Query : use flama_phc
20240704@163730.1954 7avv54n69h0b9smoa87f0t0g9g Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240704@163730.1984 7avv54n69h0b9smoa87f0t0g9g Query : select top 1 assinadoc issigned ,ts.stocks ,ts.bdempresas origin ,case when (cmstocks between 1 and 50 or cm2stocks between 1 and 50 ) then 1 else 0 end entrada ,case when cmstocks>50 or (cm2stocks>50 and trfa =1) then 1 else 0 end saida ,stneg validatestock ,tiposaft ,veserie useserialnumber ,foserie assetin ,ftserie assetout ,veserie assets ,trfarm assetstransfer ,grelha usegridfields from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos =61
20240704@163730.2051 7avv54n69h0b9smoa87f0t0g9g Query : use flama_phc
20240704@163730.2054 7avv54n69h0b9smoa87f0t0g9g Query : select top 1 ~inactivo valor from fl where no = '2' and estab = 2 order by inactivo desc
20240704@163730.2141 7avv54n69h0b9smoa87f0t0g9g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='783';
20240704@163730.2155 7avv54n69h0b9smoa87f0t0g9g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='783';
20240704@163730.4148 8qe63klknn44s1k28dnomib1lk Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240704@163730.4161 8qe63klknn44s1k28dnomib1lk Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240704@163730.4178 8qe63klknn44s1k28dnomib1lk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='784';
20240704@163730.4223 8qe63klknn44s1k28dnomib1lk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='784';
20240704@163730.4239 8qe63klknn44s1k28dnomib1lk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='784';
20240704@163730.4251 8qe63klknn44s1k28dnomib1lk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='784';
20240704@163730.5721 u0nkh5p3k5j8pa2dblqrirh9r6 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240704@163730.5735 u0nkh5p3k5j8pa2dblqrirh9r6 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240704@163730.5755 u0nkh5p3k5j8pa2dblqrirh9r6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='785';
20240704@163730.5816 u0nkh5p3k5j8pa2dblqrirh9r6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='785';
20240704@163730.5868 u0nkh5p3k5j8pa2dblqrirh9r6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='785';
20240704@163730.5882 u0nkh5p3k5j8pa2dblqrirh9r6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='785';
20240704@163730.5911 u0nkh5p3k5j8pa2dblqrirh9r6 Query : use flama_phc
20240704@163730.5914 u0nkh5p3k5j8pa2dblqrirh9r6 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240704@163730.5930 u0nkh5p3k5j8pa2dblqrirh9r6 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20240704@163730.6027 u0nkh5p3k5j8pa2dblqrirh9r6 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1816.00.1'
20240704@163730.6168 u0nkh5p3k5j8pa2dblqrirh9r6 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1816.00.1'
20240704@163730.6179 u0nkh5p3k5j8pa2dblqrirh9r6 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1816.00.1'
20240704@163730.6192 u0nkh5p3k5j8pa2dblqrirh9r6 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1871.00.1'
20240704@163730.6405 u0nkh5p3k5j8pa2dblqrirh9r6 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1879.00.1'
20240704@163730.6600 u0nkh5p3k5j8pa2dblqrirh9r6 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4930.00.1'
20240704@163730.6758 u0nkh5p3k5j8pa2dblqrirh9r6 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.4980.00.1'
20240704@163730.6878 u0nkh5p3k5j8pa2dblqrirh9r6 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.682.00.01'
20240704@163730.6994 u0nkh5p3k5j8pa2dblqrirh9r6 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.691.00.01'
20240704@163730.7118 u0nkh5p3k5j8pa2dblqrirh9r6 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.692.00.01'
20240704@163730.7272 u0nkh5p3k5j8pa2dblqrirh9r6 Query : use flama_phc
20240704@163730.7275 u0nkh5p3k5j8pa2dblqrirh9r6 Query : select top 1 1 valor from ts where ts.ndos = 5
20240704@163730.7360 u0nkh5p3k5j8pa2dblqrirh9r6 Query : use flama_phc
20240704@163730.7364 u0nkh5p3k5j8pa2dblqrirh9r6 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240704@163730.7386 u0nkh5p3k5j8pa2dblqrirh9r6 Query : select top 1 assinadoc issigned ,ts.stocks ,ts.bdempresas origin ,case when (cmstocks between 1 and 50 or cm2stocks between 1 and 50 ) then 1 else 0 end entrada ,case when cmstocks>50 or (cm2stocks>50 and trfa =1) then 1 else 0 end saida ,stneg validatestock ,tiposaft ,veserie useserialnumber ,foserie assetin ,ftserie assetout ,veserie assets ,trfarm assetstransfer ,grelha usegridfields from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos =5
20240704@163730.7555 u0nkh5p3k5j8pa2dblqrirh9r6 Query : use flama_phc
20240704@163730.7559 u0nkh5p3k5j8pa2dblqrirh9r6 Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20240704@163730.7659 u0nkh5p3k5j8pa2dblqrirh9r6 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='785';
20240704@163730.7686 u0nkh5p3k5j8pa2dblqrirh9r6 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='785';
20240704@171913.6240 ondonanhsi0nbmkgnmpq811qgh Query : use flama_phc
20240704@171913.6245 ondonanhsi0nbmkgnmpq811qgh Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@171913.6263 ondonanhsi0nbmkgnmpq811qgh Query : use flama_phc
20240704@171913.6266 ondonanhsi0nbmkgnmpq811qgh Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@173613.7532 drc33v8paruja6rnjes1bsgkm1 Query : use flama_phc
20240704@173613.7541 drc33v8paruja6rnjes1bsgkm1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@173613.7562 drc33v8paruja6rnjes1bsgkm1 Query : use flama_phc
20240704@173613.7565 drc33v8paruja6rnjes1bsgkm1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@181910.6870 3bbmukir4p7n6513ckf9h0nedc Query : use flama_phc
20240704@181910.6920 3bbmukir4p7n6513ckf9h0nedc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@181910.8970 3bbmukir4p7n6513ckf9h0nedc Query : use flama_phc
20240704@181910.9480 3bbmukir4p7n6513ckf9h0nedc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@183610.5497 bkst33pqnhnpjg058r3j4hpgpe Query : use flama_phc
20240704@183610.5503 bkst33pqnhnpjg058r3j4hpgpe Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@183610.5520 bkst33pqnhnpjg058r3j4hpgpe Query : use flama_phc
20240704@183610.5523 bkst33pqnhnpjg058r3j4hpgpe Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@191918.1690 e4g9tkpk0b86oo0fjnip2r2017 Query : use flama_phc
20240704@191918.2772 e4g9tkpk0b86oo0fjnip2r2017 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@191918.2794 e4g9tkpk0b86oo0fjnip2r2017 Query : use flama_phc
20240704@191918.2797 e4g9tkpk0b86oo0fjnip2r2017 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@193618.2979 0jnoguu56s5j1i1i2sv4hn5afp Query : use flama_phc
20240704@193618.2984 0jnoguu56s5j1i1i2sv4hn5afp Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@193618.3007 0jnoguu56s5j1i1i2sv4hn5afp Query : use flama_phc
20240704@193618.3011 0jnoguu56s5j1i1i2sv4hn5afp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@201913.3648 mg5sfnq4sufa1tapiu1opp4165 Query : use flama_phc
20240704@201913.3669 mg5sfnq4sufa1tapiu1opp4165 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@201913.3688 mg5sfnq4sufa1tapiu1opp4165 Query : use flama_phc
20240704@201913.3691 mg5sfnq4sufa1tapiu1opp4165 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@203613.4213 1cjfgkhmugr88uqgtrh31h7vmc Query : use flama_phc
20240704@203613.4218 1cjfgkhmugr88uqgtrh31h7vmc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@203613.4235 1cjfgkhmugr88uqgtrh31h7vmc Query : use flama_phc
20240704@203613.4238 1cjfgkhmugr88uqgtrh31h7vmc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@211910.6882 2a2ak86stvkj6s8jl4vb3ri15v Query : use flama_phc
20240704@211910.6888 2a2ak86stvkj6s8jl4vb3ri15v Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@211910.6907 2a2ak86stvkj6s8jl4vb3ri15v Query : use flama_phc
20240704@211910.6910 2a2ak86stvkj6s8jl4vb3ri15v Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@213610.7066 qdonvq08g393osf7ti80tel6au Query : use flama_phc
20240704@213610.7099 qdonvq08g393osf7ti80tel6au Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@213610.7135 qdonvq08g393osf7ti80tel6au Query : use flama_phc
20240704@213610.7138 qdonvq08g393osf7ti80tel6au Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@221913.2491 633k17lkpjbib2uqnk6344ioa5 Query : use flama_phc
20240704@221913.2495 633k17lkpjbib2uqnk6344ioa5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@221913.2554 633k17lkpjbib2uqnk6344ioa5 Query : use flama_phc
20240704@221913.2557 633k17lkpjbib2uqnk6344ioa5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@222509.6182 e2rtsq7nl3bfevmu1pb2tj4ljn Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240704@222509.6286 e2rtsq7nl3bfevmu1pb2tj4ljn Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240704@222509.6705 e2rtsq7nl3bfevmu1pb2tj4ljn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='786';
20240704@222509.6747 e2rtsq7nl3bfevmu1pb2tj4ljn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='786';
20240704@222509.6764 e2rtsq7nl3bfevmu1pb2tj4ljn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='786';
20240704@222509.6776 e2rtsq7nl3bfevmu1pb2tj4ljn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='786';
20240704@222509.6790 e2rtsq7nl3bfevmu1pb2tj4ljn Query : use flama_phc
20240704@222509.6793 e2rtsq7nl3bfevmu1pb2tj4ljn Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240704@222509.6809 e2rtsq7nl3bfevmu1pb2tj4ljn Query : use flama_phc
20240704@222509.6812 e2rtsq7nl3bfevmu1pb2tj4ljn Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240704@222509.6889 e2rtsq7nl3bfevmu1pb2tj4ljn Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2907.00.1'
20240704@222509.7642 e2rtsq7nl3bfevmu1pb2tj4ljn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404497 and bi.ref ='324.2907.00.1' and bi.lordem =1
20240704@222509.7989 e2rtsq7nl3bfevmu1pb2tj4ljn Query : use flama_phc
20240704@222509.7993 e2rtsq7nl3bfevmu1pb2tj4ljn Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240704@222509.8174 e2rtsq7nl3bfevmu1pb2tj4ljn Query : use flama_phc
20240704@222509.8178 e2rtsq7nl3bfevmu1pb2tj4ljn Query : select top 1 1 valor from td where td.ndoc = 39
20240704@222509.8224 e2rtsq7nl3bfevmu1pb2tj4ljn Query : use flama_phc
20240704@222509.8227 e2rtsq7nl3bfevmu1pb2tj4ljn Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240704@222509.8820 rv959sdq3d3bsirqgjtt93ijcu Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240704@222509.8835 rv959sdq3d3bsirqgjtt93ijcu Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240704@222509.8853 rv959sdq3d3bsirqgjtt93ijcu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='787';
20240704@222509.8893 rv959sdq3d3bsirqgjtt93ijcu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='787';
20240704@222509.8909 rv959sdq3d3bsirqgjtt93ijcu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='787';
20240704@222509.8934 rv959sdq3d3bsirqgjtt93ijcu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='787';
20240704@222509.8949 rv959sdq3d3bsirqgjtt93ijcu Query : use flama_phc
20240704@222509.8990 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240704@222509.9032 rv959sdq3d3bsirqgjtt93ijcu Query : use flama_phc
20240704@222509.9035 rv959sdq3d3bsirqgjtt93ijcu Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240704@222510.1840 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240704@222510.3460 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404498 and bi.ref ='324.649.00.01' and bi.lordem =1
20240704@222510.6870 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240704@222510.6980 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404498 and bi.ref ='324.649.00.01' and bi.lordem =1
20240704@222510.7050 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240704@222510.7250 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404498 and bi.ref ='324.649.00.01' and bi.lordem =1
20240704@222510.7330 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240704@222510.7420 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404498 and bi.ref ='324.649.00.01' and bi.lordem =1
20240704@222510.7490 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240704@222510.7610 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404498 and bi.ref ='324.649.00.01' and bi.lordem =1
20240704@222510.7670 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240704@222510.7780 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404498 and bi.ref ='324.649.00.01' and bi.lordem =1
20240704@222510.7850 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240704@222510.7940 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404498 and bi.ref ='324.649.00.01' and bi.lordem =1
20240704@222510.8010 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240704@222510.8110 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404498 and bi.ref ='324.649.00.01' and bi.lordem =1
20240704@222510.8180 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240704@222510.8280 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404498 and bi.ref ='324.649.00.01' and bi.lordem =1
20240704@222510.8350 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240704@222510.8440 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404498 and bi.ref ='324.649.00.01' and bi.lordem =1
20240704@222510.8510 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240704@222510.8600 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404498 and bi.ref ='324.649.00.01' and bi.lordem =1
20240704@222510.8670 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240704@222510.8780 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404498 and bi.ref ='324.649.00.01' and bi.lordem =1
20240704@222510.8850 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240704@222510.8950 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404498 and bi.ref ='324.649.00.01' and bi.lordem =1
20240704@222510.9010 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240704@222510.9110 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404498 and bi.ref ='324.649.00.01' and bi.lordem =1
20240704@222510.9180 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240704@222510.9280 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404498 and bi.ref ='324.649.00.01' and bi.lordem =1
20240704@222510.9350 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240704@222510.9440 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404498 and bi.ref ='324.649.00.01' and bi.lordem =1
20240704@222510.9510 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240704@222510.9600 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404498 and bi.ref ='324.649.00.01' and bi.lordem =1
20240704@222510.9670 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240704@222510.9770 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404498 and bi.ref ='324.649.00.01' and bi.lordem =1
20240704@222510.9850 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240704@222510.9940 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404498 and bi.ref ='324.649.00.01' and bi.lordem =1
20240704@222510.1001 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.649.00.01'
20240704@222510.1011 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404498 and bi.ref ='324.649.00.01' and bi.lordem =1
20240704@222510.1019 rv959sdq3d3bsirqgjtt93ijcu Query : use flama_phc
20240704@222510.1022 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240704@222510.1044 rv959sdq3d3bsirqgjtt93ijcu Query : use flama_phc
20240704@222510.1047 rv959sdq3d3bsirqgjtt93ijcu Query : select top 1 1 valor from td where td.ndoc = 39
20240704@222510.1058 rv959sdq3d3bsirqgjtt93ijcu Query : use flama_phc
20240704@222510.1061 rv959sdq3d3bsirqgjtt93ijcu Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240704@222510.1620 mebdapabcm5l80lfel4nf46b8p Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240704@222510.1637 mebdapabcm5l80lfel4nf46b8p Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240704@222510.1654 mebdapabcm5l80lfel4nf46b8p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='788';
20240704@222510.1699 mebdapabcm5l80lfel4nf46b8p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='788';
20240704@222510.1716 mebdapabcm5l80lfel4nf46b8p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='788';
20240704@222510.1729 mebdapabcm5l80lfel4nf46b8p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='788';
20240704@222510.1746 mebdapabcm5l80lfel4nf46b8p Query : use flama_phc
20240704@222510.1749 mebdapabcm5l80lfel4nf46b8p Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240704@222510.1765 mebdapabcm5l80lfel4nf46b8p Query : use flama_phc
20240704@222510.1768 mebdapabcm5l80lfel4nf46b8p Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240704@222510.1796 mebdapabcm5l80lfel4nf46b8p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20240704@222510.1973 mebdapabcm5l80lfel4nf46b8p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404499 and bi.ref ='324.657.00.01' and bi.lordem =1
20240704@222510.2307 mebdapabcm5l80lfel4nf46b8p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20240704@222510.2318 mebdapabcm5l80lfel4nf46b8p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404499 and bi.ref ='324.657.00.01' and bi.lordem =1
20240704@222510.2327 mebdapabcm5l80lfel4nf46b8p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20240704@222510.2338 mebdapabcm5l80lfel4nf46b8p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404499 and bi.ref ='324.657.00.01' and bi.lordem =1
20240704@222510.2345 mebdapabcm5l80lfel4nf46b8p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20240704@222510.2355 mebdapabcm5l80lfel4nf46b8p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404499 and bi.ref ='324.657.00.01' and bi.lordem =1
20240704@222510.2362 mebdapabcm5l80lfel4nf46b8p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20240704@222510.2373 mebdapabcm5l80lfel4nf46b8p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404499 and bi.ref ='324.657.00.01' and bi.lordem =1
20240704@222510.2381 mebdapabcm5l80lfel4nf46b8p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20240704@222510.2397 mebdapabcm5l80lfel4nf46b8p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404499 and bi.ref ='324.657.00.01' and bi.lordem =1
20240704@222510.2403 mebdapabcm5l80lfel4nf46b8p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20240704@222510.2413 mebdapabcm5l80lfel4nf46b8p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404499 and bi.ref ='324.657.00.01' and bi.lordem =1
20240704@222510.2420 mebdapabcm5l80lfel4nf46b8p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20240704@222510.2429 mebdapabcm5l80lfel4nf46b8p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404499 and bi.ref ='324.657.00.01' and bi.lordem =1
20240704@222510.2436 mebdapabcm5l80lfel4nf46b8p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.657.00.01'
20240704@222510.2445 mebdapabcm5l80lfel4nf46b8p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2044 and bo.obrano = 2404499 and bi.ref ='324.657.00.01' and bi.lordem =1
20240704@222510.2453 mebdapabcm5l80lfel4nf46b8p Query : use flama_phc
20240704@222510.2456 mebdapabcm5l80lfel4nf46b8p Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240704@222510.2469 mebdapabcm5l80lfel4nf46b8p Query : use flama_phc
20240704@222510.2473 mebdapabcm5l80lfel4nf46b8p Query : select top 1 1 valor from td where td.ndoc = 39
20240704@222510.2483 mebdapabcm5l80lfel4nf46b8p Query : use flama_phc
20240704@222510.2486 mebdapabcm5l80lfel4nf46b8p Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240704@222510.2988 jlk00anb9hhf29d7o21o9uah6h Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240704@222510.3003 jlk00anb9hhf29d7o21o9uah6h Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240704@222510.3020 jlk00anb9hhf29d7o21o9uah6h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='789';
20240704@222510.3058 jlk00anb9hhf29d7o21o9uah6h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='789';
20240704@222510.3074 jlk00anb9hhf29d7o21o9uah6h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='789';
20240704@222510.3086 jlk00anb9hhf29d7o21o9uah6h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='789';
20240704@222510.3100 jlk00anb9hhf29d7o21o9uah6h Query : use flama_phc
20240704@222510.3103 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240704@222510.3118 jlk00anb9hhf29d7o21o9uah6h Query : use flama_phc
20240704@222510.3121 jlk00anb9hhf29d7o21o9uah6h Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240704@222510.3151 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240704@222510.3307 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404500 and bi.ref ='324.682.00.01' and bi.lordem =1
20240704@222510.3654 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240704@222510.3665 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404500 and bi.ref ='324.682.00.01' and bi.lordem =1
20240704@222510.3672 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240704@222510.3683 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404500 and bi.ref ='324.682.00.01' and bi.lordem =1
20240704@222510.3690 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240704@222510.3699 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404500 and bi.ref ='324.682.00.01' and bi.lordem =1
20240704@222510.3707 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240704@222510.3719 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404500 and bi.ref ='324.682.00.01' and bi.lordem =1
20240704@222510.3726 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240704@222510.3736 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404500 and bi.ref ='324.682.00.01' and bi.lordem =1
20240704@222510.3743 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240704@222510.3752 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404500 and bi.ref ='324.682.00.01' and bi.lordem =1
20240704@222510.3759 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240704@222510.3768 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404500 and bi.ref ='324.682.00.01' and bi.lordem =1
20240704@222510.3775 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240704@222510.3784 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404500 and bi.ref ='324.682.00.01' and bi.lordem =1
20240704@222510.3791 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240704@222510.3800 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404500 and bi.ref ='324.682.00.01' and bi.lordem =1
20240704@222510.3807 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240704@222510.3816 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404500 and bi.ref ='324.682.00.01' and bi.lordem =1
20240704@222510.3824 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240704@222510.3833 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404500 and bi.ref ='324.682.00.01' and bi.lordem =1
20240704@222510.3839 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240704@222510.3850 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404500 and bi.ref ='324.682.00.01' and bi.lordem =1
20240704@222510.3867 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240704@222510.3877 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404500 and bi.ref ='324.682.00.01' and bi.lordem =1
20240704@222510.3883 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240704@222510.3893 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404500 and bi.ref ='324.682.00.01' and bi.lordem =1
20240704@222510.3899 jlk00anb9hhf29d7o21o9uah6h Query : use flama_phc
20240704@222510.3903 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240704@222510.3916 jlk00anb9hhf29d7o21o9uah6h Query : use flama_phc
20240704@222510.3920 jlk00anb9hhf29d7o21o9uah6h Query : select top 1 1 valor from td where td.ndoc = 39
20240704@222510.3931 jlk00anb9hhf29d7o21o9uah6h Query : use flama_phc
20240704@222510.3936 jlk00anb9hhf29d7o21o9uah6h Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240704@222510.4465 n9lceejl1vhneenia6kjhr5ado Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240704@222510.4480 n9lceejl1vhneenia6kjhr5ado Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240704@222510.4496 n9lceejl1vhneenia6kjhr5ado Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='790';
20240704@222510.4545 n9lceejl1vhneenia6kjhr5ado Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='790';
20240704@222510.4561 n9lceejl1vhneenia6kjhr5ado Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='790';
20240704@222510.4573 n9lceejl1vhneenia6kjhr5ado Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='790';
20240704@222510.4586 n9lceejl1vhneenia6kjhr5ado Query : use flama_phc
20240704@222510.4589 n9lceejl1vhneenia6kjhr5ado Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240704@222510.4617 n9lceejl1vhneenia6kjhr5ado Query : use flama_phc
20240704@222510.4620 n9lceejl1vhneenia6kjhr5ado Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240704@222510.4648 n9lceejl1vhneenia6kjhr5ado Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240704@222510.4658 n9lceejl1vhneenia6kjhr5ado Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404501 and bi.ref ='324.682.00.01' and bi.lordem =1
20240704@222510.5008 n9lceejl1vhneenia6kjhr5ado Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240704@222510.5020 n9lceejl1vhneenia6kjhr5ado Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404501 and bi.ref ='324.682.00.01' and bi.lordem =1
20240704@222510.5027 n9lceejl1vhneenia6kjhr5ado Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240704@222510.5037 n9lceejl1vhneenia6kjhr5ado Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404501 and bi.ref ='324.682.00.01' and bi.lordem =1
20240704@222510.5044 n9lceejl1vhneenia6kjhr5ado Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240704@222510.5055 n9lceejl1vhneenia6kjhr5ado Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404501 and bi.ref ='324.682.00.01' and bi.lordem =1
20240704@222510.5063 n9lceejl1vhneenia6kjhr5ado Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.682.00.01'
20240704@222510.5073 n9lceejl1vhneenia6kjhr5ado Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404501 and bi.ref ='324.682.00.01' and bi.lordem =1
20240704@222510.5081 n9lceejl1vhneenia6kjhr5ado Query : use flama_phc
20240704@222510.5084 n9lceejl1vhneenia6kjhr5ado Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240704@222510.5098 n9lceejl1vhneenia6kjhr5ado Query : use flama_phc
20240704@222510.5101 n9lceejl1vhneenia6kjhr5ado Query : select top 1 1 valor from td where td.ndoc = 39
20240704@222510.5111 n9lceejl1vhneenia6kjhr5ado Query : use flama_phc
20240704@222510.5113 n9lceejl1vhneenia6kjhr5ado Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240704@222510.5782 u1n10mu74riv78mkg5s5rk4hf3 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240704@222510.5796 u1n10mu74riv78mkg5s5rk4hf3 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240704@222510.5835 u1n10mu74riv78mkg5s5rk4hf3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='791';
20240704@222510.5875 u1n10mu74riv78mkg5s5rk4hf3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='791';
20240704@222510.5933 u1n10mu74riv78mkg5s5rk4hf3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='791';
20240704@222510.5964 u1n10mu74riv78mkg5s5rk4hf3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='791';
20240704@222510.5981 u1n10mu74riv78mkg5s5rk4hf3 Query : use flama_phc
20240704@222510.5985 u1n10mu74riv78mkg5s5rk4hf3 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240704@222510.6000 u1n10mu74riv78mkg5s5rk4hf3 Query : use flama_phc
20240704@222510.6003 u1n10mu74riv78mkg5s5rk4hf3 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240704@222510.6032 u1n10mu74riv78mkg5s5rk4hf3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.686.00.01'
20240704@222510.6187 u1n10mu74riv78mkg5s5rk4hf3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404502 and bi.ref ='324.686.00.01' and bi.lordem =1
20240704@222510.6584 u1n10mu74riv78mkg5s5rk4hf3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.686.00.01'
20240704@222510.6595 u1n10mu74riv78mkg5s5rk4hf3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404502 and bi.ref ='324.686.00.01' and bi.lordem =1
20240704@222510.6603 u1n10mu74riv78mkg5s5rk4hf3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.686.00.01'
20240704@222510.6614 u1n10mu74riv78mkg5s5rk4hf3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404502 and bi.ref ='324.686.00.01' and bi.lordem =1
20240704@222510.6622 u1n10mu74riv78mkg5s5rk4hf3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.686.00.01'
20240704@222510.6632 u1n10mu74riv78mkg5s5rk4hf3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404502 and bi.ref ='324.686.00.01' and bi.lordem =1
20240704@222510.6640 u1n10mu74riv78mkg5s5rk4hf3 Query : use flama_phc
20240704@222510.6643 u1n10mu74riv78mkg5s5rk4hf3 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240704@222510.6657 u1n10mu74riv78mkg5s5rk4hf3 Query : use flama_phc
20240704@222510.6660 u1n10mu74riv78mkg5s5rk4hf3 Query : select top 1 1 valor from td where td.ndoc = 39
20240704@222510.6671 u1n10mu74riv78mkg5s5rk4hf3 Query : use flama_phc
20240704@222510.6674 u1n10mu74riv78mkg5s5rk4hf3 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240704@222510.7331 a50lbecvo74qt22stdljp7asi3 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240704@222510.7345 a50lbecvo74qt22stdljp7asi3 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240704@222510.7362 a50lbecvo74qt22stdljp7asi3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='792';
20240704@222510.7404 a50lbecvo74qt22stdljp7asi3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='792';
20240704@222510.7421 a50lbecvo74qt22stdljp7asi3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='792';
20240704@222510.7444 a50lbecvo74qt22stdljp7asi3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='792';
20240704@222510.7459 a50lbecvo74qt22stdljp7asi3 Query : use flama_phc
20240704@222510.7462 a50lbecvo74qt22stdljp7asi3 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240704@222510.7480 a50lbecvo74qt22stdljp7asi3 Query : use flama_phc
20240704@222510.7483 a50lbecvo74qt22stdljp7asi3 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4500
20240704@222510.7568 a50lbecvo74qt22stdljp7asi3 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240704@222510.7723 a50lbecvo74qt22stdljp7asi3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404539 and bi.ref ='324.5396.00.1' and bi.lordem =1
20240704@222510.8061 a50lbecvo74qt22stdljp7asi3 Query : use flama_phc
20240704@222510.8064 a50lbecvo74qt22stdljp7asi3 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240704@222510.8077 a50lbecvo74qt22stdljp7asi3 Query : use flama_phc
20240704@222510.8080 a50lbecvo74qt22stdljp7asi3 Query : select top 1 1 valor from td where td.ndoc = 39
20240704@222510.8090 a50lbecvo74qt22stdljp7asi3 Query : use flama_phc
20240704@222510.8093 a50lbecvo74qt22stdljp7asi3 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240704@222510.8638 gth6qgk514kg0qq2ks5oj869gv Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240704@222510.8653 gth6qgk514kg0qq2ks5oj869gv Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240704@222510.8672 gth6qgk514kg0qq2ks5oj869gv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='793';
20240704@222510.8713 gth6qgk514kg0qq2ks5oj869gv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='793';
20240704@222510.8741 gth6qgk514kg0qq2ks5oj869gv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='793';
20240704@222510.8754 gth6qgk514kg0qq2ks5oj869gv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='793';
20240704@222510.8770 gth6qgk514kg0qq2ks5oj869gv Query : use flama_phc
20240704@222510.8773 gth6qgk514kg0qq2ks5oj869gv Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240704@222510.8787 gth6qgk514kg0qq2ks5oj869gv Query : use flama_phc
20240704@222510.8790 gth6qgk514kg0qq2ks5oj869gv Query : select no, estab,szadrsdesc from szadrs where u_coddest=7737
20240704@222510.8862 gth6qgk514kg0qq2ks5oj869gv Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240704@222510.8873 gth6qgk514kg0qq2ks5oj869gv Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404540 and bi.ref ='324.5396.00.1' and bi.lordem =1
20240704@222510.9235 gth6qgk514kg0qq2ks5oj869gv Query : use flama_phc
20240704@222510.9246 gth6qgk514kg0qq2ks5oj869gv Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240704@222510.9263 gth6qgk514kg0qq2ks5oj869gv Query : use flama_phc
20240704@222510.9267 gth6qgk514kg0qq2ks5oj869gv Query : select top 1 1 valor from td where td.ndoc = 39
20240704@222510.9282 gth6qgk514kg0qq2ks5oj869gv Query : use flama_phc
20240704@222510.9285 gth6qgk514kg0qq2ks5oj869gv Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240704@222510.9815 oj1dcaq783m06uaif9g2jq6oj5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240704@222510.9829 oj1dcaq783m06uaif9g2jq6oj5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240704@222510.9847 oj1dcaq783m06uaif9g2jq6oj5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='794';
20240704@222510.9925 oj1dcaq783m06uaif9g2jq6oj5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='794';
20240704@222510.9943 oj1dcaq783m06uaif9g2jq6oj5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='794';
20240704@222510.9961 oj1dcaq783m06uaif9g2jq6oj5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='794';
20240704@222510.9978 oj1dcaq783m06uaif9g2jq6oj5 Query : use flama_phc
20240704@222510.9981 oj1dcaq783m06uaif9g2jq6oj5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240704@222511.0000 oj1dcaq783m06uaif9g2jq6oj5 Query : use flama_phc
20240704@222511.3000 oj1dcaq783m06uaif9g2jq6oj5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=68
20240704@222511.9500 oj1dcaq783m06uaif9g2jq6oj5 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240704@222511.1070 oj1dcaq783m06uaif9g2jq6oj5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404541 and bi.ref ='324.5396.00.1' and bi.lordem =1
20240704@222511.5220 oj1dcaq783m06uaif9g2jq6oj5 Query : use flama_phc
20240704@222511.5250 oj1dcaq783m06uaif9g2jq6oj5 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240704@222511.5410 oj1dcaq783m06uaif9g2jq6oj5 Query : use flama_phc
20240704@222511.5450 oj1dcaq783m06uaif9g2jq6oj5 Query : select top 1 1 valor from td where td.ndoc = 39
20240704@222511.5580 oj1dcaq783m06uaif9g2jq6oj5 Query : use flama_phc
20240704@222511.5610 oj1dcaq783m06uaif9g2jq6oj5 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240704@222511.3117 4qlkd98mm426t0gcn6d2i3ejjt Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240704@222511.3131 4qlkd98mm426t0gcn6d2i3ejjt Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240704@222511.3148 4qlkd98mm426t0gcn6d2i3ejjt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='795';
20240704@222511.3190 4qlkd98mm426t0gcn6d2i3ejjt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='795';
20240704@222511.3209 4qlkd98mm426t0gcn6d2i3ejjt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='795';
20240704@222511.3222 4qlkd98mm426t0gcn6d2i3ejjt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='795';
20240704@222511.3240 4qlkd98mm426t0gcn6d2i3ejjt Query : use flama_phc
20240704@222511.3243 4qlkd98mm426t0gcn6d2i3ejjt Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240704@222511.3258 4qlkd98mm426t0gcn6d2i3ejjt Query : use flama_phc
20240704@222511.3261 4qlkd98mm426t0gcn6d2i3ejjt Query : select no, estab,szadrsdesc from szadrs where u_coddest=313
20240704@222511.3503 4qlkd98mm426t0gcn6d2i3ejjt Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9075.00.1'
20240704@222511.3835 4qlkd98mm426t0gcn6d2i3ejjt Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404547 and bi.ref ='328.9075.00.1' and bi.lordem =1
20240704@222511.4181 4qlkd98mm426t0gcn6d2i3ejjt Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2907.00.1'
20240704@222511.4193 4qlkd98mm426t0gcn6d2i3ejjt Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404547 and bi.ref ='324.2907.00.1' and bi.lordem =2
20240704@222511.4553 4qlkd98mm426t0gcn6d2i3ejjt Query : use flama_phc
20240704@222511.4557 4qlkd98mm426t0gcn6d2i3ejjt Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240704@222511.4571 4qlkd98mm426t0gcn6d2i3ejjt Query : use flama_phc
20240704@222511.4574 4qlkd98mm426t0gcn6d2i3ejjt Query : select top 1 1 valor from td where td.ndoc = 39
20240704@222511.4656 4qlkd98mm426t0gcn6d2i3ejjt Query : use flama_phc
20240704@222511.4660 4qlkd98mm426t0gcn6d2i3ejjt Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240704@222511.5272 uq2roevqrb9c4lubo76lspglo4 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240704@222511.5288 uq2roevqrb9c4lubo76lspglo4 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240704@222511.5307 uq2roevqrb9c4lubo76lspglo4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='796';
20240704@222511.5362 uq2roevqrb9c4lubo76lspglo4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='796';
20240704@222511.5384 uq2roevqrb9c4lubo76lspglo4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='796';
20240704@222511.5401 uq2roevqrb9c4lubo76lspglo4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='796';
20240704@222511.5418 uq2roevqrb9c4lubo76lspglo4 Query : use flama_phc
20240704@222511.5421 uq2roevqrb9c4lubo76lspglo4 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240704@222511.5439 uq2roevqrb9c4lubo76lspglo4 Query : use flama_phc
20240704@222511.5443 uq2roevqrb9c4lubo76lspglo4 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1476
20240704@222511.5533 uq2roevqrb9c4lubo76lspglo4 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1643.00.1'
20240704@222511.5713 uq2roevqrb9c4lubo76lspglo4 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404549 and bi.ref ='324.1643.00.1' and bi.lordem =1
20240704@222511.6108 uq2roevqrb9c4lubo76lspglo4 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1643.00.1'
20240704@222511.6122 uq2roevqrb9c4lubo76lspglo4 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404549 and bi.ref ='324.1643.00.1' and bi.lordem =2
20240704@222511.6517 uq2roevqrb9c4lubo76lspglo4 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.658.00.01'
20240704@222511.6674 uq2roevqrb9c4lubo76lspglo4 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404549 and bi.ref ='324.658.00.01' and bi.lordem =3
20240704@222511.7024 uq2roevqrb9c4lubo76lspglo4 Query : use flama_phc
20240704@222511.7027 uq2roevqrb9c4lubo76lspglo4 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240704@222511.7042 uq2roevqrb9c4lubo76lspglo4 Query : use flama_phc
20240704@222511.7045 uq2roevqrb9c4lubo76lspglo4 Query : select top 1 1 valor from td where td.ndoc = 39
20240704@222511.7057 uq2roevqrb9c4lubo76lspglo4 Query : use flama_phc
20240704@222511.7061 uq2roevqrb9c4lubo76lspglo4 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240704@223613.5439 a1v4bgbm3q01bch5f15n9d3dt0 Query : use flama_phc
20240704@223613.5444 a1v4bgbm3q01bch5f15n9d3dt0 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@223613.5462 a1v4bgbm3q01bch5f15n9d3dt0 Query : use flama_phc
20240704@223613.5464 a1v4bgbm3q01bch5f15n9d3dt0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@231913.6028 g5fqg5blq5ruqvaj5com7n8vpa Query : use flama_phc
20240704@231913.6033 g5fqg5blq5ruqvaj5com7n8vpa Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@231913.6050 g5fqg5blq5ruqvaj5com7n8vpa Query : use flama_phc
20240704@231913.6053 g5fqg5blq5ruqvaj5com7n8vpa Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240704@233613.5519 5bmqf0luke3qspvs1n85uj6lca Query : use flama_phc
20240704@233613.5524 5bmqf0luke3qspvs1n85uj6lca Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240704@233613.5543 5bmqf0luke3qspvs1n85uj6lca Query : use flama_phc
20240704@233613.5545 5bmqf0luke3qspvs1n85uj6lca Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@071913.4744 6ab7sjrhmcqggvrrtf0j07mkbs Query : use flama_phc
20240705@071913.4772 6ab7sjrhmcqggvrrtf0j07mkbs Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@071913.6071 6ab7sjrhmcqggvrrtf0j07mkbs Query : use flama_phc
20240705@071913.6239 6ab7sjrhmcqggvrrtf0j07mkbs Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@073630.6887 iogtcmh9dlbgl6j0te3tn81jsp Query : use flama_phc
20240705@073630.6895 iogtcmh9dlbgl6j0te3tn81jsp Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@073630.6913 iogtcmh9dlbgl6j0te3tn81jsp Query : use flama_phc
20240705@073630.6916 iogtcmh9dlbgl6j0te3tn81jsp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@081909.9326 l6v7cotedn1h152puo5m6gsn1j Query : use flama_phc
20240705@081909.9331 l6v7cotedn1h152puo5m6gsn1j Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@081909.9391 l6v7cotedn1h152puo5m6gsn1j Query : use flama_phc
20240705@081909.9394 l6v7cotedn1h152puo5m6gsn1j Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@083610.2242 5r56njpu6e43evp8uk6mcrjd7l Query : use flama_phc
20240705@083610.2280 5r56njpu6e43evp8uk6mcrjd7l Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@083610.2550 5r56njpu6e43evp8uk6mcrjd7l Query : use flama_phc
20240705@083610.2632 5r56njpu6e43evp8uk6mcrjd7l Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@091913.2980 5semg963ose0grre2kjdpchkad Query : use flama_phc
20240705@091913.2986 5semg963ose0grre2kjdpchkad Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@091913.3040 5semg963ose0grre2kjdpchkad Query : use flama_phc
20240705@091913.3043 5semg963ose0grre2kjdpchkad Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@093613.3339 1gvaej2os0n3mjo5jbotvh2u1d Query : use flama_phc
20240705@093613.3368 1gvaej2os0n3mjo5jbotvh2u1d Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@093613.3633 1gvaej2os0n3mjo5jbotvh2u1d Query : use flama_phc
20240705@093613.3673 1gvaej2os0n3mjo5jbotvh2u1d Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@101910.7260 bdv865qfbrr3l1ilr0jrcmnemt Query : use flama_phc
20240705@101910.7310 bdv865qfbrr3l1ilr0jrcmnemt Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@101910.7850 bdv865qfbrr3l1ilr0jrcmnemt Query : use flama_phc
20240705@101910.7880 bdv865qfbrr3l1ilr0jrcmnemt Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@103609.7948 9npvu4ovcgvr4m5nj59o0ibp7h Query : use flama_phc
20240705@103609.7954 9npvu4ovcgvr4m5nj59o0ibp7h Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@103609.8099 9npvu4ovcgvr4m5nj59o0ibp7h Query : use flama_phc
20240705@103609.8102 9npvu4ovcgvr4m5nj59o0ibp7h Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@111910.6232 s1jilhled81jdeo3vtnrs8kct5 Query : use flama_phc
20240705@111910.6382 s1jilhled81jdeo3vtnrs8kct5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@111910.7274 s1jilhled81jdeo3vtnrs8kct5 Query : use flama_phc
20240705@111910.7352 s1jilhled81jdeo3vtnrs8kct5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@113610.7210 thlrk5tp03q3b872cmliusc6f9 Query : use flama_phc
20240705@113610.7215 thlrk5tp03q3b872cmliusc6f9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@113610.7236 thlrk5tp03q3b872cmliusc6f9 Query : use flama_phc
20240705@113610.7239 thlrk5tp03q3b872cmliusc6f9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@115239.2316 b2sfb9ivq2gdkdgh8on82dn7ou Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240705@115239.2350 b2sfb9ivq2gdkdgh8on82dn7ou Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240705@115239.2462 b2sfb9ivq2gdkdgh8on82dn7ou Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='797';
20240705@115239.2510 b2sfb9ivq2gdkdgh8on82dn7ou Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='797';
20240705@115239.2541 b2sfb9ivq2gdkdgh8on82dn7ou Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='797';
20240705@115239.2556 b2sfb9ivq2gdkdgh8on82dn7ou Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='797';
20240705@115239.3367 fr1bpkvro25jffcnss2iis0vvs Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240705@115239.3383 fr1bpkvro25jffcnss2iis0vvs Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240705@115239.3401 fr1bpkvro25jffcnss2iis0vvs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='798';
20240705@115239.3445 fr1bpkvro25jffcnss2iis0vvs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='798';
20240705@115239.3463 fr1bpkvro25jffcnss2iis0vvs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='798';
20240705@115239.3478 fr1bpkvro25jffcnss2iis0vvs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='798';
20240705@115239.3492 fr1bpkvro25jffcnss2iis0vvs Query : use flama_phc
20240705@115239.3496 fr1bpkvro25jffcnss2iis0vvs Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240705@115239.3550 fr1bpkvro25jffcnss2iis0vvs Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20240705@115239.3622 fr1bpkvro25jffcnss2iis0vvs Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1416.00.1'
20240705@115239.3744 fr1bpkvro25jffcnss2iis0vvs Query : use flama_phc
20240705@115239.3749 fr1bpkvro25jffcnss2iis0vvs Query : select top 1 1 valor from ts where ts.ndos = 5
20240705@115239.3834 fr1bpkvro25jffcnss2iis0vvs Query : use flama_phc
20240705@115239.3837 fr1bpkvro25jffcnss2iis0vvs Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240705@115239.3901 fr1bpkvro25jffcnss2iis0vvs Query : select top 1 assinadoc issigned ,ts.stocks ,ts.bdempresas origin ,case when (cmstocks between 1 and 50 or cm2stocks between 1 and 50 ) then 1 else 0 end entrada ,case when cmstocks>50 or (cm2stocks>50 and trfa =1) then 1 else 0 end saida ,stneg validatestock ,tiposaft ,veserie useserialnumber ,foserie assetin ,ftserie assetout ,veserie assets ,trfarm assetstransfer ,grelha usegridfields from ts inner join ts2 on ts.tsstamp=ts2.ts2stamp where ts.ndos =5
20240705@115239.4104 fr1bpkvro25jffcnss2iis0vvs Query : use flama_phc
20240705@115239.4107 fr1bpkvro25jffcnss2iis0vvs Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20240705@115239.4199 fr1bpkvro25jffcnss2iis0vvs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='798';
20240705@115239.4215 fr1bpkvro25jffcnss2iis0vvs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='798';
20240705@121909.1234 bbbelnfdqiio8le7gh473i647j Query : use flama_phc
20240705@121909.1240 bbbelnfdqiio8le7gh473i647j Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@121909.1260 bbbelnfdqiio8le7gh473i647j Query : use flama_phc
20240705@121909.1263 bbbelnfdqiio8le7gh473i647j Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@123609.2266 adalc421fdcgb8gu297on9uhuq Query : use flama_phc
20240705@123609.2270 adalc421fdcgb8gu297on9uhuq Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@123609.2287 adalc421fdcgb8gu297on9uhuq Query : use flama_phc
20240705@123609.2290 adalc421fdcgb8gu297on9uhuq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@130039.8825 1sr2u39icu4k2d15gdqlk0fh9r Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240705@130039.8839 1sr2u39icu4k2d15gdqlk0fh9r Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240705@130039.8857 1sr2u39icu4k2d15gdqlk0fh9r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='799';
20240705@130039.8906 1sr2u39icu4k2d15gdqlk0fh9r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='799';
20240705@130039.8931 1sr2u39icu4k2d15gdqlk0fh9r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='799';
20240705@130039.8945 1sr2u39icu4k2d15gdqlk0fh9r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='799';
20240705@130039.8959 1sr2u39icu4k2d15gdqlk0fh9r Query : use flama_phc
20240705@130039.8963 1sr2u39icu4k2d15gdqlk0fh9r Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240705@130039.8979 1sr2u39icu4k2d15gdqlk0fh9r Query : use flama_phc
20240705@130039.8982 1sr2u39icu4k2d15gdqlk0fh9r Query : select no, estab,szadrsdesc from szadrs where u_coddest=000000
20240705@130040.1998 1sr2u39icu4k2d15gdqlk0fh9r Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '321.162.40.00'
20240705@130040.2170 1sr2u39icu4k2d15gdqlk0fh9r Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20240705@130040.2342 1sr2u39icu4k2d15gdqlk0fh9r Query : use flama_phc
20240705@130040.2346 1sr2u39icu4k2d15gdqlk0fh9r Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240705@130040.2559 1sr2u39icu4k2d15gdqlk0fh9r Query : use flama_phc
20240705@130040.2563 1sr2u39icu4k2d15gdqlk0fh9r Query : select top 1 1 valor from td where td.ndoc = 39
20240705@130040.2639 1sr2u39icu4k2d15gdqlk0fh9r Query : use flama_phc
20240705@130040.2642 1sr2u39icu4k2d15gdqlk0fh9r Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240705@131911.3137 b9sfs5c4ibilgb2skv3oqr01hb Query : use flama_phc
20240705@131911.3142 b9sfs5c4ibilgb2skv3oqr01hb Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@131911.3163 b9sfs5c4ibilgb2skv3oqr01hb Query : use flama_phc
20240705@131911.3166 b9sfs5c4ibilgb2skv3oqr01hb Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@133611.5717 cdkkqprcp5lab4d1ito238mlk5 Query : use flama_phc
20240705@133611.5722 cdkkqprcp5lab4d1ito238mlk5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@133611.5739 cdkkqprcp5lab4d1ito238mlk5 Query : use flama_phc
20240705@133611.5742 cdkkqprcp5lab4d1ito238mlk5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@141909.1153 r6t9d0pi29egmvsq8307kjt1e1 Query : use flama_phc
20240705@141909.1222 r6t9d0pi29egmvsq8307kjt1e1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@141909.1239 r6t9d0pi29egmvsq8307kjt1e1 Query : use flama_phc
20240705@141909.1282 r6t9d0pi29egmvsq8307kjt1e1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@143609.1423 1imm968b9ereqphc12c506e3id Query : use flama_phc
20240705@143609.1427 1imm968b9ereqphc12c506e3id Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@143609.1444 1imm968b9ereqphc12c506e3id Query : use flama_phc
20240705@143609.1447 1imm968b9ereqphc12c506e3id Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@144840.4995 fpautc6d2vpguei6s6646akl2o Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240705@144840.5029 fpautc6d2vpguei6s6646akl2o Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240705@144840.5498 fpautc6d2vpguei6s6646akl2o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='800';
20240705@144840.5540 fpautc6d2vpguei6s6646akl2o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='800';
20240705@144840.5558 fpautc6d2vpguei6s6646akl2o Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='800';
20240705@144840.5637 fpautc6d2vpguei6s6646akl2o Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='800';
20240705@144840.5666 fpautc6d2vpguei6s6646akl2o Query : use flama_phc
20240705@144840.5670 fpautc6d2vpguei6s6646akl2o Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240705@144840.5771 fpautc6d2vpguei6s6646akl2o Query : use flama_phc
20240705@144840.5774 fpautc6d2vpguei6s6646akl2o Query : select no, estab,szadrsdesc from szadrs where u_coddest=332
20240705@144840.5849 fpautc6d2vpguei6s6646akl2o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4006.00.2'
20240705@144840.6206 fpautc6d2vpguei6s6646akl2o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001380 and bi.ref ='304.4006.00.2' and bi.lordem =10000
20240705@144840.8436 fpautc6d2vpguei6s6646akl2o Query : select bie.edebito ,bie.desconto ,bie.desc2 ,bie.desc3 ,bie.desc4 ,bie.obranome ,bie.bostamp from bi bio inner join bi bie on bio.oobistamp=bie.bistamp where bio.bistamp = 'az24062128323,220000001 ' 
20240705@144840.9054 fpautc6d2vpguei6s6646akl2o Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4006.00.2'
20240705@144840.9065 fpautc6d2vpguei6s6646akl2o Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =001 and bo.boano =2024 and bo.obrano = 0001380 and bi.ref ='304.4006.00.2' and bi.lordem =10000
20240705@144840.9077 fpautc6d2vpguei6s6646akl2o Query : select bie.edebito ,bie.desconto ,bie.desc2 ,bie.desc3 ,bie.desc4 ,bie.obranome ,bie.bostamp from bi bio inner join bi bie on bio.oobistamp=bie.bistamp where bio.bistamp = 'az24062128323,220000001 ' 
20240705@144840.9084 fpautc6d2vpguei6s6646akl2o Query : use flama_phc
20240705@144840.9094 fpautc6d2vpguei6s6646akl2o Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240705@144840.9107 fpautc6d2vpguei6s6646akl2o Query : use flama_phc
20240705@144840.9110 fpautc6d2vpguei6s6646akl2o Query : select top 1 1 valor from td where td.ndoc = 39
20240705@144840.9120 fpautc6d2vpguei6s6646akl2o Query : use flama_phc
20240705@144840.9122 fpautc6d2vpguei6s6646akl2o Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240705@151909.7037 heljptpm2022s4ua63auldatlj Query : use flama_phc
20240705@151909.7045 heljptpm2022s4ua63auldatlj Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@151909.7175 heljptpm2022s4ua63auldatlj Query : use flama_phc
20240705@151909.7179 heljptpm2022s4ua63auldatlj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@153609.5481 i2jcer3va2itbgf0ab30hm9m2i Query : use flama_phc
20240705@153609.5485 i2jcer3va2itbgf0ab30hm9m2i Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@153609.5504 i2jcer3va2itbgf0ab30hm9m2i Query : use flama_phc
20240705@153609.5507 i2jcer3va2itbgf0ab30hm9m2i Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@161914.8446 ol0vq99jpjujs4us7fnfqhflca Query : use flama_phc
20240705@161914.8451 ol0vq99jpjujs4us7fnfqhflca Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@161914.8468 ol0vq99jpjujs4us7fnfqhflca Query : use flama_phc
20240705@161914.8471 ol0vq99jpjujs4us7fnfqhflca Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@163614.5919 om13dknr7q4d6lbr96hl555g35 Query : use flama_phc
20240705@163614.5924 om13dknr7q4d6lbr96hl555g35 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@163614.5942 om13dknr7q4d6lbr96hl555g35 Query : use flama_phc
20240705@163614.5945 om13dknr7q4d6lbr96hl555g35 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@171910.5945 shbfrkdgn7qlum41h7dusfjf63 Query : use flama_phc
20240705@171910.5950 shbfrkdgn7qlum41h7dusfjf63 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@171910.5986 shbfrkdgn7qlum41h7dusfjf63 Query : use flama_phc
20240705@171910.5989 shbfrkdgn7qlum41h7dusfjf63 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@173610.7694 mu0qeph6k1sqv3s0glf18knbdl Query : use flama_phc
20240705@173610.7700 mu0qeph6k1sqv3s0glf18knbdl Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@173610.7723 mu0qeph6k1sqv3s0glf18knbdl Query : use flama_phc
20240705@173610.7726 mu0qeph6k1sqv3s0glf18knbdl Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@181914.5352 nn1f982oth505trlb7e65dpslj Query : use flama_phc
20240705@181914.5374 nn1f982oth505trlb7e65dpslj Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@181914.5430 nn1f982oth505trlb7e65dpslj Query : use flama_phc
20240705@181914.5449 nn1f982oth505trlb7e65dpslj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@183614.8500 aopdgo0icjpeb24l0osc669n98 Query : use flama_phc
20240705@183614.8534 aopdgo0icjpeb24l0osc669n98 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@183614.8552 aopdgo0icjpeb24l0osc669n98 Query : use flama_phc
20240705@183614.8554 aopdgo0icjpeb24l0osc669n98 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@191913.5245 u0kdp0snsd849c23n0rtlnk9ra Query : use flama_phc
20240705@191913.5250 u0kdp0snsd849c23n0rtlnk9ra Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@191913.5308 u0kdp0snsd849c23n0rtlnk9ra Query : use flama_phc
20240705@191913.5311 u0kdp0snsd849c23n0rtlnk9ra Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@193613.6075 r8qglbpupvbjbimil1qovdkb42 Query : use flama_phc
20240705@193613.6080 r8qglbpupvbjbimil1qovdkb42 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@193613.6098 r8qglbpupvbjbimil1qovdkb42 Query : use flama_phc
20240705@193613.6101 r8qglbpupvbjbimil1qovdkb42 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@201914.5092 t5jvtg16bgsnm08vau3ocvf1a7 Query : use flama_phc
20240705@201914.5098 t5jvtg16bgsnm08vau3ocvf1a7 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@201914.5115 t5jvtg16bgsnm08vau3ocvf1a7 Query : use flama_phc
20240705@201914.5118 t5jvtg16bgsnm08vau3ocvf1a7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@203614.3406 0pu54llpnhlcp9h7eit8gm7rer Query : use flama_phc
20240705@203614.3410 0pu54llpnhlcp9h7eit8gm7rer Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@203614.3428 0pu54llpnhlcp9h7eit8gm7rer Query : use flama_phc
20240705@203614.3430 0pu54llpnhlcp9h7eit8gm7rer Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@211911.1233 imoduj6qnkielvgktil7skplsl Query : use flama_phc
20240705@211911.1237 imoduj6qnkielvgktil7skplsl Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@211911.1255 imoduj6qnkielvgktil7skplsl Query : use flama_phc
20240705@211911.1258 imoduj6qnkielvgktil7skplsl Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@213611.8760 u6m9rfpmqhn1m4t0abmbctuubt Query : use flama_phc
20240705@213611.8810 u6m9rfpmqhn1m4t0abmbctuubt Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@213611.8990 u6m9rfpmqhn1m4t0abmbctuubt Query : use flama_phc
20240705@213611.9020 u6m9rfpmqhn1m4t0abmbctuubt Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@221912.3652 c1j5gn7ojjt4csujmvfd3oltf7 Query : use flama_phc
20240705@221912.3657 c1j5gn7ojjt4csujmvfd3oltf7 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@221912.3676 c1j5gn7ojjt4csujmvfd3oltf7 Query : use flama_phc
20240705@221912.3679 c1j5gn7ojjt4csujmvfd3oltf7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@223612.6136 i7vlanlj2e67d5i3ms2bm047be Query : use flama_phc
20240705@223612.6141 i7vlanlj2e67d5i3ms2bm047be Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@223612.6204 i7vlanlj2e67d5i3ms2bm047be Query : use flama_phc
20240705@223612.6207 i7vlanlj2e67d5i3ms2bm047be Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@231912.7030 5od3i28chhbjapmtlsn1c3e790 Query : use flama_phc
20240705@231912.7090 5od3i28chhbjapmtlsn1c3e790 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@231912.7350 5od3i28chhbjapmtlsn1c3e790 Query : use flama_phc
20240705@231912.7390 5od3i28chhbjapmtlsn1c3e790 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240705@233612.2117 nc2cblkg2j57lg44hdrhbluo13 Query : use flama_phc
20240705@233612.2122 nc2cblkg2j57lg44hdrhbluo13 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240705@233612.2142 nc2cblkg2j57lg44hdrhbluo13 Query : use flama_phc
20240705@233612.2145 nc2cblkg2j57lg44hdrhbluo13 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@071921.5391 22h13848h9fuvs1odq16j95j9v Query : use flama_phc
20240706@071921.5396 22h13848h9fuvs1odq16j95j9v Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@071921.5456 22h13848h9fuvs1odq16j95j9v Query : use flama_phc
20240706@071921.5459 22h13848h9fuvs1odq16j95j9v Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@073617.9753 2im1th8n8gc1ol9opea7er4f03 Query : use flama_phc
20240706@073617.9758 2im1th8n8gc1ol9opea7er4f03 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@073617.9775 2im1th8n8gc1ol9opea7er4f03 Query : use flama_phc
20240706@073617.9778 2im1th8n8gc1ol9opea7er4f03 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@081911.4747 mr053j3pf534kcuqb515itak3b Query : use flama_phc
20240706@081911.4752 mr053j3pf534kcuqb515itak3b Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@081911.4805 mr053j3pf534kcuqb515itak3b Query : use flama_phc
20240706@081911.4808 mr053j3pf534kcuqb515itak3b Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@083611.4987 l4873diumoj4s3kulprui0un34 Query : use flama_phc
20240706@083611.5007 l4873diumoj4s3kulprui0un34 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@083611.5084 l4873diumoj4s3kulprui0un34 Query : use flama_phc
20240706@083611.5088 l4873diumoj4s3kulprui0un34 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@091911.3196 3fjltimh7ac9cj24juhjr029df Query : use flama_phc
20240706@091911.3201 3fjltimh7ac9cj24juhjr029df Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@091911.3257 3fjltimh7ac9cj24juhjr029df Query : use flama_phc
20240706@091911.3260 3fjltimh7ac9cj24juhjr029df Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@093611.3880 77d1504rl2n1pgg1ntfa89n9ic Query : use flama_phc
20240706@093611.3913 77d1504rl2n1pgg1ntfa89n9ic Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@093611.3950 77d1504rl2n1pgg1ntfa89n9ic Query : use flama_phc
20240706@093611.3959 77d1504rl2n1pgg1ntfa89n9ic Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@101908.9633 mavquqqf505s6lcml27q1868le Query : use flama_phc
20240706@101908.9638 mavquqqf505s6lcml27q1868le Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@101908.9657 mavquqqf505s6lcml27q1868le Query : use flama_phc
20240706@101908.9660 mavquqqf505s6lcml27q1868le Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@103608.8529 jj698r6q9i6nvgb2elr2out328 Query : use flama_phc
20240706@103608.8533 jj698r6q9i6nvgb2elr2out328 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@103608.8551 jj698r6q9i6nvgb2elr2out328 Query : use flama_phc
20240706@103608.8554 jj698r6q9i6nvgb2elr2out328 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@111908.9919 tetp10pokova5hhmcdkqas54vv Query : use flama_phc
20240706@111908.9924 tetp10pokova5hhmcdkqas54vv Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@111908.9947 tetp10pokova5hhmcdkqas54vv Query : use flama_phc
20240706@111908.9950 tetp10pokova5hhmcdkqas54vv Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@113608.4629 g9j4busu2qctmudrd2940741mj Query : use flama_phc
20240706@113608.4635 g9j4busu2qctmudrd2940741mj Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@113608.4654 g9j4busu2qctmudrd2940741mj Query : use flama_phc
20240706@113608.4657 g9j4busu2qctmudrd2940741mj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@121907.7347 h4gip6vehsekd3r75c2g33asvi Query : use flama_phc
20240706@121907.7354 h4gip6vehsekd3r75c2g33asvi Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@121907.7382 h4gip6vehsekd3r75c2g33asvi Query : use flama_phc
20240706@121907.7421 h4gip6vehsekd3r75c2g33asvi Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@123607.5642 n2q5bmb6jfmv3nvf66t4h0k2rn Query : use flama_phc
20240706@123607.5646 n2q5bmb6jfmv3nvf66t4h0k2rn Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@123607.5664 n2q5bmb6jfmv3nvf66t4h0k2rn Query : use flama_phc
20240706@123607.5667 n2q5bmb6jfmv3nvf66t4h0k2rn Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@131909.4336 921e79cdorqhoia9fqkhnv96ut Query : use flama_phc
20240706@131909.4342 921e79cdorqhoia9fqkhnv96ut Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@131909.4359 921e79cdorqhoia9fqkhnv96ut Query : use flama_phc
20240706@131909.4362 921e79cdorqhoia9fqkhnv96ut Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@133609.3212 q0n88lqdggposhtngapj59v087 Query : use flama_phc
20240706@133609.3217 q0n88lqdggposhtngapj59v087 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@133609.3235 q0n88lqdggposhtngapj59v087 Query : use flama_phc
20240706@133609.3238 q0n88lqdggposhtngapj59v087 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@141910.2613 oekpovvqfqun6e202b1so51ggc Query : use flama_phc
20240706@141910.2618 oekpovvqfqun6e202b1so51ggc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@141910.2636 oekpovvqfqun6e202b1so51ggc Query : use flama_phc
20240706@141910.2639 oekpovvqfqun6e202b1so51ggc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@143610.1934 s4t9cgjqkpc1ggl39eqnq3fque Query : use flama_phc
20240706@143610.1939 s4t9cgjqkpc1ggl39eqnq3fque Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@143610.1958 s4t9cgjqkpc1ggl39eqnq3fque Query : use flama_phc
20240706@143610.1961 s4t9cgjqkpc1ggl39eqnq3fque Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@151909.4478 4po3jh2r8dt6uh5k8k8o6jqi4s Query : use flama_phc
20240706@151909.4483 4po3jh2r8dt6uh5k8k8o6jqi4s Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@151909.4501 4po3jh2r8dt6uh5k8k8o6jqi4s Query : use flama_phc
20240706@151909.4506 4po3jh2r8dt6uh5k8k8o6jqi4s Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@153609.1894 02mhluk2g0qjutqnpf8svknv9g Query : use flama_phc
20240706@153609.1899 02mhluk2g0qjutqnpf8svknv9g Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@153609.1917 02mhluk2g0qjutqnpf8svknv9g Query : use flama_phc
20240706@153609.1920 02mhluk2g0qjutqnpf8svknv9g Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@161908.7259 kff64u771l3mjvvo9fo2m97c7m Query : use flama_phc
20240706@161908.7263 kff64u771l3mjvvo9fo2m97c7m Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@161908.7320 kff64u771l3mjvvo9fo2m97c7m Query : use flama_phc
20240706@161908.7323 kff64u771l3mjvvo9fo2m97c7m Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@163608.6529 istk0e3ch2p5ofhbs436o7ar5e Query : use flama_phc
20240706@163608.6535 istk0e3ch2p5ofhbs436o7ar5e Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@163608.6552 istk0e3ch2p5ofhbs436o7ar5e Query : use flama_phc
20240706@163608.6555 istk0e3ch2p5ofhbs436o7ar5e Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@171908.5610 a5mn73v6nsv7h296c4evqdah8j Query : use flama_phc
20240706@171908.5615 a5mn73v6nsv7h296c4evqdah8j Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@171908.5632 a5mn73v6nsv7h296c4evqdah8j Query : use flama_phc
20240706@171908.5634 a5mn73v6nsv7h296c4evqdah8j Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@173608.3091 7ekggll77haorvrudlajcjol5j Query : use flama_phc
20240706@173608.3096 7ekggll77haorvrudlajcjol5j Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@173608.3116 7ekggll77haorvrudlajcjol5j Query : use flama_phc
20240706@173608.3119 7ekggll77haorvrudlajcjol5j Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@181909.4439 v5gid3u9g9o5tohci6qlphgqpg Query : use flama_phc
20240706@181909.4443 v5gid3u9g9o5tohci6qlphgqpg Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@181909.4462 v5gid3u9g9o5tohci6qlphgqpg Query : use flama_phc
20240706@181909.4465 v5gid3u9g9o5tohci6qlphgqpg Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@183609.1972 v99234mjfjs52o27dp1jlp3vqr Query : use flama_phc
20240706@183609.1979 v99234mjfjs52o27dp1jlp3vqr Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@183609.2004 v99234mjfjs52o27dp1jlp3vqr Query : use flama_phc
20240706@183609.2007 v99234mjfjs52o27dp1jlp3vqr Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@191911.1775 anrg0urf8ik7mu4q8s5b74cipe Query : use flama_phc
20240706@191911.1780 anrg0urf8ik7mu4q8s5b74cipe Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@191911.1800 anrg0urf8ik7mu4q8s5b74cipe Query : use flama_phc
20240706@191911.1803 anrg0urf8ik7mu4q8s5b74cipe Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@193611.7586 mliudmhtbe7urdalojadhkk5oj Query : use flama_phc
20240706@193611.7591 mliudmhtbe7urdalojadhkk5oj Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@193611.7609 mliudmhtbe7urdalojadhkk5oj Query : use flama_phc
20240706@193611.7616 mliudmhtbe7urdalojadhkk5oj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@201909.5772 eh7qcl6s38ihncnkm55uq9n8eb Query : use flama_phc
20240706@201909.5778 eh7qcl6s38ihncnkm55uq9n8eb Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@201909.5799 eh7qcl6s38ihncnkm55uq9n8eb Query : use flama_phc
20240706@201909.5802 eh7qcl6s38ihncnkm55uq9n8eb Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@203609.7445 lou510kqkkoio0rob7is271i5b Query : use flama_phc
20240706@203609.7449 lou510kqkkoio0rob7is271i5b Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@203609.7467 lou510kqkkoio0rob7is271i5b Query : use flama_phc
20240706@203609.7470 lou510kqkkoio0rob7is271i5b Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@211909.6280 738arsp1fp0pujgmfhv4lo870a Query : use flama_phc
20240706@211909.6320 738arsp1fp0pujgmfhv4lo870a Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@211909.6500 738arsp1fp0pujgmfhv4lo870a Query : use flama_phc
20240706@211909.6530 738arsp1fp0pujgmfhv4lo870a Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@213609.3276 758bbkco0juh9c0t86lm8cmapk Query : use flama_phc
20240706@213609.3281 758bbkco0juh9c0t86lm8cmapk Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@213609.3300 758bbkco0juh9c0t86lm8cmapk Query : use flama_phc
20240706@213609.3303 758bbkco0juh9c0t86lm8cmapk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@221909.9421 nh47bcd1v80c0d32hffb56ilkr Query : use flama_phc
20240706@221909.9425 nh47bcd1v80c0d32hffb56ilkr Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@221909.9443 nh47bcd1v80c0d32hffb56ilkr Query : use flama_phc
20240706@221909.9445 nh47bcd1v80c0d32hffb56ilkr Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@223610.2322 v7u4ksu3l74b3vqjujl6aptm7v Query : use flama_phc
20240706@223610.2327 v7u4ksu3l74b3vqjujl6aptm7v Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@223610.2345 v7u4ksu3l74b3vqjujl6aptm7v Query : use flama_phc
20240706@223610.2348 v7u4ksu3l74b3vqjujl6aptm7v Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@231910.6592 36s14tttkrd1g4h9q1vtngm03n Query : use flama_phc
20240706@231910.6597 36s14tttkrd1g4h9q1vtngm03n Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@231910.6615 36s14tttkrd1g4h9q1vtngm03n Query : use flama_phc
20240706@231910.6618 36s14tttkrd1g4h9q1vtngm03n Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240706@233610.8468 lu8pc97h937lh8torluq1rohho Query : use flama_phc
20240706@233610.8472 lu8pc97h937lh8torluq1rohho Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240706@233610.8491 lu8pc97h937lh8torluq1rohho Query : use flama_phc
20240706@233610.8494 lu8pc97h937lh8torluq1rohho Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@071950.2147 pqonilkugio4o956tl7qgoraj7 Query : use flama_phc
20240707@071950.2152 pqonilkugio4o956tl7qgoraj7 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@071950.2206 pqonilkugio4o956tl7qgoraj7 Query : use flama_phc
20240707@071950.2209 pqonilkugio4o956tl7qgoraj7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@073650.4862 hpil174vgd20bbk0iof7v502n2 Query : use flama_phc
20240707@073650.4868 hpil174vgd20bbk0iof7v502n2 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@073650.4885 hpil174vgd20bbk0iof7v502n2 Query : use flama_phc
20240707@073650.4888 hpil174vgd20bbk0iof7v502n2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@081910.5834 41v1tmeacv100gno6d0tveaoto Query : use flama_phc
20240707@081910.5840 41v1tmeacv100gno6d0tveaoto Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@081910.5859 41v1tmeacv100gno6d0tveaoto Query : use flama_phc
20240707@081910.5862 41v1tmeacv100gno6d0tveaoto Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@083610.6729 3jter9bm2to0osuiorhqpe2ps7 Query : use flama_phc
20240707@083610.6737 3jter9bm2to0osuiorhqpe2ps7 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@083610.6758 3jter9bm2to0osuiorhqpe2ps7 Query : use flama_phc
20240707@083610.6761 3jter9bm2to0osuiorhqpe2ps7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@091908.8191 tul0ka667fj7b6vbqd7ffnmkf5 Query : use flama_phc
20240707@091908.8196 tul0ka667fj7b6vbqd7ffnmkf5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@091908.8263 tul0ka667fj7b6vbqd7ffnmkf5 Query : use flama_phc
20240707@091908.8266 tul0ka667fj7b6vbqd7ffnmkf5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@093609.3355 m4t0c4pr8safg5ishc45q0l3a2 Query : use flama_phc
20240707@093609.3361 m4t0c4pr8safg5ishc45q0l3a2 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@093609.3383 m4t0c4pr8safg5ishc45q0l3a2 Query : use flama_phc
20240707@093609.3386 m4t0c4pr8safg5ishc45q0l3a2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@101908.3144 h4hecc95gudh1mfhfus4snuvjn Query : use flama_phc
20240707@101908.3150 h4hecc95gudh1mfhfus4snuvjn Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@101908.3172 h4hecc95gudh1mfhfus4snuvjn Query : use flama_phc
20240707@101908.3175 h4hecc95gudh1mfhfus4snuvjn Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@103608.4165 8mf1dln4rimf27qn75d9fp7a9k Query : use flama_phc
20240707@103608.4172 8mf1dln4rimf27qn75d9fp7a9k Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@103608.4193 8mf1dln4rimf27qn75d9fp7a9k Query : use flama_phc
20240707@103608.4207 8mf1dln4rimf27qn75d9fp7a9k Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@111909.8922 g19vm3f5ssf2se1rtnf1pdj5k5 Query : use flama_phc
20240707@111909.8927 g19vm3f5ssf2se1rtnf1pdj5k5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@111910.7300 g19vm3f5ssf2se1rtnf1pdj5k5 Query : use flama_phc
20240707@111910.7800 g19vm3f5ssf2se1rtnf1pdj5k5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@113609.9629 7dl9sqoem6rbamfjubd3bbi40s Query : use flama_phc
20240707@113609.9633 7dl9sqoem6rbamfjubd3bbi40s Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@113609.9655 7dl9sqoem6rbamfjubd3bbi40s Query : use flama_phc
20240707@113609.9659 7dl9sqoem6rbamfjubd3bbi40s Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@121909.2457 mm8krh8sbfhn2n1luhqq8tt5bu Query : use flama_phc
20240707@121909.2464 mm8krh8sbfhn2n1luhqq8tt5bu Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@121909.2531 mm8krh8sbfhn2n1luhqq8tt5bu Query : use flama_phc
20240707@121909.2534 mm8krh8sbfhn2n1luhqq8tt5bu Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@123609.2500 86cksu3ct9u6kv5d9uml55cpav Query : use flama_phc
20240707@123609.2550 86cksu3ct9u6kv5d9uml55cpav Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@123609.2750 86cksu3ct9u6kv5d9uml55cpav Query : use flama_phc
20240707@123609.2780 86cksu3ct9u6kv5d9uml55cpav Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@131908.5858 rieebqvrjujh2c2se9hugd2qd4 Query : use flama_phc
20240707@131908.5864 rieebqvrjujh2c2se9hugd2qd4 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@131908.5887 rieebqvrjujh2c2se9hugd2qd4 Query : use flama_phc
20240707@131908.5890 rieebqvrjujh2c2se9hugd2qd4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@133608.6388 be4r4cj7iku0sd6pm986j607o7 Query : use flama_phc
20240707@133608.6402 be4r4cj7iku0sd6pm986j607o7 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@133608.6422 be4r4cj7iku0sd6pm986j607o7 Query : use flama_phc
20240707@133608.6425 be4r4cj7iku0sd6pm986j607o7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@141908.7661 v37fton46qgc18ko94890lnd5o Query : use flama_phc
20240707@141908.7666 v37fton46qgc18ko94890lnd5o Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@141908.7686 v37fton46qgc18ko94890lnd5o Query : use flama_phc
20240707@141908.7689 v37fton46qgc18ko94890lnd5o Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@143608.9011 4ulse4ma8agfeag6perjrlk0o6 Query : use flama_phc
20240707@143608.9015 4ulse4ma8agfeag6perjrlk0o6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@143608.9033 4ulse4ma8agfeag6perjrlk0o6 Query : use flama_phc
20240707@143608.9036 4ulse4ma8agfeag6perjrlk0o6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@151909.1295 6rv35rspog9eckml95k2kg4ei4 Query : use flama_phc
20240707@151909.1301 6rv35rspog9eckml95k2kg4ei4 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@151909.1971 6rv35rspog9eckml95k2kg4ei4 Query : use flama_phc
20240707@151909.1975 6rv35rspog9eckml95k2kg4ei4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@153609.2697 6q4nra011u55gs5q8hjj99ndb0 Query : use flama_phc
20240707@153609.2701 6q4nra011u55gs5q8hjj99ndb0 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@153609.2720 6q4nra011u55gs5q8hjj99ndb0 Query : use flama_phc
20240707@153609.2722 6q4nra011u55gs5q8hjj99ndb0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@161908.7058 n32r5qghqdefnirmqe0fovn322 Query : use flama_phc
20240707@161908.7063 n32r5qghqdefnirmqe0fovn322 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@161908.7102 n32r5qghqdefnirmqe0fovn322 Query : use flama_phc
20240707@161908.7105 n32r5qghqdefnirmqe0fovn322 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@163608.7519 8rarc70h3447dc3pojp85jv8lp Query : use flama_phc
20240707@163608.7524 8rarc70h3447dc3pojp85jv8lp Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@163608.7541 8rarc70h3447dc3pojp85jv8lp Query : use flama_phc
20240707@163608.7545 8rarc70h3447dc3pojp85jv8lp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@171908.3445 780gmfknv9gdplm8vdeh4fnaqm Query : use flama_phc
20240707@171908.3450 780gmfknv9gdplm8vdeh4fnaqm Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@171908.3508 780gmfknv9gdplm8vdeh4fnaqm Query : use flama_phc
20240707@171908.3511 780gmfknv9gdplm8vdeh4fnaqm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@173608.3460 bfc4pblf6icsktaf6rnf67pcnt Query : use flama_phc
20240707@173608.3464 bfc4pblf6icsktaf6rnf67pcnt Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@173608.3481 bfc4pblf6icsktaf6rnf67pcnt Query : use flama_phc
20240707@173608.3484 bfc4pblf6icsktaf6rnf67pcnt Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@181908.9541 2lhbj3n3r5idfdifokf83e5r1s Query : use flama_phc
20240707@181908.9546 2lhbj3n3r5idfdifokf83e5r1s Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@181908.9565 2lhbj3n3r5idfdifokf83e5r1s Query : use flama_phc
20240707@181908.9568 2lhbj3n3r5idfdifokf83e5r1s Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@183609.8270 dsjnn0ent9sbah339uv8ass3mb Query : use flama_phc
20240707@183609.8320 dsjnn0ent9sbah339uv8ass3mb Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@183609.8490 dsjnn0ent9sbah339uv8ass3mb Query : use flama_phc
20240707@183609.8520 dsjnn0ent9sbah339uv8ass3mb Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@191910.1498 0tig7jnoetfe8l6l1o11evrs90 Query : use flama_phc
20240707@191910.1524 0tig7jnoetfe8l6l1o11evrs90 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@191910.1547 0tig7jnoetfe8l6l1o11evrs90 Query : use flama_phc
20240707@191910.1551 0tig7jnoetfe8l6l1o11evrs90 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@193610.3742 k1t775nnet5qrre1ec989p66bm Query : use flama_phc
20240707@193610.3749 k1t775nnet5qrre1ec989p66bm Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@193610.3771 k1t775nnet5qrre1ec989p66bm Query : use flama_phc
20240707@193610.3775 k1t775nnet5qrre1ec989p66bm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@195520.8330 12hu07lfi4ph5oi3tn4kk7s03m Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240707@195520.8392 12hu07lfi4ph5oi3tn4kk7s03m Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240707@195520.8500 12hu07lfi4ph5oi3tn4kk7s03m Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='801';
20240707@195520.8547 12hu07lfi4ph5oi3tn4kk7s03m Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='801';
20240707@195520.8577 12hu07lfi4ph5oi3tn4kk7s03m Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='801';
20240707@195520.8592 12hu07lfi4ph5oi3tn4kk7s03m Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='801';
20240707@195520.8887 8cpop4eu0tnlmdpd0mple2ctb4 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240707@195520.8904 8cpop4eu0tnlmdpd0mple2ctb4 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240707@195520.8922 8cpop4eu0tnlmdpd0mple2ctb4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='802';
20240707@195520.8967 8cpop4eu0tnlmdpd0mple2ctb4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='802';
20240707@195520.8985 8cpop4eu0tnlmdpd0mple2ctb4 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='802';
20240707@195520.9002 8cpop4eu0tnlmdpd0mple2ctb4 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='802';
20240707@195527.4823 12hu07lfi4ph5oi3tn4kk7s03m Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240707@195527.4839 12hu07lfi4ph5oi3tn4kk7s03m Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240707@195527.4860 12hu07lfi4ph5oi3tn4kk7s03m Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='803';
20240707@195527.4905 12hu07lfi4ph5oi3tn4kk7s03m Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='803';
20240707@195527.4922 12hu07lfi4ph5oi3tn4kk7s03m Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='803';
20240707@195527.4940 12hu07lfi4ph5oi3tn4kk7s03m Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='803';
20240707@201910.4477 og3tbrprj47mb73q4l69r69q9q Query : use flama_phc
20240707@201910.4483 og3tbrprj47mb73q4l69r69q9q Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@201910.4515 og3tbrprj47mb73q4l69r69q9q Query : use flama_phc
20240707@201910.4540 og3tbrprj47mb73q4l69r69q9q Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@203610.6567 547mmmf9mo47sl0g6dlfunj49v Query : use flama_phc
20240707@203610.6572 547mmmf9mo47sl0g6dlfunj49v Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@203610.6590 547mmmf9mo47sl0g6dlfunj49v Query : use flama_phc
20240707@203610.6593 547mmmf9mo47sl0g6dlfunj49v Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@211910.1474 4ctjomlgieoh5klbvsh66u6dia Query : use flama_phc
20240707@211910.1479 4ctjomlgieoh5klbvsh66u6dia Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@211910.1496 4ctjomlgieoh5klbvsh66u6dia Query : use flama_phc
20240707@211910.1499 4ctjomlgieoh5klbvsh66u6dia Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@213610.2895 k7tplofmhbmboh727nfgd3n9du Query : use flama_phc
20240707@213610.2899 k7tplofmhbmboh727nfgd3n9du Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@213610.2917 k7tplofmhbmboh727nfgd3n9du Query : use flama_phc
20240707@213610.2919 k7tplofmhbmboh727nfgd3n9du Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@221911.7406 bn2ckdf7u6eslkkmh8p7gs60i8 Query : use flama_phc
20240707@221911.7411 bn2ckdf7u6eslkkmh8p7gs60i8 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@221911.7431 bn2ckdf7u6eslkkmh8p7gs60i8 Query : use flama_phc
20240707@221911.7434 bn2ckdf7u6eslkkmh8p7gs60i8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@223611.5578 d1nhi7knq13hn62ct3t3sun27q Query : use flama_phc
20240707@223611.5583 d1nhi7knq13hn62ct3t3sun27q Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@223611.5602 d1nhi7knq13hn62ct3t3sun27q Query : use flama_phc
20240707@223611.5605 d1nhi7knq13hn62ct3t3sun27q Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@231911.4146 n6dj558ffeqfma360ujae98ial Query : use flama_phc
20240707@231911.4151 n6dj558ffeqfma360ujae98ial Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@231911.4170 n6dj558ffeqfma360ujae98ial Query : use flama_phc
20240707@231911.4173 n6dj558ffeqfma360ujae98ial Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240707@233611.3794 a5ljuache89risvh2ck3tpeeea Query : use flama_phc
20240707@233611.3799 a5ljuache89risvh2ck3tpeeea Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240707@233611.3817 a5ljuache89risvh2ck3tpeeea Query : use flama_phc
20240707@233611.3820 a5ljuache89risvh2ck3tpeeea Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240708@071909.5611 7ksq5b5klq8q7af7i1k15ehj9k Query : use flama_phc
20240708@071909.5616 7ksq5b5klq8q7af7i1k15ehj9k Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240708@071909.5634 7ksq5b5klq8q7af7i1k15ehj9k Query : use flama_phc
20240708@071909.5637 7ksq5b5klq8q7af7i1k15ehj9k Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240708@073052.7270 6s45s62ekp3i0fjvnnjlt3nvr8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240708@073052.7570 6s45s62ekp3i0fjvnnjlt3nvr8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240708@073052.7790 6s45s62ekp3i0fjvnnjlt3nvr8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='804';
20240708@073052.8170 6s45s62ekp3i0fjvnnjlt3nvr8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='804';
20240708@073052.8330 6s45s62ekp3i0fjvnnjlt3nvr8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='804';
20240708@073052.8440 6s45s62ekp3i0fjvnnjlt3nvr8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='804';
20240708@073052.8570 6s45s62ekp3i0fjvnnjlt3nvr8 Query : use flama_phc
20240708@073052.8590 6s45s62ekp3i0fjvnnjlt3nvr8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240708@073052.9150 6s45s62ekp3i0fjvnnjlt3nvr8 Query : use flama_phc
20240708@073052.9180 6s45s62ekp3i0fjvnnjlt3nvr8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4779
20240708@073052.9950 6s45s62ekp3i0fjvnnjlt3nvr8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.421.00.04'
20240708@073052.1150 6s45s62ekp3i0fjvnnjlt3nvr8 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404534 and bi.ref ='304.421.00.04' and bi.lordem =1
20240708@073052.1499 6s45s62ekp3i0fjvnnjlt3nvr8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.421.00.04'
20240708@073052.1510 6s45s62ekp3i0fjvnnjlt3nvr8 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404534 and bi.ref ='304.421.00.04' and bi.lordem =1
20240708@073052.1516 6s45s62ekp3i0fjvnnjlt3nvr8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4521.00.1'
20240708@073052.1668 6s45s62ekp3i0fjvnnjlt3nvr8 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404534 and bi.ref ='324.4521.00.1' and bi.lordem =2
20240708@073052.2014 6s45s62ekp3i0fjvnnjlt3nvr8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.422.00.07'
20240708@073052.2163 6s45s62ekp3i0fjvnnjlt3nvr8 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404534 and bi.ref ='304.422.00.07' and bi.lordem =3
20240708@073052.2489 6s45s62ekp3i0fjvnnjlt3nvr8 Query : use flama_phc
20240708@073052.2492 6s45s62ekp3i0fjvnnjlt3nvr8 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240708@073052.2665 6s45s62ekp3i0fjvnnjlt3nvr8 Query : use flama_phc
20240708@073052.2668 6s45s62ekp3i0fjvnnjlt3nvr8 Query : select top 1 1 valor from td where td.ndoc = 39
20240708@073052.2710 6s45s62ekp3i0fjvnnjlt3nvr8 Query : use flama_phc
20240708@073052.2713 6s45s62ekp3i0fjvnnjlt3nvr8 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240708@073052.3317 tudbi34it6gatjas836h18vcsa Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240708@073052.3331 tudbi34it6gatjas836h18vcsa Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240708@073052.3347 tudbi34it6gatjas836h18vcsa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='805';
20240708@073052.3385 tudbi34it6gatjas836h18vcsa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='805';
20240708@073052.3399 tudbi34it6gatjas836h18vcsa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='805';
20240708@073052.3410 tudbi34it6gatjas836h18vcsa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='805';
20240708@073052.3424 tudbi34it6gatjas836h18vcsa Query : use flama_phc
20240708@073052.3427 tudbi34it6gatjas836h18vcsa Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240708@073052.3441 tudbi34it6gatjas836h18vcsa Query : use flama_phc
20240708@073052.3444 tudbi34it6gatjas836h18vcsa Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240708@073052.3518 tudbi34it6gatjas836h18vcsa Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.497.00.01'
20240708@073052.3678 tudbi34it6gatjas836h18vcsa Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404535 and bi.ref ='324.497.00.01' and bi.lordem =1
20240708@073052.3996 tudbi34it6gatjas836h18vcsa Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.966.00.01'
20240708@073052.4153 tudbi34it6gatjas836h18vcsa Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404535 and bi.ref ='324.966.00.01' and bi.lordem =2
20240708@073052.4490 tudbi34it6gatjas836h18vcsa Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.966.00.01'
20240708@073052.4501 tudbi34it6gatjas836h18vcsa Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404535 and bi.ref ='324.966.00.01' and bi.lordem =2
20240708@073052.4511 tudbi34it6gatjas836h18vcsa Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4980.00.1'
20240708@073052.4669 tudbi34it6gatjas836h18vcsa Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404535 and bi.ref ='324.4980.00.1' and bi.lordem =3
20240708@073052.5006 tudbi34it6gatjas836h18vcsa Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2221.00.1'
20240708@073052.5160 tudbi34it6gatjas836h18vcsa Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404535 and bi.ref ='324.2221.00.1' and bi.lordem =4
20240708@073052.5491 tudbi34it6gatjas836h18vcsa Query : use flama_phc
20240708@073052.5495 tudbi34it6gatjas836h18vcsa Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240708@073052.5509 tudbi34it6gatjas836h18vcsa Query : use flama_phc
20240708@073052.5512 tudbi34it6gatjas836h18vcsa Query : select top 1 1 valor from td where td.ndoc = 39
20240708@073052.5522 tudbi34it6gatjas836h18vcsa Query : use flama_phc
20240708@073052.5525 tudbi34it6gatjas836h18vcsa Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240708@073052.6030 trja3eotkk8on6dgm7a5ks85pm Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240708@073052.6043 trja3eotkk8on6dgm7a5ks85pm Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240708@073052.6059 trja3eotkk8on6dgm7a5ks85pm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='806';
20240708@073052.6098 trja3eotkk8on6dgm7a5ks85pm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='806';
20240708@073052.6113 trja3eotkk8on6dgm7a5ks85pm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='806';
20240708@073052.6124 trja3eotkk8on6dgm7a5ks85pm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='806';
20240708@073052.6137 trja3eotkk8on6dgm7a5ks85pm Query : use flama_phc
20240708@073052.6140 trja3eotkk8on6dgm7a5ks85pm Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240708@073052.6154 trja3eotkk8on6dgm7a5ks85pm Query : use flama_phc
20240708@073052.6157 trja3eotkk8on6dgm7a5ks85pm Query : select no, estab,szadrsdesc from szadrs where u_coddest=6917
20240708@073052.6228 trja3eotkk8on6dgm7a5ks85pm Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.600.94.01'
20240708@073052.6383 trja3eotkk8on6dgm7a5ks85pm Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404542 and bi.ref ='324.600.94.01' and bi.lordem =1
20240708@073052.6708 trja3eotkk8on6dgm7a5ks85pm Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2000.94.1'
20240708@073052.6868 trja3eotkk8on6dgm7a5ks85pm Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404542 and bi.ref ='324.2000.94.1' and bi.lordem =2
20240708@073052.7604 trja3eotkk8on6dgm7a5ks85pm Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.900.94.01'
20240708@073052.8231 trja3eotkk8on6dgm7a5ks85pm Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404542 and bi.ref ='324.900.94.01' and bi.lordem =3
20240708@073052.8708 trja3eotkk8on6dgm7a5ks85pm Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.700.94.01'
20240708@073052.8862 trja3eotkk8on6dgm7a5ks85pm Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404542 and bi.ref ='324.700.94.01' and bi.lordem =4
20240708@073052.9191 trja3eotkk8on6dgm7a5ks85pm Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2200.94.1'
20240708@073052.9344 trja3eotkk8on6dgm7a5ks85pm Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404542 and bi.ref ='324.2200.94.1' and bi.lordem =5
20240708@073052.9673 trja3eotkk8on6dgm7a5ks85pm Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2200.94.1'
20240708@073052.9683 trja3eotkk8on6dgm7a5ks85pm Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404542 and bi.ref ='324.2200.94.1' and bi.lordem =5
20240708@073052.9690 trja3eotkk8on6dgm7a5ks85pm Query : use flama_phc
20240708@073052.9693 trja3eotkk8on6dgm7a5ks85pm Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240708@073052.9706 trja3eotkk8on6dgm7a5ks85pm Query : use flama_phc
20240708@073052.9709 trja3eotkk8on6dgm7a5ks85pm Query : select top 1 1 valor from td where td.ndoc = 39
20240708@073052.9719 trja3eotkk8on6dgm7a5ks85pm Query : use flama_phc
20240708@073052.9722 trja3eotkk8on6dgm7a5ks85pm Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240708@073053.3390 f6g0q6b74874oo91hpl4ach2kb Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240708@073053.3510 f6g0q6b74874oo91hpl4ach2kb Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240708@073053.3680 f6g0q6b74874oo91hpl4ach2kb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='807';
20240708@073053.4050 f6g0q6b74874oo91hpl4ach2kb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='807';
20240708@073053.4210 f6g0q6b74874oo91hpl4ach2kb Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='807';
20240708@073053.4320 f6g0q6b74874oo91hpl4ach2kb Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='807';
20240708@073053.4440 f6g0q6b74874oo91hpl4ach2kb Query : use flama_phc
20240708@073053.4470 f6g0q6b74874oo91hpl4ach2kb Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240708@073053.4600 f6g0q6b74874oo91hpl4ach2kb Query : use flama_phc
20240708@073053.4630 f6g0q6b74874oo91hpl4ach2kb Query : select no, estab,szadrsdesc from szadrs where u_coddest=4774
20240708@073053.5310 f6g0q6b74874oo91hpl4ach2kb Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1461.00.1'
20240708@073053.7390 f6g0q6b74874oo91hpl4ach2kb Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404543 and bi.ref ='324.1461.00.1' and bi.lordem =1
20240708@073053.1073 f6g0q6b74874oo91hpl4ach2kb Query : use flama_phc
20240708@073053.1076 f6g0q6b74874oo91hpl4ach2kb Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240708@073053.1088 f6g0q6b74874oo91hpl4ach2kb Query : use flama_phc
20240708@073053.1091 f6g0q6b74874oo91hpl4ach2kb Query : select top 1 1 valor from td where td.ndoc = 39
20240708@073053.1100 f6g0q6b74874oo91hpl4ach2kb Query : use flama_phc
20240708@073053.1103 f6g0q6b74874oo91hpl4ach2kb Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240708@073053.1690 u66v5mm1f7e0ajqfccae6rr41p Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240708@073053.1703 u66v5mm1f7e0ajqfccae6rr41p Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240708@073053.1719 u66v5mm1f7e0ajqfccae6rr41p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='808';
20240708@073053.1763 u66v5mm1f7e0ajqfccae6rr41p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='808';
20240708@073053.1780 u66v5mm1f7e0ajqfccae6rr41p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='808';
20240708@073053.1792 u66v5mm1f7e0ajqfccae6rr41p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='808';
20240708@073053.1805 u66v5mm1f7e0ajqfccae6rr41p Query : use flama_phc
20240708@073053.1807 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240708@073053.1821 u66v5mm1f7e0ajqfccae6rr41p Query : use flama_phc
20240708@073053.1824 u66v5mm1f7e0ajqfccae6rr41p Query : select no, estab,szadrsdesc from szadrs where u_coddest=2498
20240708@073053.1896 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240708@073053.2077 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404551 and bi.ref ='324.1816.00.1' and bi.lordem =1
20240708@073053.2398 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240708@073053.2408 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404551 and bi.ref ='324.1816.00.1' and bi.lordem =1
20240708@073053.2415 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1816.00.1'
20240708@073053.2425 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404551 and bi.ref ='324.1816.00.1' and bi.lordem =1
20240708@073053.2432 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1884.00.1'
20240708@073053.2589 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404551 and bi.ref ='324.1884.00.1' and bi.lordem =2
20240708@073053.2912 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1884.00.1'
20240708@073053.2922 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404551 and bi.ref ='324.1884.00.1' and bi.lordem =2
20240708@073053.2929 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2031.00.1'
20240708@073053.3091 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404551 and bi.ref ='324.2031.00.1' and bi.lordem =3
20240708@073053.3416 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5343.00.1'
20240708@073053.3577 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404551 and bi.ref ='324.5343.00.1' and bi.lordem =4
20240708@073053.3911 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5396.00.1'
20240708@073053.4071 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404551 and bi.ref ='324.5396.00.1' and bi.lordem =5
20240708@073053.4418 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9205.00.1'
20240708@073053.4573 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404551 and bi.ref ='328.9205.00.1' and bi.lordem =6
20240708@073053.4919 u66v5mm1f7e0ajqfccae6rr41p Query : use flama_phc
20240708@073053.4922 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240708@073053.4935 u66v5mm1f7e0ajqfccae6rr41p Query : use flama_phc
20240708@073053.4938 u66v5mm1f7e0ajqfccae6rr41p Query : select top 1 1 valor from td where td.ndoc = 39
20240708@073053.4949 u66v5mm1f7e0ajqfccae6rr41p Query : use flama_phc
20240708@073053.4952 u66v5mm1f7e0ajqfccae6rr41p Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240708@073053.5508 93qcq2kqs69o8e302chlk0unc2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240708@073053.5521 93qcq2kqs69o8e302chlk0unc2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240708@073053.5540 93qcq2kqs69o8e302chlk0unc2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='809';
20240708@073053.5602 93qcq2kqs69o8e302chlk0unc2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='809';
20240708@073053.5625 93qcq2kqs69o8e302chlk0unc2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='809';
20240708@073053.5637 93qcq2kqs69o8e302chlk0unc2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='809';
20240708@073053.5650 93qcq2kqs69o8e302chlk0unc2 Query : use flama_phc
20240708@073053.5653 93qcq2kqs69o8e302chlk0unc2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240708@073053.5668 93qcq2kqs69o8e302chlk0unc2 Query : use flama_phc
20240708@073053.5671 93qcq2kqs69o8e302chlk0unc2 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240708@073053.5700 93qcq2kqs69o8e302chlk0unc2 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1667.00.1'
20240708@073053.5857 93qcq2kqs69o8e302chlk0unc2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404553 and bi.ref ='324.1667.00.1' and bi.lordem =1
20240708@073053.7235 93qcq2kqs69o8e302chlk0unc2 Query : use flama_phc
20240708@073053.7239 93qcq2kqs69o8e302chlk0unc2 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240708@073053.7253 93qcq2kqs69o8e302chlk0unc2 Query : use flama_phc
20240708@073053.7256 93qcq2kqs69o8e302chlk0unc2 Query : select top 1 1 valor from td where td.ndoc = 39
20240708@073053.7266 93qcq2kqs69o8e302chlk0unc2 Query : use flama_phc
20240708@073053.7268 93qcq2kqs69o8e302chlk0unc2 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240708@073053.7777 t53qlb93jpe3n1hovatppdfgfn Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240708@073053.7790 t53qlb93jpe3n1hovatppdfgfn Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240708@073053.7806 t53qlb93jpe3n1hovatppdfgfn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='810';
20240708@073053.7846 t53qlb93jpe3n1hovatppdfgfn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='810';
20240708@073053.7862 t53qlb93jpe3n1hovatppdfgfn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='810';
20240708@073053.7874 t53qlb93jpe3n1hovatppdfgfn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='810';
20240708@073053.7895 t53qlb93jpe3n1hovatppdfgfn Query : use flama_phc
20240708@073053.7899 t53qlb93jpe3n1hovatppdfgfn Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240708@073053.7913 t53qlb93jpe3n1hovatppdfgfn Query : use flama_phc
20240708@073053.7916 t53qlb93jpe3n1hovatppdfgfn Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240708@073053.7946 t53qlb93jpe3n1hovatppdfgfn Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.642.00.01'
20240708@073053.8107 t53qlb93jpe3n1hovatppdfgfn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404554 and bi.ref ='324.642.00.01' and bi.lordem =1
20240708@073053.8445 t53qlb93jpe3n1hovatppdfgfn Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.698.00.01'
20240708@073053.8600 t53qlb93jpe3n1hovatppdfgfn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404554 and bi.ref ='324.698.00.01' and bi.lordem =2
20240708@073053.8930 t53qlb93jpe3n1hovatppdfgfn Query : use flama_phc
20240708@073053.8933 t53qlb93jpe3n1hovatppdfgfn Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240708@073053.8945 t53qlb93jpe3n1hovatppdfgfn Query : use flama_phc
20240708@073053.8948 t53qlb93jpe3n1hovatppdfgfn Query : select top 1 1 valor from td where td.ndoc = 39
20240708@073053.8960 t53qlb93jpe3n1hovatppdfgfn Query : use flama_phc
20240708@073053.8962 t53qlb93jpe3n1hovatppdfgfn Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240708@073053.9458 oqk117nr0ohhtjjmrkv5p1703g Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240708@073053.9472 oqk117nr0ohhtjjmrkv5p1703g Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240708@073053.9490 oqk117nr0ohhtjjmrkv5p1703g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='811';
20240708@073053.9531 oqk117nr0ohhtjjmrkv5p1703g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='811';
20240708@073053.9547 oqk117nr0ohhtjjmrkv5p1703g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='811';
20240708@073053.9559 oqk117nr0ohhtjjmrkv5p1703g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='811';
20240708@073053.9573 oqk117nr0ohhtjjmrkv5p1703g Query : use flama_phc
20240708@073053.9576 oqk117nr0ohhtjjmrkv5p1703g Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240708@073053.9590 oqk117nr0ohhtjjmrkv5p1703g Query : use flama_phc
20240708@073053.9593 oqk117nr0ohhtjjmrkv5p1703g Query : select no, estab,szadrsdesc from szadrs where u_coddest=1760
20240708@073053.9700 oqk117nr0ohhtjjmrkv5p1703g Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.938.00.01'
20240708@073053.9859 oqk117nr0ohhtjjmrkv5p1703g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404555 and bi.ref ='324.938.00.01' and bi.lordem =1
20240708@073054.1880 oqk117nr0ohhtjjmrkv5p1703g Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.938.00.01'
20240708@073054.1990 oqk117nr0ohhtjjmrkv5p1703g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404555 and bi.ref ='324.938.00.01' and bi.lordem =1
20240708@073054.2060 oqk117nr0ohhtjjmrkv5p1703g Query : use flama_phc
20240708@073054.2090 oqk117nr0ohhtjjmrkv5p1703g Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240708@073054.2220 oqk117nr0ohhtjjmrkv5p1703g Query : use flama_phc
20240708@073054.2250 oqk117nr0ohhtjjmrkv5p1703g Query : select top 1 1 valor from td where td.ndoc = 39
20240708@073054.2350 oqk117nr0ohhtjjmrkv5p1703g Query : use flama_phc
20240708@073054.2370 oqk117nr0ohhtjjmrkv5p1703g Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240708@073054.7840 5sg5k9i0gtd7ge30t6qru3t1ds Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240708@073054.7980 5sg5k9i0gtd7ge30t6qru3t1ds Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240708@073054.8140 5sg5k9i0gtd7ge30t6qru3t1ds Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='812';
20240708@073054.8530 5sg5k9i0gtd7ge30t6qru3t1ds Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='812';
20240708@073054.8680 5sg5k9i0gtd7ge30t6qru3t1ds Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='812';
20240708@073054.8800 5sg5k9i0gtd7ge30t6qru3t1ds Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='812';
20240708@073054.8940 5sg5k9i0gtd7ge30t6qru3t1ds Query : use flama_phc
20240708@073054.8960 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240708@073054.9100 5sg5k9i0gtd7ge30t6qru3t1ds Query : use flama_phc
20240708@073054.9130 5sg5k9i0gtd7ge30t6qru3t1ds Query : select no, estab,szadrsdesc from szadrs where u_coddest=2163
20240708@073054.9890 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4521.00.1'
20240708@073054.1000 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404556 and bi.ref ='324.4521.00.1' and bi.lordem =1
20240708@073054.1333 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240708@073054.2603 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404556 and bi.ref ='324.1824.00.1' and bi.lordem =2
20240708@073054.2930 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1824.00.1'
20240708@073054.2941 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404556 and bi.ref ='324.1824.00.1' and bi.lordem =3
20240708@073054.3261 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1705.00.1'
20240708@073054.3417 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404556 and bi.ref ='324.1705.00.1' and bi.lordem =4
20240708@073054.4027 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1716.00.1'
20240708@073054.4184 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404556 and bi.ref ='324.1716.00.1' and bi.lordem =6
20240708@073054.4520 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1406.00.1'
20240708@073054.4680 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404556 and bi.ref ='324.1406.00.1' and bi.lordem =7
20240708@073054.5008 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4970.00.1'
20240708@073054.5163 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404556 and bi.ref ='324.4970.00.1' and bi.lordem =9
20240708@073054.5486 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20240708@073054.5636 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404556 and bi.ref ='304.4320.00.1' and bi.lordem =11
20240708@073054.5952 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.692.00.01'
20240708@073054.6106 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404556 and bi.ref ='324.692.00.01' and bi.lordem =12
20240708@073054.6435 5sg5k9i0gtd7ge30t6qru3t1ds Query : use flama_phc
20240708@073054.6439 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240708@073054.6451 5sg5k9i0gtd7ge30t6qru3t1ds Query : use flama_phc
20240708@073054.6454 5sg5k9i0gtd7ge30t6qru3t1ds Query : select top 1 1 valor from td where td.ndoc = 39
20240708@073054.6464 5sg5k9i0gtd7ge30t6qru3t1ds Query : use flama_phc
20240708@073054.6467 5sg5k9i0gtd7ge30t6qru3t1ds Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240708@073054.6965 l78nvgvr66qopvqn5onnb0m3p7 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240708@073054.6978 l78nvgvr66qopvqn5onnb0m3p7 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240708@073054.6999 l78nvgvr66qopvqn5onnb0m3p7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='813';
20240708@073054.7036 l78nvgvr66qopvqn5onnb0m3p7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='813';
20240708@073054.7051 l78nvgvr66qopvqn5onnb0m3p7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='813';
20240708@073054.7061 l78nvgvr66qopvqn5onnb0m3p7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='813';
20240708@073054.7076 l78nvgvr66qopvqn5onnb0m3p7 Query : use flama_phc
20240708@073054.7079 l78nvgvr66qopvqn5onnb0m3p7 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240708@073054.7092 l78nvgvr66qopvqn5onnb0m3p7 Query : use flama_phc
20240708@073054.7095 l78nvgvr66qopvqn5onnb0m3p7 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240708@073054.7126 l78nvgvr66qopvqn5onnb0m3p7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1266.00.1'
20240708@073054.7281 l78nvgvr66qopvqn5onnb0m3p7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404560 and bi.ref ='324.1266.00.1' and bi.lordem =1
20240708@073054.8687 l78nvgvr66qopvqn5onnb0m3p7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1266.00.1'
20240708@073054.8701 l78nvgvr66qopvqn5onnb0m3p7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404560 and bi.ref ='324.1266.00.1' and bi.lordem =1
20240708@073054.8708 l78nvgvr66qopvqn5onnb0m3p7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1266.00.1'
20240708@073054.8718 l78nvgvr66qopvqn5onnb0m3p7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404560 and bi.ref ='324.1266.00.1' and bi.lordem =1
20240708@073054.8725 l78nvgvr66qopvqn5onnb0m3p7 Query : use flama_phc
20240708@073054.8728 l78nvgvr66qopvqn5onnb0m3p7 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240708@073054.8740 l78nvgvr66qopvqn5onnb0m3p7 Query : use flama_phc
20240708@073054.8743 l78nvgvr66qopvqn5onnb0m3p7 Query : select top 1 1 valor from td where td.ndoc = 39
20240708@073054.8753 l78nvgvr66qopvqn5onnb0m3p7 Query : use flama_phc
20240708@073054.8756 l78nvgvr66qopvqn5onnb0m3p7 Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240708@073606.8231 ufrta5jjf7pi3a7lpgt3u1150q Query : use flama_phc
20240708@073606.8237 ufrta5jjf7pi3a7lpgt3u1150q Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240708@073606.8255 ufrta5jjf7pi3a7lpgt3u1150q Query : use flama_phc
20240708@073606.8257 ufrta5jjf7pi3a7lpgt3u1150q Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240708@081909.9702 d5ftk81d2afufmf5ap24567n6d Query : use flama_phc
20240708@081909.9706 d5ftk81d2afufmf5ap24567n6d Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240708@081909.9724 d5ftk81d2afufmf5ap24567n6d Query : use flama_phc
20240708@081909.9727 d5ftk81d2afufmf5ap24567n6d Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240708@083610.3321 7fou7hgt18t4nmog9467fdgfeg Query : use flama_phc
20240708@083610.3326 7fou7hgt18t4nmog9467fdgfeg Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240708@083610.3344 7fou7hgt18t4nmog9467fdgfeg Query : use flama_phc
20240708@083610.3347 7fou7hgt18t4nmog9467fdgfeg Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240708@091909.3427 33ebqqs9j6gdumciqk552mqojb Query : use flama_phc
20240708@091909.3432 33ebqqs9j6gdumciqk552mqojb Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240708@091909.3450 33ebqqs9j6gdumciqk552mqojb Query : use flama_phc
20240708@091909.3453 33ebqqs9j6gdumciqk552mqojb Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240708@092253.1970 a4n5e0qn61mekbe8q7ih91e83b Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240708@092253.2100 a4n5e0qn61mekbe8q7ih91e83b Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240708@092253.2570 a4n5e0qn61mekbe8q7ih91e83b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='814';
20240708@092253.3050 a4n5e0qn61mekbe8q7ih91e83b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='814';
20240708@092253.3200 a4n5e0qn61mekbe8q7ih91e83b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='814';
20240708@092253.3330 a4n5e0qn61mekbe8q7ih91e83b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='814';
20240708@092253.2159 lcofgc2a17ap2livm0h4a5eecr Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240708@092253.2172 lcofgc2a17ap2livm0h4a5eecr Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240708@092253.2189 lcofgc2a17ap2livm0h4a5eecr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='815';
20240708@092253.2231 lcofgc2a17ap2livm0h4a5eecr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='815';
20240708@092253.2247 lcofgc2a17ap2livm0h4a5eecr Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='815';
20240708@092253.2258 lcofgc2a17ap2livm0h4a5eecr Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='815';
20240708@092253.2271 lcofgc2a17ap2livm0h4a5eecr Query : use flama_phc
20240708@092253.2274 lcofgc2a17ap2livm0h4a5eecr Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240708@092253.2289 lcofgc2a17ap2livm0h4a5eecr Query : select no, estab,szadrsdesc from szadrs where u_coddest=39
20240708@092253.2359 lcofgc2a17ap2livm0h4a5eecr Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1716.00.1'
20240708@092253.2469 lcofgc2a17ap2livm0h4a5eecr Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =gt2 and bo.boano =2002 and bo.obrano = 024/356 and bi.ref ='324.1716.00.1' and bi.lordem =1
20240708@093609.6412 fovphpfn0kmmmrfkspv1avth5d Query : use flama_phc
20240708@093609.6418 fovphpfn0kmmmrfkspv1avth5d Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240708@093609.6437 fovphpfn0kmmmrfkspv1avth5d Query : use flama_phc
20240708@093609.6440 fovphpfn0kmmmrfkspv1avth5d Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240708@101909.9510 ubqe6canes1i9ujuttg5hunpa2 Query : use flama_phc
20240708@101909.9515 ubqe6canes1i9ujuttg5hunpa2 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240708@101909.9533 ubqe6canes1i9ujuttg5hunpa2 Query : use flama_phc
20240708@101909.9536 ubqe6canes1i9ujuttg5hunpa2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240708@103610.3839 1cr7qp00vmih81t3ok4n32foq7 Query : use flama_phc
20240708@103610.3844 1cr7qp00vmih81t3ok4n32foq7 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240708@103610.3861 1cr7qp00vmih81t3ok4n32foq7 Query : use flama_phc
20240708@103610.3864 1cr7qp00vmih81t3ok4n32foq7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240708@111910.1096 hr489u39p36hos6qgpfhvmsihp Query : use flama_phc
20240708@111910.1153 hr489u39p36hos6qgpfhvmsihp Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240708@111910.1604 hr489u39p36hos6qgpfhvmsihp Query : use flama_phc
20240708@111910.1803 hr489u39p36hos6qgpfhvmsihp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240708@113609.8770 bfeltmv6rssnm845sjffubcgan Query : use flama_phc
20240708@113609.8775 bfeltmv6rssnm845sjffubcgan Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240708@113609.8801 bfeltmv6rssnm845sjffubcgan Query : use flama_phc
20240708@113609.8805 bfeltmv6rssnm845sjffubcgan Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240708@114017.3931 nr6jfl23vdnh0o09makoemkmur Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240708@114017.3962 nr6jfl23vdnh0o09makoemkmur Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240708@114017.4055 nr6jfl23vdnh0o09makoemkmur Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='816';
20240708@114017.4104 nr6jfl23vdnh0o09makoemkmur Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='816';
20240708@114017.4121 nr6jfl23vdnh0o09makoemkmur Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='816';
20240708@114017.4134 nr6jfl23vdnh0o09makoemkmur Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='816';
20240708@114017.4150 nr6jfl23vdnh0o09makoemkmur Query : use flama_phc
20240708@114017.4154 nr6jfl23vdnh0o09makoemkmur Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240708@114017.4174 nr6jfl23vdnh0o09makoemkmur Query : use flama_phc
20240708@114017.4177 nr6jfl23vdnh0o09makoemkmur Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20240708@114017.4263 nr6jfl23vdnh0o09makoemkmur Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4743.00.1'
20240708@114017.5067 nr6jfl23vdnh0o09makoemkmur Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404558 and bi.ref ='324.4743.00.1' and bi.lordem =1
20240708@114017.5476 nr6jfl23vdnh0o09makoemkmur Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4320.00.1'
20240708@114017.5490 nr6jfl23vdnh0o09makoemkmur Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404558 and bi.ref ='304.4320.00.1' and bi.lordem =2
20240708@114017.5876 nr6jfl23vdnh0o09makoemkmur Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4990.00.1'
20240708@114017.6052 nr6jfl23vdnh0o09makoemkmur Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404558 and bi.ref ='324.4990.00.1' and bi.lordem =3
20240708@114017.6462 nr6jfl23vdnh0o09makoemkmur Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4421.00.1'
20240708@114017.7298 nr6jfl23vdnh0o09makoemkmur Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404558 and bi.ref ='324.4421.00.1' and bi.lordem =4
20240708@114017.7669 nr6jfl23vdnh0o09makoemkmur Query : use flama_phc
20240708@114017.7673 nr6jfl23vdnh0o09makoemkmur Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240708@114017.7695 nr6jfl23vdnh0o09makoemkmur Query : use flama_phc
20240708@114017.7699 nr6jfl23vdnh0o09makoemkmur Query : select top 1 1 valor from td where td.ndoc = 39
20240708@114017.7713 nr6jfl23vdnh0o09makoemkmur Query : use flama_phc
20240708@114017.7716 nr6jfl23vdnh0o09makoemkmur Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240708@114017.8236 6gsiqu729bkrudfbb7l63aaifl Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240708@114017.8254 6gsiqu729bkrudfbb7l63aaifl Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240708@114017.8274 6gsiqu729bkrudfbb7l63aaifl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='817';
20240708@114017.8320 6gsiqu729bkrudfbb7l63aaifl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='817';
20240708@114017.8341 6gsiqu729bkrudfbb7l63aaifl Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='817';
20240708@114017.8356 6gsiqu729bkrudfbb7l63aaifl Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='817';
20240708@114017.8373 6gsiqu729bkrudfbb7l63aaifl Query : use flama_phc
20240708@114017.8377 6gsiqu729bkrudfbb7l63aaifl Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240708@114017.8395 6gsiqu729bkrudfbb7l63aaifl Query : use flama_phc
20240708@114017.8399 6gsiqu729bkrudfbb7l63aaifl Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20240708@114017.8436 6gsiqu729bkrudfbb7l63aaifl Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1879.00.1'
20240708@114017.8605 6gsiqu729bkrudfbb7l63aaifl Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404559 and bi.ref ='324.1879.00.1' and bi.lordem =1
20240708@114017.9433 6gsiqu729bkrudfbb7l63aaifl Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1879.00.1'
20240708@114017.9695 6gsiqu729bkrudfbb7l63aaifl Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404559 and bi.ref ='324.1879.00.1' and bi.lordem =1
20240708@114017.9705 6gsiqu729bkrudfbb7l63aaifl Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1879.00.1'
20240708@114017.9717 6gsiqu729bkrudfbb7l63aaifl Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404559 and bi.ref ='324.1879.00.1' and bi.lordem =1
20240708@114017.9725 6gsiqu729bkrudfbb7l63aaifl Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1879.00.1'
20240708@114017.9736 6gsiqu729bkrudfbb7l63aaifl Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404559 and bi.ref ='324.1879.00.1' and bi.lordem =1
20240708@114017.9747 6gsiqu729bkrudfbb7l63aaifl Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1879.00.1'
20240708@114018.2090 6gsiqu729bkrudfbb7l63aaifl Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404559 and bi.ref ='324.1879.00.1' and bi.lordem =1
20240708@114018.5410 6gsiqu729bkrudfbb7l63aaifl Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1834.00.1'
20240708@114018.1059 6gsiqu729bkrudfbb7l63aaifl Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404559 and bi.ref ='324.1834.00.1' and bi.lordem =2
20240708@114018.1439 6gsiqu729bkrudfbb7l63aaifl Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1834.00.1'
20240708@114018.1453 6gsiqu729bkrudfbb7l63aaifl Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404559 and bi.ref ='324.1834.00.1' and bi.lordem =2
20240708@114018.1462 6gsiqu729bkrudfbb7l63aaifl Query : use flama_phc
20240708@114018.1467 6gsiqu729bkrudfbb7l63aaifl Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240708@114018.1485 6gsiqu729bkrudfbb7l63aaifl Query : use flama_phc
20240708@114018.1489 6gsiqu729bkrudfbb7l63aaifl Query : select top 1 1 valor from td where td.ndoc = 39
20240708@114018.1503 6gsiqu729bkrudfbb7l63aaifl Query : use flama_phc
20240708@114018.1506 6gsiqu729bkrudfbb7l63aaifl Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240708@114018.2324 dsstcu6ft91vh4bpgj79orbmcn Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240708@114018.2340 dsstcu6ft91vh4bpgj79orbmcn Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240708@114018.2363 dsstcu6ft91vh4bpgj79orbmcn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='818';
20240708@114018.2408 dsstcu6ft91vh4bpgj79orbmcn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='818';
20240708@114018.2425 dsstcu6ft91vh4bpgj79orbmcn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='818';
20240708@114018.2440 dsstcu6ft91vh4bpgj79orbmcn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='818';
20240708@114018.2457 dsstcu6ft91vh4bpgj79orbmcn Query : use flama_phc
20240708@114018.2461 dsstcu6ft91vh4bpgj79orbmcn Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240708@114018.2479 dsstcu6ft91vh4bpgj79orbmcn Query : use flama_phc
20240708@114018.2482 dsstcu6ft91vh4bpgj79orbmcn Query : select no, estab,szadrsdesc from szadrs where u_coddest=4743
20240708@114018.2566 dsstcu6ft91vh4bpgj79orbmcn Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9006.00.1'
20240708@114018.2746 dsstcu6ft91vh4bpgj79orbmcn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2045 and bo.obrano = 2404561 and bi.ref ='328.9006.00.1' and bi.lordem =1
20240708@114018.3096 dsstcu6ft91vh4bpgj79orbmcn Query : use flama_phc
20240708@114018.3100 dsstcu6ft91vh4bpgj79orbmcn Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240708@114018.3117 dsstcu6ft91vh4bpgj79orbmcn Query : use flama_phc
20240708@114018.3121 dsstcu6ft91vh4bpgj79orbmcn Query : select top 1 1 valor from td where td.ndoc = 39
20240708@114018.3197 dsstcu6ft91vh4bpgj79orbmcn Query : use flama_phc
20240708@114018.3201 dsstcu6ft91vh4bpgj79orbmcn Query : select lower(descricao) descricao ,case when valor='s' then 1 else 0 end valor from para1 where descricao in ('st_lote','st_usalogifunc', 'st_grelha')
20240708@121908.3279 vvq4vdmfj3tcgvi76f068qflbl Query : use flama_phc
20240708@121908.3284 vvq4vdmfj3tcgvi76f068qflbl Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240708@121908.3303 vvq4vdmfj3tcgvi76f068qflbl Query : use flama_phc
20240708@121908.3307 vvq4vdmfj3tcgvi76f068qflbl Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240708@123608.5489 82fq8d1ckv9160ih8u31e5qnoc Query : use flama_phc
20240708@123608.5494 82fq8d1ckv9160ih8u31e5qnoc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240708@123608.5514 82fq8d1ckv9160ih8u31e5qnoc Query : use flama_phc
20240708@123608.5517 82fq8d1ckv9160ih8u31e5qnoc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240708@131909.9227 ak3190tla0o8srs4p9v3ooalls Query : use flama_phc
20240708@131909.9232 ak3190tla0o8srs4p9v3ooalls Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240708@131909.9250 ak3190tla0o8srs4p9v3ooalls Query : use flama_phc
20240708@131909.9253 ak3190tla0o8srs4p9v3ooalls Query : update u_wsusers set rqsttoken =? where userid ='userls001'
