| XML Kiosk |
| Technologie | XAS.Technology | Version | V 6.0.1 |
| Dernière modification | Jeudi 22 Avril 2010 | Par | Zaïr BEZGHICHE |
| Dernière vérification | Vendredi 30 Avril 2010 | Par | Support France |
| Thème | Administration des Import/Export, (Web, Web Services, PDA, WidGet, Fat Client) | Fonction | FrmImport.DoGridIMP |
| Prototype |
| Function DoGridIMP (Ctrl As Control, NbRow As Integer, Id As Integer, sFile As String) As Integer |
| Usage | |||
| Administration-des-Import-Export.DoGridIMP(...) | |||
| HTTP (GET,POST) | SOAP WSDL | SOAP REST | XML-RPC |
| Format de sortie | |||
| XML | HTML | TEXT | EXCEL(CSV) |
| Code Source - développement open source |
| Function DoGridIMP (Ctrl As Control, NbRow As Integer, Id As Integer, sFile As String) As Integer |
Function DoGridIMP (Ctrl As Control, NbRow As Integer, Id As Integer, sFile As String) As Integer
Dim Ret%
Dim i%
Dim j%
Dim s$
Dim IdXml%
Dim sA$
Dim NbCol%
IdXml = XasXmlOpen(sFile, 0, 0, 0, 0)
If IdXml <> 0 Then
Ret = XasXmlSearchNode(IdXml, 5, "Id=" + CStr(Id), "", "")
If Ret <> False Then
Ret = XasXMLGetAttributbyName(IdXml, "Size", sA)
Ret = XasXMLGetAttributbyName(IdXml, "Max", sA)
NbCol = Val(sA)
Ret = XasXmlChildNode(IdXml, sA)
If Ret <> False Then
Ctrl.Rows = NbRow
Ctrl.Cols = NbCol + 1
NbRow = NbRow - 1
For i = 0 To NbRow
Ctrl.Row = i
Ctrl.RowHeight(i) = 285
For j = 1 To NbCol
Ctrl.Col = j
Ctrl.Text = ""
Next j
Next i
Ctrl.RowHeight(0) = 500
Ctrl.ColWidth(0) = 500
Ctrl.Row = 0
For j = 1 To NbCol
Ctrl.Col = j
Ctrl.ColAlignment(j) = 2
Ret = IMPGetParam(IdXml, Id, j)
If Ret = True Then
Ret = XasXMLGetAttributbyName(IdXml, "Size", sA)
Ret = Val(sA) * 150
Ctrl.ColWidth(j) = Ret
Ret = cbo(j).ListIndex
s = Trim$(Left$(cbo(j).List(Ret), 20))
Ctrl.Text = s
End If
Next j
DoGridIMP = True
End If
End If
End If
End Function
|
| Références Composants |
| Administration-des-Import-Export-FrmImport-PicClient_Click, |
| Références XAS.Technology |
| XasXMLOpen , XasXMLSearchNode , Cstr , XasXMLGetAttributByName , Val , XasXMLChildNode , Trim , Left , |
| 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 |