DELETE FROM agenda_tarefa WHERE idPrimario ='-1758886662361' - 110;
DELETE FROM agenda_tarefa WHERE idPrimario ='-1758886662361' - 110;
DELETE FROM agenda_tarefa WHERE idPrimario ='-1758886662361' - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1758886628579','2','','850','2025-09-26','2025-09-25','08:00:00','18:00:00','Finalizado','110','110','','-1758886628579','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1758886637984','1','','850','2025-09-26','2025-09-25','08:00:00','18:00:00','Finalizado','110','110','','-1758886637984','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1758886628579','2','','850','2025-09-26','2025-09-26','','','','','110','32094001','-1758886665718','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1758886637984','1','','850','2025-09-26','2025-09-26','','','','','110','32066101','-1758886813992','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1758886637984','1','','850','2025-09-26','2025-09-26','','','','','110','20091501','-1758886898610','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1758886637984','1','','850','2025-09-26','2025-09-26','','','','','110','191101','-1758886916736','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1758886637984','1','','850','2025-09-26','2025-09-26','','','','','110','242001','-1758886936101','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1758886637984','1','','850','2025-09-26','2025-09-26','','','','','110','32121601','-1758886957646','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1758886637984','1','','850','2025-09-26','2025-09-26','','','','','110','32171901','-1758886972388','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1758886662361','2','','850','2025-09-26','2025-09-26','','','','','110','32094001','-1758887555036','','') - 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1758887656413','999','','838','2025-09-26','2025-09-26','08:00:00','18:00:00','Finalizado','110','110','','-1758887656413','','') - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886665718','416','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886665718','417','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886665718','418','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886665718','419','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','204','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886813992','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','304','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','420','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','421','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','113','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886898610','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','204','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','205','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','307','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','420','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886916736','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','420','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','421','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886936101','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','108','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','420','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','421','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','113','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886957646','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','101','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','102','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','103','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','105','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','107','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','204','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','205','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','304','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','108','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','307','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','420','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','421','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','422','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','109','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','110','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','112','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','113','0','') ON DUPLICATE KEY UPDATE resposta = '0', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','209','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','210','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','212','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','115','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','116','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','214','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_formulario (tarefa, item, resposta, resposta_txt) values ('-1758886972388','215','1','') ON DUPLICATE KEY UPDATE resposta = '1', resposta_txt = '' - 110;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1758886628579','2025-11-25','','não consegue atingir os 80 mil em vendas mais vou fazer uma divisão com vendedora Sandra .') - 110;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1758886637984','2025-11-25','','focar nos lançamentos linea todeschini multi usos') - 110;
INSERT INTO agenda_resposta_desenvolvimento_equipe (tarefa, prazo, feedback, acao) values ('-1758887656413','2025-10-26','','visitas nas filiais da coper A 1 Pamitos é Pinhalzinho') - 110;
UPDATE agenda_tarefa SET idPrimario = 54222 WHERE idPrimario = -1758886628579 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54222 WHERE tarefa = -1758886628579 - 110;
UPDATE agenda_tarefa SET idPrimario = 54223 WHERE idPrimario = -1758886637984 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54223 WHERE tarefa = -1758886637984 - 110;
UPDATE agenda_resposta_formulario SET tarefa = 54224 WHERE tarefa = -1758886665718 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54224 WHERE tarefa = -1758886665718 - 110;
UPDATE agenda_resposta_formulario SET tarefa = 54225 WHERE tarefa = -1758886813992 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54225 WHERE tarefa = -1758886813992 - 110;
UPDATE agenda_resposta_formulario SET tarefa = 54226 WHERE tarefa = -1758886898610 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54226 WHERE tarefa = -1758886898610 - 110;
UPDATE agenda_resposta_formulario SET tarefa = 54227 WHERE tarefa = -1758886916736 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54227 WHERE tarefa = -1758886916736 - 110;
UPDATE agenda_resposta_formulario SET tarefa = 54228 WHERE tarefa = -1758886936101 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54228 WHERE tarefa = -1758886936101 - 110;
UPDATE agenda_resposta_formulario SET tarefa = 54229 WHERE tarefa = -1758886957646 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54229 WHERE tarefa = -1758886957646 - 110;
UPDATE agenda_resposta_formulario SET tarefa = 54230 WHERE tarefa = -1758886972388 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54230 WHERE tarefa = -1758886972388 - 110;
UPDATE agenda_resposta_formulario SET tarefa = 54231 WHERE tarefa = -1758887555036 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54231 WHERE tarefa = -1758887555036 - 110;
UPDATE agenda_tarefa SET idPrimario = 54232 WHERE idPrimario = -1758887656413 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54232 WHERE tarefa = -1758887656413 - 110;
update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110;
update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110;
insert into agenda_tarefa (idPrimario, assunto, vendedor, dataCriacao, dataInsercao, data, horario_inicial, horario_final, usuario, supervisor, idOriginal, observacao, clientes, resumo, status) select date_format(now(),'%Y%m%d%H%i%s') * -1, 999, b.vendedor, curdate(), now(), a.prazo, '08:00:00', '08:00:00', b.supervisor, b.supervisor, date_format(now(),'%Y%m%d%H%i%s') * -1, a.acao, '', '', 'Pendente' FROM agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b where a.tarefaAgendada is null and a.tarefa = b.id ; - 110;
update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 110;
update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 110;
sqlCabecalho-> SELECT a.idPrimario,
f.descricao,
concat(b.supervisor,' - ',g.nome) supervisor,
concat(b.vendedor,' - ',h.nome) vendedor,
DATE_FORMAT(b.data, '%d/%m/%Y') as data,
b.horario_inicial,
b.horario_final,
b.supervisor,
b.vendedor
FROM agenda_tarefa a, agenda_tarefa b
left join agenda_assunto f on b.assunto = f.id
left join vendedor g on b.supervisor = g.id
left join vendedor h on b.vendedor = h.id,
agenda_resposta_formulario c
left join agenda_item d on c.item = d.id
left join agenda_grupo e on d.grupo = e.id
WHERE a.idPrimario = b.id
AND a.id = c.tarefa
AND a.idPrimario = '54222'
GROUP BY a.idPrimario - 110;
Binding output parameters deu certo: ( 0) - 110;
FORM VENDEDOR 20 - 110;
GRUPO->
Grupos:
| Grupo |
Qtd |
Percentual |
| 50 - 10 - ANALISE SITUACIONAL DO COLABORADOR |
4 |
25.00 |
- 110;
Respostas->Questões:
| Grupo | Questes | Qtd | Percentual |
|---|
| 50 - 10 - ANALISE SITUACIONAL DO COLABORADOR |
416 - É C1 (MOTIVAÇÃO BAIXA / HABILIDADE BAIXA)? ESTILO DO LÍDER = DIRIGIR. |
1 |
0.00 |
| 50 - 10 - ANALISE SITUACIONAL DO COLABORADOR |
417 - É C2 (MOTIVAÇÃO ALTA / HABILIDADE BAIXA)? ESTILO DO LÍDER = GUIAR. |
1 |
0.00 |
| 50 - 10 - ANALISE SITUACIONAL DO COLABORADOR |
418 - É C3 (MOTIVAÇÃO BAIXA / HABILIDADE ALTA)? ESTILO DO LÍDER = APOIAR. |
1 |
100.00 |
| 50 - 10 - ANALISE SITUACIONAL DO COLABORADOR |
419 - É C4 (MOTIVAÇÃO ALTA / HABILIDADE ALTA)? ESTILO DO LÍDER = DELEGAR. |
1 |
0.00 |
- 110;
sqlCabecalho-> SELECT a.idPrimario,
f.descricao,
concat(b.supervisor,' - ',g.nome) supervisor,
concat(b.vendedor,' - ',h.nome) vendedor,
DATE_FORMAT(b.data, '%d/%m/%Y') as data,
b.horario_inicial,
b.horario_final,
b.supervisor,
b.vendedor
FROM agenda_tarefa a, agenda_tarefa b
left join agenda_assunto f on b.assunto = f.id
left join vendedor g on b.supervisor = g.id
left join vendedor h on b.vendedor = h.id,
agenda_resposta_formulario c
left join agenda_item d on c.item = d.id
left join agenda_grupo e on d.grupo = e.id
WHERE a.idPrimario = b.id
AND a.id = c.tarefa
AND a.idPrimario = '54223'
GROUP BY a.idPrimario - 110;
Binding output parameters deu certo: ( 0) - 110;
FORM VENDEDOR 20 - 110;
GRUPO->Grupos:
| Grupo |
Qtd |
Percentual |
| 1 - 1 - PLANEJAR |
18 |
100.00 |
| 2 - 2 - LEITURA DE LOJA |
30 |
66.67 |
| 3 - 3 - EXECUTAR |
30 |
36.67 |
| 4 - 4 - NEGOCIAR |
42 |
90.48 |
| 5 - 5 - ANALISAR |
24 |
100.00 |
- 110;
Respostas->Questões:
| Grupo | Questes | Qtd | Percentual |
|---|
| 1 - 1 - PLANEJAR |
101 - 1 - É UMA VISITA NO ROTEIRO DO DIA? |
6 |
100.00 |
| 1 - 1 - PLANEJAR |
102 - 2 - TEM AS PARCIAIS (MSL/TOPS/CAMPANHAS), ANALISOU E SABE O QUE PRECISA FAZER NESTA VISITA/CLIENTE (ITENS QUE PRECISA POSITIVAR, TAREFA ANTERIOR, ETC)? |
6 |
100.00 |
| 1 - 1 - PLANEJAR |
103 - 3 - REVISOU CADASTRO (CRÉDITO) E HISTÓRICO DE COMPRA? |
6 |
100.00 |
| 2 - 2 - LEITURA DE LOJA |
105 - 4 - FEZ O LEVANTAMENTO DE ESTOQUE USANDO O HISTÓRICO DO APP DE VENDAS? |
6 |
100.00 |
| 2 - 2 - LEITURA DE LOJA |
107 - 6 - ANALISOU CONCORRENTES (ESPAÇO, MIX E PREÇOS)? IDENTIFICOU OPORTUNIDADES COM OLHO NA CONCORRÊNCIA? |
6 |
100.00 |
| 2 - 2 - LEITURA DE LOJA |
204 - 7 - LOJA TEM DE AÇÕES DE MERCHANDISING? (CLIP STRIP, CROSS MERCHANDISING, WOBLER, CARTAZ, ETC...) SE NÃO TINHA, COLOCOU ALGUM ITEM? |
6 |
33.33 |
| 2 - 2 - LEITURA DE LOJA |
205 - 8 - LOJA TEM AÇÕES DE MERCHANDISING? (PONTA, ILHA, ENCARTE, EXPOSITOR) |
6 |
16.67 |
| 2 - 2 - LEITURA DE LOJA |
304 - 5 - ANALISOU NOSSO PREÇOS VS PREÇO SUGERIDO? PRODUTOS ESTÃO PRECIFICADOS CORRETAMENTE (MESMO PREÇO ENTRE FRAGRÂNCIAS E SIMILARES/AGRUPAMENTOS)? CORRIGIU O PROBLEMA? |
6 |
83.33 |
| 3 - 3 - EXECUTAR |
108 - 9 - ANALISOU A VALIDADE DOS PRODUTOS? TOMOU ATITUDE PARA RESOLVER O PROBLEMA? |
6 |
83.33 |
| 3 - 3 - EXECUTAR |
307 - 10 - FOI NO DEPÓSITO? VERIFICOU SE TEM MERCADORIA NO DEPÓSITO E NÃO TEM NA ÁREA DE VENDAS? RESOLVEU PROBLEMAS? |
6 |
16.67 |
| 3 - 3 - EXECUTAR |
420 - 11 - VERIFICOU TROCAS E PROBLEMAS COM PRODUTOS? RESOLVER IMEDIATAMENTE. |
6 |
33.33 |
| 3 - 3 - EXECUTAR |
421 - 12 - ABASTECEU, COLOCOU MATERIAL, ORGANIZOU GÔNDOLAS E RUPTURAS, ARRUMOU E/OU COLOCOU PREÇO? |
6 |
50.00 |
| 3 - 3 - EXECUTAR |
422 - 13 - CORRIGIU MERCADORIA QUE NÃO TINHA NO PONTO NATURAL MAS TINHA NO PONTO EXTRA? CASO ESTEJA OK, MARCAR SIM. |
6 |
0.00 |
| 4 - 4 - NEGOCIAR |
109 - 14 - FEZ UMA ABORDAGEM/ABERTURA EFICIENTE? (CORDIAL, POSITIVA, ADEQUADA AO PERFIL DESTE CLIENTE) |
6 |
100.00 |
| 4 - 4 - NEGOCIAR |
110 - 15 - APRESENTOU A PAUTA AO CLIENTE (MESMO SENDO FILIAL OU COMPRADOR AUSENTE, APRESENTE AO GESTOR DA LOJA ITENS QUE DESEJA INTRODUZIR)? |
6 |
100.00 |
| 4 - 4 - NEGOCIAR |
112 - 17 - NEGOCIOU AS RUPTURAS (SE FOR FILIAL OU COMPRADOR AUSENTE, FEZ A CONTAGEM ESTOQUE E IDENTIFICOU RUPTURA)? |
6 |
100.00 |
| 4 - 4 - NEGOCIAR |
113 - 19 - FEZ INTRODUÇÃO DE ALGUM ITEM (CADASTRO NOVO)? |
6 |
33.33 |
| 4 - 4 - NEGOCIAR |
209 - 18 - TINHA ARGUMENTOS PARA REVERTER OBJEÇÃO (SE NÃO TEVE=RESPOSTA SIM) SE NÃO CONSEGUIU REVERTER, TEMA PARA FEEDBACK E INCLUIR NAS TAREFAS/AGENDA FUTURA. QUAL A OBJEÇÃO, COMO REVERTER, DICAS, TREINAR, ETC. (SE FOR FILIAL OU COMPRADOR AUSENTE, MARCAR |
6 |
100.00 |
| 4 - 4 - NEGOCIAR |
210 - 17 - TIROU O PEDIDO? (NÃO É ORÇAMENTO! É PEDIDO PARA FATURAR JÁ!!)
(SE FOR FILIAL OU COMPRADOR AUSENTE, MARCAR SIM) |
6 |
100.00 |
| 4 - 4 - NEGOCIAR |
212 - 20 - "TIROU O PEDIDO? (NÃO É ORÇAMENTO! É PEDIDO PARA FATURAR JÁ!!)
(SE FOR FILIAL OU COMPRADOR AUSENTE, MARCAR SIM) |
6 |
100.00 |
| 5 - 5 - ANALISAR |
115 - 18 - AO SAIR DO CLIENTE REFORÇOU O QUE FOI COMBINADO?
(VALOR DO PEDIDO/DATA/ESPAÇO/PREÇO/RUPTURAS/CAMPANHAS/ITENS INTRODUZIR) |
6 |
100.00 |
| 5 - 5 - ANALISAR |
116 - 21 - "AO SAIR DO CLIENTE REFORÇOU O QUE FOI COMBINADO?
(VALOR DO PEDIDO/DATA/ESPAÇO/PREÇO/RUPTURAS/CAMPANHAS/ITENS INTRODUZIR)" |
6 |
100.00 |
| 5 - 5 - ANALISAR |
214 - 22 - REVISOU O PEDIDO ANTES DE ENVIAR (PREÇOS, COMBOS, BONIFICAÇÕES, PRAZO, ETC...)? |
6 |
100.00 |
| 5 - 5 - ANALISAR |
215 - 23 - TRASMITIU AO SAIR DO CLIENTE? (PEDIDO, NÃO VENDA OU VENDA DIGITADO POSTERIOR) |
6 |
100.00 |
- 110;
statusNaoFinalizado - 110;
statusNaoFinalizado - 110;
statusNaoFinalizado - 110;
statusNaoFinalizado - 110;
statusNaoFinalizado - 110;
statusNaoFinalizado - 110;
statusNaoFinalizado - 110;
statusNaoFinalizado - 110;
sqlCabecalho-> SELECT a.idPrimario,
f.descricao,
concat(b.supervisor,' - ',g.nome) supervisor,
concat(b.vendedor,' - ',h.nome) vendedor,
DATE_FORMAT(b.data, '%d/%m/%Y') as data,
b.horario_inicial,
b.horario_final,
b.supervisor,
b.vendedor
FROM agenda_tarefa a, agenda_tarefa b
left join agenda_assunto f on b.assunto = f.id
left join vendedor g on b.supervisor = g.id
left join vendedor h on b.vendedor = h.id,
agenda_resposta_formulario c
left join agenda_item d on c.item = d.id
left join agenda_grupo e on d.grupo = e.id
WHERE a.idPrimario = b.id
AND a.id = c.tarefa
AND a.idPrimario = '54232'
GROUP BY a.idPrimario - 110;
Binding output parameters deu certo: ( 0) - 110;
FORM VENDEDOR 20 - 110;
GRUPO->Grupos:
- 110;
Respostas->Questões:
| Grupo | Questes | Qtd | Percentual |
|---|
- 110;
INSERT INTO agenda_tarefa (idPrimario, assunto, observacao, vendedor, dataCriacao, data, horario_inicial, horario_final, status, usuario, supervisor, clientes, idOriginal, resumo, dataRota) values ('-1756225922093','3','','843','2025-08-26','2025-08-31','08:00:00','09:00:00','Pendente','110','110','','-1756225922093','','') - 110;
UPDATE agenda_tarefa SET idPrimario = 54236 WHERE idPrimario = -1756225922093 - 110;
UPDATE agenda_resposta_desenvolvimento_equipe SET tarefa = 54236 WHERE tarefa = -1756225922093 - 110;
update agenda_resposta_formulario a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110;
update agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b set a.tarefa = b.id where a.tarefa = b.idOriginal - 110;
insert into agenda_tarefa (idPrimario, assunto, vendedor, dataCriacao, dataInsercao, data, horario_inicial, horario_final, usuario, supervisor, idOriginal, observacao, clientes, resumo, status) select date_format(now(),'%Y%m%d%H%i%s') * -1, 999, b.vendedor, curdate(), now(), a.prazo, '08:00:00', '08:00:00', b.supervisor, b.supervisor, date_format(now(),'%Y%m%d%H%i%s') * -1, a.acao, '', '', 'Pendente' FROM agenda_resposta_desenvolvimento_equipe a, agenda_tarefa b where a.tarefaAgendada is null and a.tarefa = b.id ; - 110;
update agenda_tarefa set idPrimario = id where idPrimario = idOriginal; - 110;
update agenda_resposta_desenvolvimento_equipe aa set aa.tarefaAgendada = 1 where aa.tarefaAgendada is null; - 110;
statusNaoFinalizado - 110;