Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.49 KB | None | 0 0
  1. if ($('.candidateGroups').eq(0).text().indexOf('_tn_') != -1) {
  2. var data_entrada_area2_formatada = moment(formData.data_entrada_area2);
  3. var data_ola_formatada = moment(formData.data_ola);
  4. if (moment(data_ola_formatada).isBefore(data_entrada_area2_formatada)) {
  5. //$('fieldset:eq(0)').before('<div class="alert alert-danger-dark bs-alert-old-docs" style="font-weight: bold; text-align: center;">Atividade recebida fora do prazo com vencimento em: <strong>' + moment(dataOla).format('DD/MM/YYYY HH:mm') + '</strong></div>');
  6. if (formData.retornos > 1) {
  7. if (Qtdreincidente > 0) {
  8. view.$el.find("#solicitacaoReincidente").hide();
  9. view.$el.find("#atividadeRecebida").hide();
  10. view.$el.find("#solicitacaoPctMenor60").hide();
  11. view.$el.find("#solicitacaoPctMenorIgual100").hide();
  12. // $('fieldset:eq(0)').before('<div class="alert bs-alert-old-docs id"atividadeRecebida" style="float: left font-weight: bold; text-align: center; color:#000000; background-color: yellow;">Atividade recebida fora do prazo</div>');
  13. // $('fieldset:eq(0)').before('<div class="alert alert-success bs-alert-old-docs" style="float: right font-weight: bold; text-align: center;">Solicitação do cliente precisa ser tratada até: <strong>' + moment(dataOla).format('DD/MM/YYYY HH:mm') + '</strong></div>');
  14. $('fieldset:eq(0)').before('<div class="alert bs-alert-old-docs" style="float: left; font-weight: bold; text-align: center; color: #000000; width: 45%; background-color: yellow;">Atividade recebida fora do prazo</div>');
  15. $('fieldset:eq(0)').before('<div class="alert alert-danger-dark bs-alert-old-docs" style="float: right; font-weight: bold; text-align: center; width: 45%;">SOLICITAÇÃO REINCIDENTE</div>');
  16. $('fieldset:eq(0)').before('<div style="clear: both; margin-bottom: 5px;"></div>');
  17. $('fieldset:eq(0)').before('<div class="solicitacaoPrecisaTatar alert alert-success bs-alert-old-docs" style="font-weight: bold; text-align: center;">Solicitação do cliente precisa ser tratada até: <strong>' + moment(dataOla).format('DD/MM/YYYY HH:mm') + '</strong></div>');
  18. $('fieldset:eq(0)').before('<div style="clear: both; margin-bottom: 5px;"></div>');
  19. } else {
  20. $('fieldset:eq(0)').before('<div class="alert bs-alert-old-docs id"atividadeRecebida" style="font-weight: bold; text-align: center; color:#000000; background-color: yellow;">Atividade recebida fora do prazo</div>');
  21. view.$el.find(".classAtividadeExpirada").hide();
  22. }
  23. }
  24.  
  25. if (($('#historicoTratativaTable td').size() > 1) && ($('#historicoTratativaTable td').eq(3).text() == "Direcionada para BKO TN" || $('#historicoTratativaTable td').eq(3).text() == "Direcionada para BKO SAC")) {} else {
  26. view.$el.find(".solicitacaoPrecisaTatar").hide();
  27. view.$el.find("#pendenteUrgente").hide();
  28. $('fieldset:eq(0)').before('<div class="alert alert-danger-dark bs-alert-old-docs" style="font-weight: bold; color: red; text-align: center; background: #ffffff;">(URGENTE) PENDENTE FORA DO PRAZO DESDE: <strong>' + moment(dataSla).format('DD/MM/YYYY HH:mm') + '</strong></div>');
  29. }
  30. }
  31. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement