20240611@173613.8647 ji231halgbvn4tabpmgtj6cuas INICIO DE FICHEIRO DE LOG :: /var/www/webservices/logs/website.sql.log
20240611@173613.8644 ji231halgbvn4tabpmgtj6cuas Query : use flama_phc
20240611@173613.8651 ji231halgbvn4tabpmgtj6cuas Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240611@181914.7118 7qq7v9sge5t8jeotk16d7e66bn Query : use flama_phc
20240611@181914.7125 7qq7v9sge5t8jeotk16d7e66bn Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240611@181914.7143 7qq7v9sge5t8jeotk16d7e66bn Query : use flama_phc
20240611@181914.7146 7qq7v9sge5t8jeotk16d7e66bn Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240611@183615.2525 bbc0a273ll0oj3uaot5i64pfqo Query : use flama_phc
20240611@183615.2598 bbc0a273ll0oj3uaot5i64pfqo Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240611@183615.2976 bbc0a273ll0oj3uaot5i64pfqo Query : use flama_phc
20240611@183615.2980 bbc0a273ll0oj3uaot5i64pfqo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240611@191939.8611 9g60h926q7dvnfialei1q96527 Query : use flama_phc
20240611@191939.8616 9g60h926q7dvnfialei1q96527 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240611@191939.8634 9g60h926q7dvnfialei1q96527 Query : use flama_phc
20240611@191939.8637 9g60h926q7dvnfialei1q96527 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240611@193640.6960 mml192bklcvgupaf6on686kjr9 Query : use flama_phc
20240611@193640.7040 mml192bklcvgupaf6on686kjr9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240611@193640.7220 mml192bklcvgupaf6on686kjr9 Query : use flama_phc
20240611@193640.7240 mml192bklcvgupaf6on686kjr9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240611@201913.8988 4gv6bo1p2mlk6rh7kl4c6jv598 Query : use flama_phc
20240611@201913.8994 4gv6bo1p2mlk6rh7kl4c6jv598 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240611@201913.9012 4gv6bo1p2mlk6rh7kl4c6jv598 Query : use flama_phc
20240611@201913.9024 4gv6bo1p2mlk6rh7kl4c6jv598 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240611@203613.9998 6iqaentbnjets06df6k1cqai6g Query : use flama_phc
20240611@203614.4000 6iqaentbnjets06df6k1cqai6g Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240611@203614.2200 6iqaentbnjets06df6k1cqai6g Query : use flama_phc
20240611@203614.2500 6iqaentbnjets06df6k1cqai6g Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240611@211911.3461 hhhrhmslnluc58sie1dhq2ruus Query : use flama_phc
20240611@211911.3469 hhhrhmslnluc58sie1dhq2ruus Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240611@211911.3488 hhhrhmslnluc58sie1dhq2ruus Query : use flama_phc
20240611@211911.3490 hhhrhmslnluc58sie1dhq2ruus Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240611@213611.2078 nrmqqdbod4lav1sgu9donmu3ag Query : use flama_phc
20240611@213611.2082 nrmqqdbod4lav1sgu9donmu3ag Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240611@213611.2100 nrmqqdbod4lav1sgu9donmu3ag Query : use flama_phc
20240611@213611.2103 nrmqqdbod4lav1sgu9donmu3ag Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240611@221916.7854 3jqa9bknnnvl9upgs095a06j3n Query : use flama_phc
20240611@221916.7859 3jqa9bknnnvl9upgs095a06j3n Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240611@221916.8034 3jqa9bknnnvl9upgs095a06j3n Query : use flama_phc
20240611@221916.8061 3jqa9bknnnvl9upgs095a06j3n Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240611@223616.6417 ohnc5699356edd3m67d1sud7ub Query : use flama_phc
20240611@223616.6423 ohnc5699356edd3m67d1sud7ub Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240611@223616.6442 ohnc5699356edd3m67d1sud7ub Query : use flama_phc
20240611@223616.6445 ohnc5699356edd3m67d1sud7ub Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240611@231958.4680 tl3hii50btmdpn1rvsiefvu8nc Query : use flama_phc
20240611@231958.5040 tl3hii50btmdpn1rvsiefvu8nc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240611@231958.7670 tl3hii50btmdpn1rvsiefvu8nc Query : use flama_phc
20240611@231958.8890 tl3hii50btmdpn1rvsiefvu8nc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240611@233657.7158 9jul48fsu5cgcfq5pp9a8p4aig Query : use flama_phc
20240611@233657.7163 9jul48fsu5cgcfq5pp9a8p4aig Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240611@233657.7187 9jul48fsu5cgcfq5pp9a8p4aig Query : use flama_phc
20240611@233657.7190 9jul48fsu5cgcfq5pp9a8p4aig Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@071921.7301 imjfbqni90du880los6m1fbqg9 Query : use flama_phc
20240612@071921.7306 imjfbqni90du880los6m1fbqg9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@071921.7385 imjfbqni90du880los6m1fbqg9 Query : use flama_phc
20240612@071921.7388 imjfbqni90du880los6m1fbqg9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@073118.1812 8i2fakl50ddildpukta5rgofte Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@073118.1843 8i2fakl50ddildpukta5rgofte Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@073118.1951 8i2fakl50ddildpukta5rgofte Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='325';
20240612@073118.3107 8i2fakl50ddildpukta5rgofte Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='325';
20240612@073118.3132 8i2fakl50ddildpukta5rgofte Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='325';
20240612@073118.3143 8i2fakl50ddildpukta5rgofte Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='325';
20240612@073118.3155 8i2fakl50ddildpukta5rgofte Query : use flama_phc
20240612@073118.3158 8i2fakl50ddildpukta5rgofte Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@073118.3202 8i2fakl50ddildpukta5rgofte Query : use flama_phc
20240612@073118.3205 8i2fakl50ddildpukta5rgofte Query : select no, estab,szadrsdesc from szadrs where u_coddest=4804
20240612@073118.3307 8i2fakl50ddildpukta5rgofte 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'
20240612@073118.3452 8i2fakl50ddildpukta5rgofte Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404030 and bi.ref ='304.421.00.04' and bi.lordem =1
20240612@073118.3791 8i2fakl50ddildpukta5rgofte 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'
20240612@073118.3803 8i2fakl50ddildpukta5rgofte Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404030 and bi.ref ='304.421.00.04' and bi.lordem =1
20240612@073118.3810 8i2fakl50ddildpukta5rgofte Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4960.00.1'
20240612@073118.3984 8i2fakl50ddildpukta5rgofte Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404030 and bi.ref ='324.4960.00.1' and bi.lordem =2
20240612@073118.4312 8i2fakl50ddildpukta5rgofte Query : use flama_phc
20240612@073118.4338 8i2fakl50ddildpukta5rgofte Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240612@073118.4506 8i2fakl50ddildpukta5rgofte Query : use flama_phc
20240612@073118.4510 8i2fakl50ddildpukta5rgofte Query : select top 1 1 valor from td where td.ndoc = 39
20240612@073118.4586 8i2fakl50ddildpukta5rgofte Query : use flama_phc
20240612@073118.4589 8i2fakl50ddildpukta5rgofte 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')
20240612@073118.5154 opf030eh52i7l89rl0c43il638 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@073118.5167 opf030eh52i7l89rl0c43il638 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@073118.5183 opf030eh52i7l89rl0c43il638 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='326';
20240612@073118.5223 opf030eh52i7l89rl0c43il638 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='326';
20240612@073118.5236 opf030eh52i7l89rl0c43il638 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='326';
20240612@073118.5250 opf030eh52i7l89rl0c43il638 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='326';
20240612@073118.5261 opf030eh52i7l89rl0c43il638 Query : use flama_phc
20240612@073118.5265 opf030eh52i7l89rl0c43il638 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@073118.5282 opf030eh52i7l89rl0c43il638 Query : use flama_phc
20240612@073118.5285 opf030eh52i7l89rl0c43il638 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6737
20240612@073118.5387 opf030eh52i7l89rl0c43il638 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9902.00.1'
20240612@073118.5532 opf030eh52i7l89rl0c43il638 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404035 and bi.ref ='328.9902.00.1' and bi.lordem =1
20240612@073118.5854 opf030eh52i7l89rl0c43il638 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '328.9902.00.1'
20240612@073118.5865 opf030eh52i7l89rl0c43il638 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404035 and bi.ref ='328.9902.00.1' and bi.lordem =1
20240612@073118.5873 opf030eh52i7l89rl0c43il638 Query : use flama_phc
20240612@073118.5876 opf030eh52i7l89rl0c43il638 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240612@073118.5890 opf030eh52i7l89rl0c43il638 Query : use flama_phc
20240612@073118.5893 opf030eh52i7l89rl0c43il638 Query : select top 1 1 valor from td where td.ndoc = 39
20240612@073118.5904 opf030eh52i7l89rl0c43il638 Query : use flama_phc
20240612@073118.5907 opf030eh52i7l89rl0c43il638 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')
20240612@073118.6484 s0i0k2ijpl9bv8cd3kmkel4p0i Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@073118.6513 s0i0k2ijpl9bv8cd3kmkel4p0i Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@073118.6531 s0i0k2ijpl9bv8cd3kmkel4p0i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='327';
20240612@073118.6570 s0i0k2ijpl9bv8cd3kmkel4p0i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='327';
20240612@073118.6581 s0i0k2ijpl9bv8cd3kmkel4p0i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='327';
20240612@073118.6594 s0i0k2ijpl9bv8cd3kmkel4p0i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='327';
20240612@073118.6606 s0i0k2ijpl9bv8cd3kmkel4p0i Query : use flama_phc
20240612@073118.6609 s0i0k2ijpl9bv8cd3kmkel4p0i Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@073118.6625 s0i0k2ijpl9bv8cd3kmkel4p0i Query : use flama_phc
20240612@073118.6628 s0i0k2ijpl9bv8cd3kmkel4p0i Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240612@073118.6702 s0i0k2ijpl9bv8cd3kmkel4p0i 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'
20240612@073118.6844 s0i0k2ijpl9bv8cd3kmkel4p0i Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404036 and bi.ref ='324.5540.00.1' and bi.lordem =1
20240612@073118.7158 s0i0k2ijpl9bv8cd3kmkel4p0i Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5342.00.1'
20240612@073118.7304 s0i0k2ijpl9bv8cd3kmkel4p0i Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404036 and bi.ref ='324.5342.00.1' and bi.lordem =2
20240612@073118.7639 s0i0k2ijpl9bv8cd3kmkel4p0i 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'
20240612@073118.8138 s0i0k2ijpl9bv8cd3kmkel4p0i Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404036 and bi.ref ='324.5396.00.1' and bi.lordem =3
20240612@073118.8483 s0i0k2ijpl9bv8cd3kmkel4p0i 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'
20240612@073118.8495 s0i0k2ijpl9bv8cd3kmkel4p0i Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404036 and bi.ref ='324.5396.00.1' and bi.lordem =3
20240612@073118.8504 s0i0k2ijpl9bv8cd3kmkel4p0i Query : use flama_phc
20240612@073118.8508 s0i0k2ijpl9bv8cd3kmkel4p0i Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240612@073118.8523 s0i0k2ijpl9bv8cd3kmkel4p0i Query : use flama_phc
20240612@073118.8526 s0i0k2ijpl9bv8cd3kmkel4p0i Query : select top 1 1 valor from td where td.ndoc = 39
20240612@073118.8539 s0i0k2ijpl9bv8cd3kmkel4p0i Query : use flama_phc
20240612@073118.8542 s0i0k2ijpl9bv8cd3kmkel4p0i 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')
20240612@073118.9107 fub6vkmeqpk44qsaibgomna41g Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@073118.9121 fub6vkmeqpk44qsaibgomna41g Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@073118.9139 fub6vkmeqpk44qsaibgomna41g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='328';
20240612@073118.9189 fub6vkmeqpk44qsaibgomna41g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='328';
20240612@073118.9202 fub6vkmeqpk44qsaibgomna41g Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='328';
20240612@073118.9216 fub6vkmeqpk44qsaibgomna41g Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='328';
20240612@073118.9229 fub6vkmeqpk44qsaibgomna41g Query : use flama_phc
20240612@073118.9232 fub6vkmeqpk44qsaibgomna41g Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@073118.9247 fub6vkmeqpk44qsaibgomna41g Query : use flama_phc
20240612@073118.9250 fub6vkmeqpk44qsaibgomna41g Query : select no, estab,szadrsdesc from szadrs where u_coddest=2759
20240612@073118.9340 fub6vkmeqpk44qsaibgomna41g Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1462.00.1'
20240612@073118.9505 fub6vkmeqpk44qsaibgomna41g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404037 and bi.ref ='324.1462.00.1' and bi.lordem =1
20240612@073118.9816 fub6vkmeqpk44qsaibgomna41g 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'
20240612@073118.9950 fub6vkmeqpk44qsaibgomna41g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404037 and bi.ref ='324.1879.00.1' and bi.lordem =2
20240612@073119.2400 fub6vkmeqpk44qsaibgomna41g Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4960.00.1'
20240612@073119.2520 fub6vkmeqpk44qsaibgomna41g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404037 and bi.ref ='324.4960.00.1' and bi.lordem =3
20240612@073119.5580 fub6vkmeqpk44qsaibgomna41g Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '323.367.09.00'
20240612@073119.6960 fub6vkmeqpk44qsaibgomna41g Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404037 and bi.ref ='323.367.09.00' and bi.lordem =5
20240612@073119.1228 fub6vkmeqpk44qsaibgomna41g Query : use flama_phc
20240612@073119.1309 fub6vkmeqpk44qsaibgomna41g Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240612@073119.1334 fub6vkmeqpk44qsaibgomna41g Query : use flama_phc
20240612@073119.1337 fub6vkmeqpk44qsaibgomna41g Query : select top 1 1 valor from td where td.ndoc = 39
20240612@073119.1348 fub6vkmeqpk44qsaibgomna41g Query : use flama_phc
20240612@073119.1351 fub6vkmeqpk44qsaibgomna41g 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')
20240612@073119.2759 60nuvnu9hf23stbj23mr5hcm2j Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@073119.2772 60nuvnu9hf23stbj23mr5hcm2j Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@073119.2789 60nuvnu9hf23stbj23mr5hcm2j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='329';
20240612@073119.2826 60nuvnu9hf23stbj23mr5hcm2j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='329';
20240612@073119.2837 60nuvnu9hf23stbj23mr5hcm2j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='329';
20240612@073119.2848 60nuvnu9hf23stbj23mr5hcm2j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='329';
20240612@073119.2860 60nuvnu9hf23stbj23mr5hcm2j Query : use flama_phc
20240612@073119.2863 60nuvnu9hf23stbj23mr5hcm2j Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@073119.2878 60nuvnu9hf23stbj23mr5hcm2j Query : use flama_phc
20240612@073119.2881 60nuvnu9hf23stbj23mr5hcm2j Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240612@073119.2913 60nuvnu9hf23stbj23mr5hcm2j Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5347.00.1'
20240612@073119.3056 60nuvnu9hf23stbj23mr5hcm2j Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404040 and bi.ref ='324.5347.00.1' and bi.lordem =1
20240612@073119.3371 60nuvnu9hf23stbj23mr5hcm2j Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5347.00.1'
20240612@073119.3382 60nuvnu9hf23stbj23mr5hcm2j Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404040 and bi.ref ='324.5347.00.1' and bi.lordem =1
20240612@073119.3391 60nuvnu9hf23stbj23mr5hcm2j Query : use flama_phc
20240612@073119.3394 60nuvnu9hf23stbj23mr5hcm2j Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240612@073119.3407 60nuvnu9hf23stbj23mr5hcm2j Query : use flama_phc
20240612@073119.3411 60nuvnu9hf23stbj23mr5hcm2j Query : select top 1 1 valor from td where td.ndoc = 39
20240612@073119.3422 60nuvnu9hf23stbj23mr5hcm2j Query : use flama_phc
20240612@073119.3447 60nuvnu9hf23stbj23mr5hcm2j 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')
20240612@073119.4220 jsttsa0nqifuvuarh2r4rmpeht Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@073119.4234 jsttsa0nqifuvuarh2r4rmpeht Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@073119.4248 jsttsa0nqifuvuarh2r4rmpeht Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='330';
20240612@073119.4283 jsttsa0nqifuvuarh2r4rmpeht Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='330';
20240612@073119.4295 jsttsa0nqifuvuarh2r4rmpeht Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='330';
20240612@073119.4312 jsttsa0nqifuvuarh2r4rmpeht Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='330';
20240612@073119.4323 jsttsa0nqifuvuarh2r4rmpeht Query : use flama_phc
20240612@073119.4327 jsttsa0nqifuvuarh2r4rmpeht Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@073119.4341 jsttsa0nqifuvuarh2r4rmpeht Query : use flama_phc
20240612@073119.4344 jsttsa0nqifuvuarh2r4rmpeht Query : select no, estab,szadrsdesc from szadrs where u_coddest=2427
20240612@073119.4416 jsttsa0nqifuvuarh2r4rmpeht 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'
20240612@073119.4714 jsttsa0nqifuvuarh2r4rmpeht Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404041 and bi.ref ='324.4930.00.1' and bi.lordem =1
20240612@073119.5032 jsttsa0nqifuvuarh2r4rmpeht 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'
20240612@073119.5043 jsttsa0nqifuvuarh2r4rmpeht Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404041 and bi.ref ='324.4930.00.1' and bi.lordem =1
20240612@073119.5050 jsttsa0nqifuvuarh2r4rmpeht 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'
20240612@073119.5060 jsttsa0nqifuvuarh2r4rmpeht Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404041 and bi.ref ='324.4930.00.1' and bi.lordem =1
20240612@073119.5068 jsttsa0nqifuvuarh2r4rmpeht Query : use flama_phc
20240612@073119.5071 jsttsa0nqifuvuarh2r4rmpeht Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240612@073119.5084 jsttsa0nqifuvuarh2r4rmpeht Query : use flama_phc
20240612@073119.5087 jsttsa0nqifuvuarh2r4rmpeht Query : select top 1 1 valor from td where td.ndoc = 39
20240612@073119.5097 jsttsa0nqifuvuarh2r4rmpeht Query : use flama_phc
20240612@073119.5100 jsttsa0nqifuvuarh2r4rmpeht 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')
20240612@073119.5600 avh8c3135debscr349854lui9h Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@073119.5613 avh8c3135debscr349854lui9h Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@073119.5627 avh8c3135debscr349854lui9h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='331';
20240612@073119.5663 avh8c3135debscr349854lui9h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='331';
20240612@073119.5674 avh8c3135debscr349854lui9h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='331';
20240612@073119.5686 avh8c3135debscr349854lui9h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='331';
20240612@073119.5697 avh8c3135debscr349854lui9h Query : use flama_phc
20240612@073119.5699 avh8c3135debscr349854lui9h Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@073119.5713 avh8c3135debscr349854lui9h Query : use flama_phc
20240612@073119.5716 avh8c3135debscr349854lui9h Query : select no, estab,szadrsdesc from szadrs where u_coddest=6258
20240612@073119.5816 avh8c3135debscr349854lui9h 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'
20240612@073119.5826 avh8c3135debscr349854lui9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404042 and bi.ref ='324.4930.00.1' and bi.lordem =1
20240612@073119.6141 avh8c3135debscr349854lui9h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1462.00.1'
20240612@073119.6153 avh8c3135debscr349854lui9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404042 and bi.ref ='324.1462.00.1' and bi.lordem =2
20240612@073119.6463 avh8c3135debscr349854lui9h 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'
20240612@073119.6604 avh8c3135debscr349854lui9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404042 and bi.ref ='324.698.00.01' and bi.lordem =3
20240612@073119.6928 avh8c3135debscr349854lui9h 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'
20240612@073119.7071 avh8c3135debscr349854lui9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404042 and bi.ref ='324.692.00.01' and bi.lordem =4
20240612@073119.7401 avh8c3135debscr349854lui9h 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'
20240612@073119.7412 avh8c3135debscr349854lui9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404042 and bi.ref ='324.692.00.01' and bi.lordem =4
20240612@073119.7419 avh8c3135debscr349854lui9h 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'
20240612@073119.7429 avh8c3135debscr349854lui9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404042 and bi.ref ='324.692.00.01' and bi.lordem =4
20240612@073119.7436 avh8c3135debscr349854lui9h 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'
20240612@073119.7573 avh8c3135debscr349854lui9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404042 and bi.ref ='324.691.00.01' and bi.lordem =5
20240612@073119.7872 avh8c3135debscr349854lui9h 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'
20240612@073119.8008 avh8c3135debscr349854lui9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404042 and bi.ref ='324.2031.00.1' and bi.lordem =6
20240612@073119.8310 avh8c3135debscr349854lui9h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2041.00.1'
20240612@073119.8467 avh8c3135debscr349854lui9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404042 and bi.ref ='324.2041.00.1' and bi.lordem =7
20240612@073119.9012 avh8c3135debscr349854lui9h 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'
20240612@073119.9160 avh8c3135debscr349854lui9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404042 and bi.ref ='324.1643.00.1' and bi.lordem =8
20240612@073119.9614 avh8c3135debscr349854lui9h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1684.00.1'
20240612@073119.9788 avh8c3135debscr349854lui9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404042 and bi.ref ='324.1684.00.1' and bi.lordem =9
20240612@073120.2700 avh8c3135debscr349854lui9h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1684.00.1'
20240612@073120.2850 avh8c3135debscr349854lui9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404042 and bi.ref ='324.1684.00.1' and bi.lordem =9
20240612@073120.2920 avh8c3135debscr349854lui9h 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'
20240612@073120.3040 avh8c3135debscr349854lui9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404042 and bi.ref ='324.5396.00.1' and bi.lordem =10
20240612@073120.7120 avh8c3135debscr349854lui9h 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'
20240612@073120.8530 avh8c3135debscr349854lui9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404042 and bi.ref ='324.5343.00.1' and bi.lordem =11
20240612@073120.1172 avh8c3135debscr349854lui9h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5342.00.1'
20240612@073120.1183 avh8c3135debscr349854lui9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404042 and bi.ref ='324.5342.00.1' and bi.lordem =12
20240612@073120.1489 avh8c3135debscr349854lui9h Query : use flama_phc
20240612@073120.1492 avh8c3135debscr349854lui9h Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240612@073120.1507 avh8c3135debscr349854lui9h Query : use flama_phc
20240612@073120.1510 avh8c3135debscr349854lui9h Query : select top 1 1 valor from td where td.ndoc = 39
20240612@073120.1522 avh8c3135debscr349854lui9h Query : use flama_phc
20240612@073120.1527 avh8c3135debscr349854lui9h 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')
20240612@073120.3283 5b66jd013kaesq2ucekn6cjt79 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@073120.3297 5b66jd013kaesq2ucekn6cjt79 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@073120.3313 5b66jd013kaesq2ucekn6cjt79 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='332';
20240612@073120.3351 5b66jd013kaesq2ucekn6cjt79 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='332';
20240612@073120.3363 5b66jd013kaesq2ucekn6cjt79 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='332';
20240612@073120.3375 5b66jd013kaesq2ucekn6cjt79 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='332';
20240612@073120.3387 5b66jd013kaesq2ucekn6cjt79 Query : use flama_phc
20240612@073120.3402 5b66jd013kaesq2ucekn6cjt79 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@073120.3418 5b66jd013kaesq2ucekn6cjt79 Query : use flama_phc
20240612@073120.3422 5b66jd013kaesq2ucekn6cjt79 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240612@073120.3452 5b66jd013kaesq2ucekn6cjt79 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'
20240612@073120.3617 5b66jd013kaesq2ucekn6cjt79 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404043 and bi.ref ='324.1667.00.1' and bi.lordem =1
20240612@073120.3911 5b66jd013kaesq2ucekn6cjt79 Query : use flama_phc
20240612@073120.3914 5b66jd013kaesq2ucekn6cjt79 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240612@073120.3930 5b66jd013kaesq2ucekn6cjt79 Query : use flama_phc
20240612@073120.3933 5b66jd013kaesq2ucekn6cjt79 Query : select top 1 1 valor from td where td.ndoc = 39
20240612@073120.3945 5b66jd013kaesq2ucekn6cjt79 Query : use flama_phc
20240612@073120.3948 5b66jd013kaesq2ucekn6cjt79 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')
20240612@073120.5069 9fnkf23ksv39bqe1mnf12dnsnq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@073120.5082 9fnkf23ksv39bqe1mnf12dnsnq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@073120.5096 9fnkf23ksv39bqe1mnf12dnsnq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='333';
20240612@073120.5497 9fnkf23ksv39bqe1mnf12dnsnq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='333';
20240612@073120.6356 9fnkf23ksv39bqe1mnf12dnsnq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='333';
20240612@073120.6372 9fnkf23ksv39bqe1mnf12dnsnq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='333';
20240612@073120.6384 9fnkf23ksv39bqe1mnf12dnsnq Query : use flama_phc
20240612@073120.6386 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@073120.6400 9fnkf23ksv39bqe1mnf12dnsnq Query : use flama_phc
20240612@073120.6403 9fnkf23ksv39bqe1mnf12dnsnq Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240612@073120.6435 9fnkf23ksv39bqe1mnf12dnsnq 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'
20240612@073120.6573 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404044 and bi.ref ='324.4980.00.1' and bi.lordem =1
20240612@073120.6873 9fnkf23ksv39bqe1mnf12dnsnq 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'
20240612@073120.6885 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404044 and bi.ref ='324.4980.00.1' and bi.lordem =1
20240612@073120.6892 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4161.00.1'
20240612@073120.7030 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404044 and bi.ref ='324.4161.00.1' and bi.lordem =2
20240612@073120.7383 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4161.00.1'
20240612@073120.7395 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404044 and bi.ref ='324.4161.00.1' and bi.lordem =2
20240612@073120.7403 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4161.00.1'
20240612@073120.7414 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404044 and bi.ref ='324.4161.00.1' and bi.lordem =2
20240612@073120.7422 9fnkf23ksv39bqe1mnf12dnsnq 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'
20240612@073120.7588 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404044 and bi.ref ='324.4840.00.1' and bi.lordem =3
20240612@073120.7898 9fnkf23ksv39bqe1mnf12dnsnq 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'
20240612@073120.8038 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404044 and bi.ref ='324.657.00.01' and bi.lordem =4
20240612@073120.8505 9fnkf23ksv39bqe1mnf12dnsnq 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'
20240612@073120.8519 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404044 and bi.ref ='324.657.00.01' and bi.lordem =4
20240612@073120.8527 9fnkf23ksv39bqe1mnf12dnsnq 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'
20240612@073120.8538 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404044 and bi.ref ='324.657.00.01' and bi.lordem =4
20240612@073120.8546 9fnkf23ksv39bqe1mnf12dnsnq 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'
20240612@073120.8557 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404044 and bi.ref ='324.657.00.01' and bi.lordem =4
20240612@073120.8565 9fnkf23ksv39bqe1mnf12dnsnq 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'
20240612@073120.8575 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404044 and bi.ref ='324.657.00.01' and bi.lordem =4
20240612@073120.8582 9fnkf23ksv39bqe1mnf12dnsnq 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'
20240612@073120.8593 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404044 and bi.ref ='324.692.00.01' and bi.lordem =5
20240612@073120.8911 9fnkf23ksv39bqe1mnf12dnsnq 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'
20240612@073120.8926 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404044 and bi.ref ='324.692.00.01' and bi.lordem =5
20240612@073120.8933 9fnkf23ksv39bqe1mnf12dnsnq 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'
20240612@073120.8943 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404044 and bi.ref ='324.692.00.01' and bi.lordem =5
20240612@073120.8950 9fnkf23ksv39bqe1mnf12dnsnq 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'
20240612@073120.8961 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404044 and bi.ref ='324.692.00.01' and bi.lordem =5
20240612@073120.8967 9fnkf23ksv39bqe1mnf12dnsnq 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'
20240612@073120.8977 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404044 and bi.ref ='324.692.00.01' and bi.lordem =5
20240612@073120.8984 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4160.00.1'
20240612@073120.9123 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404044 and bi.ref ='324.4160.00.1' and bi.lordem =6
20240612@073120.9418 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4160.00.1'
20240612@073120.9432 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404044 and bi.ref ='324.4160.00.1' and bi.lordem =6
20240612@073120.9442 9fnkf23ksv39bqe1mnf12dnsnq Query : use flama_phc
20240612@073120.9445 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240612@073120.9459 9fnkf23ksv39bqe1mnf12dnsnq Query : use flama_phc
20240612@073120.9462 9fnkf23ksv39bqe1mnf12dnsnq Query : select top 1 1 valor from td where td.ndoc = 39
20240612@073120.9474 9fnkf23ksv39bqe1mnf12dnsnq Query : use flama_phc
20240612@073120.9477 9fnkf23ksv39bqe1mnf12dnsnq 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')
20240612@073121.1590 svaq52cvdcsd7put4ku1tup9lh Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@073121.1720 svaq52cvdcsd7put4ku1tup9lh Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@073121.1890 svaq52cvdcsd7put4ku1tup9lh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='334';
20240612@073121.2270 svaq52cvdcsd7put4ku1tup9lh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='334';
20240612@073121.2380 svaq52cvdcsd7put4ku1tup9lh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='334';
20240612@073121.2500 svaq52cvdcsd7put4ku1tup9lh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='334';
20240612@073121.2620 svaq52cvdcsd7put4ku1tup9lh Query : use flama_phc
20240612@073121.2650 svaq52cvdcsd7put4ku1tup9lh Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@073121.2810 svaq52cvdcsd7put4ku1tup9lh Query : use flama_phc
20240612@073121.2840 svaq52cvdcsd7put4ku1tup9lh Query : select no, estab,szadrsdesc from szadrs where u_coddest=1024
20240612@073121.6740 svaq52cvdcsd7put4ku1tup9lh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1675.00.2'
20240612@073121.1180 svaq52cvdcsd7put4ku1tup9lh Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404046 and bi.ref ='324.1675.00.2' and bi.lordem =1
20240612@073121.1764 svaq52cvdcsd7put4ku1tup9lh 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'
20240612@073121.1911 svaq52cvdcsd7put4ku1tup9lh Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404046 and bi.ref ='324.1646.00.1' and bi.lordem =2
20240612@073121.2224 svaq52cvdcsd7put4ku1tup9lh Query : use flama_phc
20240612@073121.2227 svaq52cvdcsd7put4ku1tup9lh Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240612@073121.2241 svaq52cvdcsd7put4ku1tup9lh Query : use flama_phc
20240612@073121.2244 svaq52cvdcsd7put4ku1tup9lh Query : select top 1 1 valor from td where td.ndoc = 39
20240612@073121.2256 svaq52cvdcsd7put4ku1tup9lh Query : use flama_phc
20240612@073121.2259 svaq52cvdcsd7put4ku1tup9lh 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')
20240612@073121.2734 2s0volg8nflhq0k4h652l8enu7 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@073121.2748 2s0volg8nflhq0k4h652l8enu7 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@073121.2763 2s0volg8nflhq0k4h652l8enu7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='335';
20240612@073121.2801 2s0volg8nflhq0k4h652l8enu7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='335';
20240612@073121.2885 2s0volg8nflhq0k4h652l8enu7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='335';
20240612@073121.2987 2s0volg8nflhq0k4h652l8enu7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='335';
20240612@073121.3000 2s0volg8nflhq0k4h652l8enu7 Query : use flama_phc
20240612@073121.3003 2s0volg8nflhq0k4h652l8enu7 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@073121.3017 2s0volg8nflhq0k4h652l8enu7 Query : use flama_phc
20240612@073121.3020 2s0volg8nflhq0k4h652l8enu7 Query : select no, estab,szadrsdesc from szadrs where u_coddest=2448
20240612@073121.3089 2s0volg8nflhq0k4h652l8enu7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5342.00.1'
20240612@073121.3099 2s0volg8nflhq0k4h652l8enu7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404047 and bi.ref ='324.5342.00.1' and bi.lordem =1
20240612@073121.3407 2s0volg8nflhq0k4h652l8enu7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4960.00.1'
20240612@073121.3419 2s0volg8nflhq0k4h652l8enu7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404047 and bi.ref ='324.4960.00.1' and bi.lordem =2
20240612@073121.3716 2s0volg8nflhq0k4h652l8enu7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.969.00.01'
20240612@073121.3868 2s0volg8nflhq0k4h652l8enu7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404047 and bi.ref ='324.969.00.01' and bi.lordem =3
20240612@073121.4261 2s0volg8nflhq0k4h652l8enu7 Query : use flama_phc
20240612@073121.4264 2s0volg8nflhq0k4h652l8enu7 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240612@073121.4277 2s0volg8nflhq0k4h652l8enu7 Query : use flama_phc
20240612@073121.4279 2s0volg8nflhq0k4h652l8enu7 Query : select top 1 1 valor from td where td.ndoc = 39
20240612@073121.4291 2s0volg8nflhq0k4h652l8enu7 Query : use flama_phc
20240612@073121.4374 2s0volg8nflhq0k4h652l8enu7 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')
20240612@073121.6400 eto14bd4s3pid43aekgtj27oki Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@073121.6413 eto14bd4s3pid43aekgtj27oki Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@073121.6428 eto14bd4s3pid43aekgtj27oki Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='336';
20240612@073121.6463 eto14bd4s3pid43aekgtj27oki Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='336';
20240612@073121.6474 eto14bd4s3pid43aekgtj27oki Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='336';
20240612@073121.6485 eto14bd4s3pid43aekgtj27oki Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='336';
20240612@073121.6496 eto14bd4s3pid43aekgtj27oki Query : use flama_phc
20240612@073121.6498 eto14bd4s3pid43aekgtj27oki Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@073121.6512 eto14bd4s3pid43aekgtj27oki Query : use flama_phc
20240612@073121.6514 eto14bd4s3pid43aekgtj27oki Query : select no, estab,szadrsdesc from szadrs where u_coddest=2163
20240612@073121.6588 eto14bd4s3pid43aekgtj27oki 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'
20240612@073121.6724 eto14bd4s3pid43aekgtj27oki Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404048 and bi.ref ='324.4521.00.1' and bi.lordem =1
20240612@073121.7049 eto14bd4s3pid43aekgtj27oki Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4585.00.1'
20240612@073121.7189 eto14bd4s3pid43aekgtj27oki Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404048 and bi.ref ='324.4585.00.1' and bi.lordem =2
20240612@073121.7504 eto14bd4s3pid43aekgtj27oki Query : use flama_phc
20240612@073121.7508 eto14bd4s3pid43aekgtj27oki Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240612@073121.7520 eto14bd4s3pid43aekgtj27oki Query : use flama_phc
20240612@073121.7523 eto14bd4s3pid43aekgtj27oki Query : select top 1 1 valor from td where td.ndoc = 39
20240612@073121.7533 eto14bd4s3pid43aekgtj27oki Query : use flama_phc
20240612@073121.7542 eto14bd4s3pid43aekgtj27oki 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')
20240612@073121.8187 djucnn4iuc32s57kjea3mpiug5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@073121.8207 djucnn4iuc32s57kjea3mpiug5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@073121.8222 djucnn4iuc32s57kjea3mpiug5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='337';
20240612@073121.8259 djucnn4iuc32s57kjea3mpiug5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='337';
20240612@073121.8270 djucnn4iuc32s57kjea3mpiug5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='337';
20240612@073121.8281 djucnn4iuc32s57kjea3mpiug5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='337';
20240612@073121.8486 djucnn4iuc32s57kjea3mpiug5 Query : use flama_phc
20240612@073121.8542 djucnn4iuc32s57kjea3mpiug5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@073121.8559 djucnn4iuc32s57kjea3mpiug5 Query : use flama_phc
20240612@073121.8562 djucnn4iuc32s57kjea3mpiug5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=6917
20240612@073121.8641 djucnn4iuc32s57kjea3mpiug5 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'
20240612@073121.8782 djucnn4iuc32s57kjea3mpiug5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404050 and bi.ref ='324.600.94.01' and bi.lordem =1
20240612@073121.9099 djucnn4iuc32s57kjea3mpiug5 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'
20240612@073121.9110 djucnn4iuc32s57kjea3mpiug5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404050 and bi.ref ='324.600.94.01' and bi.lordem =1
20240612@073121.9117 djucnn4iuc32s57kjea3mpiug5 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'
20240612@073121.9126 djucnn4iuc32s57kjea3mpiug5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404050 and bi.ref ='324.600.94.01' and bi.lordem =1
20240612@073121.9140 djucnn4iuc32s57kjea3mpiug5 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'
20240612@073121.9335 djucnn4iuc32s57kjea3mpiug5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404050 and bi.ref ='324.2000.94.1' and bi.lordem =2
20240612@073121.9622 djucnn4iuc32s57kjea3mpiug5 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.02'
20240612@073121.9756 djucnn4iuc32s57kjea3mpiug5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404050 and bi.ref ='324.900.94.02' and bi.lordem =3
20240612@073122.9200 djucnn4iuc32s57kjea3mpiug5 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.02'
20240612@073122.1000 djucnn4iuc32s57kjea3mpiug5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404050 and bi.ref ='324.900.94.02' and bi.lordem =3
20240612@073122.1080 djucnn4iuc32s57kjea3mpiug5 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'
20240612@073122.2510 djucnn4iuc32s57kjea3mpiug5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404050 and bi.ref ='324.700.94.01' and bi.lordem =4
20240612@073122.5610 djucnn4iuc32s57kjea3mpiug5 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'
20240612@073122.5760 djucnn4iuc32s57kjea3mpiug5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404050 and bi.ref ='324.700.94.01' and bi.lordem =4
20240612@073122.5840 djucnn4iuc32s57kjea3mpiug5 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'
20240612@073122.7180 djucnn4iuc32s57kjea3mpiug5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404050 and bi.ref ='324.2200.94.1' and bi.lordem =5
20240612@073122.1380 djucnn4iuc32s57kjea3mpiug5 Query : use flama_phc
20240612@073122.1384 djucnn4iuc32s57kjea3mpiug5 Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240612@073122.1624 djucnn4iuc32s57kjea3mpiug5 Query : use flama_phc
20240612@073122.1664 djucnn4iuc32s57kjea3mpiug5 Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -65
20240612@073122.2260 djucnn4iuc32s57kjea3mpiug5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='337';
20240612@073122.2392 djucnn4iuc32s57kjea3mpiug5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='337';
20240612@073122.2944 f0mn68m0j28540phne72iejsap Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@073122.2958 f0mn68m0j28540phne72iejsap Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@073122.2973 f0mn68m0j28540phne72iejsap Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='338';
20240612@073122.3009 f0mn68m0j28540phne72iejsap Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='338';
20240612@073122.3021 f0mn68m0j28540phne72iejsap Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='338';
20240612@073122.3033 f0mn68m0j28540phne72iejsap Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='338';
20240612@073122.3047 f0mn68m0j28540phne72iejsap Query : use flama_phc
20240612@073122.3049 f0mn68m0j28540phne72iejsap Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@073122.3062 f0mn68m0j28540phne72iejsap Query : use flama_phc
20240612@073122.3065 f0mn68m0j28540phne72iejsap Query : select no, estab,szadrsdesc from szadrs where u_coddest=1957
20240612@073122.3141 f0mn68m0j28540phne72iejsap Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '325.1290.1003'
20240612@073122.3337 f0mn68m0j28540phne72iejsap Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404051 and bi.ref ='325.1290.1003' and bi.lordem =1
20240612@073122.3721 f0mn68m0j28540phne72iejsap Query : use flama_phc
20240612@073122.3725 f0mn68m0j28540phne72iejsap Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240612@073122.3742 f0mn68m0j28540phne72iejsap Query : use flama_phc
20240612@073122.3745 f0mn68m0j28540phne72iejsap Query : select top 1 1 valor from td where td.ndoc = 39
20240612@073122.3799 f0mn68m0j28540phne72iejsap Query : use flama_phc
20240612@073122.3841 f0mn68m0j28540phne72iejsap 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')
20240612@073122.4449 vp01mvt5mthgpprtb2rl5qma3b Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@073122.4464 vp01mvt5mthgpprtb2rl5qma3b Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@073122.4560 vp01mvt5mthgpprtb2rl5qma3b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='339';
20240612@073122.4636 vp01mvt5mthgpprtb2rl5qma3b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='339';
20240612@073122.4649 vp01mvt5mthgpprtb2rl5qma3b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='339';
20240612@073122.4662 vp01mvt5mthgpprtb2rl5qma3b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='339';
20240612@073122.4673 vp01mvt5mthgpprtb2rl5qma3b Query : use flama_phc
20240612@073122.4676 vp01mvt5mthgpprtb2rl5qma3b Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@073122.4689 vp01mvt5mthgpprtb2rl5qma3b Query : use flama_phc
20240612@073122.4692 vp01mvt5mthgpprtb2rl5qma3b Query : select no, estab,szadrsdesc from szadrs where u_coddest=2138
20240612@073122.4772 vp01mvt5mthgpprtb2rl5qma3b 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'
20240612@073122.4965 vp01mvt5mthgpprtb2rl5qma3b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404052 and bi.ref ='324.1803.00.1' and bi.lordem =1
20240612@073122.5459 vp01mvt5mthgpprtb2rl5qma3b 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'
20240612@073122.5629 vp01mvt5mthgpprtb2rl5qma3b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404052 and bi.ref ='324.2221.00.1' and bi.lordem =2
20240612@073122.5952 vp01mvt5mthgpprtb2rl5qma3b 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'
20240612@073122.5976 vp01mvt5mthgpprtb2rl5qma3b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404052 and bi.ref ='324.1643.00.1' and bi.lordem =3
20240612@073122.6325 vp01mvt5mthgpprtb2rl5qma3b 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'
20240612@073122.6485 vp01mvt5mthgpprtb2rl5qma3b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404052 and bi.ref ='324.1831.00.2' and bi.lordem =4
20240612@073122.6841 vp01mvt5mthgpprtb2rl5qma3b 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'
20240612@073122.7038 vp01mvt5mthgpprtb2rl5qma3b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404052 and bi.ref ='324.1832.00.2' and bi.lordem =5
20240612@073122.7347 vp01mvt5mthgpprtb2rl5qma3b 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'
20240612@073122.7483 vp01mvt5mthgpprtb2rl5qma3b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404052 and bi.ref ='324.1833.00.2' and bi.lordem =6
20240612@073122.7778 vp01mvt5mthgpprtb2rl5qma3b 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'
20240612@073122.7907 vp01mvt5mthgpprtb2rl5qma3b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404052 and bi.ref ='324.4968.00.1' and bi.lordem =7
20240612@073122.8213 vp01mvt5mthgpprtb2rl5qma3b 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'
20240612@073122.8354 vp01mvt5mthgpprtb2rl5qma3b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404052 and bi.ref ='324.4965.00.1' and bi.lordem =8
20240612@073122.8660 vp01mvt5mthgpprtb2rl5qma3b 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'
20240612@073122.8796 vp01mvt5mthgpprtb2rl5qma3b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404052 and bi.ref ='324.4966.00.1' and bi.lordem =9
20240612@073122.9163 vp01mvt5mthgpprtb2rl5qma3b Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4967.00.1'
20240612@073122.9438 vp01mvt5mthgpprtb2rl5qma3b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404052 and bi.ref ='324.4967.00.1' and bi.lordem =10
20240612@073123.4880 vp01mvt5mthgpprtb2rl5qma3b Query : use flama_phc
20240612@073123.5050 vp01mvt5mthgpprtb2rl5qma3b Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240612@073123.5200 vp01mvt5mthgpprtb2rl5qma3b Query : use flama_phc
20240612@073123.5220 vp01mvt5mthgpprtb2rl5qma3b Query : select top 1 1 valor from td where td.ndoc = 39
20240612@073123.5330 vp01mvt5mthgpprtb2rl5qma3b Query : use flama_phc
20240612@073123.5350 vp01mvt5mthgpprtb2rl5qma3b 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')
20240612@073123.1132 sgqdke4cjl0k3dct327i5c1h9l Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@073123.1146 sgqdke4cjl0k3dct327i5c1h9l Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@073123.1163 sgqdke4cjl0k3dct327i5c1h9l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='340';
20240612@073123.1200 sgqdke4cjl0k3dct327i5c1h9l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='340';
20240612@073123.1214 sgqdke4cjl0k3dct327i5c1h9l Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='340';
20240612@073123.1226 sgqdke4cjl0k3dct327i5c1h9l Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='340';
20240612@073123.1238 sgqdke4cjl0k3dct327i5c1h9l Query : use flama_phc
20240612@073123.1242 sgqdke4cjl0k3dct327i5c1h9l Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@073123.1257 sgqdke4cjl0k3dct327i5c1h9l Query : use flama_phc
20240612@073123.1260 sgqdke4cjl0k3dct327i5c1h9l Query : select no, estab,szadrsdesc from szadrs where u_coddest=635
20240612@073123.1492 sgqdke4cjl0k3dct327i5c1h9l Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5342.00.1'
20240612@073123.1505 sgqdke4cjl0k3dct327i5c1h9l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404053 and bi.ref ='324.5342.00.1' and bi.lordem =1
20240612@073123.1836 sgqdke4cjl0k3dct327i5c1h9l 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'
20240612@073123.1972 sgqdke4cjl0k3dct327i5c1h9l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404053 and bi.ref ='324.727.00.01' and bi.lordem =2
20240612@073123.2264 sgqdke4cjl0k3dct327i5c1h9l Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.719.00.01'
20240612@073123.2415 sgqdke4cjl0k3dct327i5c1h9l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404053 and bi.ref ='324.719.00.01' and bi.lordem =3
20240612@073123.2722 sgqdke4cjl0k3dct327i5c1h9l Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2203.00.1'
20240612@073123.2916 sgqdke4cjl0k3dct327i5c1h9l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404053 and bi.ref ='324.2203.00.1' and bi.lordem =4
20240612@073123.3370 sgqdke4cjl0k3dct327i5c1h9l 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'
20240612@073123.3514 sgqdke4cjl0k3dct327i5c1h9l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404053 and bi.ref ='324.1824.00.1' and bi.lordem =5
20240612@073123.3870 sgqdke4cjl0k3dct327i5c1h9l 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'
20240612@073123.3881 sgqdke4cjl0k3dct327i5c1h9l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404053 and bi.ref ='324.1824.00.1' and bi.lordem =6
20240612@073123.4245 sgqdke4cjl0k3dct327i5c1h9l 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'
20240612@073123.4257 sgqdke4cjl0k3dct327i5c1h9l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404053 and bi.ref ='324.1879.00.1' and bi.lordem =7
20240612@073123.4615 sgqdke4cjl0k3dct327i5c1h9l 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'
20240612@073123.4774 sgqdke4cjl0k3dct327i5c1h9l Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404053 and bi.ref ='324.945.00.01' and bi.lordem =8
20240612@073123.5087 sgqdke4cjl0k3dct327i5c1h9l Query : use flama_phc
20240612@073123.5091 sgqdke4cjl0k3dct327i5c1h9l Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240612@073123.5106 sgqdke4cjl0k3dct327i5c1h9l Query : use flama_phc
20240612@073123.5110 sgqdke4cjl0k3dct327i5c1h9l Query : select top 1 1 valor from td where td.ndoc = 39
20240612@073123.5201 sgqdke4cjl0k3dct327i5c1h9l Query : use flama_phc
20240612@073123.5245 sgqdke4cjl0k3dct327i5c1h9l 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')
20240612@073123.5775 78i0bp8tb43i5hllv6v0ioqj3a Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@073123.5789 78i0bp8tb43i5hllv6v0ioqj3a Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@073123.5806 78i0bp8tb43i5hllv6v0ioqj3a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='341';
20240612@073123.5844 78i0bp8tb43i5hllv6v0ioqj3a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='341';
20240612@073123.5876 78i0bp8tb43i5hllv6v0ioqj3a Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='341';
20240612@073123.5888 78i0bp8tb43i5hllv6v0ioqj3a Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='341';
20240612@073123.5899 78i0bp8tb43i5hllv6v0ioqj3a Query : use flama_phc
20240612@073123.5903 78i0bp8tb43i5hllv6v0ioqj3a Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@073123.5920 78i0bp8tb43i5hllv6v0ioqj3a Query : use flama_phc
20240612@073123.5923 78i0bp8tb43i5hllv6v0ioqj3a Query : select no, estab,szadrsdesc from szadrs where u_coddest=2138
20240612@073123.5956 78i0bp8tb43i5hllv6v0ioqj3a 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'
20240612@073123.5969 78i0bp8tb43i5hllv6v0ioqj3a Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404054 and bi.ref ='324.5343.00.1' and bi.lordem =1
20240612@073123.6328 78i0bp8tb43i5hllv6v0ioqj3a Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1706.00.1'
20240612@073123.6472 78i0bp8tb43i5hllv6v0ioqj3a Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404054 and bi.ref ='324.1706.00.1' and bi.lordem =3
20240612@073123.6778 78i0bp8tb43i5hllv6v0ioqj3a Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1407.00.1'
20240612@073123.8096 78i0bp8tb43i5hllv6v0ioqj3a Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404054 and bi.ref ='324.1407.00.1' and bi.lordem =5
20240612@073123.8495 78i0bp8tb43i5hllv6v0ioqj3a 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'
20240612@073123.8507 78i0bp8tb43i5hllv6v0ioqj3a Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404054 and bi.ref ='324.691.00.01' and bi.lordem =6
20240612@073123.8905 78i0bp8tb43i5hllv6v0ioqj3a 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'
20240612@073123.8995 78i0bp8tb43i5hllv6v0ioqj3a Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404054 and bi.ref ='324.691.00.01' and bi.lordem =6
20240612@073123.9004 78i0bp8tb43i5hllv6v0ioqj3a 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'
20240612@073123.9014 78i0bp8tb43i5hllv6v0ioqj3a Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404054 and bi.ref ='324.691.00.01' and bi.lordem =7
20240612@073123.9322 78i0bp8tb43i5hllv6v0ioqj3a 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'
20240612@073123.9336 78i0bp8tb43i5hllv6v0ioqj3a Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404054 and bi.ref ='324.692.00.01' and bi.lordem =8
20240612@073123.9683 78i0bp8tb43i5hllv6v0ioqj3a 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'
20240612@073123.9697 78i0bp8tb43i5hllv6v0ioqj3a Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404054 and bi.ref ='324.692.00.01' and bi.lordem =9
20240612@073124.6600 78i0bp8tb43i5hllv6v0ioqj3a 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'
20240612@073124.7800 78i0bp8tb43i5hllv6v0ioqj3a Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404054 and bi.ref ='324.5540.00.1' and bi.lordem =10
20240612@073124.5720 78i0bp8tb43i5hllv6v0ioqj3a Query : use flama_phc
20240612@073124.5850 78i0bp8tb43i5hllv6v0ioqj3a Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240612@073124.6000 78i0bp8tb43i5hllv6v0ioqj3a Query : use flama_phc
20240612@073124.6030 78i0bp8tb43i5hllv6v0ioqj3a Query : select top 1 1 valor from td where td.ndoc = 39
20240612@073124.6150 78i0bp8tb43i5hllv6v0ioqj3a Query : use flama_phc
20240612@073124.6180 78i0bp8tb43i5hllv6v0ioqj3a 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')
20240612@073617.8113 p7hmm48sv1metskbd82g31ggm3 Query : use flama_phc
20240612@073617.8118 p7hmm48sv1metskbd82g31ggm3 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@073617.8137 p7hmm48sv1metskbd82g31ggm3 Query : use flama_phc
20240612@073617.8140 p7hmm48sv1metskbd82g31ggm3 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@081912.2468 74gjng6ind3gm988d2vhvfb2pm Query : use flama_phc
20240612@081912.2472 74gjng6ind3gm988d2vhvfb2pm Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@081912.2525 74gjng6ind3gm988d2vhvfb2pm Query : use flama_phc
20240612@081912.2528 74gjng6ind3gm988d2vhvfb2pm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@083612.4856 rsc8biqlhr5nci9o3fvc0fc3lu Query : use flama_phc
20240612@083612.4866 rsc8biqlhr5nci9o3fvc0fc3lu Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@083612.5137 rsc8biqlhr5nci9o3fvc0fc3lu Query : use flama_phc
20240612@083612.5154 rsc8biqlhr5nci9o3fvc0fc3lu Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@091842.6252 c4amdgiet9bmcgt6jbb87vo926 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@091842.6282 c4amdgiet9bmcgt6jbb87vo926 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@091842.6326 c4amdgiet9bmcgt6jbb87vo926 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='342';
20240612@091842.6359 c4amdgiet9bmcgt6jbb87vo926 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='342';
20240612@091842.6381 c4amdgiet9bmcgt6jbb87vo926 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='342';
20240612@091842.6392 c4amdgiet9bmcgt6jbb87vo926 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='342';
20240612@091842.6404 c4amdgiet9bmcgt6jbb87vo926 Query : use flama_phc
20240612@091842.6407 c4amdgiet9bmcgt6jbb87vo926 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@091842.6453 c4amdgiet9bmcgt6jbb87vo926 Query : use flama_phc
20240612@091842.6456 c4amdgiet9bmcgt6jbb87vo926 Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20240612@091842.6533 c4amdgiet9bmcgt6jbb87vo926 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'
20240612@091842.6676 c4amdgiet9bmcgt6jbb87vo926 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'
20240612@091842.6688 c4amdgiet9bmcgt6jbb87vo926 Query : use flama_phc
20240612@091842.6691 c4amdgiet9bmcgt6jbb87vo926 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240612@091842.6878 c4amdgiet9bmcgt6jbb87vo926 Query : use flama_phc
20240612@091842.6881 c4amdgiet9bmcgt6jbb87vo926 Query : select top 1 1 valor from td where td.ndoc = 39
20240612@091842.6950 c4amdgiet9bmcgt6jbb87vo926 Query : use flama_phc
20240612@091842.6953 c4amdgiet9bmcgt6jbb87vo926 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')
20240612@091911.6240 kgkumooe1gu2n6ui706c3ctlmc Query : use flama_phc
20240612@091911.6245 kgkumooe1gu2n6ui706c3ctlmc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@091911.6295 kgkumooe1gu2n6ui706c3ctlmc Query : use flama_phc
20240612@091911.6298 kgkumooe1gu2n6ui706c3ctlmc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@093611.6064 4ldb4tco93bd4b9edqu5lohgd6 Query : use flama_phc
20240612@093611.6069 4ldb4tco93bd4b9edqu5lohgd6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@093611.6089 4ldb4tco93bd4b9edqu5lohgd6 Query : use flama_phc
20240612@093611.6093 4ldb4tco93bd4b9edqu5lohgd6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@101922.6057 a35utc4u6nvv46nn0frtp0sphp Query : use flama_phc
20240612@101922.6062 a35utc4u6nvv46nn0frtp0sphp Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@101922.6127 a35utc4u6nvv46nn0frtp0sphp Query : use flama_phc
20240612@101922.6130 a35utc4u6nvv46nn0frtp0sphp Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@103622.4320 mvckjt8q675gr4hiovquh5pve7 Query : use flama_phc
20240612@103622.4325 mvckjt8q675gr4hiovquh5pve7 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@103622.4342 mvckjt8q675gr4hiovquh5pve7 Query : use flama_phc
20240612@103622.4345 mvckjt8q675gr4hiovquh5pve7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@110019.7369 pohjdqa6op8b17bt9qjnospisk Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@110019.7500 pohjdqa6op8b17bt9qjnospisk Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@110019.7870 pohjdqa6op8b17bt9qjnospisk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='343';
20240612@110019.8118 pohjdqa6op8b17bt9qjnospisk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='343';
20240612@110019.8214 pohjdqa6op8b17bt9qjnospisk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='343';
20240612@110019.8425 pohjdqa6op8b17bt9qjnospisk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='343';
20240612@110020.5400 r94hafdk68fuqutr3d14pkj4iq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@110020.6800 r94hafdk68fuqutr3d14pkj4iq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@110020.8400 r94hafdk68fuqutr3d14pkj4iq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='344';
20240612@110020.1210 r94hafdk68fuqutr3d14pkj4iq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='344';
20240612@110020.1340 r94hafdk68fuqutr3d14pkj4iq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='344';
20240612@110020.1450 r94hafdk68fuqutr3d14pkj4iq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='344';
20240612@110020.1570 r94hafdk68fuqutr3d14pkj4iq Query : use flama_phc
20240612@110020.1600 r94hafdk68fuqutr3d14pkj4iq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@110020.2060 r94hafdk68fuqutr3d14pkj4iq Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20240612@110020.2760 r94hafdk68fuqutr3d14pkj4iq Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1667.00.1'
20240612@110020.3810 r94hafdk68fuqutr3d14pkj4iq Query : use flama_phc
20240612@110020.3840 r94hafdk68fuqutr3d14pkj4iq Query : select top 1 1 valor from ts where ts.ndos = 5
20240612@110020.4540 r94hafdk68fuqutr3d14pkj4iq Query : use flama_phc
20240612@110020.4570 r94hafdk68fuqutr3d14pkj4iq 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')
20240612@110020.5190 r94hafdk68fuqutr3d14pkj4iq 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
20240612@110020.6470 r94hafdk68fuqutr3d14pkj4iq Query : use flama_phc
20240612@110020.6510 r94hafdk68fuqutr3d14pkj4iq Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20240612@110020.7300 r94hafdk68fuqutr3d14pkj4iq Query : use flama_phc
20240612@110020.7330 r94hafdk68fuqutr3d14pkj4iq Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240612@110020.7720 r94hafdk68fuqutr3d14pkj4iq Query : use flama_phc
20240612@110020.7750 r94hafdk68fuqutr3d14pkj4iq Query : select szadrsstamp valor from szadrs where szadrsdesc='n/instalaÇÕes sede'
20240612@110020.7910 r94hafdk68fuqutr3d14pkj4iq Query : use flama_phc
20240612@110020.7940 r94hafdk68fuqutr3d14pkj4iq Query : select 1 valor from ts where ndos = 5
20240612@110020.8620 r94hafdk68fuqutr3d14pkj4iq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@110020.1170 r94hafdk68fuqutr3d14pkj4iq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20240612@110020.1233 r94hafdk68fuqutr3d14pkj4iq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@110020.1245 r94hafdk68fuqutr3d14pkj4iq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20240612@110020.1251 r94hafdk68fuqutr3d14pkj4iq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@110020.1263 r94hafdk68fuqutr3d14pkj4iq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20240612@110020.1270 r94hafdk68fuqutr3d14pkj4iq 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 = 5
20240612@110020.1395 r94hafdk68fuqutr3d14pkj4iq Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2024 order by obrano desc
20240612@110020.1529 r94hafdk68fuqutr3d14pkj4iq Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2024 order by obrano desc
20240612@110020.1592 r94hafdk68fuqutr3d14pkj4iq Query : use flama_phc
20240612@110020.1595 r94hafdk68fuqutr3d14pkj4iq Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100500' and estab=0
20240612@110020.1675 r94hafdk68fuqutr3d14pkj4iq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@110020.1693 r94hafdk68fuqutr3d14pkj4iq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20240612@110020.1725 r94hafdk68fuqutr3d14pkj4iq Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6669743338666971b426',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240612@110020.1783 r94hafdk68fuqutr3d14pkj4iq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@110020.1797 r94hafdk68fuqutr3d14pkj4iq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20240612@110020.1805 r94hafdk68fuqutr3d14pkj4iq Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut6669743338666971b426','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20240612','11:30',?,?)
20240612@110020.2120 r94hafdk68fuqutr3d14pkj4iq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@110020.2136 r94hafdk68fuqutr3d14pkj4iq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20240612@110020.2148 r94hafdk68fuqutr3d14pkj4iq Query : insert into wsbodata (bostamp, nmdos, dataobra, ndos, obrano, no, estab, nome, ncont, morada, local, codpost, moeda, boano, memissao,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,maquina ) values ('aut6669743338666971b426','trf entre armazéns a','2024-06-12',5,313,?,?,?,?,?,?,?,?,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',?)
20240612@110020.2672 r94hafdk68fuqutr3d14pkj4iq Query : use flama_phc
20240612@110020.2677 r94hafdk68fuqutr3d14pkj4iq Query : select st.usalote valor from st where st.ref = '324.1667.00.1'
20240612@110020.2788 r94hafdk68fuqutr3d14pkj4iq Query : use flama_phc
20240612@110020.2791 r94hafdk68fuqutr3d14pkj4iq Query : select st.stns valor from st where st.ref = '324.1667.00.1'
20240612@110020.2895 r94hafdk68fuqutr3d14pkj4iq Query : use flama_phc
20240612@110020.2897 r94hafdk68fuqutr3d14pkj4iq Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.1667.00.1' and sa.armazem = 133 
20240612@110020.2953 r94hafdk68fuqutr3d14pkj4iq Query : use flama_phc
20240612@110020.2955 r94hafdk68fuqutr3d14pkj4iq Query : select st.stns valor from st where st.ref = '324.1667.00.1'
20240612@110020.2971 r94hafdk68fuqutr3d14pkj4iq 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.1667.00.1'
20240612@110020.3109 r94hafdk68fuqutr3d14pkj4iq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@110020.3123 r94hafdk68fuqutr3d14pkj4iq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 5
20240612@110020.3133 r94hafdk68fuqutr3d14pkj4iq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@110020.3145 r94hafdk68fuqutr3d14pkj4iq Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 5
20240612@110020.3151 r94hafdk68fuqutr3d14pkj4iq Query : select sestamp valor from se where ref ='324.1667.00.1' and lote = 'r2400065200a'
20240612@110020.3203 r94hafdk68fuqutr3d14pkj4iq Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240612@110020.3238 r94hafdk68fuqutr3d14pkj4iq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@110020.3251 r94hafdk68fuqutr3d14pkj4iq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 5
20240612@110020.3258 r94hafdk68fuqutr3d14pkj4iq Query : insert into wsbi2data (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6669753570666971b44f','aut6669743338666971b426',bo.morada, bo.local,bo.codpost ,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut' from wsbodata bo where bo.bostamp = 'aut6669743338666971b426'
20240612@110020.3450 r94hafdk68fuqutr3d14pkj4iq Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@110020.3466 r94hafdk68fuqutr3d14pkj4iq Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 5
20240612@110020.3491 r94hafdk68fuqutr3d14pkj4iq Query : insert into wsbidata (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,eslvu,slvu,esltt,sltt,vumoeda,ttmoeda,slvumoeda,slttmoeda,lote,armazem,ar2mazem,stipo) select 'aut6669753570666971b44f',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 5.000, 5.000*.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 ,0,0*200.48,0,0*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,0*5.000,0*5.000*200.48 ,39.454000,39.454000*200.48 ,39.454000,39.454000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0*200.48,0*5.000,0*5.000*200.48,0,0*5.000,0,0*5.000,?,?,?,4 from wsbodata bo where bo.bostamp = 'aut6669743338666971b426'
20240612@110020.3841 r94hafdk68fuqutr3d14pkj4iq Query : insert into wsbocreationlog (initialstamp,externalid,creationstatus,documenttypeid,idustamp,transactionid) values ('aut6669743338666971b426','','wait',5,'','')
20240612@110020.3874 r94hafdk68fuqutr3d14pkj4iq Query : use flama_phc
20240612@110020.3877 r94hafdk68fuqutr3d14pkj4iq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@110020.3889 r94hafdk68fuqutr3d14pkj4iq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='344';
20240612@110020.3903 r94hafdk68fuqutr3d14pkj4iq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='344';
20240612@111913.5853 g1l1b5r73jn4eq9lh002keknu8 Query : use flama_phc
20240612@111913.5971 g1l1b5r73jn4eq9lh002keknu8 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@111913.6271 g1l1b5r73jn4eq9lh002keknu8 Query : use flama_phc
20240612@111913.6308 g1l1b5r73jn4eq9lh002keknu8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@113614.3420 bl93vpsov2be6u3kv6hpvsso3t Query : use flama_phc
20240612@113614.3750 bl93vpsov2be6u3kv6hpvsso3t Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@113614.5880 bl93vpsov2be6u3kv6hpvsso3t Query : use flama_phc
20240612@113614.6260 bl93vpsov2be6u3kv6hpvsso3t Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@120520.1459 6fotphhp09v9ccdf98sfv31oc8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@120520.1481 6fotphhp09v9ccdf98sfv31oc8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@120520.1614 6fotphhp09v9ccdf98sfv31oc8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='345';
20240612@120520.1804 6fotphhp09v9ccdf98sfv31oc8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='345';
20240612@120520.1869 6fotphhp09v9ccdf98sfv31oc8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='345';
20240612@120520.1885 6fotphhp09v9ccdf98sfv31oc8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='345';
20240612@120520.1897 6fotphhp09v9ccdf98sfv31oc8 Query : use flama_phc
20240612@120520.1901 6fotphhp09v9ccdf98sfv31oc8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@120520.2235 6fotphhp09v9ccdf98sfv31oc8 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.939.00.01'
20240612@120520.3384 6fotphhp09v9ccdf98sfv31oc8 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =002 and bo.boano =2023 and bo.obrano = 2301371 and bi.ref ='324.939.00.01' and bi.lordem =20000
20240612@120520.3834 6fotphhp09v9ccdf98sfv31oc8 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 = 'cps24012454456,173000002 ' 
20240612@120520.4204 6fotphhp09v9ccdf98sfv31oc8 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.938.00.01'
20240612@120520.4313 6fotphhp09v9ccdf98sfv31oc8 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =002 and bo.boano =2023 and bo.obrano = 2301371 and bi.ref ='324.938.00.01' and bi.lordem =10000
20240612@120520.4647 6fotphhp09v9ccdf98sfv31oc8 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 = 'cps23122953880,957000004 ' 
20240612@120520.4952 6fotphhp09v9ccdf98sfv31oc8 Query : use flama_phc
20240612@120520.4956 6fotphhp09v9ccdf98sfv31oc8 Query : select top 1 1 valor from ts where ts.ndos = 61
20240612@120520.5026 6fotphhp09v9ccdf98sfv31oc8 Query : use flama_phc
20240612@120520.5029 6fotphhp09v9ccdf98sfv31oc8 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')
20240612@120520.5060 6fotphhp09v9ccdf98sfv31oc8 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
20240612@120520.5175 6fotphhp09v9ccdf98sfv31oc8 Query : use flama_phc
20240612@120520.5178 6fotphhp09v9ccdf98sfv31oc8 Query : select top 1 ~inactivo valor from fl where no = '202300' and estab = 00 order by inactivo desc
20240612@120520.5255 6fotphhp09v9ccdf98sfv31oc8 Query : use flama_phc
20240612@120520.5258 6fotphhp09v9ccdf98sfv31oc8 Query : select 1 valor from ts where ndos = 61
20240612@120520.5276 6fotphhp09v9ccdf98sfv31oc8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@120520.5294 6fotphhp09v9ccdf98sfv31oc8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240612@120520.5306 6fotphhp09v9ccdf98sfv31oc8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@120520.5318 6fotphhp09v9ccdf98sfv31oc8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240612@120520.5325 6fotphhp09v9ccdf98sfv31oc8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@120520.5336 6fotphhp09v9ccdf98sfv31oc8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240612@120520.5342 6fotphhp09v9ccdf98sfv31oc8 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
20240612@120520.5465 6fotphhp09v9ccdf98sfv31oc8 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240612@120520.5614 6fotphhp09v9ccdf98sfv31oc8 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240612@120520.5638 6fotphhp09v9ccdf98sfv31oc8 Query : use flama_phc
20240612@120520.5641 6fotphhp09v9ccdf98sfv31oc8 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202300' and estab=00
20240612@120520.5734 6fotphhp09v9ccdf98sfv31oc8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@120520.5749 6fotphhp09v9ccdf98sfv31oc8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240612@120520.5764 6fotphhp09v9ccdf98sfv31oc8 Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6669889583666980f089',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240612@120520.5822 6fotphhp09v9ccdf98sfv31oc8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@120520.5836 6fotphhp09v9ccdf98sfv31oc8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240612@120520.5845 6fotphhp09v9ccdf98sfv31oc8 Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6669889583666980f089','--','bo',7.8560939794419970631 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240612@120520.6040 6fotphhp09v9ccdf98sfv31oc8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@120520.6057 6fotphhp09v9ccdf98sfv31oc8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240612@120520.6070 6fotphhp09v9ccdf98sfv31oc8 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 ('aut6669889583666980f089','guia r. fornecedor','2024-06-12',61,2401684,?,?,?,?,?,?,?,?,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')
20240612@120520.6661 6fotphhp09v9ccdf98sfv31oc8 Query : use flama_phc
20240612@120520.6665 6fotphhp09v9ccdf98sfv31oc8 Query : select st.usalote valor from st where st.ref = '324.939.00.01'
20240612@120520.6688 6fotphhp09v9ccdf98sfv31oc8 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.939.00.01'
20240612@120520.6835 6fotphhp09v9ccdf98sfv31oc8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@120520.6850 6fotphhp09v9ccdf98sfv31oc8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240612@120520.6862 6fotphhp09v9ccdf98sfv31oc8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@120520.6876 6fotphhp09v9ccdf98sfv31oc8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240612@120520.6883 6fotphhp09v9ccdf98sfv31oc8 Query : select sestamp valor from se where ref ='324.939.00.01' and lote = 'r2301371200a'
20240612@120520.6896 6fotphhp09v9ccdf98sfv31oc8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@120520.6910 6fotphhp09v9ccdf98sfv31oc8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240612@120520.6918 6fotphhp09v9ccdf98sfv31oc8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@120520.6932 6fotphhp09v9ccdf98sfv31oc8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240612@120520.6940 6fotphhp09v9ccdf98sfv31oc8 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6669856827666980f0a8',?,?,'20240612',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240612@120520.7501 6fotphhp09v9ccdf98sfv31oc8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240612@120520.7522 6fotphhp09v9ccdf98sfv31oc8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@120520.7536 6fotphhp09v9ccdf98sfv31oc8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240612@120520.7544 6fotphhp09v9ccdf98sfv31oc8 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6669857902666980f0b7','aut6669889583666980f089',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 = 'aut6669889583666980f089'
20240612@120520.7694 6fotphhp09v9ccdf98sfv31oc8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@120520.7708 6fotphhp09v9ccdf98sfv31oc8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240612@120520.7721 6fotphhp09v9ccdf98sfv31oc8 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 'aut6669857902666980f0b7',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 1700, 1700*.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 ,6.81,6.81*200.48,6.81,6.81*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,6.81*1700,6.81*1700*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,6.81,6.81*200.48,6.81*1700,6.81*1700*200.48,'cps24012454456,173000002 ',53.5,53.5*1700,53.5,53.5*1700,?,?,?,4 from bo bo where bo.bostamp = 'aut6669889583666980f089'
20240612@120532.9939 6fotphhp09v9ccdf98sfv31oc8 Query : use flama_phc
20240612@120532.9944 6fotphhp09v9ccdf98sfv31oc8 Query : select st.usalote valor from st where st.ref = '324.938.00.01'
20240612@120532.9987 6fotphhp09v9ccdf98sfv31oc8 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.938.00.01'
20240612@120533.1460 6fotphhp09v9ccdf98sfv31oc8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@120533.2510 6fotphhp09v9ccdf98sfv31oc8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240612@120533.5640 6fotphhp09v9ccdf98sfv31oc8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@120533.7790 6fotphhp09v9ccdf98sfv31oc8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240612@120533.9720 6fotphhp09v9ccdf98sfv31oc8 Query : select sestamp valor from se where ref ='324.938.00.01' and lote = 'r2301371100a'
20240612@120533.1128 6fotphhp09v9ccdf98sfv31oc8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@120533.1380 6fotphhp09v9ccdf98sfv31oc8 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240612@120533.1541 6fotphhp09v9ccdf98sfv31oc8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@120533.1718 6fotphhp09v9ccdf98sfv31oc8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240612@120533.1725 6fotphhp09v9ccdf98sfv31oc8 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut6669852158666980fd25',?,?,'20240612',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240612@120533.1854 6fotphhp09v9ccdf98sfv31oc8 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240612@120533.2315 6fotphhp09v9ccdf98sfv31oc8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@120533.2878 6fotphhp09v9ccdf98sfv31oc8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240612@120533.2993 6fotphhp09v9ccdf98sfv31oc8 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut6669811380666980fd38','aut6669889583666980f089',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 = 'aut6669889583666980f089'
20240612@120533.3239 6fotphhp09v9ccdf98sfv31oc8 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@120533.5545 6fotphhp09v9ccdf98sfv31oc8 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240612@120533.5684 6fotphhp09v9ccdf98sfv31oc8 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 'aut6669811380666980fd38',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 2500, 2500*1.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,20000 ,6.81,6.81*200.48,6.81,6.81*200.48 ,0,0,'un ','' ,bo.marcada,1 ,6.81*2500,6.81*2500*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,6.81,6.81*200.48,6.81*2500,6.81*2500*200.48,'cps23122953880,957000004 ',53.5,53.5*2500,53.5,53.5*2500,?,?,?,4 from bo bo where bo.bostamp = 'aut6669889583666980f089'
20240612@120534.9954 6fotphhp09v9ccdf98sfv31oc8 Query : use flama_phc
20240612@120534.9959 6fotphhp09v9ccdf98sfv31oc8 Query : declare @bostamp varchar(25) = 'aut6669889583666980f089' ,@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 
20240612@120543.1106 6fotphhp09v9ccdf98sfv31oc8 Query : use flama_phc
20240612@120543.1110 6fotphhp09v9ccdf98sfv31oc8 Query : select 1 valor from bo where bo.bostamp = 'aut6669889583666980f089'
20240612@120543.1202 6fotphhp09v9ccdf98sfv31oc8 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) = 'aut6669889583666980f089' 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 
20240612@120543.3599 6fotphhp09v9ccdf98sfv31oc8 Query : use flama_phc
20240612@120543.3603 6fotphhp09v9ccdf98sfv31oc8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@120543.3616 6fotphhp09v9ccdf98sfv31oc8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='345';
20240612@120543.3631 6fotphhp09v9ccdf98sfv31oc8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='345';
20240612@121917.5442 uji6b65j6kn4pudu9te3mb1fsb Query : use flama_phc
20240612@121917.5447 uji6b65j6kn4pudu9te3mb1fsb Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@121917.5463 uji6b65j6kn4pudu9te3mb1fsb Query : use flama_phc
20240612@121917.5466 uji6b65j6kn4pudu9te3mb1fsb Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@123617.8485 ge1lb2fqo7rc8mm0k1893re6b9 Query : use flama_phc
20240612@123617.8490 ge1lb2fqo7rc8mm0k1893re6b9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@123617.8554 ge1lb2fqo7rc8mm0k1893re6b9 Query : use flama_phc
20240612@123617.8558 ge1lb2fqo7rc8mm0k1893re6b9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@131921.3230 4ua1srs5hqs3e01i9q3rmogbpv Query : use flama_phc
20240612@131921.3235 4ua1srs5hqs3e01i9q3rmogbpv Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@131921.3253 4ua1srs5hqs3e01i9q3rmogbpv Query : use flama_phc
20240612@131921.3256 4ua1srs5hqs3e01i9q3rmogbpv Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@133620.8573 vrn6peiqprqm9p9ab6fpb5nm42 Query : use flama_phc
20240612@133620.8691 vrn6peiqprqm9p9ab6fpb5nm42 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@133620.8745 vrn6peiqprqm9p9ab6fpb5nm42 Query : use flama_phc
20240612@133620.8748 vrn6peiqprqm9p9ab6fpb5nm42 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@134143.6338 jgoicbf0vjhf2lps2jmvmneueq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@134143.6353 jgoicbf0vjhf2lps2jmvmneueq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@134143.6375 jgoicbf0vjhf2lps2jmvmneueq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='346';
20240612@134143.6416 jgoicbf0vjhf2lps2jmvmneueq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='346';
20240612@134143.6428 jgoicbf0vjhf2lps2jmvmneueq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='346';
20240612@134143.6439 jgoicbf0vjhf2lps2jmvmneueq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='346';
20240612@134143.8569 v2hjkoi203qgubct2rn5stm4of Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240612@134143.8583 v2hjkoi203qgubct2rn5stm4of Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240612@134143.8598 v2hjkoi203qgubct2rn5stm4of Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='347';
20240612@134143.8634 v2hjkoi203qgubct2rn5stm4of Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='347';
20240612@134143.8646 v2hjkoi203qgubct2rn5stm4of Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='347';
20240612@134143.8657 v2hjkoi203qgubct2rn5stm4of Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='347';
20240612@134143.8668 v2hjkoi203qgubct2rn5stm4of Query : use flama_phc
20240612@134143.8671 v2hjkoi203qgubct2rn5stm4of Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240612@134143.8690 v2hjkoi203qgubct2rn5stm4of Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20240612@134143.8727 v2hjkoi203qgubct2rn5stm4of Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.938.00.01'
20240612@134143.8736 v2hjkoi203qgubct2rn5stm4of Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.939.00.01'
20240612@134143.8746 v2hjkoi203qgubct2rn5stm4of Query : use flama_phc
20240612@134143.8749 v2hjkoi203qgubct2rn5stm4of Query : select top 1 1 valor from ts where ts.ndos = 5
20240612@134143.8764 v2hjkoi203qgubct2rn5stm4of Query : use flama_phc
20240612@134143.8766 v2hjkoi203qgubct2rn5stm4of 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')
20240612@134143.8818 v2hjkoi203qgubct2rn5stm4of 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
20240612@134143.8839 v2hjkoi203qgubct2rn5stm4of Query : use flama_phc
20240612@134143.8842 v2hjkoi203qgubct2rn5stm4of Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20240612@134143.8859 v2hjkoi203qgubct2rn5stm4of Query : use flama_phc
20240612@134143.8862 v2hjkoi203qgubct2rn5stm4of Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240612@134143.8878 v2hjkoi203qgubct2rn5stm4of Query : use flama_phc
20240612@134143.8880 v2hjkoi203qgubct2rn5stm4of Query : select szadrsstamp valor from szadrs where szadrsdesc='n/instalaÇÕes sede'
20240612@134143.8895 v2hjkoi203qgubct2rn5stm4of Query : use flama_phc
20240612@134143.8897 v2hjkoi203qgubct2rn5stm4of Query : select 1 valor from ts where ndos = 5
20240612@134143.8911 v2hjkoi203qgubct2rn5stm4of Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@134143.8925 v2hjkoi203qgubct2rn5stm4of Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20240612@134143.8935 v2hjkoi203qgubct2rn5stm4of Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@134143.8946 v2hjkoi203qgubct2rn5stm4of Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20240612@134143.8952 v2hjkoi203qgubct2rn5stm4of Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@134143.8963 v2hjkoi203qgubct2rn5stm4of Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20240612@134143.8968 v2hjkoi203qgubct2rn5stm4of 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 = 5
20240612@134143.8985 v2hjkoi203qgubct2rn5stm4of Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2024 order by obrano desc
20240612@134143.9045 v2hjkoi203qgubct2rn5stm4of Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2024 order by obrano desc
20240612@134143.9065 v2hjkoi203qgubct2rn5stm4of Query : use flama_phc
20240612@134143.9069 v2hjkoi203qgubct2rn5stm4of Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100500' and estab=0
20240612@134143.9085 v2hjkoi203qgubct2rn5stm4of Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@134143.9098 v2hjkoi203qgubct2rn5stm4of Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20240612@134143.9105 v2hjkoi203qgubct2rn5stm4of Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut666992067966699787dd',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240612@134143.9119 v2hjkoi203qgubct2rn5stm4of Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@134143.9131 v2hjkoi203qgubct2rn5stm4of Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20240612@134143.9137 v2hjkoi203qgubct2rn5stm4of Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut666992067966699787dd','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20240612','14:11',?,?)
20240612@134143.9458 v2hjkoi203qgubct2rn5stm4of Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240612@134143.9472 v2hjkoi203qgubct2rn5stm4of Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20240612@134143.9483 v2hjkoi203qgubct2rn5stm4of Query : insert into wsbodata (bostamp, nmdos, dataobra, ndos, obrano, no, estab, nome, ncont, morada, local, codpost, moeda, boano, memissao,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,maquina ) values ('aut666992067966699787dd','trf entre armazéns a','2024-06-12',5,314,?,?,?,?,?,?,?,?,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',?)
20240612@134144.9600 v2hjkoi203qgubct2rn5stm4of Query : use flama_phc
20240612@134144.9900 v2hjkoi203qgubct2rn5stm4of Query : select st.usalote valor from st where st.ref = '324.938.00.01'
20240612@134144.1100 v2hjkoi203qgubct2rn5stm4of Query : use flama_phc
20240612@134144.1130 v2hjkoi203qgubct2rn5stm4of Query : select st.stns valor from st where st.ref = '324.938.00.01'
20240612@134144.1290 v2hjkoi203qgubct2rn5stm4of Query : use flama_phc
20240612@134144.1320 v2hjkoi203qgubct2rn5stm4of Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.938.00.01' and sa.armazem = 133 
20240612@134144.1900 v2hjkoi203qgubct2rn5stm4of Query : use flama_phc
20240612@134144.1930 v2hjkoi203qgubct2rn5stm4of Query : select st.stns valor from st where st.ref = '324.938.00.01'
20240612@134144.2040 v2hjkoi203qgubct2rn5stm4of Query : use flama_phc
20240612@134144.2060 v2hjkoi203qgubct2rn5stm4of Query : select st.usalote valor from st where st.ref = '324.939.00.01'
20240612@134144.2210 v2hjkoi203qgubct2rn5stm4of Query : use flama_phc
20240612@134144.2240 v2hjkoi203qgubct2rn5stm4of Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -1050
20240612@134144.2870 v2hjkoi203qgubct2rn5stm4of Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='347';
20240612@134144.3000 v2hjkoi203qgubct2rn5stm4of Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='347';
20240612@141913.9740 ielqhmagr8saun4lm4iq6uc5qk Query : use flama_phc
20240612@141913.9757 ielqhmagr8saun4lm4iq6uc5qk Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@141913.9913 ielqhmagr8saun4lm4iq6uc5qk Query : use flama_phc
20240612@141913.9918 ielqhmagr8saun4lm4iq6uc5qk Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@143613.6684 n7g1sh98nbdq5hoo61d1memmhj Query : use flama_phc
20240612@143613.6690 n7g1sh98nbdq5hoo61d1memmhj Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@143613.6713 n7g1sh98nbdq5hoo61d1memmhj Query : use flama_phc
20240612@143613.6718 n7g1sh98nbdq5hoo61d1memmhj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@151917.5155 qkdol36ac7a4tirko5a5j79lqh Query : use flama_phc
20240612@151917.5164 qkdol36ac7a4tirko5a5j79lqh Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@151917.5190 qkdol36ac7a4tirko5a5j79lqh Query : use flama_phc
20240612@151917.5193 qkdol36ac7a4tirko5a5j79lqh Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@153617.7411 2f8rcqid3b1f043f7mj5k57nb7 Query : use flama_phc
20240612@153617.7470 2f8rcqid3b1f043f7mj5k57nb7 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@153617.7559 2f8rcqid3b1f043f7mj5k57nb7 Query : use flama_phc
20240612@153617.7563 2f8rcqid3b1f043f7mj5k57nb7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@161912.2265 qlsa5tn9jukabnfra6skhoqp7l Query : use flama_phc
20240612@161912.2271 qlsa5tn9jukabnfra6skhoqp7l Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@161912.2291 qlsa5tn9jukabnfra6skhoqp7l Query : use flama_phc
20240612@161912.2294 qlsa5tn9jukabnfra6skhoqp7l Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@163612.1662 6gv29oi0utibvfg3a29p3lh8ne Query : use flama_phc
20240612@163612.1668 6gv29oi0utibvfg3a29p3lh8ne Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@163612.1687 6gv29oi0utibvfg3a29p3lh8ne Query : use flama_phc
20240612@163612.1691 6gv29oi0utibvfg3a29p3lh8ne Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@171912.3962 9ogv77ltl4ba9ig59g304fvtmo Query : use flama_phc
20240612@171912.3967 9ogv77ltl4ba9ig59g304fvtmo Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@171912.3985 9ogv77ltl4ba9ig59g304fvtmo Query : use flama_phc
20240612@171912.3988 9ogv77ltl4ba9ig59g304fvtmo Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@173612.2758 2hnbiatekt6a477nt6ur3kh6fv Query : use flama_phc
20240612@173612.2762 2hnbiatekt6a477nt6ur3kh6fv Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@173612.2780 2hnbiatekt6a477nt6ur3kh6fv Query : use flama_phc
20240612@173612.2783 2hnbiatekt6a477nt6ur3kh6fv Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@181912.8350 096ubd70gqu6e61o8a2g9esf37 Query : use flama_phc
20240612@181912.8355 096ubd70gqu6e61o8a2g9esf37 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@181912.8372 096ubd70gqu6e61o8a2g9esf37 Query : use flama_phc
20240612@181912.8375 096ubd70gqu6e61o8a2g9esf37 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@183613.2790 gj2fq0lc6g47udgeqjth5mgnig Query : use flama_phc
20240612@183613.2794 gj2fq0lc6g47udgeqjth5mgnig Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@183613.2814 gj2fq0lc6g47udgeqjth5mgnig Query : use flama_phc
20240612@183613.2817 gj2fq0lc6g47udgeqjth5mgnig Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@191938.9398 rvj91et08s9jd1g8a764bgmuuf Query : use flama_phc
20240612@191938.9402 rvj91et08s9jd1g8a764bgmuuf Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@191938.9420 rvj91et08s9jd1g8a764bgmuuf Query : use flama_phc
20240612@191938.9423 rvj91et08s9jd1g8a764bgmuuf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@193638.9325 m9ov0jlagqm1h5433do91ht454 Query : use flama_phc
20240612@193638.9331 m9ov0jlagqm1h5433do91ht454 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@193638.9349 m9ov0jlagqm1h5433do91ht454 Query : use flama_phc
20240612@193638.9352 m9ov0jlagqm1h5433do91ht454 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@201921.7826 v901injce4358vknc6qecmokg9 Query : use flama_phc
20240612@201921.7832 v901injce4358vknc6qecmokg9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@201921.7853 v901injce4358vknc6qecmokg9 Query : use flama_phc
20240612@201921.7857 v901injce4358vknc6qecmokg9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@203621.8187 fjqio8rsc5u4b16g76siqmsm73 Query : use flama_phc
20240612@203621.8193 fjqio8rsc5u4b16g76siqmsm73 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@203621.8212 fjqio8rsc5u4b16g76siqmsm73 Query : use flama_phc
20240612@203621.8216 fjqio8rsc5u4b16g76siqmsm73 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@211912.1933 hp8g8a1b3i2f3d56h53p368l6s Query : use flama_phc
20240612@211912.1939 hp8g8a1b3i2f3d56h53p368l6s Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@211912.1956 hp8g8a1b3i2f3d56h53p368l6s Query : use flama_phc
20240612@211912.1959 hp8g8a1b3i2f3d56h53p368l6s Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@213611.8588 jbcdp4t174e1ej2fcpcb45hir5 Query : use flama_phc
20240612@213611.8592 jbcdp4t174e1ej2fcpcb45hir5 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@213611.8609 jbcdp4t174e1ej2fcpcb45hir5 Query : use flama_phc
20240612@213611.8612 jbcdp4t174e1ej2fcpcb45hir5 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@221913.4953 dlfllr1hak7rdoqcd9j4t5a8l8 Query : use flama_phc
20240612@221913.4958 dlfllr1hak7rdoqcd9j4t5a8l8 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@221913.4975 dlfllr1hak7rdoqcd9j4t5a8l8 Query : use flama_phc
20240612@221913.4978 dlfllr1hak7rdoqcd9j4t5a8l8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@223613.1941 21ive0a885otta93dgr18r5ltj Query : use flama_phc
20240612@223613.1947 21ive0a885otta93dgr18r5ltj Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@223613.1965 21ive0a885otta93dgr18r5ltj Query : use flama_phc
20240612@223613.1968 21ive0a885otta93dgr18r5ltj Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@231918.3886 1n1qdb20qe36it51usspsvl171 Query : use flama_phc
20240612@231918.3892 1n1qdb20qe36it51usspsvl171 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@231918.3911 1n1qdb20qe36it51usspsvl171 Query : use flama_phc
20240612@231918.3914 1n1qdb20qe36it51usspsvl171 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240612@233618.1326 gcbjmjdc7rik6capre3iia8avd Query : use flama_phc
20240612@233618.1331 gcbjmjdc7rik6capre3iia8avd Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240612@233618.1393 gcbjmjdc7rik6capre3iia8avd Query : use flama_phc
20240612@233618.1396 gcbjmjdc7rik6capre3iia8avd Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@071918.4549 tkaun13pvk6k7rt5fkpjtvvcq0 Query : use flama_phc
20240613@071918.4554 tkaun13pvk6k7rt5fkpjtvvcq0 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@071918.4627 tkaun13pvk6k7rt5fkpjtvvcq0 Query : use flama_phc
20240613@071918.4630 tkaun13pvk6k7rt5fkpjtvvcq0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@073648.7758 pdbvo2vj8569jf5048dhv68ecf Query : use flama_phc
20240613@073648.7771 pdbvo2vj8569jf5048dhv68ecf Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@073648.7789 pdbvo2vj8569jf5048dhv68ecf Query : use flama_phc
20240613@073648.7792 pdbvo2vj8569jf5048dhv68ecf Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@081610.4554 7hjl00ul884eq9r2nfop5vdgtv Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@081610.4685 7hjl00ul884eq9r2nfop5vdgtv Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@081610.5137 7hjl00ul884eq9r2nfop5vdgtv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='348';
20240613@081610.5396 7hjl00ul884eq9r2nfop5vdgtv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='348';
20240613@081610.5504 7hjl00ul884eq9r2nfop5vdgtv Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='348';
20240613@081610.5745 7hjl00ul884eq9r2nfop5vdgtv Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='348';
20240613@081610.5852 7hjl00ul884eq9r2nfop5vdgtv Query : use flama_phc
20240613@081610.5893 7hjl00ul884eq9r2nfop5vdgtv Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@081610.6191 7hjl00ul884eq9r2nfop5vdgtv Query : use flama_phc
20240613@081610.6227 7hjl00ul884eq9r2nfop5vdgtv Query : select no, estab,szadrsdesc from szadrs where u_coddest=4743
20240613@081610.6481 7hjl00ul884eq9r2nfop5vdgtv 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'
20240613@081610.6843 7hjl00ul884eq9r2nfop5vdgtv Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404045 and bi.ref ='324.1646.00.1' and bi.lordem =1
20240613@081610.7666 7hjl00ul884eq9r2nfop5vdgtv Query : use flama_phc
20240613@081610.7706 7hjl00ul884eq9r2nfop5vdgtv Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@081610.8251 7hjl00ul884eq9r2nfop5vdgtv Query : use flama_phc
20240613@081610.8292 7hjl00ul884eq9r2nfop5vdgtv Query : select top 1 1 valor from td where td.ndoc = 39
20240613@081610.8536 7hjl00ul884eq9r2nfop5vdgtv Query : use flama_phc
20240613@081610.8539 7hjl00ul884eq9r2nfop5vdgtv 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')
20240613@081610.9550 09shpt3pcvr09kf4nvdmebgkml Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@081610.9565 09shpt3pcvr09kf4nvdmebgkml Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@081610.9582 09shpt3pcvr09kf4nvdmebgkml Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='349';
20240613@081610.9624 09shpt3pcvr09kf4nvdmebgkml Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='349';
20240613@081610.9638 09shpt3pcvr09kf4nvdmebgkml Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='349';
20240613@081610.9650 09shpt3pcvr09kf4nvdmebgkml Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='349';
20240613@081610.9663 09shpt3pcvr09kf4nvdmebgkml Query : use flama_phc
20240613@081610.9667 09shpt3pcvr09kf4nvdmebgkml Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@081610.9686 09shpt3pcvr09kf4nvdmebgkml Query : use flama_phc
20240613@081610.9689 09shpt3pcvr09kf4nvdmebgkml Query : select no, estab,szadrsdesc from szadrs where u_coddest=886
20240613@081610.9774 09shpt3pcvr09kf4nvdmebgkml 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'
20240613@081611.2310 09shpt3pcvr09kf4nvdmebgkml Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404055 and bi.ref ='324.1643.00.1' and bi.lordem =1
20240613@081611.5640 09shpt3pcvr09kf4nvdmebgkml 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'
20240613@081611.7110 09shpt3pcvr09kf4nvdmebgkml Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404055 and bi.ref ='324.1690.00.1' and bi.lordem =2
20240613@081611.1057 09shpt3pcvr09kf4nvdmebgkml 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'
20240613@081611.1092 09shpt3pcvr09kf4nvdmebgkml Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404055 and bi.ref ='324.1643.00.1' and bi.lordem =3
20240613@081611.1429 09shpt3pcvr09kf4nvdmebgkml Query : use flama_phc
20240613@081611.1432 09shpt3pcvr09kf4nvdmebgkml Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@081611.1445 09shpt3pcvr09kf4nvdmebgkml Query : use flama_phc
20240613@081611.1448 09shpt3pcvr09kf4nvdmebgkml Query : select top 1 1 valor from td where td.ndoc = 39
20240613@081611.1459 09shpt3pcvr09kf4nvdmebgkml Query : use flama_phc
20240613@081611.1461 09shpt3pcvr09kf4nvdmebgkml 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')
20240613@081611.2172 fjdgk38btg6ka0rd4eh8lnat5j Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@081611.2224 fjdgk38btg6ka0rd4eh8lnat5j Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@081611.2291 fjdgk38btg6ka0rd4eh8lnat5j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='350';
20240613@081611.2439 fjdgk38btg6ka0rd4eh8lnat5j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='350';
20240613@081611.2501 fjdgk38btg6ka0rd4eh8lnat5j Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='350';
20240613@081611.2530 fjdgk38btg6ka0rd4eh8lnat5j Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='350';
20240613@081611.2542 fjdgk38btg6ka0rd4eh8lnat5j Query : use flama_phc
20240613@081611.2545 fjdgk38btg6ka0rd4eh8lnat5j Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@081611.2559 fjdgk38btg6ka0rd4eh8lnat5j Query : use flama_phc
20240613@081611.2663 fjdgk38btg6ka0rd4eh8lnat5j Query : select no, estab,szadrsdesc from szadrs where u_coddest=1474
20240613@081611.2949 fjdgk38btg6ka0rd4eh8lnat5j 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'
20240613@081611.3127 fjdgk38btg6ka0rd4eh8lnat5j Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404056 and bi.ref ='324.1643.00.1' and bi.lordem =1
20240613@081611.3647 fjdgk38btg6ka0rd4eh8lnat5j 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'
20240613@081611.3658 fjdgk38btg6ka0rd4eh8lnat5j Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404056 and bi.ref ='324.1690.00.1' and bi.lordem =2
20240613@081611.4109 fjdgk38btg6ka0rd4eh8lnat5j 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'
20240613@081611.4321 fjdgk38btg6ka0rd4eh8lnat5j Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404056 and bi.ref ='324.646.00.01' and bi.lordem =3
20240613@081611.4636 fjdgk38btg6ka0rd4eh8lnat5j 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'
20240613@081611.4647 fjdgk38btg6ka0rd4eh8lnat5j Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404056 and bi.ref ='324.646.00.01' and bi.lordem =4
20240613@081611.4965 fjdgk38btg6ka0rd4eh8lnat5j 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'
20240613@081611.5124 fjdgk38btg6ka0rd4eh8lnat5j Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404056 and bi.ref ='324.698.00.01' and bi.lordem =5
20240613@081611.6273 fjdgk38btg6ka0rd4eh8lnat5j 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'
20240613@081611.6426 fjdgk38btg6ka0rd4eh8lnat5j Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404056 and bi.ref ='324.698.00.01' and bi.lordem =5
20240613@081611.6435 fjdgk38btg6ka0rd4eh8lnat5j 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'
20240613@081611.6671 fjdgk38btg6ka0rd4eh8lnat5j Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404056 and bi.ref ='324.698.00.01' and bi.lordem =6
20240613@081611.7360 fjdgk38btg6ka0rd4eh8lnat5j Query : use flama_phc
20240613@081611.7400 fjdgk38btg6ka0rd4eh8lnat5j Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@081611.7553 fjdgk38btg6ka0rd4eh8lnat5j Query : use flama_phc
20240613@081611.7557 fjdgk38btg6ka0rd4eh8lnat5j Query : select top 1 1 valor from td where td.ndoc = 39
20240613@081611.7728 fjdgk38btg6ka0rd4eh8lnat5j Query : use flama_phc
20240613@081611.7771 fjdgk38btg6ka0rd4eh8lnat5j 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')
20240613@081611.8581 cpinb3lgd1jkbsbmahkbeimude Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@081611.9661 cpinb3lgd1jkbsbmahkbeimude Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@081611.9679 cpinb3lgd1jkbsbmahkbeimude Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='351';
20240613@081611.9723 cpinb3lgd1jkbsbmahkbeimude Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='351';
20240613@081611.9811 cpinb3lgd1jkbsbmahkbeimude Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='351';
20240613@081611.9823 cpinb3lgd1jkbsbmahkbeimude Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='351';
20240613@081611.9835 cpinb3lgd1jkbsbmahkbeimude Query : use flama_phc
20240613@081611.9837 cpinb3lgd1jkbsbmahkbeimude Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@081611.9852 cpinb3lgd1jkbsbmahkbeimude Query : use flama_phc
20240613@081611.9855 cpinb3lgd1jkbsbmahkbeimude Query : select no, estab,szadrsdesc from szadrs where u_coddest=6855
20240613@081611.9927 cpinb3lgd1jkbsbmahkbeimude 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'
20240613@081611.9940 cpinb3lgd1jkbsbmahkbeimude Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404057 and bi.ref ='324.698.00.01' and bi.lordem =1
20240613@081612.2590 cpinb3lgd1jkbsbmahkbeimude 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'
20240613@081612.2690 cpinb3lgd1jkbsbmahkbeimude Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404057 and bi.ref ='324.698.00.01' and bi.lordem =2
20240613@081612.5970 cpinb3lgd1jkbsbmahkbeimude Query : use flama_phc
20240613@081612.6000 cpinb3lgd1jkbsbmahkbeimude Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@081612.6130 cpinb3lgd1jkbsbmahkbeimude Query : use flama_phc
20240613@081612.6170 cpinb3lgd1jkbsbmahkbeimude Query : select top 1 1 valor from td where td.ndoc = 39
20240613@081612.6270 cpinb3lgd1jkbsbmahkbeimude Query : use flama_phc
20240613@081612.6300 cpinb3lgd1jkbsbmahkbeimude 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')
20240613@081612.1112 8rpetbpbmbkuchhqel31v0jj0s Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@081612.1126 8rpetbpbmbkuchhqel31v0jj0s Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@081612.1142 8rpetbpbmbkuchhqel31v0jj0s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='352';
20240613@081612.1181 8rpetbpbmbkuchhqel31v0jj0s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='352';
20240613@081612.1197 8rpetbpbmbkuchhqel31v0jj0s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='352';
20240613@081612.1209 8rpetbpbmbkuchhqel31v0jj0s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='352';
20240613@081612.1221 8rpetbpbmbkuchhqel31v0jj0s Query : use flama_phc
20240613@081612.1224 8rpetbpbmbkuchhqel31v0jj0s Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@081612.1237 8rpetbpbmbkuchhqel31v0jj0s Query : use flama_phc
20240613@081612.1240 8rpetbpbmbkuchhqel31v0jj0s Query : select no, estab,szadrsdesc from szadrs where u_coddest=2014
20240613@081612.1312 8rpetbpbmbkuchhqel31v0jj0s 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'
20240613@081612.1324 8rpetbpbmbkuchhqel31v0jj0s Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404058 and bi.ref ='324.698.00.01' and bi.lordem =1
20240613@081612.1657 8rpetbpbmbkuchhqel31v0jj0s 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'
20240613@081612.1668 8rpetbpbmbkuchhqel31v0jj0s Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404058 and bi.ref ='324.698.00.01' and bi.lordem =2
20240613@081612.1994 8rpetbpbmbkuchhqel31v0jj0s 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'
20240613@081612.2007 8rpetbpbmbkuchhqel31v0jj0s Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404058 and bi.ref ='324.1690.00.1' and bi.lordem =3
20240613@081612.2449 8rpetbpbmbkuchhqel31v0jj0s 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'
20240613@081612.2460 8rpetbpbmbkuchhqel31v0jj0s Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404058 and bi.ref ='324.646.00.01' and bi.lordem =4
20240613@081612.2796 8rpetbpbmbkuchhqel31v0jj0s 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'
20240613@081612.2806 8rpetbpbmbkuchhqel31v0jj0s Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404058 and bi.ref ='324.646.00.01' and bi.lordem =5
20240613@081612.3142 8rpetbpbmbkuchhqel31v0jj0s Query : use flama_phc
20240613@081612.3145 8rpetbpbmbkuchhqel31v0jj0s Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@081612.3159 8rpetbpbmbkuchhqel31v0jj0s Query : use flama_phc
20240613@081612.3162 8rpetbpbmbkuchhqel31v0jj0s Query : select top 1 1 valor from td where td.ndoc = 39
20240613@081612.3173 8rpetbpbmbkuchhqel31v0jj0s Query : use flama_phc
20240613@081612.3176 8rpetbpbmbkuchhqel31v0jj0s 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')
20240613@081612.3665 5d564m4orna4eg8ngv9csnvau5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@081612.3679 5d564m4orna4eg8ngv9csnvau5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@081612.3696 5d564m4orna4eg8ngv9csnvau5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='353';
20240613@081612.3732 5d564m4orna4eg8ngv9csnvau5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='353';
20240613@081612.3745 5d564m4orna4eg8ngv9csnvau5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='353';
20240613@081612.3756 5d564m4orna4eg8ngv9csnvau5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='353';
20240613@081612.3768 5d564m4orna4eg8ngv9csnvau5 Query : use flama_phc
20240613@081612.3771 5d564m4orna4eg8ngv9csnvau5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@081612.3785 5d564m4orna4eg8ngv9csnvau5 Query : use flama_phc
20240613@081612.3788 5d564m4orna4eg8ngv9csnvau5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1161
20240613@081612.3861 5d564m4orna4eg8ngv9csnvau5 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'
20240613@081612.4015 5d564m4orna4eg8ngv9csnvau5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404059 and bi.ref ='327.8253.00.1' and bi.lordem =1
20240613@081612.4338 5d564m4orna4eg8ngv9csnvau5 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'
20240613@081612.4492 5d564m4orna4eg8ngv9csnvau5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404059 and bi.ref ='324.4980.00.1' and bi.lordem =2
20240613@081612.4827 5d564m4orna4eg8ngv9csnvau5 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'
20240613@081612.4839 5d564m4orna4eg8ngv9csnvau5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404059 and bi.ref ='324.646.00.01' and bi.lordem =3
20240613@081612.5173 5d564m4orna4eg8ngv9csnvau5 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'
20240613@081612.5184 5d564m4orna4eg8ngv9csnvau5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404059 and bi.ref ='324.646.00.01' and bi.lordem =4
20240613@081612.5515 5d564m4orna4eg8ngv9csnvau5 Query : use flama_phc
20240613@081612.5518 5d564m4orna4eg8ngv9csnvau5 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@081612.5532 5d564m4orna4eg8ngv9csnvau5 Query : use flama_phc
20240613@081612.5535 5d564m4orna4eg8ngv9csnvau5 Query : select top 1 1 valor from td where td.ndoc = 39
20240613@081612.5545 5d564m4orna4eg8ngv9csnvau5 Query : use flama_phc
20240613@081612.5548 5d564m4orna4eg8ngv9csnvau5 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')
20240613@081612.6682 2vlv8lktueliss9vi0ble6rdi3 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@081612.6695 2vlv8lktueliss9vi0ble6rdi3 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@081612.6710 2vlv8lktueliss9vi0ble6rdi3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='354';
20240613@081612.6749 2vlv8lktueliss9vi0ble6rdi3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='354';
20240613@081612.6761 2vlv8lktueliss9vi0ble6rdi3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='354';
20240613@081612.6773 2vlv8lktueliss9vi0ble6rdi3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='354';
20240613@081612.6785 2vlv8lktueliss9vi0ble6rdi3 Query : use flama_phc
20240613@081612.6788 2vlv8lktueliss9vi0ble6rdi3 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@081612.6802 2vlv8lktueliss9vi0ble6rdi3 Query : use flama_phc
20240613@081612.6805 2vlv8lktueliss9vi0ble6rdi3 Query : select no, estab,szadrsdesc from szadrs where u_coddest=8548
20240613@081612.6884 2vlv8lktueliss9vi0ble6rdi3 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'
20240613@081612.6894 2vlv8lktueliss9vi0ble6rdi3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404060 and bi.ref ='324.4980.00.1' and bi.lordem =1
20240613@081612.7222 2vlv8lktueliss9vi0ble6rdi3 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'
20240613@081612.7233 2vlv8lktueliss9vi0ble6rdi3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404060 and bi.ref ='324.646.00.01' and bi.lordem =2
20240613@081612.7555 2vlv8lktueliss9vi0ble6rdi3 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'
20240613@081612.7566 2vlv8lktueliss9vi0ble6rdi3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404060 and bi.ref ='324.646.00.01' and bi.lordem =3
20240613@081612.7891 2vlv8lktueliss9vi0ble6rdi3 Query : use flama_phc
20240613@081612.7894 2vlv8lktueliss9vi0ble6rdi3 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@081612.8198 2vlv8lktueliss9vi0ble6rdi3 Query : use flama_phc
20240613@081612.8238 2vlv8lktueliss9vi0ble6rdi3 Query : select top 1 1 valor from td where td.ndoc = 39
20240613@081612.8702 2vlv8lktueliss9vi0ble6rdi3 Query : use flama_phc
20240613@081612.8782 2vlv8lktueliss9vi0ble6rdi3 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')
20240613@081613.1770 14joqurh3shqljt64lv0ok79l2 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@081613.2580 14joqurh3shqljt64lv0ok79l2 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@081613.4690 14joqurh3shqljt64lv0ok79l2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='355';
20240613@081613.5230 14joqurh3shqljt64lv0ok79l2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='355';
20240613@081613.6000 14joqurh3shqljt64lv0ok79l2 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='355';
20240613@081613.7550 14joqurh3shqljt64lv0ok79l2 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='355';
20240613@081613.7800 14joqurh3shqljt64lv0ok79l2 Query : use flama_phc
20240613@081613.7840 14joqurh3shqljt64lv0ok79l2 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@081613.8120 14joqurh3shqljt64lv0ok79l2 Query : use flama_phc
20240613@081613.8150 14joqurh3shqljt64lv0ok79l2 Query : select no, estab,szadrsdesc from szadrs where u_coddest=233
20240613@081613.1035 14joqurh3shqljt64lv0ok79l2 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'
20240613@081613.1245 14joqurh3shqljt64lv0ok79l2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404061 and bi.ref ='324.1690.00.1' and bi.lordem =1
20240613@081613.1910 14joqurh3shqljt64lv0ok79l2 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'
20240613@081613.1985 14joqurh3shqljt64lv0ok79l2 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404061 and bi.ref ='324.1690.00.1' and bi.lordem =1
20240613@081613.2112 14joqurh3shqljt64lv0ok79l2 Query : use flama_phc
20240613@081613.2153 14joqurh3shqljt64lv0ok79l2 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@081613.2364 14joqurh3shqljt64lv0ok79l2 Query : use flama_phc
20240613@081613.2405 14joqurh3shqljt64lv0ok79l2 Query : select top 1 1 valor from td where td.ndoc = 39
20240613@081613.2461 14joqurh3shqljt64lv0ok79l2 Query : use flama_phc
20240613@081613.2464 14joqurh3shqljt64lv0ok79l2 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')
20240613@081613.3303 ocquj7h66abo3tl6vk4bam6s4b Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@081613.3316 ocquj7h66abo3tl6vk4bam6s4b Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@081613.3332 ocquj7h66abo3tl6vk4bam6s4b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='356';
20240613@081613.3368 ocquj7h66abo3tl6vk4bam6s4b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='356';
20240613@081613.3380 ocquj7h66abo3tl6vk4bam6s4b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='356';
20240613@081613.3392 ocquj7h66abo3tl6vk4bam6s4b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='356';
20240613@081613.3404 ocquj7h66abo3tl6vk4bam6s4b Query : use flama_phc
20240613@081613.3407 ocquj7h66abo3tl6vk4bam6s4b Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@081613.3422 ocquj7h66abo3tl6vk4bam6s4b Query : use flama_phc
20240613@081613.3424 ocquj7h66abo3tl6vk4bam6s4b Query : select no, estab,szadrsdesc from szadrs where u_coddest=7737
20240613@081613.3494 ocquj7h66abo3tl6vk4bam6s4b 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'
20240613@081613.3505 ocquj7h66abo3tl6vk4bam6s4b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404062 and bi.ref ='324.1690.00.1' and bi.lordem =1
20240613@081613.3831 ocquj7h66abo3tl6vk4bam6s4b 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'
20240613@081613.3842 ocquj7h66abo3tl6vk4bam6s4b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404062 and bi.ref ='324.646.00.01' and bi.lordem =2
20240613@081613.4171 ocquj7h66abo3tl6vk4bam6s4b 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'
20240613@081613.4182 ocquj7h66abo3tl6vk4bam6s4b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404062 and bi.ref ='324.646.00.01' and bi.lordem =2
20240613@081613.4189 ocquj7h66abo3tl6vk4bam6s4b 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'
20240613@081613.4200 ocquj7h66abo3tl6vk4bam6s4b Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404062 and bi.ref ='324.646.00.01' and bi.lordem =3
20240613@081613.4516 ocquj7h66abo3tl6vk4bam6s4b Query : use flama_phc
20240613@081613.4519 ocquj7h66abo3tl6vk4bam6s4b Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@081613.4534 ocquj7h66abo3tl6vk4bam6s4b Query : use flama_phc
20240613@081613.4537 ocquj7h66abo3tl6vk4bam6s4b Query : select top 1 1 valor from td where td.ndoc = 39
20240613@081613.4547 ocquj7h66abo3tl6vk4bam6s4b Query : use flama_phc
20240613@081613.4549 ocquj7h66abo3tl6vk4bam6s4b 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')
20240613@081613.5019 v0nq4efumocakrucakm9e9b250 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@081613.5055 v0nq4efumocakrucakm9e9b250 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@081613.5070 v0nq4efumocakrucakm9e9b250 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='357';
20240613@081613.5105 v0nq4efumocakrucakm9e9b250 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='357';
20240613@081613.5117 v0nq4efumocakrucakm9e9b250 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='357';
20240613@081613.5128 v0nq4efumocakrucakm9e9b250 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='357';
20240613@081613.5139 v0nq4efumocakrucakm9e9b250 Query : use flama_phc
20240613@081613.5143 v0nq4efumocakrucakm9e9b250 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@081613.5157 v0nq4efumocakrucakm9e9b250 Query : use flama_phc
20240613@081613.5160 v0nq4efumocakrucakm9e9b250 Query : select no, estab,szadrsdesc from szadrs where u_coddest=1498
20240613@081613.5230 v0nq4efumocakrucakm9e9b250 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'
20240613@081613.5240 v0nq4efumocakrucakm9e9b250 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404063 and bi.ref ='324.1690.00.1' and bi.lordem =1
20240613@081613.5554 v0nq4efumocakrucakm9e9b250 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'
20240613@081613.5565 v0nq4efumocakrucakm9e9b250 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404063 and bi.ref ='324.646.00.01' and bi.lordem =2
20240613@081613.6039 v0nq4efumocakrucakm9e9b250 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'
20240613@081613.6288 v0nq4efumocakrucakm9e9b250 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404063 and bi.ref ='324.646.00.01' and bi.lordem =3
20240613@081613.6884 v0nq4efumocakrucakm9e9b250 Query : use flama_phc
20240613@081613.6887 v0nq4efumocakrucakm9e9b250 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@081613.6901 v0nq4efumocakrucakm9e9b250 Query : use flama_phc
20240613@081613.6904 v0nq4efumocakrucakm9e9b250 Query : select top 1 1 valor from td where td.ndoc = 39
20240613@081613.6915 v0nq4efumocakrucakm9e9b250 Query : use flama_phc
20240613@081613.6917 v0nq4efumocakrucakm9e9b250 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')
20240613@081613.8047 qj851lqov7ssbh0kd02gf2kvfp Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@081613.8060 qj851lqov7ssbh0kd02gf2kvfp Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@081613.8075 qj851lqov7ssbh0kd02gf2kvfp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='358';
20240613@081613.8117 qj851lqov7ssbh0kd02gf2kvfp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='358';
20240613@081613.8209 qj851lqov7ssbh0kd02gf2kvfp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='358';
20240613@081613.8384 qj851lqov7ssbh0kd02gf2kvfp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='358';
20240613@081613.8398 qj851lqov7ssbh0kd02gf2kvfp Query : use flama_phc
20240613@081613.8401 qj851lqov7ssbh0kd02gf2kvfp Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@081613.8603 qj851lqov7ssbh0kd02gf2kvfp Query : use flama_phc
20240613@081613.8640 qj851lqov7ssbh0kd02gf2kvfp Query : select no, estab,szadrsdesc from szadrs where u_coddest=1899
20240613@081613.8949 qj851lqov7ssbh0kd02gf2kvfp 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'
20240613@081613.9196 qj851lqov7ssbh0kd02gf2kvfp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404064 and bi.ref ='324.1690.00.1' and bi.lordem =1
20240613@081614.2000 qj851lqov7ssbh0kd02gf2kvfp Query : use flama_phc
20240613@081614.3240 qj851lqov7ssbh0kd02gf2kvfp Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@081614.6070 qj851lqov7ssbh0kd02gf2kvfp Query : use flama_phc
20240613@081614.6110 qj851lqov7ssbh0kd02gf2kvfp Query : select top 1 1 valor from td where td.ndoc = 39
20240613@081614.6240 qj851lqov7ssbh0kd02gf2kvfp Query : use flama_phc
20240613@081614.6270 qj851lqov7ssbh0kd02gf2kvfp 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')
20240613@081614.1741 9jlinan1m4lelkttmhb2s7onfi Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@081614.1757 9jlinan1m4lelkttmhb2s7onfi Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@081614.1773 9jlinan1m4lelkttmhb2s7onfi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='359';
20240613@081614.1808 9jlinan1m4lelkttmhb2s7onfi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='359';
20240613@081614.1821 9jlinan1m4lelkttmhb2s7onfi Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='359';
20240613@081614.1834 9jlinan1m4lelkttmhb2s7onfi Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='359';
20240613@081614.1846 9jlinan1m4lelkttmhb2s7onfi Query : use flama_phc
20240613@081614.1849 9jlinan1m4lelkttmhb2s7onfi Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@081614.1865 9jlinan1m4lelkttmhb2s7onfi Query : use flama_phc
20240613@081614.1868 9jlinan1m4lelkttmhb2s7onfi Query : select no, estab,szadrsdesc from szadrs where u_coddest=4500
20240613@081614.1938 9jlinan1m4lelkttmhb2s7onfi 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'
20240613@081614.1950 9jlinan1m4lelkttmhb2s7onfi Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404065 and bi.ref ='324.646.00.01' and bi.lordem =1
20240613@081614.2278 9jlinan1m4lelkttmhb2s7onfi 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'
20240613@081614.2289 9jlinan1m4lelkttmhb2s7onfi Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404065 and bi.ref ='324.646.00.01' and bi.lordem =2
20240613@081614.2627 9jlinan1m4lelkttmhb2s7onfi Query : use flama_phc
20240613@081614.2631 9jlinan1m4lelkttmhb2s7onfi Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@081614.2644 9jlinan1m4lelkttmhb2s7onfi Query : use flama_phc
20240613@081614.2647 9jlinan1m4lelkttmhb2s7onfi Query : select top 1 1 valor from td where td.ndoc = 39
20240613@081614.2658 9jlinan1m4lelkttmhb2s7onfi Query : use flama_phc
20240613@081614.2661 9jlinan1m4lelkttmhb2s7onfi 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')
20240613@081614.3144 fgeof249gihgrr0igdsknff3e9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@081614.3157 fgeof249gihgrr0igdsknff3e9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@081614.3172 fgeof249gihgrr0igdsknff3e9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='360';
20240613@081614.3225 fgeof249gihgrr0igdsknff3e9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='360';
20240613@081614.3237 fgeof249gihgrr0igdsknff3e9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='360';
20240613@081614.3249 fgeof249gihgrr0igdsknff3e9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='360';
20240613@081614.3261 fgeof249gihgrr0igdsknff3e9 Query : use flama_phc
20240613@081614.3264 fgeof249gihgrr0igdsknff3e9 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@081614.3290 fgeof249gihgrr0igdsknff3e9 Query : use flama_phc
20240613@081614.3293 fgeof249gihgrr0igdsknff3e9 Query : select no, estab,szadrsdesc from szadrs where u_coddest=68
20240613@081614.3368 fgeof249gihgrr0igdsknff3e9 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'
20240613@081614.3380 fgeof249gihgrr0igdsknff3e9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404066 and bi.ref ='324.646.00.01' and bi.lordem =1
20240613@081614.3724 fgeof249gihgrr0igdsknff3e9 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'
20240613@081614.3737 fgeof249gihgrr0igdsknff3e9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404066 and bi.ref ='324.646.00.01' and bi.lordem =2
20240613@081614.4085 fgeof249gihgrr0igdsknff3e9 Query : use flama_phc
20240613@081614.4089 fgeof249gihgrr0igdsknff3e9 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@081614.4105 fgeof249gihgrr0igdsknff3e9 Query : use flama_phc
20240613@081614.4108 fgeof249gihgrr0igdsknff3e9 Query : select top 1 1 valor from td where td.ndoc = 39
20240613@081614.4120 fgeof249gihgrr0igdsknff3e9 Query : use flama_phc
20240613@081614.4123 fgeof249gihgrr0igdsknff3e9 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')
20240613@081614.4601 ppgcmfudsp0rcgm05rv1qrc9hq Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@081614.4614 ppgcmfudsp0rcgm05rv1qrc9hq Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@081614.4632 ppgcmfudsp0rcgm05rv1qrc9hq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='361';
20240613@081614.4668 ppgcmfudsp0rcgm05rv1qrc9hq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='361';
20240613@081614.4681 ppgcmfudsp0rcgm05rv1qrc9hq Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='361';
20240613@081614.4692 ppgcmfudsp0rcgm05rv1qrc9hq Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='361';
20240613@081614.4711 ppgcmfudsp0rcgm05rv1qrc9hq Query : use flama_phc
20240613@081614.4714 ppgcmfudsp0rcgm05rv1qrc9hq Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@081614.4728 ppgcmfudsp0rcgm05rv1qrc9hq Query : use flama_phc
20240613@081614.4731 ppgcmfudsp0rcgm05rv1qrc9hq Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@081614.4802 ppgcmfudsp0rcgm05rv1qrc9hq 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'
20240613@081614.4813 ppgcmfudsp0rcgm05rv1qrc9hq Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404067 and bi.ref ='324.1643.00.1' and bi.lordem =1
20240613@081614.5146 ppgcmfudsp0rcgm05rv1qrc9hq Query : use flama_phc
20240613@081614.5149 ppgcmfudsp0rcgm05rv1qrc9hq Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@081614.5162 ppgcmfudsp0rcgm05rv1qrc9hq Query : use flama_phc
20240613@081614.5166 ppgcmfudsp0rcgm05rv1qrc9hq Query : select top 1 1 valor from td where td.ndoc = 39
20240613@081614.5177 ppgcmfudsp0rcgm05rv1qrc9hq Query : use flama_phc
20240613@081614.5180 ppgcmfudsp0rcgm05rv1qrc9hq 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')
20240613@081614.6078 a4mff0iqlvjn21870nong3g21r Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@081614.6307 a4mff0iqlvjn21870nong3g21r Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@081614.6325 a4mff0iqlvjn21870nong3g21r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='362';
20240613@081614.6363 a4mff0iqlvjn21870nong3g21r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='362';
20240613@081614.6375 a4mff0iqlvjn21870nong3g21r Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='362';
20240613@081614.6387 a4mff0iqlvjn21870nong3g21r Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='362';
20240613@081614.6398 a4mff0iqlvjn21870nong3g21r Query : use flama_phc
20240613@081614.6401 a4mff0iqlvjn21870nong3g21r Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@081614.6417 a4mff0iqlvjn21870nong3g21r Query : use flama_phc
20240613@081614.6419 a4mff0iqlvjn21870nong3g21r Query : select no, estab,szadrsdesc from szadrs where u_coddest=210
20240613@081614.6502 a4mff0iqlvjn21870nong3g21r 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'
20240613@081614.6656 a4mff0iqlvjn21870nong3g21r Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404069 and bi.ref ='324.1879.00.1' and bi.lordem =2
20240613@081614.6969 a4mff0iqlvjn21870nong3g21r 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'
20240613@081614.7117 a4mff0iqlvjn21870nong3g21r Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404069 and bi.ref ='304.421.00.04' and bi.lordem =3
20240613@081614.7446 a4mff0iqlvjn21870nong3g21r 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'
20240613@081614.7456 a4mff0iqlvjn21870nong3g21r Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404069 and bi.ref ='324.1879.00.1' and bi.lordem =4
20240613@081614.7777 a4mff0iqlvjn21870nong3g21r Query : use flama_phc
20240613@081614.7781 a4mff0iqlvjn21870nong3g21r Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@081614.7794 a4mff0iqlvjn21870nong3g21r Query : use flama_phc
20240613@081614.7797 a4mff0iqlvjn21870nong3g21r Query : select top 1 1 valor from td where td.ndoc = 39
20240613@081614.7808 a4mff0iqlvjn21870nong3g21r Query : use flama_phc
20240613@081614.7810 a4mff0iqlvjn21870nong3g21r 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')
20240613@081614.8274 f5s3h97hr925keje84jagu2s2k Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@081614.8288 f5s3h97hr925keje84jagu2s2k Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@081614.8303 f5s3h97hr925keje84jagu2s2k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='363';
20240613@081614.8337 f5s3h97hr925keje84jagu2s2k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='363';
20240613@081614.8349 f5s3h97hr925keje84jagu2s2k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='363';
20240613@081614.8360 f5s3h97hr925keje84jagu2s2k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='363';
20240613@081614.8372 f5s3h97hr925keje84jagu2s2k Query : use flama_phc
20240613@081614.8375 f5s3h97hr925keje84jagu2s2k Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@081614.8390 f5s3h97hr925keje84jagu2s2k Query : use flama_phc
20240613@081614.8393 f5s3h97hr925keje84jagu2s2k Query : select no, estab,szadrsdesc from szadrs where u_coddest=1086
20240613@081614.8468 f5s3h97hr925keje84jagu2s2k 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'
20240613@081614.8617 f5s3h97hr925keje84jagu2s2k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404073 and bi.ref ='324.1884.00.1' and bi.lordem =1
20240613@081614.8941 f5s3h97hr925keje84jagu2s2k 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'
20240613@081614.9161 f5s3h97hr925keje84jagu2s2k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404073 and bi.ref ='324.1803.00.1' and bi.lordem =2
20240613@081614.9616 f5s3h97hr925keje84jagu2s2k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2203.00.1'
20240613@081614.9795 f5s3h97hr925keje84jagu2s2k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404073 and bi.ref ='324.2203.00.1' and bi.lordem =3
20240613@081615.3160 f5s3h97hr925keje84jagu2s2k 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'
20240613@081615.5080 f5s3h97hr925keje84jagu2s2k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404073 and bi.ref ='304.422.00.07' and bi.lordem =4
20240613@081615.1161 f5s3h97hr925keje84jagu2s2k 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'
20240613@081615.1322 f5s3h97hr925keje84jagu2s2k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404073 and bi.ref ='304.4320.00.1' and bi.lordem =5
20240613@081615.1642 f5s3h97hr925keje84jagu2s2k 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'
20240613@081615.1816 f5s3h97hr925keje84jagu2s2k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404073 and bi.ref ='304.4211.00.1' and bi.lordem =7
20240613@081615.2135 f5s3h97hr925keje84jagu2s2k 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'
20240613@081615.2310 f5s3h97hr925keje84jagu2s2k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404073 and bi.ref ='324.1608.00.1' and bi.lordem =8
20240613@081615.2630 f5s3h97hr925keje84jagu2s2k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5361.00.1'
20240613@081615.2776 f5s3h97hr925keje84jagu2s2k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404073 and bi.ref ='324.5361.00.1' and bi.lordem =9
20240613@081615.3472 f5s3h97hr925keje84jagu2s2k Query : use flama_phc
20240613@081615.3515 f5s3h97hr925keje84jagu2s2k Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@081615.3577 f5s3h97hr925keje84jagu2s2k Query : use flama_phc
20240613@081615.3580 f5s3h97hr925keje84jagu2s2k Query : select top 1 1 valor from td where td.ndoc = 39
20240613@081615.3591 f5s3h97hr925keje84jagu2s2k Query : use flama_phc
20240613@081615.3594 f5s3h97hr925keje84jagu2s2k 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')
20240613@081615.4829 ifr69ncbhn99ho8fbn7go105v7 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@081615.5187 ifr69ncbhn99ho8fbn7go105v7 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@081615.5416 ifr69ncbhn99ho8fbn7go105v7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='364';
20240613@081615.5493 ifr69ncbhn99ho8fbn7go105v7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='364';
20240613@081615.5572 ifr69ncbhn99ho8fbn7go105v7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='364';
20240613@081615.5784 ifr69ncbhn99ho8fbn7go105v7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='364';
20240613@081615.5868 ifr69ncbhn99ho8fbn7go105v7 Query : use flama_phc
20240613@081615.5909 ifr69ncbhn99ho8fbn7go105v7 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@081615.6121 ifr69ncbhn99ho8fbn7go105v7 Query : use flama_phc
20240613@081615.6160 ifr69ncbhn99ho8fbn7go105v7 Query : select no, estab,szadrsdesc from szadrs where u_coddest=760
20240613@081615.6741 ifr69ncbhn99ho8fbn7go105v7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1536.00.1'
20240613@081615.7721 ifr69ncbhn99ho8fbn7go105v7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404074 and bi.ref ='324.1536.00.1' and bi.lordem =1
20240613@081615.8406 ifr69ncbhn99ho8fbn7go105v7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1536.00.1'
20240613@081615.8613 ifr69ncbhn99ho8fbn7go105v7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404074 and bi.ref ='324.1536.00.1' and bi.lordem =2
20240613@081615.9230 ifr69ncbhn99ho8fbn7go105v7 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'
20240613@081615.9577 ifr69ncbhn99ho8fbn7go105v7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404074 and bi.ref ='324.1528.00.1' and bi.lordem =3
20240613@081616.2450 ifr69ncbhn99ho8fbn7go105v7 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'
20240613@081616.7890 ifr69ncbhn99ho8fbn7go105v7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404074 and bi.ref ='324.5396.00.1' and bi.lordem =4
20240613@081616.1465 ifr69ncbhn99ho8fbn7go105v7 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'
20240613@081616.1816 ifr69ncbhn99ho8fbn7go105v7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404074 and bi.ref ='324.1406.00.1' and bi.lordem =6
20240613@081616.2451 ifr69ncbhn99ho8fbn7go105v7 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'
20240613@081616.3432 ifr69ncbhn99ho8fbn7go105v7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404074 and bi.ref ='324.5343.00.1' and bi.lordem =7
20240613@081616.4030 ifr69ncbhn99ho8fbn7go105v7 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.5347.00.1'
20240613@081616.4727 ifr69ncbhn99ho8fbn7go105v7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404074 and bi.ref ='324.5347.00.1' and bi.lordem =8
20240613@081616.5678 ifr69ncbhn99ho8fbn7go105v7 Query : use flama_phc
20240613@081616.5719 ifr69ncbhn99ho8fbn7go105v7 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@081616.5933 ifr69ncbhn99ho8fbn7go105v7 Query : use flama_phc
20240613@081616.5972 ifr69ncbhn99ho8fbn7go105v7 Query : select top 1 1 valor from td where td.ndoc = 39
20240613@081616.5986 ifr69ncbhn99ho8fbn7go105v7 Query : use flama_phc
20240613@081616.6029 ifr69ncbhn99ho8fbn7go105v7 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')
20240613@081616.6671 qhll9ejfn285kfcvkeshg48hrp Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@081616.6684 qhll9ejfn285kfcvkeshg48hrp Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@081616.6700 qhll9ejfn285kfcvkeshg48hrp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='365';
20240613@081616.6738 qhll9ejfn285kfcvkeshg48hrp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='365';
20240613@081616.6750 qhll9ejfn285kfcvkeshg48hrp Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='365';
20240613@081616.6764 qhll9ejfn285kfcvkeshg48hrp Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='365';
20240613@081616.6776 qhll9ejfn285kfcvkeshg48hrp Query : use flama_phc
20240613@081616.6779 qhll9ejfn285kfcvkeshg48hrp Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@081616.6794 qhll9ejfn285kfcvkeshg48hrp Query : use flama_phc
20240613@081616.6797 qhll9ejfn285kfcvkeshg48hrp Query : select no, estab,szadrsdesc from szadrs where u_coddest=878
20240613@081616.6885 qhll9ejfn285kfcvkeshg48hrp 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'
20240613@081616.7048 qhll9ejfn285kfcvkeshg48hrp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404075 and bi.ref ='324.4840.00.1' and bi.lordem =1
20240613@081616.7404 qhll9ejfn285kfcvkeshg48hrp 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'
20240613@081616.8207 qhll9ejfn285kfcvkeshg48hrp Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404075 and bi.ref ='324.642.00.01' and bi.lordem =3
20240613@081616.8883 qhll9ejfn285kfcvkeshg48hrp Query : use flama_phc
20240613@081616.8887 qhll9ejfn285kfcvkeshg48hrp Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@081616.8901 qhll9ejfn285kfcvkeshg48hrp Query : use flama_phc
20240613@081616.8904 qhll9ejfn285kfcvkeshg48hrp Query : select top 1 1 valor from td where td.ndoc = 39
20240613@081616.8916 qhll9ejfn285kfcvkeshg48hrp Query : use flama_phc
20240613@081616.8919 qhll9ejfn285kfcvkeshg48hrp 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')
20240613@081616.9608 po5m2hmc0c5utbgue1n9517mgh Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@081616.9621 po5m2hmc0c5utbgue1n9517mgh Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@081616.9639 po5m2hmc0c5utbgue1n9517mgh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='366';
20240613@081616.9704 po5m2hmc0c5utbgue1n9517mgh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='366';
20240613@081616.9720 po5m2hmc0c5utbgue1n9517mgh Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='366';
20240613@081616.9735 po5m2hmc0c5utbgue1n9517mgh Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='366';
20240613@081616.9747 po5m2hmc0c5utbgue1n9517mgh Query : use flama_phc
20240613@081616.9750 po5m2hmc0c5utbgue1n9517mgh Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@081616.9766 po5m2hmc0c5utbgue1n9517mgh Query : use flama_phc
20240613@081616.9769 po5m2hmc0c5utbgue1n9517mgh Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@081616.9801 po5m2hmc0c5utbgue1n9517mgh Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1684.00.1'
20240613@081616.9965 po5m2hmc0c5utbgue1n9517mgh Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404084 and bi.ref ='324.1684.00.1' and bi.lordem =1
20240613@081617.3140 po5m2hmc0c5utbgue1n9517mgh Query : use flama_phc
20240613@081617.3170 po5m2hmc0c5utbgue1n9517mgh Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@081617.3310 po5m2hmc0c5utbgue1n9517mgh Query : use flama_phc
20240613@081617.3340 po5m2hmc0c5utbgue1n9517mgh Query : select top 1 1 valor from td where td.ndoc = 39
20240613@081617.3460 po5m2hmc0c5utbgue1n9517mgh Query : use flama_phc
20240613@081617.3490 po5m2hmc0c5utbgue1n9517mgh 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')
20240613@081912.5232 4ococ5npjp600v50p46pmnvb0t Query : use flama_phc
20240613@081912.5255 4ococ5npjp600v50p46pmnvb0t Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@081912.5319 4ococ5npjp600v50p46pmnvb0t Query : use flama_phc
20240613@081912.5322 4ococ5npjp600v50p46pmnvb0t Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@083612.1395 gle0ii871oojgt5e58s07655nm Query : use flama_phc
20240613@083612.1400 gle0ii871oojgt5e58s07655nm Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@083612.1423 gle0ii871oojgt5e58s07655nm Query : use flama_phc
20240613@083612.1426 gle0ii871oojgt5e58s07655nm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@084410.3835 pg9kusu2do4p5i2g8eq4u1ndh7 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@084410.3851 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@084410.3868 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='367';
20240613@084410.3908 pg9kusu2do4p5i2g8eq4u1ndh7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='367';
20240613@084410.3920 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='367';
20240613@084410.3931 pg9kusu2do4p5i2g8eq4u1ndh7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='367';
20240613@084410.3942 pg9kusu2do4p5i2g8eq4u1ndh7 Query : use flama_phc
20240613@084410.3945 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@084410.3960 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2066.00.1'
20240613@084410.4076 pg9kusu2do4p5i2g8eq4u1ndh7 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 = 2400051 and bi.ref ='324.2066.00.1' and bi.lordem =10000
20240613@084410.4472 pg9kusu2do4p5i2g8eq4u1ndh7 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 = 'cps24011360966,423000004 ' 
20240613@084410.4814 pg9kusu2do4p5i2g8eq4u1ndh7 Query : use flama_phc
20240613@084410.4817 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select top 1 1 valor from ts where ts.ndos = 61
20240613@084410.4901 pg9kusu2do4p5i2g8eq4u1ndh7 Query : use flama_phc
20240613@084410.4904 pg9kusu2do4p5i2g8eq4u1ndh7 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')
20240613@084410.4922 pg9kusu2do4p5i2g8eq4u1ndh7 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
20240613@084410.5073 pg9kusu2do4p5i2g8eq4u1ndh7 Query : use flama_phc
20240613@084410.5076 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select top 1 ~inactivo valor from fl where no = '202358' and estab = 00 order by inactivo desc
20240613@084410.5167 pg9kusu2do4p5i2g8eq4u1ndh7 Query : use flama_phc
20240613@084410.5170 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select 1 valor from ts where ndos = 61
20240613@084410.5256 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240613@084410.5636 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240613@084410.5703 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240613@084410.5717 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240613@084410.5724 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240613@084410.5736 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240613@084410.5743 pg9kusu2do4p5i2g8eq4u1ndh7 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
20240613@084410.5873 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240613@084410.6236 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240613@084410.6256 pg9kusu2do4p5i2g8eq4u1ndh7 Query : use flama_phc
20240613@084410.6259 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202358' and estab=00
20240613@084410.6350 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240613@084410.6364 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240613@084410.6401 pg9kusu2do4p5i2g8eq4u1ndh7 Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut666aa26871666aa34a98',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240613@084410.6457 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240613@084410.6471 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240613@084410.6478 pg9kusu2do4p5i2g8eq4u1ndh7 Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut666aa26871666aa34a98','--','bo',7.4149659863945578231 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240613@084410.6684 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240613@084410.6699 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240613@084410.6707 pg9kusu2do4p5i2g8eq4u1ndh7 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 ('aut666aa26871666aa34a98','guia r. fornecedor','2024-06-13',61,2401689,?,?,?,?,?,?,?,?,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')
20240613@084411.5686 pg9kusu2do4p5i2g8eq4u1ndh7 Query : use flama_phc
20240613@084411.5691 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select st.usalote valor from st where st.ref = '324.2066.00.1'
20240613@084411.5810 pg9kusu2do4p5i2g8eq4u1ndh7 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.2066.00.1'
20240613@084411.5962 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240613@084411.5976 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240613@084411.5988 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240613@084411.6032 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240613@084411.6042 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select sestamp valor from se where ref ='324.2066.00.1' and lote = 'r2400051100a'
20240613@084411.6099 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240613@084411.6135 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240613@084411.6145 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240613@084411.6159 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240613@084411.6166 pg9kusu2do4p5i2g8eq4u1ndh7 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut666aa19814666aa34b96',?,?,'20240613',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240613@084411.6790 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240613@084411.6834 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240613@084411.6848 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240613@084411.6857 pg9kusu2do4p5i2g8eq4u1ndh7 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut666aa76622666aa34ba6','aut666aa26871666aa34a98',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 = 'aut666aa26871666aa34a98'
20240613@084411.7048 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240613@084411.7066 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240613@084411.7078 pg9kusu2do4p5i2g8eq4u1ndh7 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 'aut666aa76622666aa34ba6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 3000, 3000*.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 ,14.7,14.7*200.48,14.7,14.7*200.48 ,0,0,'un ',' ' ,bo.marcada,1 ,14.7*3000,14.7*3000*200.48 ,14.721000,14.721000*200.48 ,14.721000,14.721000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,14.7,14.7*200.48,14.7*3000,14.7*3000*200.48,'cps24011360966,423000004 ',109,109*3000,109,109*3000,?,?,?,4 from bo bo where bo.bostamp = 'aut666aa26871666aa34a98'
20240613@084429.4026 pg9kusu2do4p5i2g8eq4u1ndh7 Query : use flama_phc
20240613@084429.4032 pg9kusu2do4p5i2g8eq4u1ndh7 Query : declare @bostamp varchar(25) = 'aut666aa26871666aa34a98' ,@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 
20240613@084443.4295 pg9kusu2do4p5i2g8eq4u1ndh7 Query : use flama_phc
20240613@084443.4299 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select 1 valor from bo where bo.bostamp = 'aut666aa26871666aa34a98'
20240613@084443.4410 pg9kusu2do4p5i2g8eq4u1ndh7 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) = 'aut666aa26871666aa34a98' 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 
20240613@084445.9497 pg9kusu2do4p5i2g8eq4u1ndh7 Query : use flama_phc
20240613@084445.9501 pg9kusu2do4p5i2g8eq4u1ndh7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@084445.9515 pg9kusu2do4p5i2g8eq4u1ndh7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='367';
20240613@084445.9531 pg9kusu2do4p5i2g8eq4u1ndh7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='367';
20240613@091924.1113 pmfsf5791k2p1alo3nscsk75i4 Query : use flama_phc
20240613@091924.1118 pmfsf5791k2p1alo3nscsk75i4 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@091924.1170 pmfsf5791k2p1alo3nscsk75i4 Query : use flama_phc
20240613@091924.1173 pmfsf5791k2p1alo3nscsk75i4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@093624.5705 smmjqam5327gr6sfoarglv1l23 Query : use flama_phc
20240613@093624.5710 smmjqam5327gr6sfoarglv1l23 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@093624.5728 smmjqam5327gr6sfoarglv1l23 Query : use flama_phc
20240613@093624.5731 smmjqam5327gr6sfoarglv1l23 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@095131.4451 5tos16unfprslc3dp5d33jg9bc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@095131.4476 5tos16unfprslc3dp5d33jg9bc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@095131.4519 5tos16unfprslc3dp5d33jg9bc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='368';
20240613@095131.4551 5tos16unfprslc3dp5d33jg9bc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='368';
20240613@095131.4574 5tos16unfprslc3dp5d33jg9bc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='368';
20240613@095131.4586 5tos16unfprslc3dp5d33jg9bc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='368';
20240613@095131.4598 5tos16unfprslc3dp5d33jg9bc Query : use flama_phc
20240613@095131.4601 5tos16unfprslc3dp5d33jg9bc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@095131.4646 5tos16unfprslc3dp5d33jg9bc Query : use flama_phc
20240613@095131.4649 5tos16unfprslc3dp5d33jg9bc Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20240613@095131.4723 5tos16unfprslc3dp5d33jg9bc 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'
20240613@095131.4912 5tos16unfprslc3dp5d33jg9bc Query : use flama_phc
20240613@095131.4915 5tos16unfprslc3dp5d33jg9bc Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@095131.5082 5tos16unfprslc3dp5d33jg9bc Query : use flama_phc
20240613@095131.5085 5tos16unfprslc3dp5d33jg9bc Query : select top 1 1 valor from td where td.ndoc = 39
20240613@095131.5160 5tos16unfprslc3dp5d33jg9bc Query : use flama_phc
20240613@095131.5162 5tos16unfprslc3dp5d33jg9bc 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')
20240613@095131.5749 2u71ak323q35go8hfmcok5sjk9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@095131.5760 2u71ak323q35go8hfmcok5sjk9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@095131.5775 2u71ak323q35go8hfmcok5sjk9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='369';
20240613@095131.5811 2u71ak323q35go8hfmcok5sjk9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='369';
20240613@095131.5822 2u71ak323q35go8hfmcok5sjk9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='369';
20240613@095131.5833 2u71ak323q35go8hfmcok5sjk9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='369';
20240613@095131.5853 2u71ak323q35go8hfmcok5sjk9 Query : use flama_phc
20240613@095131.5856 2u71ak323q35go8hfmcok5sjk9 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@095131.5869 2u71ak323q35go8hfmcok5sjk9 Query : use flama_phc
20240613@095131.5872 2u71ak323q35go8hfmcok5sjk9 Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20240613@095131.5902 2u71ak323q35go8hfmcok5sjk9 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'
20240613@095131.6043 2u71ak323q35go8hfmcok5sjk9 Query : use flama_phc
20240613@095131.6046 2u71ak323q35go8hfmcok5sjk9 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@095131.6059 2u71ak323q35go8hfmcok5sjk9 Query : use flama_phc
20240613@095131.6062 2u71ak323q35go8hfmcok5sjk9 Query : select top 1 1 valor from td where td.ndoc = 39
20240613@095131.6072 2u71ak323q35go8hfmcok5sjk9 Query : use flama_phc
20240613@095131.6074 2u71ak323q35go8hfmcok5sjk9 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')
20240613@095131.6594 gnb017t8p5os37m6gueunfqb5b Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@095131.6660 gnb017t8p5os37m6gueunfqb5b Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@095131.6991 gnb017t8p5os37m6gueunfqb5b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='370';
20240613@095131.8263 gnb017t8p5os37m6gueunfqb5b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='370';
20240613@095131.8346 gnb017t8p5os37m6gueunfqb5b Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='370';
20240613@095131.8555 gnb017t8p5os37m6gueunfqb5b Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='370';
20240613@095131.8641 gnb017t8p5os37m6gueunfqb5b Query : use flama_phc
20240613@095131.8681 gnb017t8p5os37m6gueunfqb5b Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@095131.8892 gnb017t8p5os37m6gueunfqb5b Query : use flama_phc
20240613@095131.8930 gnb017t8p5os37m6gueunfqb5b Query : select no, estab,szadrsdesc from szadrs where u_coddest=8748
20240613@095131.9157 gnb017t8p5os37m6gueunfqb5b 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'
20240613@095131.9676 gnb017t8p5os37m6gueunfqb5b 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'
20240613@095132.6500 gnb017t8p5os37m6gueunfqb5b 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'
20240613@095132.2840 gnb017t8p5os37m6gueunfqb5b Query : use flama_phc
20240613@095132.3380 gnb017t8p5os37m6gueunfqb5b Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@095132.5590 gnb017t8p5os37m6gueunfqb5b Query : use flama_phc
20240613@095132.6030 gnb017t8p5os37m6gueunfqb5b Query : select top 1 1 valor from td where td.ndoc = 39
20240613@095132.8220 gnb017t8p5os37m6gueunfqb5b Query : use flama_phc
20240613@095132.8660 gnb017t8p5os37m6gueunfqb5b 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')
20240613@101911.9935 1vm79c3tbvq1ftd0gbv8mrs7pm Query : use flama_phc
20240613@101911.9940 1vm79c3tbvq1ftd0gbv8mrs7pm Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@101911.9992 1vm79c3tbvq1ftd0gbv8mrs7pm Query : use flama_phc
20240613@101911.9995 1vm79c3tbvq1ftd0gbv8mrs7pm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@103611.9600 0pcvcu7legu17f73kpfdrgcakr Query : use flama_phc
20240613@103611.9608 0pcvcu7legu17f73kpfdrgcakr Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@103611.9627 0pcvcu7legu17f73kpfdrgcakr Query : use flama_phc
20240613@103611.9630 0pcvcu7legu17f73kpfdrgcakr Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@103654.5740 0d0odrao1f3ddlgdkuabggn78m Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@103654.6020 0d0odrao1f3ddlgdkuabggn78m Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@103654.6460 0d0odrao1f3ddlgdkuabggn78m Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='371';
20240613@103654.6840 0d0odrao1f3ddlgdkuabggn78m Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='371';
20240613@103654.7080 0d0odrao1f3ddlgdkuabggn78m Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='371';
20240613@103654.7210 0d0odrao1f3ddlgdkuabggn78m Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='371';
20240613@103654.7330 0d0odrao1f3ddlgdkuabggn78m Query : use flama_phc
20240613@103654.7360 0d0odrao1f3ddlgdkuabggn78m Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@103654.7880 0d0odrao1f3ddlgdkuabggn78m Query : use flama_phc
20240613@103654.7920 0d0odrao1f3ddlgdkuabggn78m Query : select no, estab,szadrsdesc from szadrs where u_coddest=00000
20240613@103654.3620 0d0odrao1f3ddlgdkuabggn78m 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'
20240613@103654.3812 0d0odrao1f3ddlgdkuabggn78m 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'
20240613@103654.3822 0d0odrao1f3ddlgdkuabggn78m Query : use flama_phc
20240613@103654.3825 0d0odrao1f3ddlgdkuabggn78m Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@103654.4158 0d0odrao1f3ddlgdkuabggn78m Query : use flama_phc
20240613@103654.4161 0d0odrao1f3ddlgdkuabggn78m Query : select top 1 1 valor from td where td.ndoc = 39
20240613@103654.4247 0d0odrao1f3ddlgdkuabggn78m Query : use flama_phc
20240613@103654.4250 0d0odrao1f3ddlgdkuabggn78m 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')
20240613@111911.6249 183fndl8cchbtdm7bf0117vp5s Query : use flama_phc
20240613@111911.6254 183fndl8cchbtdm7bf0117vp5s Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@111911.6273 183fndl8cchbtdm7bf0117vp5s Query : use flama_phc
20240613@111911.6277 183fndl8cchbtdm7bf0117vp5s Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@113611.7351 7aee0bd9kg0ri7as200mg8ptb2 Query : use flama_phc
20240613@113611.7394 7aee0bd9kg0ri7as200mg8ptb2 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@113611.7629 7aee0bd9kg0ri7as200mg8ptb2 Query : use flama_phc
20240613@113611.7668 7aee0bd9kg0ri7as200mg8ptb2 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@120655.4480 dr7glvp94cgrlr4rp1mt28fmip Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@120655.4660 dr7glvp94cgrlr4rp1mt28fmip Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@120655.4830 dr7glvp94cgrlr4rp1mt28fmip Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='372';
20240613@120655.5300 dr7glvp94cgrlr4rp1mt28fmip Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='372';
20240613@120655.5430 dr7glvp94cgrlr4rp1mt28fmip Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='372';
20240613@120655.5540 dr7glvp94cgrlr4rp1mt28fmip Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='372';
20240613@120655.2006 vg9kk1qlqbg8fveai3renikopu Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@120655.2019 vg9kk1qlqbg8fveai3renikopu Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@120655.2036 vg9kk1qlqbg8fveai3renikopu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='373';
20240613@120655.2079 vg9kk1qlqbg8fveai3renikopu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='373';
20240613@120655.2091 vg9kk1qlqbg8fveai3renikopu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='373';
20240613@120655.2103 vg9kk1qlqbg8fveai3renikopu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='373';
20240613@120655.2115 vg9kk1qlqbg8fveai3renikopu Query : use flama_phc
20240613@120655.2118 vg9kk1qlqbg8fveai3renikopu Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@120655.2133 vg9kk1qlqbg8fveai3renikopu Query : select no, estab,szadrsdesc from szadrs where u_coddest=2
20240613@120655.2384 vg9kk1qlqbg8fveai3renikopu Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.2066.00.1'
20240613@120655.2508 vg9kk1qlqbg8fveai3renikopu Query : use flama_phc
20240613@120655.2512 vg9kk1qlqbg8fveai3renikopu Query : select top 1 1 valor from ts where ts.ndos = 5
20240613@120655.2580 vg9kk1qlqbg8fveai3renikopu Query : use flama_phc
20240613@120655.2583 vg9kk1qlqbg8fveai3renikopu 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')
20240613@120655.2603 vg9kk1qlqbg8fveai3renikopu 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
20240613@120655.2725 vg9kk1qlqbg8fveai3renikopu Query : use flama_phc
20240613@120655.2728 vg9kk1qlqbg8fveai3renikopu Query : select top 1 ~inactivo valor from fl where no = '100500' and estab = 0 order by inactivo desc
20240613@120655.2805 vg9kk1qlqbg8fveai3renikopu Query : use flama_phc
20240613@120655.2808 vg9kk1qlqbg8fveai3renikopu Query : select szadrsstamp valor from szadrs where szadrsdesc='espaÇotrans,lda'
20240613@120655.2847 vg9kk1qlqbg8fveai3renikopu Query : use flama_phc
20240613@120655.2850 vg9kk1qlqbg8fveai3renikopu Query : select szadrsstamp valor from szadrs where szadrsdesc='n/instalaÇÕes sede'
20240613@120655.2866 vg9kk1qlqbg8fveai3renikopu Query : use flama_phc
20240613@120655.2869 vg9kk1qlqbg8fveai3renikopu Query : select 1 valor from ts where ndos = 5
20240613@120655.2932 vg9kk1qlqbg8fveai3renikopu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240613@120655.3251 vg9kk1qlqbg8fveai3renikopu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 5
20240613@120655.3314 vg9kk1qlqbg8fveai3renikopu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240613@120655.3329 vg9kk1qlqbg8fveai3renikopu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 5
20240613@120655.3336 vg9kk1qlqbg8fveai3renikopu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240613@120655.3348 vg9kk1qlqbg8fveai3renikopu Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 5
20240613@120655.3354 vg9kk1qlqbg8fveai3renikopu 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 = 5
20240613@120655.3473 vg9kk1qlqbg8fveai3renikopu Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 5 and boano=2024 order by obrano desc
20240613@120655.3579 vg9kk1qlqbg8fveai3renikopu Query : select top 1 bo.obrano valor from wsbodata bo where bo.ndos = 5 and boano=2024 order by obrano desc
20240613@120655.3638 vg9kk1qlqbg8fveai3renikopu Query : use flama_phc
20240613@120655.3641 vg9kk1qlqbg8fveai3renikopu Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='100500' and estab=0
20240613@120655.3718 vg9kk1qlqbg8fveai3renikopu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240613@120655.3732 vg9kk1qlqbg8fveai3renikopu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 5
20240613@120655.3764 vg9kk1qlqbg8fveai3renikopu Query : insert into wsbo3data (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut666ad29326666ad2cf58',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240613@120655.3826 vg9kk1qlqbg8fveai3renikopu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240613@120655.3840 vg9kk1qlqbg8fveai3renikopu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 5
20240613@120655.3847 vg9kk1qlqbg8fveai3renikopu Query : insert into wsbo2data (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,xpddata,xpdhora,carga,descar) values ('aut666ad29326666ad2cf58','ga','bo',0 ,0,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut','20240613','12:36',?,?)
20240613@120655.4165 vg9kk1qlqbg8fveai3renikopu Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240613@120655.4180 vg9kk1qlqbg8fveai3renikopu Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 5
20240613@120655.4193 vg9kk1qlqbg8fveai3renikopu Query : insert into wsbodata (bostamp, nmdos, dataobra, ndos, obrano, no, estab, nome, ncont, morada, local, codpost, moeda, boano, memissao,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis,maquina ) values ('aut666ad29326666ad2cf58','trf entre armazéns a','2024-06-13',5,317,?,?,?,?,?,?,?,?,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',?)
20240613@120655.4839 vg9kk1qlqbg8fveai3renikopu Query : use flama_phc
20240613@120655.4843 vg9kk1qlqbg8fveai3renikopu Query : select st.usalote valor from st where st.ref = '324.2066.00.1'
20240613@120655.4964 vg9kk1qlqbg8fveai3renikopu Query : use flama_phc
20240613@120655.4967 vg9kk1qlqbg8fveai3renikopu Query : select st.stns valor from st where st.ref = '324.2066.00.1'
20240613@120655.5059 vg9kk1qlqbg8fveai3renikopu Query : use flama_phc
20240613@120655.5061 vg9kk1qlqbg8fveai3renikopu Query : select isnull(sum(stock) ,0)stock ,isnull(sum(qttrec),0) qttrec ,0 qttcat ,isnull(sum(rescli),0) rescli ,isnull(sum(resfor),0) resfor from sa where sa.ref = '324.2066.00.1' and sa.armazem = 133 
20240613@120655.5113 vg9kk1qlqbg8fveai3renikopu Query : use flama_phc
20240613@120655.5116 vg9kk1qlqbg8fveai3renikopu Query : select st.stns valor from st where st.ref = '324.2066.00.1'
20240613@120655.5132 vg9kk1qlqbg8fveai3renikopu Query : use flama_phc
20240613@120655.5135 vg9kk1qlqbg8fveai3renikopu Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -1050
20240613@120655.5237 vg9kk1qlqbg8fveai3renikopu Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='373';
20240613@120655.6483 vg9kk1qlqbg8fveai3renikopu Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='373';
20240613@121919.5600 t9pc1dg5mb1i3jijio8peu3oks Query : use flama_phc
20240613@121919.5605 t9pc1dg5mb1i3jijio8peu3oks Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@121919.5624 t9pc1dg5mb1i3jijio8peu3oks Query : use flama_phc
20240613@121919.5627 t9pc1dg5mb1i3jijio8peu3oks Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@123619.7146 msa6illef22dufrrm4so798b8f Query : use flama_phc
20240613@123619.7151 msa6illef22dufrrm4so798b8f Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@123619.7169 msa6illef22dufrrm4so798b8f Query : use flama_phc
20240613@123619.7172 msa6illef22dufrrm4so798b8f Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@131914.6259 pvvhpdk6bprfcigb4t9fomk76e Query : use flama_phc
20240613@131914.6265 pvvhpdk6bprfcigb4t9fomk76e Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@131914.6284 pvvhpdk6bprfcigb4t9fomk76e Query : use flama_phc
20240613@131914.6288 pvvhpdk6bprfcigb4t9fomk76e Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@133614.5180 smnq3bir5snnegoltv8hnnreva Query : use flama_phc
20240613@133614.5188 smnq3bir5snnegoltv8hnnreva Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@133614.5209 smnq3bir5snnegoltv8hnnreva Query : use flama_phc
20240613@133614.5213 smnq3bir5snnegoltv8hnnreva Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@141916.8437 ml0pi2e1vuf1n2f3ng4cul57vg Query : use flama_phc
20240613@141916.8441 ml0pi2e1vuf1n2f3ng4cul57vg Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@141916.8507 ml0pi2e1vuf1n2f3ng4cul57vg Query : use flama_phc
20240613@141916.8510 ml0pi2e1vuf1n2f3ng4cul57vg Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@143616.6208 l5t6e88a41pjulhdi66os7iibn Query : use flama_phc
20240613@143616.6213 l5t6e88a41pjulhdi66os7iibn Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@143616.6230 l5t6e88a41pjulhdi66os7iibn Query : use flama_phc
20240613@143616.6233 l5t6e88a41pjulhdi66os7iibn Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@151911.7221 6ipt04kpv2nn5s7hofpv01lhdq Query : use flama_phc
20240613@151911.7226 6ipt04kpv2nn5s7hofpv01lhdq Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@151911.7243 6ipt04kpv2nn5s7hofpv01lhdq Query : use flama_phc
20240613@151911.7246 6ipt04kpv2nn5s7hofpv01lhdq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@153611.9386 k0a1846vmctihvtglia0lgann8 Query : use flama_phc
20240613@153611.9400 k0a1846vmctihvtglia0lgann8 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@153611.9516 k0a1846vmctihvtglia0lgann8 Query : use flama_phc
20240613@153611.9539 k0a1846vmctihvtglia0lgann8 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@153757.6818 rkeddc6f0t1kt8g4b7aqm41g62 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@153757.6844 rkeddc6f0t1kt8g4b7aqm41g62 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@153757.6920 rkeddc6f0t1kt8g4b7aqm41g62 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='374';
20240613@153757.6958 rkeddc6f0t1kt8g4b7aqm41g62 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='374';
20240613@153757.6971 rkeddc6f0t1kt8g4b7aqm41g62 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='374';
20240613@153757.6985 rkeddc6f0t1kt8g4b7aqm41g62 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='374';
20240613@153757.7805 rras0njslhvkg4emj2a11q1aco Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@153757.7821 rras0njslhvkg4emj2a11q1aco Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@153757.7838 rras0njslhvkg4emj2a11q1aco Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='375';
20240613@153757.7877 rras0njslhvkg4emj2a11q1aco Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='375';
20240613@153757.7891 rras0njslhvkg4emj2a11q1aco Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='375';
20240613@153757.7903 rras0njslhvkg4emj2a11q1aco Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='375';
20240613@153757.7915 rras0njslhvkg4emj2a11q1aco Query : use flama_phc
20240613@153757.7918 rras0njslhvkg4emj2a11q1aco Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@153757.7966 rras0njslhvkg4emj2a11q1aco Query : select no, estab,szadrsdesc from szadrs where u_coddest=2260
20240613@153757.8726 rras0njslhvkg4emj2a11q1aco Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.4006.00.2'
20240613@153757.8847 rras0njslhvkg4emj2a11q1aco 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 = 0001333 and bi.ref ='304.4006.00.2' and bi.lordem =10000
20240613@153757.9213 rras0njslhvkg4emj2a11q1aco 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 = 'adm24061353076,191000001 ' 
20240613@153757.9531 rras0njslhvkg4emj2a11q1aco Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.4006.00.2'
20240613@153757.9545 rras0njslhvkg4emj2a11q1aco 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 = 0001333 and bi.ref ='304.4006.00.2' and bi.lordem =10000
20240613@153757.9559 rras0njslhvkg4emj2a11q1aco 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 = 'adm24061353076,191000001 ' 
20240613@153757.9576 rras0njslhvkg4emj2a11q1aco Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '304.4006.00.2'
20240613@153757.9589 rras0njslhvkg4emj2a11q1aco 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 = 0001333 and bi.ref ='304.4006.00.2' and bi.lordem =10000
20240613@153757.9602 rras0njslhvkg4emj2a11q1aco 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 = 'adm24061353076,191000001 ' 
20240613@153757.9616 rras0njslhvkg4emj2a11q1aco Query : use flama_phc
20240613@153757.9620 rras0njslhvkg4emj2a11q1aco Query : select top 1 1 valor from ts where ts.ndos = 5
20240613@153757.9639 rras0njslhvkg4emj2a11q1aco Query : use flama_phc
20240613@153757.9641 rras0njslhvkg4emj2a11q1aco 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')
20240613@153757.9709 rras0njslhvkg4emj2a11q1aco 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
20240613@153757.9739 rras0njslhvkg4emj2a11q1aco Query : use flama_phc
20240613@153757.9752 rras0njslhvkg4emj2a11q1aco Query : use flama_phc
20240613@153757.9759 rras0njslhvkg4emj2a11q1aco Query : select top 1 errorresult result ,errornumber errornumber ,descriptionpt description ,isnull(descriptionen,'') descriptionen ,isnull(descriptionfr,'') descriptionfr from wserrorcodes where errornumber = -230
20240613@153757.9829 rras0njslhvkg4emj2a11q1aco Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='375';
20240613@153757.9847 rras0njslhvkg4emj2a11q1aco Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='375';
20240613@161916.3904 hslmol3agng5eb5h3u1hjd33mm Query : use flama_phc
20240613@161916.3952 hslmol3agng5eb5h3u1hjd33mm Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@161916.4225 hslmol3agng5eb5h3u1hjd33mm Query : use flama_phc
20240613@161916.4274 hslmol3agng5eb5h3u1hjd33mm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@163616.6670 nspavg12ikjjeal20oecv99lur Query : use flama_phc
20240613@163616.6675 nspavg12ikjjeal20oecv99lur Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@163616.6695 nspavg12ikjjeal20oecv99lur Query : use flama_phc
20240613@163616.6698 nspavg12ikjjeal20oecv99lur Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@171913.5866 v57b7g74cik43esomrdu7u0834 Query : use flama_phc
20240613@171913.5874 v57b7g74cik43esomrdu7u0834 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@171913.5891 v57b7g74cik43esomrdu7u0834 Query : use flama_phc
20240613@171913.5894 v57b7g74cik43esomrdu7u0834 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@173614.1382 6lnukvcfjtq8f3ttvu5ljk1uk6 Query : use flama_phc
20240613@173614.1390 6lnukvcfjtq8f3ttvu5ljk1uk6 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@173614.1408 6lnukvcfjtq8f3ttvu5ljk1uk6 Query : use flama_phc
20240613@173614.1410 6lnukvcfjtq8f3ttvu5ljk1uk6 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@181922.2817 hgcihol80dcva715ldlctds6m9 Query : use flama_phc
20240613@181922.2823 hgcihol80dcva715ldlctds6m9 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@181922.2842 hgcihol80dcva715ldlctds6m9 Query : use flama_phc
20240613@181922.2845 hgcihol80dcva715ldlctds6m9 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@182237.9844 sgl48ta0eni8556noaj2bh7um9 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182237.9872 sgl48ta0eni8556noaj2bh7um9 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182237.9943 sgl48ta0eni8556noaj2bh7um9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='376';
20240613@182238.2800 sgl48ta0eni8556noaj2bh7um9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='376';
20240613@182238.4700 sgl48ta0eni8556noaj2bh7um9 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='376';
20240613@182238.6000 sgl48ta0eni8556noaj2bh7um9 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='376';
20240613@182238.7100 sgl48ta0eni8556noaj2bh7um9 Query : use flama_phc
20240613@182238.7400 sgl48ta0eni8556noaj2bh7um9 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182238.1280 sgl48ta0eni8556noaj2bh7um9 Query : use flama_phc
20240613@182238.1310 sgl48ta0eni8556noaj2bh7um9 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4743
20240613@182238.2010 sgl48ta0eni8556noaj2bh7um9 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1462.00.1'
20240613@182238.3530 sgl48ta0eni8556noaj2bh7um9 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404079 and bi.ref ='324.1462.00.1' and bi.lordem =1
20240613@182238.6940 sgl48ta0eni8556noaj2bh7um9 Query : use flama_phc
20240613@182238.6970 sgl48ta0eni8556noaj2bh7um9 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182238.8760 sgl48ta0eni8556noaj2bh7um9 Query : use flama_phc
20240613@182238.8790 sgl48ta0eni8556noaj2bh7um9 Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182238.1298 sgl48ta0eni8556noaj2bh7um9 Query : use flama_phc
20240613@182238.1400 sgl48ta0eni8556noaj2bh7um9 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')
20240613@182238.1996 isp6mqcbe5ls520d03fc62611i Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182238.2016 isp6mqcbe5ls520d03fc62611i Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182238.2033 isp6mqcbe5ls520d03fc62611i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='377';
20240613@182238.2074 isp6mqcbe5ls520d03fc62611i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='377';
20240613@182238.2087 isp6mqcbe5ls520d03fc62611i Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='377';
20240613@182238.2098 isp6mqcbe5ls520d03fc62611i Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='377';
20240613@182238.2110 isp6mqcbe5ls520d03fc62611i Query : use flama_phc
20240613@182238.2114 isp6mqcbe5ls520d03fc62611i Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182238.2127 isp6mqcbe5ls520d03fc62611i Query : use flama_phc
20240613@182238.2130 isp6mqcbe5ls520d03fc62611i Query : select no, estab,szadrsdesc from szadrs where u_coddest=4743
20240613@182238.2162 isp6mqcbe5ls520d03fc62611i Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1462.00.1'
20240613@182238.2172 isp6mqcbe5ls520d03fc62611i Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404081 and bi.ref ='324.1462.00.1' and bi.lordem =1
20240613@182238.2532 isp6mqcbe5ls520d03fc62611i Query : use flama_phc
20240613@182238.2535 isp6mqcbe5ls520d03fc62611i Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182238.2549 isp6mqcbe5ls520d03fc62611i Query : use flama_phc
20240613@182238.2552 isp6mqcbe5ls520d03fc62611i Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182238.2562 isp6mqcbe5ls520d03fc62611i Query : use flama_phc
20240613@182238.2564 isp6mqcbe5ls520d03fc62611i 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')
20240613@182238.3040 3bfi2p3t4d42d407j8phsol3q8 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182238.3053 3bfi2p3t4d42d407j8phsol3q8 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182238.3068 3bfi2p3t4d42d407j8phsol3q8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='378';
20240613@182238.3107 3bfi2p3t4d42d407j8phsol3q8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='378';
20240613@182238.3120 3bfi2p3t4d42d407j8phsol3q8 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='378';
20240613@182238.3131 3bfi2p3t4d42d407j8phsol3q8 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='378';
20240613@182238.3144 3bfi2p3t4d42d407j8phsol3q8 Query : use flama_phc
20240613@182238.3147 3bfi2p3t4d42d407j8phsol3q8 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182238.3160 3bfi2p3t4d42d407j8phsol3q8 Query : use flama_phc
20240613@182238.3163 3bfi2p3t4d42d407j8phsol3q8 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4743
20240613@182238.3194 3bfi2p3t4d42d407j8phsol3q8 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1684.00.1'
20240613@182238.3345 3bfi2p3t4d42d407j8phsol3q8 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404082 and bi.ref ='324.1684.00.1' and bi.lordem =1
20240613@182238.3659 3bfi2p3t4d42d407j8phsol3q8 Query : use flama_phc
20240613@182238.3661 3bfi2p3t4d42d407j8phsol3q8 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182238.3674 3bfi2p3t4d42d407j8phsol3q8 Query : use flama_phc
20240613@182238.3676 3bfi2p3t4d42d407j8phsol3q8 Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182238.3686 3bfi2p3t4d42d407j8phsol3q8 Query : use flama_phc
20240613@182238.3688 3bfi2p3t4d42d407j8phsol3q8 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')
20240613@182238.4200 c59p0hnasts074ped7hvmiln2p Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182238.4214 c59p0hnasts074ped7hvmiln2p Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182238.4230 c59p0hnasts074ped7hvmiln2p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='379';
20240613@182238.4269 c59p0hnasts074ped7hvmiln2p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='379';
20240613@182238.4281 c59p0hnasts074ped7hvmiln2p Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='379';
20240613@182238.4292 c59p0hnasts074ped7hvmiln2p Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='379';
20240613@182238.4303 c59p0hnasts074ped7hvmiln2p Query : use flama_phc
20240613@182238.4306 c59p0hnasts074ped7hvmiln2p Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182238.4320 c59p0hnasts074ped7hvmiln2p Query : use flama_phc
20240613@182238.4323 c59p0hnasts074ped7hvmiln2p Query : select no, estab,szadrsdesc from szadrs where u_coddest=1760
20240613@182238.4400 c59p0hnasts074ped7hvmiln2p 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'
20240613@182238.4581 c59p0hnasts074ped7hvmiln2p Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404086 and bi.ref ='324.966.00.01' and bi.lordem =1
20240613@182238.6176 c59p0hnasts074ped7hvmiln2p Query : use flama_phc
20240613@182238.6205 c59p0hnasts074ped7hvmiln2p Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182238.6221 c59p0hnasts074ped7hvmiln2p Query : use flama_phc
20240613@182238.6224 c59p0hnasts074ped7hvmiln2p Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182238.6235 c59p0hnasts074ped7hvmiln2p Query : use flama_phc
20240613@182238.6238 c59p0hnasts074ped7hvmiln2p 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')
20240613@182238.7152 ekd6853v117325q7di1rk6rdod Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182238.7172 ekd6853v117325q7di1rk6rdod Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182238.7191 ekd6853v117325q7di1rk6rdod Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='380';
20240613@182238.7233 ekd6853v117325q7di1rk6rdod Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='380';
20240613@182238.7247 ekd6853v117325q7di1rk6rdod Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='380';
20240613@182238.7260 ekd6853v117325q7di1rk6rdod Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='380';
20240613@182238.7271 ekd6853v117325q7di1rk6rdod Query : use flama_phc
20240613@182238.7274 ekd6853v117325q7di1rk6rdod Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182238.7288 ekd6853v117325q7di1rk6rdod Query : use flama_phc
20240613@182238.7291 ekd6853v117325q7di1rk6rdod Query : select no, estab,szadrsdesc from szadrs where u_coddest=533
20240613@182238.7364 ekd6853v117325q7di1rk6rdod 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'
20240613@182238.7516 ekd6853v117325q7di1rk6rdod Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404087 and bi.ref ='304.4006.00.2' and bi.lordem =1
20240613@182238.7959 ekd6853v117325q7di1rk6rdod Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '304.4005.00.2'
20240613@182238.8115 ekd6853v117325q7di1rk6rdod Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404087 and bi.ref ='304.4005.00.2' and bi.lordem =2
20240613@182238.8450 ekd6853v117325q7di1rk6rdod Query : use flama_phc
20240613@182238.8454 ekd6853v117325q7di1rk6rdod Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182238.8468 ekd6853v117325q7di1rk6rdod Query : use flama_phc
20240613@182238.8471 ekd6853v117325q7di1rk6rdod Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182238.8481 ekd6853v117325q7di1rk6rdod Query : use flama_phc
20240613@182238.8485 ekd6853v117325q7di1rk6rdod 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')
20240613@182238.8959 ig7roqctb1hq0bo5pn8p0n0huo Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182238.8972 ig7roqctb1hq0bo5pn8p0n0huo Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182238.8989 ig7roqctb1hq0bo5pn8p0n0huo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='381';
20240613@182238.9028 ig7roqctb1hq0bo5pn8p0n0huo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='381';
20240613@182238.9040 ig7roqctb1hq0bo5pn8p0n0huo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='381';
20240613@182238.9052 ig7roqctb1hq0bo5pn8p0n0huo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='381';
20240613@182238.9064 ig7roqctb1hq0bo5pn8p0n0huo Query : use flama_phc
20240613@182238.9067 ig7roqctb1hq0bo5pn8p0n0huo Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182238.9081 ig7roqctb1hq0bo5pn8p0n0huo Query : use flama_phc
20240613@182238.9084 ig7roqctb1hq0bo5pn8p0n0huo Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182238.9160 ig7roqctb1hq0bo5pn8p0n0huo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2231.00.1'
20240613@182238.9308 ig7roqctb1hq0bo5pn8p0n0huo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404090 and bi.ref ='324.2231.00.1' and bi.lordem =1
20240613@182238.9682 ig7roqctb1hq0bo5pn8p0n0huo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2231.00.1'
20240613@182238.9692 ig7roqctb1hq0bo5pn8p0n0huo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404090 and bi.ref ='324.2231.00.1' and bi.lordem =1
20240613@182238.9699 ig7roqctb1hq0bo5pn8p0n0huo Query : use flama_phc
20240613@182238.9703 ig7roqctb1hq0bo5pn8p0n0huo Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182238.9715 ig7roqctb1hq0bo5pn8p0n0huo Query : use flama_phc
20240613@182238.9718 ig7roqctb1hq0bo5pn8p0n0huo Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182238.9727 ig7roqctb1hq0bo5pn8p0n0huo Query : use flama_phc
20240613@182238.9730 ig7roqctb1hq0bo5pn8p0n0huo 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')
20240613@182239.2270 gouvffph8ts7dhv72vmolvn46s Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182239.2620 gouvffph8ts7dhv72vmolvn46s Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182239.2800 gouvffph8ts7dhv72vmolvn46s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='382';
20240613@182239.3250 gouvffph8ts7dhv72vmolvn46s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='382';
20240613@182239.3390 gouvffph8ts7dhv72vmolvn46s Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='382';
20240613@182239.3510 gouvffph8ts7dhv72vmolvn46s Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='382';
20240613@182239.3640 gouvffph8ts7dhv72vmolvn46s Query : use flama_phc
20240613@182239.3680 gouvffph8ts7dhv72vmolvn46s Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182239.3830 gouvffph8ts7dhv72vmolvn46s Query : use flama_phc
20240613@182239.3860 gouvffph8ts7dhv72vmolvn46s Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182239.4270 gouvffph8ts7dhv72vmolvn46s 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'
20240613@182239.5890 gouvffph8ts7dhv72vmolvn46s Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404091 and bi.ref ='324.4965.00.1' and bi.lordem =1
20240613@182239.9360 gouvffph8ts7dhv72vmolvn46s 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'
20240613@182239.9470 gouvffph8ts7dhv72vmolvn46s Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404091 and bi.ref ='324.4965.00.1' and bi.lordem =1
20240613@182239.9550 gouvffph8ts7dhv72vmolvn46s Query : use flama_phc
20240613@182239.9580 gouvffph8ts7dhv72vmolvn46s Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182239.9710 gouvffph8ts7dhv72vmolvn46s Query : use flama_phc
20240613@182239.9740 gouvffph8ts7dhv72vmolvn46s Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182239.9850 gouvffph8ts7dhv72vmolvn46s Query : use flama_phc
20240613@182239.9880 gouvffph8ts7dhv72vmolvn46s 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')
20240613@182239.1498 vv6alh8hgrppd3hsudi764otp1 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182239.2649 vv6alh8hgrppd3hsudi764otp1 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182239.2668 vv6alh8hgrppd3hsudi764otp1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='383';
20240613@182239.2708 vv6alh8hgrppd3hsudi764otp1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='383';
20240613@182239.2721 vv6alh8hgrppd3hsudi764otp1 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='383';
20240613@182239.2733 vv6alh8hgrppd3hsudi764otp1 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='383';
20240613@182239.2744 vv6alh8hgrppd3hsudi764otp1 Query : use flama_phc
20240613@182239.2747 vv6alh8hgrppd3hsudi764otp1 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182239.2761 vv6alh8hgrppd3hsudi764otp1 Query : use flama_phc
20240613@182239.2764 vv6alh8hgrppd3hsudi764otp1 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182239.2795 vv6alh8hgrppd3hsudi764otp1 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'
20240613@182239.2950 vv6alh8hgrppd3hsudi764otp1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404092 and bi.ref ='324.4966.00.1' and bi.lordem =1
20240613@182239.3293 vv6alh8hgrppd3hsudi764otp1 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'
20240613@182239.3305 vv6alh8hgrppd3hsudi764otp1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404092 and bi.ref ='324.4966.00.1' and bi.lordem =1
20240613@182239.3312 vv6alh8hgrppd3hsudi764otp1 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'
20240613@182239.3322 vv6alh8hgrppd3hsudi764otp1 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404092 and bi.ref ='324.4966.00.1' and bi.lordem =2
20240613@182239.3653 vv6alh8hgrppd3hsudi764otp1 Query : use flama_phc
20240613@182239.3656 vv6alh8hgrppd3hsudi764otp1 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182239.3669 vv6alh8hgrppd3hsudi764otp1 Query : use flama_phc
20240613@182239.3672 vv6alh8hgrppd3hsudi764otp1 Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182239.3682 vv6alh8hgrppd3hsudi764otp1 Query : use flama_phc
20240613@182239.3685 vv6alh8hgrppd3hsudi764otp1 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')
20240613@182239.4175 eaobi3ca4gg19ern7ojqa5vcb3 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182239.4190 eaobi3ca4gg19ern7ojqa5vcb3 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182239.4207 eaobi3ca4gg19ern7ojqa5vcb3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='384';
20240613@182239.4248 eaobi3ca4gg19ern7ojqa5vcb3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='384';
20240613@182239.4263 eaobi3ca4gg19ern7ojqa5vcb3 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='384';
20240613@182239.4274 eaobi3ca4gg19ern7ojqa5vcb3 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='384';
20240613@182239.4286 eaobi3ca4gg19ern7ojqa5vcb3 Query : use flama_phc
20240613@182239.4289 eaobi3ca4gg19ern7ojqa5vcb3 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182239.4304 eaobi3ca4gg19ern7ojqa5vcb3 Query : use flama_phc
20240613@182239.4307 eaobi3ca4gg19ern7ojqa5vcb3 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182239.4338 eaobi3ca4gg19ern7ojqa5vcb3 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'
20240613@182239.4488 eaobi3ca4gg19ern7ojqa5vcb3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404093 and bi.ref ='324.4968.00.1' and bi.lordem =1
20240613@182239.4803 eaobi3ca4gg19ern7ojqa5vcb3 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'
20240613@182239.4814 eaobi3ca4gg19ern7ojqa5vcb3 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404093 and bi.ref ='324.4968.00.1' and bi.lordem =1
20240613@182239.4820 eaobi3ca4gg19ern7ojqa5vcb3 Query : use flama_phc
20240613@182239.4823 eaobi3ca4gg19ern7ojqa5vcb3 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182239.4836 eaobi3ca4gg19ern7ojqa5vcb3 Query : use flama_phc
20240613@182239.4839 eaobi3ca4gg19ern7ojqa5vcb3 Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182239.4850 eaobi3ca4gg19ern7ojqa5vcb3 Query : use flama_phc
20240613@182239.4853 eaobi3ca4gg19ern7ojqa5vcb3 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')
20240613@182239.5390 la4ghodupond8qmbcgqjpmo4di Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182239.5404 la4ghodupond8qmbcgqjpmo4di Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182239.5419 la4ghodupond8qmbcgqjpmo4di Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='385';
20240613@182239.5460 la4ghodupond8qmbcgqjpmo4di Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='385';
20240613@182239.5473 la4ghodupond8qmbcgqjpmo4di Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='385';
20240613@182239.5486 la4ghodupond8qmbcgqjpmo4di Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='385';
20240613@182239.5498 la4ghodupond8qmbcgqjpmo4di Query : use flama_phc
20240613@182239.5500 la4ghodupond8qmbcgqjpmo4di Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182239.5514 la4ghodupond8qmbcgqjpmo4di Query : use flama_phc
20240613@182239.5517 la4ghodupond8qmbcgqjpmo4di Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182239.5548 la4ghodupond8qmbcgqjpmo4di 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'
20240613@182239.5700 la4ghodupond8qmbcgqjpmo4di Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404094 and bi.ref ='324.1406.00.1' and bi.lordem =1
20240613@182239.6022 la4ghodupond8qmbcgqjpmo4di 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'
20240613@182239.6034 la4ghodupond8qmbcgqjpmo4di Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404094 and bi.ref ='324.1406.00.1' and bi.lordem =1
20240613@182239.6042 la4ghodupond8qmbcgqjpmo4di Query : use flama_phc
20240613@182239.6070 la4ghodupond8qmbcgqjpmo4di Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182239.6083 la4ghodupond8qmbcgqjpmo4di Query : use flama_phc
20240613@182239.6086 la4ghodupond8qmbcgqjpmo4di Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182239.6096 la4ghodupond8qmbcgqjpmo4di Query : use flama_phc
20240613@182239.6099 la4ghodupond8qmbcgqjpmo4di 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')
20240613@182239.6705 83v6rv9p85kqaqj8mfk222gcsm Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182239.6719 83v6rv9p85kqaqj8mfk222gcsm Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182239.6738 83v6rv9p85kqaqj8mfk222gcsm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='386';
20240613@182239.6790 83v6rv9p85kqaqj8mfk222gcsm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='386';
20240613@182239.6812 83v6rv9p85kqaqj8mfk222gcsm Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='386';
20240613@182239.6827 83v6rv9p85kqaqj8mfk222gcsm Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='386';
20240613@182239.6840 83v6rv9p85kqaqj8mfk222gcsm Query : use flama_phc
20240613@182239.6844 83v6rv9p85kqaqj8mfk222gcsm Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182239.6864 83v6rv9p85kqaqj8mfk222gcsm Query : use flama_phc
20240613@182239.6867 83v6rv9p85kqaqj8mfk222gcsm Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182239.6901 83v6rv9p85kqaqj8mfk222gcsm 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'
20240613@182239.7378 83v6rv9p85kqaqj8mfk222gcsm Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404095 and bi.ref ='324.4910.00.1' and bi.lordem =1
20240613@182239.7952 83v6rv9p85kqaqj8mfk222gcsm 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'
20240613@182239.7963 83v6rv9p85kqaqj8mfk222gcsm Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404095 and bi.ref ='324.4910.00.1' and bi.lordem =1
20240613@182239.7969 83v6rv9p85kqaqj8mfk222gcsm 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'
20240613@182239.7979 83v6rv9p85kqaqj8mfk222gcsm Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404095 and bi.ref ='324.4910.00.1' and bi.lordem =1
20240613@182239.7986 83v6rv9p85kqaqj8mfk222gcsm Query : use flama_phc
20240613@182239.7989 83v6rv9p85kqaqj8mfk222gcsm Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182239.8001 83v6rv9p85kqaqj8mfk222gcsm Query : use flama_phc
20240613@182239.8004 83v6rv9p85kqaqj8mfk222gcsm Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182239.8014 83v6rv9p85kqaqj8mfk222gcsm Query : use flama_phc
20240613@182239.8017 83v6rv9p85kqaqj8mfk222gcsm 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')
20240613@182239.8480 u6k9b96vne28q3d2a204665ekc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182239.8495 u6k9b96vne28q3d2a204665ekc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182239.8511 u6k9b96vne28q3d2a204665ekc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='387';
20240613@182239.8552 u6k9b96vne28q3d2a204665ekc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='387';
20240613@182239.8564 u6k9b96vne28q3d2a204665ekc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='387';
20240613@182239.8576 u6k9b96vne28q3d2a204665ekc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='387';
20240613@182239.8588 u6k9b96vne28q3d2a204665ekc Query : use flama_phc
20240613@182239.8591 u6k9b96vne28q3d2a204665ekc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182239.8605 u6k9b96vne28q3d2a204665ekc Query : use flama_phc
20240613@182239.8607 u6k9b96vne28q3d2a204665ekc Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182239.8638 u6k9b96vne28q3d2a204665ekc 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'
20240613@182239.8798 u6k9b96vne28q3d2a204665ekc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404096 and bi.ref ='324.727.00.01' and bi.lordem =1
20240613@182239.9150 u6k9b96vne28q3d2a204665ekc 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'
20240613@182239.9161 u6k9b96vne28q3d2a204665ekc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404096 and bi.ref ='324.727.00.01' and bi.lordem =2
20240613@182239.9542 u6k9b96vne28q3d2a204665ekc 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'
20240613@182239.9825 u6k9b96vne28q3d2a204665ekc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404096 and bi.ref ='324.727.00.01' and bi.lordem =2
20240613@182239.9833 u6k9b96vne28q3d2a204665ekc 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'
20240613@182239.9843 u6k9b96vne28q3d2a204665ekc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404096 and bi.ref ='324.727.00.01' and bi.lordem =2
20240613@182239.9849 u6k9b96vne28q3d2a204665ekc Query : use flama_phc
20240613@182239.9853 u6k9b96vne28q3d2a204665ekc Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182239.9868 u6k9b96vne28q3d2a204665ekc Query : use flama_phc
20240613@182239.9871 u6k9b96vne28q3d2a204665ekc Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182239.9881 u6k9b96vne28q3d2a204665ekc Query : use flama_phc
20240613@182239.9883 u6k9b96vne28q3d2a204665ekc 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')
20240613@182240.4210 3gnmjlu1r9svost7gjbievd827 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182240.4350 3gnmjlu1r9svost7gjbievd827 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182240.4510 3gnmjlu1r9svost7gjbievd827 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='388';
20240613@182240.4930 3gnmjlu1r9svost7gjbievd827 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='388';
20240613@182240.5070 3gnmjlu1r9svost7gjbievd827 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='388';
20240613@182240.5190 3gnmjlu1r9svost7gjbievd827 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='388';
20240613@182240.5310 3gnmjlu1r9svost7gjbievd827 Query : use flama_phc
20240613@182240.5340 3gnmjlu1r9svost7gjbievd827 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182240.5480 3gnmjlu1r9svost7gjbievd827 Query : use flama_phc
20240613@182240.5520 3gnmjlu1r9svost7gjbievd827 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182240.5830 3gnmjlu1r9svost7gjbievd827 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240613@182240.7700 3gnmjlu1r9svost7gjbievd827 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404097 and bi.ref ='324.645.00.01' and bi.lordem =1
20240613@182240.1098 3gnmjlu1r9svost7gjbievd827 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240613@182240.1109 3gnmjlu1r9svost7gjbievd827 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404097 and bi.ref ='324.645.00.01' and bi.lordem =1
20240613@182240.1116 3gnmjlu1r9svost7gjbievd827 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240613@182240.1126 3gnmjlu1r9svost7gjbievd827 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404097 and bi.ref ='324.645.00.01' and bi.lordem =1
20240613@182240.1132 3gnmjlu1r9svost7gjbievd827 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240613@182240.1142 3gnmjlu1r9svost7gjbievd827 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404097 and bi.ref ='324.645.00.01' and bi.lordem =1
20240613@182240.1148 3gnmjlu1r9svost7gjbievd827 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240613@182240.1158 3gnmjlu1r9svost7gjbievd827 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404097 and bi.ref ='324.645.00.01' and bi.lordem =1
20240613@182240.1165 3gnmjlu1r9svost7gjbievd827 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240613@182240.1175 3gnmjlu1r9svost7gjbievd827 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404097 and bi.ref ='324.645.00.01' and bi.lordem =1
20240613@182240.1181 3gnmjlu1r9svost7gjbievd827 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240613@182240.1191 3gnmjlu1r9svost7gjbievd827 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404097 and bi.ref ='324.645.00.01' and bi.lordem =1
20240613@182240.1197 3gnmjlu1r9svost7gjbievd827 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240613@182240.1208 3gnmjlu1r9svost7gjbievd827 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404097 and bi.ref ='324.645.00.01' and bi.lordem =1
20240613@182240.1215 3gnmjlu1r9svost7gjbievd827 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240613@182240.1224 3gnmjlu1r9svost7gjbievd827 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404097 and bi.ref ='324.645.00.01' and bi.lordem =1
20240613@182240.1231 3gnmjlu1r9svost7gjbievd827 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240613@182240.1240 3gnmjlu1r9svost7gjbievd827 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404097 and bi.ref ='324.645.00.01' and bi.lordem =1
20240613@182240.1246 3gnmjlu1r9svost7gjbievd827 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240613@182240.1255 3gnmjlu1r9svost7gjbievd827 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404097 and bi.ref ='324.645.00.01' and bi.lordem =1
20240613@182240.1262 3gnmjlu1r9svost7gjbievd827 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.645.00.01'
20240613@182240.1270 3gnmjlu1r9svost7gjbievd827 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404097 and bi.ref ='324.645.00.01' and bi.lordem =1
20240613@182240.1277 3gnmjlu1r9svost7gjbievd827 Query : use flama_phc
20240613@182240.1281 3gnmjlu1r9svost7gjbievd827 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182240.1293 3gnmjlu1r9svost7gjbievd827 Query : use flama_phc
20240613@182240.1296 3gnmjlu1r9svost7gjbievd827 Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182240.1307 3gnmjlu1r9svost7gjbievd827 Query : use flama_phc
20240613@182240.1309 3gnmjlu1r9svost7gjbievd827 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')
20240613@182240.1812 7566ou3rt8i4nu1tfsnm26t9ce Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182240.1825 7566ou3rt8i4nu1tfsnm26t9ce Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182240.1841 7566ou3rt8i4nu1tfsnm26t9ce Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='389';
20240613@182240.1880 7566ou3rt8i4nu1tfsnm26t9ce Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='389';
20240613@182240.1903 7566ou3rt8i4nu1tfsnm26t9ce Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='389';
20240613@182240.1914 7566ou3rt8i4nu1tfsnm26t9ce Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='389';
20240613@182240.1926 7566ou3rt8i4nu1tfsnm26t9ce Query : use flama_phc
20240613@182240.1930 7566ou3rt8i4nu1tfsnm26t9ce Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182240.1944 7566ou3rt8i4nu1tfsnm26t9ce Query : use flama_phc
20240613@182240.1947 7566ou3rt8i4nu1tfsnm26t9ce Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182240.1977 7566ou3rt8i4nu1tfsnm26t9ce 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'
20240613@182240.2125 7566ou3rt8i4nu1tfsnm26t9ce Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404098 and bi.ref ='324.646.00.01' and bi.lordem =1
20240613@182240.2491 7566ou3rt8i4nu1tfsnm26t9ce 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'
20240613@182240.2502 7566ou3rt8i4nu1tfsnm26t9ce Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404098 and bi.ref ='324.646.00.01' and bi.lordem =1
20240613@182240.2510 7566ou3rt8i4nu1tfsnm26t9ce 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'
20240613@182240.2519 7566ou3rt8i4nu1tfsnm26t9ce Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404098 and bi.ref ='324.646.00.01' and bi.lordem =1
20240613@182240.2526 7566ou3rt8i4nu1tfsnm26t9ce 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'
20240613@182240.2536 7566ou3rt8i4nu1tfsnm26t9ce Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404098 and bi.ref ='324.646.00.01' and bi.lordem =1
20240613@182240.2543 7566ou3rt8i4nu1tfsnm26t9ce 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'
20240613@182240.2552 7566ou3rt8i4nu1tfsnm26t9ce Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404098 and bi.ref ='324.646.00.01' and bi.lordem =1
20240613@182240.2559 7566ou3rt8i4nu1tfsnm26t9ce 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'
20240613@182240.2569 7566ou3rt8i4nu1tfsnm26t9ce Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404098 and bi.ref ='324.646.00.01' and bi.lordem =1
20240613@182240.2576 7566ou3rt8i4nu1tfsnm26t9ce 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'
20240613@182240.2586 7566ou3rt8i4nu1tfsnm26t9ce Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404098 and bi.ref ='324.646.00.01' and bi.lordem =1
20240613@182240.2593 7566ou3rt8i4nu1tfsnm26t9ce 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'
20240613@182240.2603 7566ou3rt8i4nu1tfsnm26t9ce Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404098 and bi.ref ='324.646.00.01' and bi.lordem =1
20240613@182240.2610 7566ou3rt8i4nu1tfsnm26t9ce 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'
20240613@182240.2620 7566ou3rt8i4nu1tfsnm26t9ce Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404098 and bi.ref ='324.646.00.01' and bi.lordem =1
20240613@182240.2627 7566ou3rt8i4nu1tfsnm26t9ce 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'
20240613@182240.2637 7566ou3rt8i4nu1tfsnm26t9ce Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404098 and bi.ref ='324.646.00.01' and bi.lordem =1
20240613@182240.2644 7566ou3rt8i4nu1tfsnm26t9ce 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'
20240613@182240.2654 7566ou3rt8i4nu1tfsnm26t9ce Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404098 and bi.ref ='324.646.00.01' and bi.lordem =1
20240613@182240.2661 7566ou3rt8i4nu1tfsnm26t9ce Query : use flama_phc
20240613@182240.2665 7566ou3rt8i4nu1tfsnm26t9ce Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182240.2678 7566ou3rt8i4nu1tfsnm26t9ce Query : use flama_phc
20240613@182240.2681 7566ou3rt8i4nu1tfsnm26t9ce Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182240.2691 7566ou3rt8i4nu1tfsnm26t9ce Query : use flama_phc
20240613@182240.2694 7566ou3rt8i4nu1tfsnm26t9ce 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')
20240613@182240.3191 9pc1dersv5ajqdsjdpui1cg7bt Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182240.3205 9pc1dersv5ajqdsjdpui1cg7bt Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182240.3222 9pc1dersv5ajqdsjdpui1cg7bt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='390';
20240613@182240.3261 9pc1dersv5ajqdsjdpui1cg7bt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='390';
20240613@182240.3274 9pc1dersv5ajqdsjdpui1cg7bt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='390';
20240613@182240.3285 9pc1dersv5ajqdsjdpui1cg7bt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='390';
20240613@182240.3297 9pc1dersv5ajqdsjdpui1cg7bt Query : use flama_phc
20240613@182240.3300 9pc1dersv5ajqdsjdpui1cg7bt Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182240.3315 9pc1dersv5ajqdsjdpui1cg7bt Query : use flama_phc
20240613@182240.3318 9pc1dersv5ajqdsjdpui1cg7bt Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182240.3352 9pc1dersv5ajqdsjdpui1cg7bt 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'
20240613@182240.3504 9pc1dersv5ajqdsjdpui1cg7bt Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404099 and bi.ref ='324.945.00.01' and bi.lordem =1
20240613@182240.3838 9pc1dersv5ajqdsjdpui1cg7bt Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2231.00.1'
20240613@182240.3849 9pc1dersv5ajqdsjdpui1cg7bt Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404099 and bi.ref ='324.2231.00.1' and bi.lordem =2
20240613@182240.4217 9pc1dersv5ajqdsjdpui1cg7bt Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2231.00.1'
20240613@182240.4228 9pc1dersv5ajqdsjdpui1cg7bt Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2040 and bo.obrano = 2404099 and bi.ref ='324.2231.00.1' and bi.lordem =2
20240613@182240.4235 9pc1dersv5ajqdsjdpui1cg7bt Query : use flama_phc
20240613@182240.4238 9pc1dersv5ajqdsjdpui1cg7bt Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182240.4251 9pc1dersv5ajqdsjdpui1cg7bt Query : use flama_phc
20240613@182240.4253 9pc1dersv5ajqdsjdpui1cg7bt Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182240.4264 9pc1dersv5ajqdsjdpui1cg7bt Query : use flama_phc
20240613@182240.4267 9pc1dersv5ajqdsjdpui1cg7bt 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')
20240613@182240.4806 k3f22di96kqj19tej2n8cum8ks Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182240.4821 k3f22di96kqj19tej2n8cum8ks Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182240.4839 k3f22di96kqj19tej2n8cum8ks Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='391';
20240613@182240.4882 k3f22di96kqj19tej2n8cum8ks Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='391';
20240613@182240.4896 k3f22di96kqj19tej2n8cum8ks Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='391';
20240613@182240.4911 k3f22di96kqj19tej2n8cum8ks Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='391';
20240613@182240.4925 k3f22di96kqj19tej2n8cum8ks Query : use flama_phc
20240613@182240.4929 k3f22di96kqj19tej2n8cum8ks Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182240.4943 k3f22di96kqj19tej2n8cum8ks Query : use flama_phc
20240613@182240.4946 k3f22di96kqj19tej2n8cum8ks Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182240.4981 k3f22di96kqj19tej2n8cum8ks 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'
20240613@182240.5143 k3f22di96kqj19tej2n8cum8ks Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404101 and bi.ref ='324.682.00.01' and bi.lordem =1
20240613@182240.5482 k3f22di96kqj19tej2n8cum8ks 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'
20240613@182240.5492 k3f22di96kqj19tej2n8cum8ks Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404101 and bi.ref ='324.682.00.01' and bi.lordem =1
20240613@182240.5499 k3f22di96kqj19tej2n8cum8ks 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'
20240613@182240.5509 k3f22di96kqj19tej2n8cum8ks Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404101 and bi.ref ='324.682.00.01' and bi.lordem =1
20240613@182240.5516 k3f22di96kqj19tej2n8cum8ks 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'
20240613@182240.5526 k3f22di96kqj19tej2n8cum8ks Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404101 and bi.ref ='324.682.00.01' and bi.lordem =1
20240613@182240.5533 k3f22di96kqj19tej2n8cum8ks 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'
20240613@182240.5543 k3f22di96kqj19tej2n8cum8ks Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404101 and bi.ref ='324.682.00.01' and bi.lordem =1
20240613@182240.5549 k3f22di96kqj19tej2n8cum8ks 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'
20240613@182240.5560 k3f22di96kqj19tej2n8cum8ks Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404101 and bi.ref ='324.682.00.01' and bi.lordem =1
20240613@182240.5566 k3f22di96kqj19tej2n8cum8ks 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'
20240613@182240.5576 k3f22di96kqj19tej2n8cum8ks Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404101 and bi.ref ='324.682.00.01' and bi.lordem =1
20240613@182240.5583 k3f22di96kqj19tej2n8cum8ks 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'
20240613@182240.5592 k3f22di96kqj19tej2n8cum8ks Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404101 and bi.ref ='324.682.00.01' and bi.lordem =1
20240613@182240.5599 k3f22di96kqj19tej2n8cum8ks 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'
20240613@182240.5609 k3f22di96kqj19tej2n8cum8ks Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404101 and bi.ref ='324.682.00.01' and bi.lordem =1
20240613@182240.5615 k3f22di96kqj19tej2n8cum8ks 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'
20240613@182240.5624 k3f22di96kqj19tej2n8cum8ks Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404101 and bi.ref ='324.682.00.01' and bi.lordem =1
20240613@182240.5631 k3f22di96kqj19tej2n8cum8ks 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'
20240613@182240.5642 k3f22di96kqj19tej2n8cum8ks Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404101 and bi.ref ='324.682.00.01' and bi.lordem =1
20240613@182240.5649 k3f22di96kqj19tej2n8cum8ks 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'
20240613@182240.5659 k3f22di96kqj19tej2n8cum8ks Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404101 and bi.ref ='324.682.00.01' and bi.lordem =1
20240613@182240.5665 k3f22di96kqj19tej2n8cum8ks 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'
20240613@182240.5674 k3f22di96kqj19tej2n8cum8ks Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404101 and bi.ref ='324.682.00.01' and bi.lordem =1
20240613@182240.5681 k3f22di96kqj19tej2n8cum8ks 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'
20240613@182240.5690 k3f22di96kqj19tej2n8cum8ks Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404101 and bi.ref ='324.682.00.01' and bi.lordem =1
20240613@182240.5696 k3f22di96kqj19tej2n8cum8ks 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'
20240613@182240.5705 k3f22di96kqj19tej2n8cum8ks Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404101 and bi.ref ='324.682.00.01' and bi.lordem =1
20240613@182240.5712 k3f22di96kqj19tej2n8cum8ks 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'
20240613@182240.5721 k3f22di96kqj19tej2n8cum8ks Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404101 and bi.ref ='324.682.00.01' and bi.lordem =1
20240613@182240.5728 k3f22di96kqj19tej2n8cum8ks Query : use flama_phc
20240613@182240.5731 k3f22di96kqj19tej2n8cum8ks Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182240.5743 k3f22di96kqj19tej2n8cum8ks Query : use flama_phc
20240613@182240.5746 k3f22di96kqj19tej2n8cum8ks Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182240.5756 k3f22di96kqj19tej2n8cum8ks Query : use flama_phc
20240613@182240.5759 k3f22di96kqj19tej2n8cum8ks 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')
20240613@182240.6248 3dib3br2et34vf80qlj153hdjc Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182240.6262 3dib3br2et34vf80qlj153hdjc Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182240.6279 3dib3br2et34vf80qlj153hdjc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='392';
20240613@182240.6322 3dib3br2et34vf80qlj153hdjc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='392';
20240613@182240.6398 3dib3br2et34vf80qlj153hdjc Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='392';
20240613@182240.6439 3dib3br2et34vf80qlj153hdjc Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='392';
20240613@182240.6452 3dib3br2et34vf80qlj153hdjc Query : use flama_phc
20240613@182240.6455 3dib3br2et34vf80qlj153hdjc Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182240.6470 3dib3br2et34vf80qlj153hdjc Query : use flama_phc
20240613@182240.6473 3dib3br2et34vf80qlj153hdjc Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182240.6506 3dib3br2et34vf80qlj153hdjc 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'
20240613@182240.6889 3dib3br2et34vf80qlj153hdjc Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404102 and bi.ref ='324.2221.00.1' and bi.lordem =1
20240613@182240.7224 3dib3br2et34vf80qlj153hdjc Query : use flama_phc
20240613@182240.7227 3dib3br2et34vf80qlj153hdjc Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182240.7241 3dib3br2et34vf80qlj153hdjc Query : use flama_phc
20240613@182240.7243 3dib3br2et34vf80qlj153hdjc Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182240.7255 3dib3br2et34vf80qlj153hdjc Query : use flama_phc
20240613@182240.7258 3dib3br2et34vf80qlj153hdjc 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')
20240613@182240.7744 044q28rolotg8b8snvfpr37b72 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182240.7760 044q28rolotg8b8snvfpr37b72 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182240.7776 044q28rolotg8b8snvfpr37b72 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='393';
20240613@182240.7839 044q28rolotg8b8snvfpr37b72 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='393';
20240613@182240.7854 044q28rolotg8b8snvfpr37b72 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='393';
20240613@182240.7867 044q28rolotg8b8snvfpr37b72 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='393';
20240613@182240.7879 044q28rolotg8b8snvfpr37b72 Query : use flama_phc
20240613@182240.7882 044q28rolotg8b8snvfpr37b72 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182240.7898 044q28rolotg8b8snvfpr37b72 Query : use flama_phc
20240613@182240.7901 044q28rolotg8b8snvfpr37b72 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182240.7932 044q28rolotg8b8snvfpr37b72 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'
20240613@182240.8086 044q28rolotg8b8snvfpr37b72 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404103 and bi.ref ='324.2223.00.1' and bi.lordem =1
20240613@182240.8411 044q28rolotg8b8snvfpr37b72 Query : use flama_phc
20240613@182240.8414 044q28rolotg8b8snvfpr37b72 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182240.9162 044q28rolotg8b8snvfpr37b72 Query : use flama_phc
20240613@182240.9166 044q28rolotg8b8snvfpr37b72 Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182240.9177 044q28rolotg8b8snvfpr37b72 Query : use flama_phc
20240613@182240.9180 044q28rolotg8b8snvfpr37b72 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')
20240613@182240.9675 89oibo9r65trunj97e5tbpmk05 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182240.9689 89oibo9r65trunj97e5tbpmk05 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182240.9710 89oibo9r65trunj97e5tbpmk05 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='394';
20240613@182240.9755 89oibo9r65trunj97e5tbpmk05 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='394';
20240613@182240.9769 89oibo9r65trunj97e5tbpmk05 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='394';
20240613@182240.9781 89oibo9r65trunj97e5tbpmk05 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='394';
20240613@182240.9793 89oibo9r65trunj97e5tbpmk05 Query : use flama_phc
20240613@182240.9796 89oibo9r65trunj97e5tbpmk05 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182240.9811 89oibo9r65trunj97e5tbpmk05 Query : use flama_phc
20240613@182240.9814 89oibo9r65trunj97e5tbpmk05 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182240.9848 89oibo9r65trunj97e5tbpmk05 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4161.00.1'
20240613@182241.6000 89oibo9r65trunj97e5tbpmk05 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404104 and bi.ref ='324.4161.00.1' and bi.lordem =1
20240613@182241.4020 89oibo9r65trunj97e5tbpmk05 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4161.00.1'
20240613@182241.4150 89oibo9r65trunj97e5tbpmk05 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404104 and bi.ref ='324.4161.00.1' and bi.lordem =1
20240613@182241.4240 89oibo9r65trunj97e5tbpmk05 Query : use flama_phc
20240613@182241.4270 89oibo9r65trunj97e5tbpmk05 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182241.4420 89oibo9r65trunj97e5tbpmk05 Query : use flama_phc
20240613@182241.4450 89oibo9r65trunj97e5tbpmk05 Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182241.4570 89oibo9r65trunj97e5tbpmk05 Query : use flama_phc
20240613@182241.4600 89oibo9r65trunj97e5tbpmk05 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')
20240613@182241.1874 aqrecnpvib12284pg8mhh59ndn Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182241.1889 aqrecnpvib12284pg8mhh59ndn Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182241.1907 aqrecnpvib12284pg8mhh59ndn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='395';
20240613@182241.1953 aqrecnpvib12284pg8mhh59ndn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='395';
20240613@182241.1969 aqrecnpvib12284pg8mhh59ndn Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='395';
20240613@182241.1981 aqrecnpvib12284pg8mhh59ndn Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='395';
20240613@182241.1994 aqrecnpvib12284pg8mhh59ndn Query : use flama_phc
20240613@182241.1999 aqrecnpvib12284pg8mhh59ndn Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182241.2016 aqrecnpvib12284pg8mhh59ndn Query : use flama_phc
20240613@182241.2077 aqrecnpvib12284pg8mhh59ndn Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182241.2146 aqrecnpvib12284pg8mhh59ndn 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'
20240613@182241.2360 aqrecnpvib12284pg8mhh59ndn Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404105 and bi.ref ='324.2224.00.1' and bi.lordem =1
20240613@182241.2763 aqrecnpvib12284pg8mhh59ndn Query : use flama_phc
20240613@182241.2766 aqrecnpvib12284pg8mhh59ndn Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182241.2782 aqrecnpvib12284pg8mhh59ndn Query : use flama_phc
20240613@182241.2784 aqrecnpvib12284pg8mhh59ndn Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182241.2796 aqrecnpvib12284pg8mhh59ndn Query : use flama_phc
20240613@182241.2799 aqrecnpvib12284pg8mhh59ndn 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')
20240613@182241.3277 828nl9scdvie4hfafe3se0ur52 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182241.3291 828nl9scdvie4hfafe3se0ur52 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182241.3308 828nl9scdvie4hfafe3se0ur52 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='396';
20240613@182241.3347 828nl9scdvie4hfafe3se0ur52 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='396';
20240613@182241.3360 828nl9scdvie4hfafe3se0ur52 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='396';
20240613@182241.3374 828nl9scdvie4hfafe3se0ur52 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='396';
20240613@182241.3394 828nl9scdvie4hfafe3se0ur52 Query : use flama_phc
20240613@182241.3397 828nl9scdvie4hfafe3se0ur52 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182241.3411 828nl9scdvie4hfafe3se0ur52 Query : use flama_phc
20240613@182241.3414 828nl9scdvie4hfafe3se0ur52 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182241.3445 828nl9scdvie4hfafe3se0ur52 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4967.00.1'
20240613@182241.3601 828nl9scdvie4hfafe3se0ur52 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404106 and bi.ref ='324.4967.00.1' and bi.lordem =1
20240613@182241.3908 828nl9scdvie4hfafe3se0ur52 Query : use flama_phc
20240613@182241.3911 828nl9scdvie4hfafe3se0ur52 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182241.3924 828nl9scdvie4hfafe3se0ur52 Query : use flama_phc
20240613@182241.3927 828nl9scdvie4hfafe3se0ur52 Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182241.3937 828nl9scdvie4hfafe3se0ur52 Query : use flama_phc
20240613@182241.3940 828nl9scdvie4hfafe3se0ur52 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')
20240613@182241.4416 v9ladvl7odtl5iu09m4r1urogk Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182241.4430 v9ladvl7odtl5iu09m4r1urogk Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182241.4446 v9ladvl7odtl5iu09m4r1urogk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='397';
20240613@182241.4486 v9ladvl7odtl5iu09m4r1urogk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='397';
20240613@182241.4508 v9ladvl7odtl5iu09m4r1urogk Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='397';
20240613@182241.4520 v9ladvl7odtl5iu09m4r1urogk Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='397';
20240613@182241.4542 v9ladvl7odtl5iu09m4r1urogk Query : use flama_phc
20240613@182241.4545 v9ladvl7odtl5iu09m4r1urogk Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182241.4560 v9ladvl7odtl5iu09m4r1urogk Query : use flama_phc
20240613@182241.4563 v9ladvl7odtl5iu09m4r1urogk Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182241.4594 v9ladvl7odtl5iu09m4r1urogk 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'
20240613@182241.4753 v9ladvl7odtl5iu09m4r1urogk Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404107 and bi.ref ='324.497.00.01' and bi.lordem =1
20240613@182241.5773 v9ladvl7odtl5iu09m4r1urogk Query : use flama_phc
20240613@182241.5778 v9ladvl7odtl5iu09m4r1urogk Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182241.5793 v9ladvl7odtl5iu09m4r1urogk Query : use flama_phc
20240613@182241.5797 v9ladvl7odtl5iu09m4r1urogk Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182241.5808 v9ladvl7odtl5iu09m4r1urogk Query : use flama_phc
20240613@182241.5813 v9ladvl7odtl5iu09m4r1urogk 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')
20240613@182241.6319 up5dqu0mjn5340fsnd9tm55oa7 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182241.6332 up5dqu0mjn5340fsnd9tm55oa7 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182241.6349 up5dqu0mjn5340fsnd9tm55oa7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='398';
20240613@182241.6388 up5dqu0mjn5340fsnd9tm55oa7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='398';
20240613@182241.6401 up5dqu0mjn5340fsnd9tm55oa7 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='398';
20240613@182241.6413 up5dqu0mjn5340fsnd9tm55oa7 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='398';
20240613@182241.6425 up5dqu0mjn5340fsnd9tm55oa7 Query : use flama_phc
20240613@182241.6428 up5dqu0mjn5340fsnd9tm55oa7 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182241.6442 up5dqu0mjn5340fsnd9tm55oa7 Query : use flama_phc
20240613@182241.6445 up5dqu0mjn5340fsnd9tm55oa7 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182241.6476 up5dqu0mjn5340fsnd9tm55oa7 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'
20240613@182241.6635 up5dqu0mjn5340fsnd9tm55oa7 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404108 and bi.ref ='324.4906.00.1' and bi.lordem =1
20240613@182241.6983 up5dqu0mjn5340fsnd9tm55oa7 Query : use flama_phc
20240613@182241.6986 up5dqu0mjn5340fsnd9tm55oa7 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182241.6998 up5dqu0mjn5340fsnd9tm55oa7 Query : use flama_phc
20240613@182241.7001 up5dqu0mjn5340fsnd9tm55oa7 Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182241.7012 up5dqu0mjn5340fsnd9tm55oa7 Query : use flama_phc
20240613@182241.7014 up5dqu0mjn5340fsnd9tm55oa7 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')
20240613@182241.7498 8ormsocpt14a4lrdcf11lt1ieo Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182241.7511 8ormsocpt14a4lrdcf11lt1ieo Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182241.7528 8ormsocpt14a4lrdcf11lt1ieo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='399';
20240613@182241.7565 8ormsocpt14a4lrdcf11lt1ieo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='399';
20240613@182241.7579 8ormsocpt14a4lrdcf11lt1ieo Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='399';
20240613@182241.7590 8ormsocpt14a4lrdcf11lt1ieo Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='399';
20240613@182241.7612 8ormsocpt14a4lrdcf11lt1ieo Query : use flama_phc
20240613@182241.7614 8ormsocpt14a4lrdcf11lt1ieo Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182241.7629 8ormsocpt14a4lrdcf11lt1ieo Query : use flama_phc
20240613@182241.7632 8ormsocpt14a4lrdcf11lt1ieo Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182241.7665 8ormsocpt14a4lrdcf11lt1ieo Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2041.00.1'
20240613@182241.7826 8ormsocpt14a4lrdcf11lt1ieo Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404109 and bi.ref ='324.2041.00.1' and bi.lordem =1
20240613@182241.8159 8ormsocpt14a4lrdcf11lt1ieo Query : use flama_phc
20240613@182241.8166 8ormsocpt14a4lrdcf11lt1ieo Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182241.8184 8ormsocpt14a4lrdcf11lt1ieo Query : use flama_phc
20240613@182241.8187 8ormsocpt14a4lrdcf11lt1ieo Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182241.8201 8ormsocpt14a4lrdcf11lt1ieo Query : use flama_phc
20240613@182241.8208 8ormsocpt14a4lrdcf11lt1ieo 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')
20240613@182241.8699 1as4tq4o17c54m5um0ul3v55gt Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182241.8712 1as4tq4o17c54m5um0ul3v55gt Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182241.8736 1as4tq4o17c54m5um0ul3v55gt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='400';
20240613@182241.8774 1as4tq4o17c54m5um0ul3v55gt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='400';
20240613@182241.8787 1as4tq4o17c54m5um0ul3v55gt Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='400';
20240613@182241.8799 1as4tq4o17c54m5um0ul3v55gt Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='400';
20240613@182241.8810 1as4tq4o17c54m5um0ul3v55gt Query : use flama_phc
20240613@182241.8813 1as4tq4o17c54m5um0ul3v55gt Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182241.8828 1as4tq4o17c54m5um0ul3v55gt Query : use flama_phc
20240613@182241.8831 1as4tq4o17c54m5um0ul3v55gt Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182241.8862 1as4tq4o17c54m5um0ul3v55gt 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'
20240613@182241.9210 1as4tq4o17c54m5um0ul3v55gt Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404110 and bi.ref ='324.2222.00.1' and bi.lordem =1
20240613@182241.9548 1as4tq4o17c54m5um0ul3v55gt Query : use flama_phc
20240613@182241.9572 1as4tq4o17c54m5um0ul3v55gt Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182241.9586 1as4tq4o17c54m5um0ul3v55gt Query : use flama_phc
20240613@182241.9588 1as4tq4o17c54m5um0ul3v55gt Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182241.9600 1as4tq4o17c54m5um0ul3v55gt Query : use flama_phc
20240613@182241.9603 1as4tq4o17c54m5um0ul3v55gt 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')
20240613@182242.1220 egk9bsqnc7lin17iqfkrph1vni Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182242.1350 egk9bsqnc7lin17iqfkrph1vni Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182242.1530 egk9bsqnc7lin17iqfkrph1vni Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='401';
20240613@182242.1910 egk9bsqnc7lin17iqfkrph1vni Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='401';
20240613@182242.2030 egk9bsqnc7lin17iqfkrph1vni Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='401';
20240613@182242.2150 egk9bsqnc7lin17iqfkrph1vni Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='401';
20240613@182242.9090 egk9bsqnc7lin17iqfkrph1vni Query : use flama_phc
20240613@182242.1612 egk9bsqnc7lin17iqfkrph1vni Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182242.1632 egk9bsqnc7lin17iqfkrph1vni Query : use flama_phc
20240613@182242.1635 egk9bsqnc7lin17iqfkrph1vni Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182242.1668 egk9bsqnc7lin17iqfkrph1vni Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.4988.00.1'
20240613@182242.1826 egk9bsqnc7lin17iqfkrph1vni Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404111 and bi.ref ='324.4988.00.1' and bi.lordem =1
20240613@182242.2157 egk9bsqnc7lin17iqfkrph1vni Query : use flama_phc
20240613@182242.2160 egk9bsqnc7lin17iqfkrph1vni Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182242.2174 egk9bsqnc7lin17iqfkrph1vni Query : use flama_phc
20240613@182242.2177 egk9bsqnc7lin17iqfkrph1vni Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182242.2188 egk9bsqnc7lin17iqfkrph1vni Query : use flama_phc
20240613@182242.2191 egk9bsqnc7lin17iqfkrph1vni 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')
20240613@182242.2697 2m0hr9svuupjojkol4v9f7tnqa Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182242.2981 2m0hr9svuupjojkol4v9f7tnqa Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182242.3356 2m0hr9svuupjojkol4v9f7tnqa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='402';
20240613@182242.3712 2m0hr9svuupjojkol4v9f7tnqa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='402';
20240613@182242.3727 2m0hr9svuupjojkol4v9f7tnqa Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='402';
20240613@182242.3740 2m0hr9svuupjojkol4v9f7tnqa Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='402';
20240613@182242.3753 2m0hr9svuupjojkol4v9f7tnqa Query : use flama_phc
20240613@182242.3756 2m0hr9svuupjojkol4v9f7tnqa Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182242.3773 2m0hr9svuupjojkol4v9f7tnqa Query : use flama_phc
20240613@182242.3777 2m0hr9svuupjojkol4v9f7tnqa Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182242.3809 2m0hr9svuupjojkol4v9f7tnqa 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'
20240613@182242.3960 2m0hr9svuupjojkol4v9f7tnqa Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404112 and bi.ref ='324.711.00.01' and bi.lordem =1
20240613@182242.4278 2m0hr9svuupjojkol4v9f7tnqa Query : use flama_phc
20240613@182242.4281 2m0hr9svuupjojkol4v9f7tnqa Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182242.4295 2m0hr9svuupjojkol4v9f7tnqa Query : use flama_phc
20240613@182242.4298 2m0hr9svuupjojkol4v9f7tnqa Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182242.4309 2m0hr9svuupjojkol4v9f7tnqa Query : use flama_phc
20240613@182242.4312 2m0hr9svuupjojkol4v9f7tnqa 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')
20240613@182242.4858 ejbgqfksnh1sh367185avmpo13 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182242.4872 ejbgqfksnh1sh367185avmpo13 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182242.4890 ejbgqfksnh1sh367185avmpo13 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='403';
20240613@182242.4934 ejbgqfksnh1sh367185avmpo13 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='403';
20240613@182242.4947 ejbgqfksnh1sh367185avmpo13 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='403';
20240613@182242.4960 ejbgqfksnh1sh367185avmpo13 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='403';
20240613@182242.4975 ejbgqfksnh1sh367185avmpo13 Query : use flama_phc
20240613@182242.4978 ejbgqfksnh1sh367185avmpo13 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182242.4993 ejbgqfksnh1sh367185avmpo13 Query : use flama_phc
20240613@182242.4997 ejbgqfksnh1sh367185avmpo13 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4740
20240613@182242.5030 ejbgqfksnh1sh367185avmpo13 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.719.00.01'
20240613@182242.5184 ejbgqfksnh1sh367185avmpo13 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404113 and bi.ref ='324.719.00.01' and bi.lordem =1
20240613@182242.5496 ejbgqfksnh1sh367185avmpo13 Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.719.00.01'
20240613@182242.5507 ejbgqfksnh1sh367185avmpo13 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404113 and bi.ref ='324.719.00.01' and bi.lordem =1
20240613@182242.5515 ejbgqfksnh1sh367185avmpo13 Query : use flama_phc
20240613@182242.5518 ejbgqfksnh1sh367185avmpo13 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182242.5532 ejbgqfksnh1sh367185avmpo13 Query : use flama_phc
20240613@182242.5535 ejbgqfksnh1sh367185avmpo13 Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182242.5546 ejbgqfksnh1sh367185avmpo13 Query : use flama_phc
20240613@182242.5549 ejbgqfksnh1sh367185avmpo13 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')
20240613@182242.6057 e906sh7u4v074ohgsqugs1psqs Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182242.6070 e906sh7u4v074ohgsqugs1psqs Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182242.6087 e906sh7u4v074ohgsqugs1psqs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='404';
20240613@182242.6127 e906sh7u4v074ohgsqugs1psqs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='404';
20240613@182242.6140 e906sh7u4v074ohgsqugs1psqs Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='404';
20240613@182242.6151 e906sh7u4v074ohgsqugs1psqs Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='404';
20240613@182242.6163 e906sh7u4v074ohgsqugs1psqs Query : use flama_phc
20240613@182242.6166 e906sh7u4v074ohgsqugs1psqs Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182242.6180 e906sh7u4v074ohgsqugs1psqs Query : use flama_phc
20240613@182242.6183 e906sh7u4v074ohgsqugs1psqs Query : select no, estab,szadrsdesc from szadrs where u_coddest=4743
20240613@182242.6214 e906sh7u4v074ohgsqugs1psqs 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'
20240613@182242.6225 e906sh7u4v074ohgsqugs1psqs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404114 and bi.ref ='324.2223.00.1' and bi.lordem =1
20240613@182242.6548 e906sh7u4v074ohgsqugs1psqs 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'
20240613@182242.6560 e906sh7u4v074ohgsqugs1psqs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404114 and bi.ref ='324.2224.00.1' and bi.lordem =2
20240613@182242.6882 e906sh7u4v074ohgsqugs1psqs 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'
20240613@182242.6897 e906sh7u4v074ohgsqugs1psqs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404114 and bi.ref ='324.2221.00.1' and bi.lordem =3
20240613@182242.7230 e906sh7u4v074ohgsqugs1psqs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2028.00.2'
20240613@182242.7403 e906sh7u4v074ohgsqugs1psqs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404114 and bi.ref ='324.2028.00.2' and bi.lordem =4
20240613@182242.7738 e906sh7u4v074ohgsqugs1psqs Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.2028.00.2'
20240613@182242.7749 e906sh7u4v074ohgsqugs1psqs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404114 and bi.ref ='324.2028.00.2' and bi.lordem =4
20240613@182242.7756 e906sh7u4v074ohgsqugs1psqs 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'
20240613@182242.7907 e906sh7u4v074ohgsqugs1psqs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404114 and bi.ref ='304.4320.00.1' and bi.lordem =5
20240613@182242.8243 e906sh7u4v074ohgsqugs1psqs 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'
20240613@182242.8402 e906sh7u4v074ohgsqugs1psqs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404114 and bi.ref ='304.422.00.07' and bi.lordem =6
20240613@182242.8780 e906sh7u4v074ohgsqugs1psqs 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'
20240613@182242.8942 e906sh7u4v074ohgsqugs1psqs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404114 and bi.ref ='324.1667.00.1' and bi.lordem =7
20240613@182242.9268 e906sh7u4v074ohgsqugs1psqs 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'
20240613@182243.4950 e906sh7u4v074ohgsqugs1psqs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404114 and bi.ref ='324.1690.00.1' and bi.lordem =8
20240613@182243.8600 e906sh7u4v074ohgsqugs1psqs 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'
20240613@182243.8700 e906sh7u4v074ohgsqugs1psqs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404114 and bi.ref ='324.646.00.01' and bi.lordem =9
20240613@182243.1206 e906sh7u4v074ohgsqugs1psqs 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'
20240613@182243.1218 e906sh7u4v074ohgsqugs1psqs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404114 and bi.ref ='324.646.00.01' and bi.lordem =9
20240613@182243.1225 e906sh7u4v074ohgsqugs1psqs 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'
20240613@182243.1235 e906sh7u4v074ohgsqugs1psqs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404114 and bi.ref ='324.646.00.01' and bi.lordem =9
20240613@182243.1242 e906sh7u4v074ohgsqugs1psqs 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'
20240613@182243.1395 e906sh7u4v074ohgsqugs1psqs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404114 and bi.ref ='324.691.00.01' and bi.lordem =10
20240613@182243.1751 e906sh7u4v074ohgsqugs1psqs 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'
20240613@182243.1763 e906sh7u4v074ohgsqugs1psqs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404114 and bi.ref ='324.691.00.01' and bi.lordem =10
20240613@182243.1769 e906sh7u4v074ohgsqugs1psqs 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'
20240613@182243.1939 e906sh7u4v074ohgsqugs1psqs Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404114 and bi.ref ='324.681.00.01' and bi.lordem =11
20240613@182243.2794 e906sh7u4v074ohgsqugs1psqs Query : use flama_phc
20240613@182243.2797 e906sh7u4v074ohgsqugs1psqs Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182243.2810 e906sh7u4v074ohgsqugs1psqs Query : use flama_phc
20240613@182243.2813 e906sh7u4v074ohgsqugs1psqs Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182243.2823 e906sh7u4v074ohgsqugs1psqs Query : use flama_phc
20240613@182243.2826 e906sh7u4v074ohgsqugs1psqs 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')
20240613@182259.2467 o7fp1d22m08agdqpi25oaq6fo5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182259.2484 o7fp1d22m08agdqpi25oaq6fo5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182259.2501 o7fp1d22m08agdqpi25oaq6fo5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='405';
20240613@182259.2539 o7fp1d22m08agdqpi25oaq6fo5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='405';
20240613@182259.2551 o7fp1d22m08agdqpi25oaq6fo5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='405';
20240613@182259.2562 o7fp1d22m08agdqpi25oaq6fo5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='405';
20240613@182259.2574 o7fp1d22m08agdqpi25oaq6fo5 Query : use flama_phc
20240613@182259.2577 o7fp1d22m08agdqpi25oaq6fo5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182259.2591 o7fp1d22m08agdqpi25oaq6fo5 Query : use flama_phc
20240613@182259.2594 o7fp1d22m08agdqpi25oaq6fo5 Query : select no, estab,szadrsdesc from szadrs where u_coddest=4743
20240613@182259.2629 o7fp1d22m08agdqpi25oaq6fo5 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'
20240613@182259.2779 o7fp1d22m08agdqpi25oaq6fo5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404115 and bi.ref ='324.5500.00.1' and bi.lordem =1
20240613@182259.3112 o7fp1d22m08agdqpi25oaq6fo5 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'
20240613@182259.3124 o7fp1d22m08agdqpi25oaq6fo5 Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404115 and bi.ref ='324.5500.00.1' and bi.lordem =1
20240613@182259.3132 o7fp1d22m08agdqpi25oaq6fo5 Query : use flama_phc
20240613@182259.3134 o7fp1d22m08agdqpi25oaq6fo5 Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182259.3149 o7fp1d22m08agdqpi25oaq6fo5 Query : use flama_phc
20240613@182259.3152 o7fp1d22m08agdqpi25oaq6fo5 Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182259.3162 o7fp1d22m08agdqpi25oaq6fo5 Query : use flama_phc
20240613@182259.3164 o7fp1d22m08agdqpi25oaq6fo5 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')
20240613@182259.3650 getfma4rk6tunmfktv6gtcmc9h Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182259.3665 getfma4rk6tunmfktv6gtcmc9h Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182259.3682 getfma4rk6tunmfktv6gtcmc9h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='406';
20240613@182259.3719 getfma4rk6tunmfktv6gtcmc9h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='406';
20240613@182259.3734 getfma4rk6tunmfktv6gtcmc9h Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='406';
20240613@182259.3745 getfma4rk6tunmfktv6gtcmc9h Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='406';
20240613@182259.3759 getfma4rk6tunmfktv6gtcmc9h Query : use flama_phc
20240613@182259.3762 getfma4rk6tunmfktv6gtcmc9h Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182259.3776 getfma4rk6tunmfktv6gtcmc9h Query : use flama_phc
20240613@182259.3779 getfma4rk6tunmfktv6gtcmc9h Query : select no, estab,szadrsdesc from szadrs where u_coddest=201
20240613@182259.3847 getfma4rk6tunmfktv6gtcmc9h 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'
20240613@182259.3992 getfma4rk6tunmfktv6gtcmc9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404118 and bi.ref ='328.9006.00.1' and bi.lordem =1
20240613@182259.4306 getfma4rk6tunmfktv6gtcmc9h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1536.00.1'
20240613@182259.4462 getfma4rk6tunmfktv6gtcmc9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404118 and bi.ref ='324.1536.00.1' and bi.lordem =2
20240613@182259.4771 getfma4rk6tunmfktv6gtcmc9h 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'
20240613@182259.4938 getfma4rk6tunmfktv6gtcmc9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404118 and bi.ref ='324.4421.00.1' and bi.lordem =3
20240613@182259.6167 getfma4rk6tunmfktv6gtcmc9h 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'
20240613@182259.6325 getfma4rk6tunmfktv6gtcmc9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404118 and bi.ref ='304.4211.00.1' and bi.lordem =4
20240613@182259.6637 getfma4rk6tunmfktv6gtcmc9h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1221.00.1'
20240613@182259.6785 getfma4rk6tunmfktv6gtcmc9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404118 and bi.ref ='324.1221.00.1' and bi.lordem =5
20240613@182259.7100 getfma4rk6tunmfktv6gtcmc9h 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'
20240613@182259.7246 getfma4rk6tunmfktv6gtcmc9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404118 and bi.ref ='324.1834.00.1' and bi.lordem =6
20240613@182259.7559 getfma4rk6tunmfktv6gtcmc9h 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'
20240613@182259.7730 getfma4rk6tunmfktv6gtcmc9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404118 and bi.ref ='324.1461.00.1' and bi.lordem =7
20240613@182259.8052 getfma4rk6tunmfktv6gtcmc9h Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '325.1905.0001'
20240613@182259.8204 getfma4rk6tunmfktv6gtcmc9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404118 and bi.ref ='325.1905.0001' and bi.lordem =8
20240613@182259.8516 getfma4rk6tunmfktv6gtcmc9h 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'
20240613@182259.8658 getfma4rk6tunmfktv6gtcmc9h Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404118 and bi.ref ='324.4980.00.1' and bi.lordem =9
20240613@182259.8964 getfma4rk6tunmfktv6gtcmc9h Query : use flama_phc
20240613@182259.8967 getfma4rk6tunmfktv6gtcmc9h Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182259.8984 getfma4rk6tunmfktv6gtcmc9h Query : use flama_phc
20240613@182259.8987 getfma4rk6tunmfktv6gtcmc9h Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182259.9002 getfma4rk6tunmfktv6gtcmc9h Query : use flama_phc
20240613@182259.9005 getfma4rk6tunmfktv6gtcmc9h 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')
20240613@182259.9518 sjbar1n4qaatgpd5t52nc9iqko Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182259.9532 sjbar1n4qaatgpd5t52nc9iqko Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182259.9549 sjbar1n4qaatgpd5t52nc9iqko Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='407';
20240613@182259.9588 sjbar1n4qaatgpd5t52nc9iqko Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='407';
20240613@182259.9600 sjbar1n4qaatgpd5t52nc9iqko Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='407';
20240613@182259.9613 sjbar1n4qaatgpd5t52nc9iqko Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='407';
20240613@182259.9624 sjbar1n4qaatgpd5t52nc9iqko Query : use flama_phc
20240613@182259.9627 sjbar1n4qaatgpd5t52nc9iqko Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182259.9641 sjbar1n4qaatgpd5t52nc9iqko Query : use flama_phc
20240613@182259.9643 sjbar1n4qaatgpd5t52nc9iqko Query : select no, estab,szadrsdesc from szadrs where u_coddest=6234
20240613@182259.9712 sjbar1n4qaatgpd5t52nc9iqko 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'
20240613@182259.9723 sjbar1n4qaatgpd5t52nc9iqko Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404119 and bi.ref ='324.1690.00.1' and bi.lordem =1
20240613@182300.6500 sjbar1n4qaatgpd5t52nc9iqko Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.724.00.01'
20240613@182300.2110 sjbar1n4qaatgpd5t52nc9iqko Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404119 and bi.ref ='324.724.00.01' and bi.lordem =2
20240613@182300.5200 sjbar1n4qaatgpd5t52nc9iqko 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'
20240613@182300.5310 sjbar1n4qaatgpd5t52nc9iqko Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404119 and bi.ref ='324.691.00.01' and bi.lordem =3
20240613@182300.8430 sjbar1n4qaatgpd5t52nc9iqko 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'
20240613@182300.8540 sjbar1n4qaatgpd5t52nc9iqko Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404119 and bi.ref ='324.727.00.01' and bi.lordem =5
20240613@182300.1165 sjbar1n4qaatgpd5t52nc9iqko 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'
20240613@182300.1310 sjbar1n4qaatgpd5t52nc9iqko Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404119 and bi.ref ='324.1833.00.2' and bi.lordem =6
20240613@182300.1616 sjbar1n4qaatgpd5t52nc9iqko Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1221.00.1'
20240613@182300.1627 sjbar1n4qaatgpd5t52nc9iqko Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404119 and bi.ref ='324.1221.00.1' and bi.lordem =8
20240613@182300.2629 sjbar1n4qaatgpd5t52nc9iqko Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1221.00.1'
20240613@182300.3032 sjbar1n4qaatgpd5t52nc9iqko Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404119 and bi.ref ='324.1221.00.1' and bi.lordem =8
20240613@182300.3041 sjbar1n4qaatgpd5t52nc9iqko Query : use flama_phc
20240613@182300.3044 sjbar1n4qaatgpd5t52nc9iqko Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182300.3057 sjbar1n4qaatgpd5t52nc9iqko Query : use flama_phc
20240613@182300.3060 sjbar1n4qaatgpd5t52nc9iqko Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182300.3071 sjbar1n4qaatgpd5t52nc9iqko Query : use flama_phc
20240613@182300.3074 sjbar1n4qaatgpd5t52nc9iqko 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')
20240613@182300.3578 ntgp15adl1av5gg8g47927666k Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240613@182300.3593 ntgp15adl1av5gg8g47927666k Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240613@182300.3610 ntgp15adl1av5gg8g47927666k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='408';
20240613@182300.3649 ntgp15adl1av5gg8g47927666k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='408';
20240613@182300.3661 ntgp15adl1av5gg8g47927666k Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='408';
20240613@182300.3675 ntgp15adl1av5gg8g47927666k Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='408';
20240613@182300.3687 ntgp15adl1av5gg8g47927666k Query : use flama_phc
20240613@182300.3689 ntgp15adl1av5gg8g47927666k Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240613@182300.3704 ntgp15adl1av5gg8g47927666k Query : use flama_phc
20240613@182300.3707 ntgp15adl1av5gg8g47927666k Query : select no, estab,szadrsdesc from szadrs where u_coddest=2114
20240613@182300.3778 ntgp15adl1av5gg8g47927666k 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'
20240613@182300.3925 ntgp15adl1av5gg8g47927666k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404122 and bi.ref ='324.5343.00.1' and bi.lordem =1
20240613@182300.4231 ntgp15adl1av5gg8g47927666k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.988.00.01'
20240613@182300.4374 ntgp15adl1av5gg8g47927666k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404122 and bi.ref ='324.988.00.01' and bi.lordem =2
20240613@182300.4680 ntgp15adl1av5gg8g47927666k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1670.00.1'
20240613@182300.4825 ntgp15adl1av5gg8g47927666k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404122 and bi.ref ='324.1670.00.1' and bi.lordem =3
20240613@182300.5124 ntgp15adl1av5gg8g47927666k Query : select top 1 isnull(design,'') valor from st (nolock) left join stobs (nolock) on st.ref = stobs.ref where st.ref = '324.1670.00.1'
20240613@182300.5135 ntgp15adl1av5gg8g47927666k Query : select top 1 bistamp valor from bi inner join bo on bo.bostamp=bi.bostamp where bo.ndos =240 and bo.boano =2041 and bo.obrano = 2404122 and bi.ref ='324.1670.00.1' and bi.lordem =4
20240613@182300.5434 ntgp15adl1av5gg8g47927666k Query : use flama_phc
20240613@182300.5438 ntgp15adl1av5gg8g47927666k Query : select top 1 convert(date,fdata) valor from ft where ndoc = 39 and anulado= 0 and fno>0 order by fdata desc
20240613@182300.5451 ntgp15adl1av5gg8g47927666k Query : use flama_phc
20240613@182300.5454 ntgp15adl1av5gg8g47927666k Query : select top 1 1 valor from td where td.ndoc = 39
20240613@182300.5464 ntgp15adl1av5gg8g47927666k Query : use flama_phc
20240613@182300.5467 ntgp15adl1av5gg8g47927666k 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')
20240613@183622.4705 pamhcmb2l5qc1jr9f77h7ecb8r Query : use flama_phc
20240613@183622.4710 pamhcmb2l5qc1jr9f77h7ecb8r Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@183622.4727 pamhcmb2l5qc1jr9f77h7ecb8r Query : use flama_phc
20240613@183622.4730 pamhcmb2l5qc1jr9f77h7ecb8r Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@191912.7603 rk8akkpleruqihbooo4otbr5lu Query : use flama_phc
20240613@191912.7667 rk8akkpleruqihbooo4otbr5lu Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@191912.7730 rk8akkpleruqihbooo4otbr5lu Query : use flama_phc
20240613@191912.7733 rk8akkpleruqihbooo4otbr5lu Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@193613.5980 vtlujb4c7eube29r8v5tubolpt Query : use flama_phc
20240613@193613.6110 vtlujb4c7eube29r8v5tubolpt Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@193613.6290 vtlujb4c7eube29r8v5tubolpt Query : use flama_phc
20240613@193613.6320 vtlujb4c7eube29r8v5tubolpt Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@201911.6231 no699gjh6bqcrlraq6j7a3c0p7 Query : use flama_phc
20240613@201911.6236 no699gjh6bqcrlraq6j7a3c0p7 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@201911.6253 no699gjh6bqcrlraq6j7a3c0p7 Query : use flama_phc
20240613@201911.6256 no699gjh6bqcrlraq6j7a3c0p7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@203611.2425 jcd0j0geelrfj3ub118uvjnah0 Query : use flama_phc
20240613@203611.2495 jcd0j0geelrfj3ub118uvjnah0 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@203611.2514 jcd0j0geelrfj3ub118uvjnah0 Query : use flama_phc
20240613@203611.2517 jcd0j0geelrfj3ub118uvjnah0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@211911.4347 57n1gjo04l2ld3fei5uvv1e835 Query : use flama_phc
20240613@211911.4352 57n1gjo04l2ld3fei5uvv1e835 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@211911.4369 57n1gjo04l2ld3fei5uvv1e835 Query : use flama_phc
20240613@211911.4373 57n1gjo04l2ld3fei5uvv1e835 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@213611.1006 ibpubqcpkiafunqkogsq2vni5v Query : use flama_phc
20240613@213611.1012 ibpubqcpkiafunqkogsq2vni5v Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@213611.1031 ibpubqcpkiafunqkogsq2vni5v Query : use flama_phc
20240613@213611.1033 ibpubqcpkiafunqkogsq2vni5v Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@221917.8623 bi4761p1abulm4i8e641rdrrrg Query : use flama_phc
20240613@221917.8629 bi4761p1abulm4i8e641rdrrrg Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@221917.8649 bi4761p1abulm4i8e641rdrrrg Query : use flama_phc
20240613@221917.8652 bi4761p1abulm4i8e641rdrrrg Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@223618.2310 hfttaag8dgra4i721cvugo6cj0 Query : use flama_phc
20240613@223618.2360 hfttaag8dgra4i721cvugo6cj0 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@223618.2540 hfttaag8dgra4i721cvugo6cj0 Query : use flama_phc
20240613@223618.2570 hfttaag8dgra4i721cvugo6cj0 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@231912.9696 b8ohgegeg2gdvfpm91u18td3c7 Query : use flama_phc
20240613@231912.9700 b8ohgegeg2gdvfpm91u18td3c7 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@231912.9718 b8ohgegeg2gdvfpm91u18td3c7 Query : use flama_phc
20240613@231912.9720 b8ohgegeg2gdvfpm91u18td3c7 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240613@233612.9096 dbgb07bgmsk6qtt6la3q4fkvvq Query : use flama_phc
20240613@233612.9100 dbgb07bgmsk6qtt6la3q4fkvvq Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240613@233612.9116 dbgb07bgmsk6qtt6la3q4fkvvq Query : use flama_phc
20240613@233612.9137 dbgb07bgmsk6qtt6la3q4fkvvq Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240614@071920.8222 9qhle1nfgh7e5c4ib6u8jvu3cg Query : use flama_phc
20240614@071920.8234 9qhle1nfgh7e5c4ib6u8jvu3cg Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240614@071920.8524 9qhle1nfgh7e5c4ib6u8jvu3cg Query : use flama_phc
20240614@071920.8562 9qhle1nfgh7e5c4ib6u8jvu3cg Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240614@073650.5187 7jir49pt0fnigshts96vps7on4 Query : use flama_phc
20240614@073650.5192 7jir49pt0fnigshts96vps7on4 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240614@073650.5322 7jir49pt0fnigshts96vps7on4 Query : use flama_phc
20240614@073650.5391 7jir49pt0fnigshts96vps7on4 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240614@081910.5550 v64c9sbn30kqgoc8ntdprqvfsc Query : use flama_phc
20240614@081910.5556 v64c9sbn30kqgoc8ntdprqvfsc Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240614@081910.5777 v64c9sbn30kqgoc8ntdprqvfsc Query : use flama_phc
20240614@081910.5864 v64c9sbn30kqgoc8ntdprqvfsc Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240614@083610.5474 oekp1gb40gdl8iqjekd7q9b6rg Query : use flama_phc
20240614@083610.5479 oekp1gb40gdl8iqjekd7q9b6rg Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240614@083610.5498 oekp1gb40gdl8iqjekd7q9b6rg Query : use flama_phc
20240614@083610.5501 oekp1gb40gdl8iqjekd7q9b6rg Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240614@091915.5757 fueqmpfe7qjqvvmaed9la7r5mm Query : use flama_phc
20240614@091915.5762 fueqmpfe7qjqvvmaed9la7r5mm Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240614@091915.5818 fueqmpfe7qjqvvmaed9la7r5mm Query : use flama_phc
20240614@091915.5820 fueqmpfe7qjqvvmaed9la7r5mm Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240614@093615.4951 hs86laa9mg3dsl8nic9oe0atf1 Query : use flama_phc
20240614@093615.4982 hs86laa9mg3dsl8nic9oe0atf1 Query : select secretkey valor from u_wsusers u where u.userid = ? and u.username=? and u.password=? and u.inactivo=0
20240614@093615.5010 hs86laa9mg3dsl8nic9oe0atf1 Query : use flama_phc
20240614@093615.5013 hs86laa9mg3dsl8nic9oe0atf1 Query : update u_wsusers set rqsttoken =? where userid ='userls001'
20240614@094745.9940 o48ou13chc92kj32i12cessuc5 Query : insert into uploadfiles ( name_original, name_new, option_type, relative_path, whencreated ) values ( ?, ?, ?, ?, getdate() )
20240614@094746.1400 o48ou13chc92kj32i12cessuc5 Query : select uploadfile_id valor from uploadfiles where name_new = ? and option_type = ? 
20240614@094746.8600 o48ou13chc92kj32i12cessuc5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='409';
20240614@094746.1750 o48ou13chc92kj32i12cessuc5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='409';
20240614@094746.2960 o48ou13chc92kj32i12cessuc5 Query : select concat(rtrim(relative_path),ltrim(name_new)) as valor from uploadfiles where uploadfile_id='409';
20240614@094746.4130 o48ou13chc92kj32i12cessuc5 Query : update uploadfiles set whenupdated=current_timestamp where uploadfile_id='409';
20240614@094746.4310 o48ou13chc92kj32i12cessuc5 Query : use flama_phc
20240614@094746.4350 o48ou13chc92kj32i12cessuc5 Query : select top 1 secretkey valor from u_wsusers u where u.userid = ? and u.inactivo=0
20240614@094746.5250 o48ou13chc92kj32i12cessuc5 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1676.00.1'
20240614@094746.6750 o48ou13chc92kj32i12cessuc5 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 = 2400173 and bi.ref ='324.1676.00.1' and bi.lordem =90000
20240614@094746.1116 o48ou13chc92kj32i12cessuc5 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 = 'cps24022050923,997000002 ' 
20240614@094746.1551 o48ou13chc92kj32i12cessuc5 Query : select top 1 isnull(design,'') valor from st (nolock) where st.ref = '324.1685.00.1'
20240614@094746.1700 o48ou13chc92kj32i12cessuc5 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 = 2400173 and bi.ref ='324.1685.00.1' and bi.lordem =10000
20240614@094746.2308 o48ou13chc92kj32i12cessuc5 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 = 'cps24022050924,512000003 ' 
20240614@094746.2716 o48ou13chc92kj32i12cessuc5 Query : use flama_phc
20240614@094746.2720 o48ou13chc92kj32i12cessuc5 Query : select top 1 1 valor from ts where ts.ndos = 61
20240614@094746.2791 o48ou13chc92kj32i12cessuc5 Query : use flama_phc
20240614@094746.2794 o48ou13chc92kj32i12cessuc5 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')
20240614@094746.2890 o48ou13chc92kj32i12cessuc5 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
20240614@094746.3063 o48ou13chc92kj32i12cessuc5 Query : use flama_phc
20240614@094746.3066 o48ou13chc92kj32i12cessuc5 Query : select top 1 ~inactivo valor from fl where no = '202226' and estab = 00 order by inactivo desc
20240614@094746.3202 o48ou13chc92kj32i12cessuc5 Query : use flama_phc
20240614@094746.3205 o48ou13chc92kj32i12cessuc5 Query : select 1 valor from ts where ndos = 61
20240614@094746.3273 o48ou13chc92kj32i12cessuc5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240614@094746.3771 o48ou13chc92kj32i12cessuc5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo' and documentnumber = 61
20240614@094746.3833 o48ou13chc92kj32i12cessuc5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240614@094746.3846 o48ou13chc92kj32i12cessuc5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo2' and documentnumber = 61
20240614@094746.3855 o48ou13chc92kj32i12cessuc5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240614@094746.3906 o48ou13chc92kj32i12cessuc5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bo3' and documentnumber = 61
20240614@094746.3913 o48ou13chc92kj32i12cessuc5 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
20240614@094746.4083 o48ou13chc92kj32i12cessuc5 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240614@094746.4234 o48ou13chc92kj32i12cessuc5 Query : select top 1 bo.obrano valor from bo bo where bo.ndos = 61 and boano=2024 order by obrano desc
20240614@094746.4251 o48ou13chc92kj32i12cessuc5 Query : use flama_phc
20240614@094746.4255 o48ou13chc92kj32i12cessuc5 Query : select top 1 no,estab,nome, morada, local,codpost,ncont,pncont,pais,inactivo,motiseimp,codmotiseimp from fl where no='202226' and estab=00
20240614@094746.4375 o48ou13chc92kj32i12cessuc5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240614@094746.4389 o48ou13chc92kj32i12cessuc5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo3' and documentnumber = 61
20240614@094746.4421 o48ou13chc92kj32i12cessuc5 Query : insert into bo3 (bo3stamp, ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut666c043474666c03b267',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240614@094746.4536 o48ou13chc92kj32i12cessuc5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240614@094746.4551 o48ou13chc92kj32i12cessuc5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo2' and documentnumber = 61
20240614@094746.4558 o48ou13chc92kj32i12cessuc5 Query : insert into bo2 (bo2stamp, tiposaft, idserie,cambio,cambiofixo,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut666c043474666c03b267','--','bo',7.7733199598796389167 ,1,getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut')
20240614@094746.4844 o48ou13chc92kj32i12cessuc5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240614@094746.4869 o48ou13chc92kj32i12cessuc5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bo' and documentnumber = 61
20240614@094746.4877 o48ou13chc92kj32i12cessuc5 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 ('aut666c043474666c03b267','guia r. fornecedor','2024-06-14',61,2401716,?,?,?,?,?,?,?,?,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')
20240614@094746.6019 o48ou13chc92kj32i12cessuc5 Query : use flama_phc
20240614@094746.6023 o48ou13chc92kj32i12cessuc5 Query : select st.usalote valor from st where st.ref = '324.1676.00.1'
20240614@094746.6174 o48ou13chc92kj32i12cessuc5 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.1676.00.1'
20240614@094746.6359 o48ou13chc92kj32i12cessuc5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240614@094746.6380 o48ou13chc92kj32i12cessuc5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240614@094746.6408 o48ou13chc92kj32i12cessuc5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240614@094746.6464 o48ou13chc92kj32i12cessuc5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240614@094746.6574 o48ou13chc92kj32i12cessuc5 Query : select sestamp valor from se where ref ='324.1676.00.1' and lote = 'r2400173900a'
20240614@094746.6698 o48ou13chc92kj32i12cessuc5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240614@094746.6713 o48ou13chc92kj32i12cessuc5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
20240614@094746.6720 o48ou13chc92kj32i12cessuc5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240614@094746.6733 o48ou13chc92kj32i12cessuc5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'se' and documentnumber = 0
20240614@094746.6743 o48ou13chc92kj32i12cessuc5 Query : insert into se (sestamp,ref, lote, data,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) values ('aut666c036423666c03b2a4',?,?,'20240614',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut;','aut;')
20240614@094746.7451 o48ou13chc92kj32i12cessuc5 Query : select top 1 convert(numeric(6,2),t.taxa) valor from taxasiva t where t.codigo='2'
20240614@094746.7489 o48ou13chc92kj32i12cessuc5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240614@094746.7502 o48ou13chc92kj32i12cessuc5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi2' and documentnumber = 61
20240614@094746.7510 o48ou13chc92kj32i12cessuc5 Query : insert into bi2 (bi2stamp,bostamp,morada, local,codpost ,ousrdata, ousrhora, usrdata,usrhora,ousrinis,usrinis) select 'aut666c042011666c03b2b6','aut666c043474666c03b267',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 = 'aut666c043474666c03b267'
20240614@094746.7684 o48ou13chc92kj32i12cessuc5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240614@094746.7706 o48ou13chc92kj32i12cessuc5 Query : select fieldkey,fieldname,fieldtype,calcformula from wstablefields where tablename = 'bi' and documentnumber = 61
20240614@094746.7718 o48ou13chc92kj32i12cessuc5 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 'aut666c042011666c03b2b6',getdate(),convert(char(8),convert (time,getdate())),getdate(),convert(char(8),convert (time,getdate())),'aut','aut',bo.obrano, 900, 900*.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 ,21.097806451613,21.097806451613*200.48,21.097806451613,21.097806451613*200.48 ,0,0,'un',' ' ,bo.marcada,1 ,21.097806451613*900,21.097806451613*900*200.48 ,29.173000,29.173000*200.48 ,29.173000,29.173000*200.48 ,bo.vendedor,bo.vendnm,bo.ccusto,bo.ncusto ,0,2,23.00,?,?,?,0,0,0,0,21.097806451613,21.097806451613*200.48,21.097806451613*900,21.097806451613*900*200.48,'cps24022050923,997000002 ',164,164*900,164,164*900,?,?,?,4 from bo bo where bo.bostamp = 'aut666c043474666c03b267'
20240614@094828.6047 o48ou13chc92kj32i12cessuc5 Query : use flama_phc
20240614@094828.6068 o48ou13chc92kj32i12cessuc5 Query : select st.usalote valor from st where st.ref = '324.1685.00.1'
20240614@094828.6082 o48ou13chc92kj32i12cessuc5 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.1685.00.1'
20240614@094828.6221 o48ou13chc92kj32i12cessuc5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240614@094828.6235 o48ou13chc92kj32i12cessuc5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi' and documentnumber = 61
20240614@094828.6244 o48ou13chc92kj32i12cessuc5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240614@094828.6256 o48ou13chc92kj32i12cessuc5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'bi2' and documentnumber = 61
20240614@094828.6261 o48ou13chc92kj32i12cessuc5 Query : select sestamp valor from se where ref ='324.1685.00.1' and lote = 'r2400173100a'
20240614@094828.6268 o48ou13chc92kj32i12cessuc5 Query : select 1 valor from information_schema.tables where table_type='base table' and table_name='wstablefields'
20240614@094828.6279 o48ou13chc92kj32i12cessuc5 Query : select fieldkey,fieldname,fieldtype,mandatory from wstablefields where tablename = 'se' and documentnumber = 0
