| XML Kiosk |
| Technologie | XAS.Technology | Version | V 6.0.1 |
| Dernière modification | Jeudi 8 Avril 2010 | Par | Zaïr BEZGHICHE |
| Dernière vérification | Mercredi 21 Avril 2010 | Par | Support France |
| Thème | Administration des Import/Export, (Web, Web Services, PDA, WidGet, Fat Client) | Fonction | MODIMP.IMPXmlQualifie |
| Prototype |
| Function IMPXmlQualifie (sFile As String, iFormat As Integer) As Integer |
| Usage | |||
| Administration-des-Import-Export.IMPXmlQualifie(...) | |||
| HTTP (GET,POST) | SOAP WSDL | SOAP REST | XML-RPC |
| Format de sortie | |||
| XML | HTML | TEXT | EXCEL(CSV) |
| Code Source - développement open source |
| Function IMPXmlQualifie (sFile As String, iFormat As Integer) As Integer |
Function IMPXmlQualifie (sFile As String, iFormat As Integer) As Integer
Dim Ret%
Dim IdXml%
Dim s$
Dim i%
Dim j%
Dim Cpt%
Dim jMax%
Dim OnBoucle%
CurMoyCodage = 0
CurNbCodage = 0
CurMaxCodage = 0
CurNbExist = 0
CurNbEntity = 0
CurNbMission = 0
IMPXmlQualifie = 0
IdXml = XasXmlOpen(sFile, 0, 0, 0, 0)
If IdXml > 0 Then
Cpt = IMPStartXmlBook(IdXml, iFormat)
If Cpt > 0 Then
For i = 1 To Cpt
jMax = GetCharMaxIndice(CurXmlData(i), ",", "")
If jMax > 0 Then
CurMaxChamp(i) = jMax
For j = 1 To jMax
s = GetCharByIndice(CurXmlData(i), ",", j)
If UCase$(s) <> CurXmlChamp(i) Then
CurNomChamp(i, j) = GetCharByIndice(CurXmlData(i), ",", j)
End If
Next j
End If
Next i
Ret = XasXmlChildNode(IdXml, s)
While (Ret <> False)
OnBoucle = OnBoucle + 1
XasSleep 1
For i = 1 To Cpt
Ret = IMPCheckDatabase(IdXml, i)
If Ret = False Then
Ret = IMPSetGeoCodage(IdXml, i)
Ret = IMPEntityCreate(IdXml, i)
Else
CurNbExist = CurNbExist + 1
End If
Next i
If OnBoucle > 3000 Then
OnBoucle = False
Ret = pExecute("RESTARTDATABASE('" + GlobPU.Connect + "')")
End If
Ret = XasXmlNextNode(IdXml, s)
Wend
End If
Ret = XasXmlSetAttribut(IdXml, -1, "")
Ret = XasXmlClose(IdXml)
End If
End Function
|
| Références XAS.Technology |
| XasXMLOpen , GetCharMaxIndice , GetCharByIndice , UCase , XasXMLChildNode , XasSleep , XasXMLNextNode , XasXMLSetAttribut , XasXMLClose , |
| Audience |
| Cette documentation est destinée aux personnes s'intéressant aux systèmes d'information collaboratifs. Les Webservices, les architectures collabortives et distribuées, les moteurs transactionnelles et les concepts de programmation orientés objet. |
| XAS Services - Zaïr BEZGHICHE - Copyright 1991-2011 tous droits réservés- Powered by XAS.Technology |