Dim req As DBRequestManager = CreateRequest
Dim cmd As DBCommand = CreateCommand("operator_count", Array(UserName_edt.Text, Password_edt.Text))
Wait For (req.ExecuteQuery(cmd, 0, Null)) JobDone(j As HttpJob)
If j.Success Then
req.HandleJobAsync(j, "req")
Wait For (req) req_Result(res As DBResult)
Dim nCount As Int
For Each row() As Object In res.Rows
nCount = row(res.Columns.Get("COUNT"))
Next
If nCount > 0 Then
StartActivity(Menu)
Else
xui.MsgboxAsync("Username atau password salah !" , "Info")
End If
Else
Log("ERROR: " & j.ErrorMessage)
End If
j.Release