Commit 24276647612ff9ae4e69a3741f113c83e268f494

Authored by Edmar Moretti
1 parent e5af7ed8

Reformulada a rotina que monta os parâmetros para realizar a identificação com s…

…istemas definidos em identifica.xml. Os parâmetros x e y são agora incluídos automaticamente, sem necessidade de constarem no XML.
Showing 1 changed file with 7 additions and 0 deletions   Show diff stats
ferramentas/identifica/index.js
... ... @@ -47,6 +47,13 @@ function pegavalSistemas(xmlDoc)
47 47 {
48 48 var sistema = sis[ig].getElementsByTagName("NOMESIS")[0].firstChild.nodeValue
49 49 var exec = sis[ig].getElementsByTagName("ABRIR")[0].firstChild.nodeValue
  50 + var temp = exec.split('"')
  51 + if(temp.length == 1)
  52 + var exec = '"'+exec+'"'
  53 + var temp = exec.split("?")
  54 + if(temp.length != 2)
  55 + exec += '+"?"'
  56 + exec += '+"'+"&x="+xpt+"&y="+ypt+'"'
50 57 var t = "blank"
51 58 if (sis[ig].getElementsByTagName("TARGET")[0])
52 59 {t = sis[ig].getElementsByTagName("TARGET")[0].firstChild.nodeValue}
... ...