Sub InsertRecord(Name As String, Marca As String, Blob() As Byte, Description As String)
Dim cmd As DBCommand = CreateCommand("insertItem", Array(Name, Marca, Blob, Description))
Dim j As HttpJob = CreateRequest.ExecuteBatch(Array(cmd), Null)
Wait For (j) jobDone(j As HttpJob)
ProgressDialogShow("Espere porfavor...")
If j.Success Then
ToastMessageShow("Añadido con exito...!", False)
End If
ProgressDialogHide
j.Release
End Sub
Sub UpdateRecord(Name As String, Marca As String, Blob() As Byte, Description As String)
Dim cmd As DBCommand = CreateCommand("updateItem", Array(Name, Marca, Blob, Description,item_id))
Dim j As HttpJob = CreateRequest.ExecuteBatch(Array(cmd), Null)
Wait For (j) jobDone(j As HttpJob)
ProgressDialogShow("Espere porfavor...")
If j.Success Then
ToastMessageShow("Actualizado con exito...!", False)
End If
ProgressDialogHide
j.Release
End Sub