mirror of
https://github.com/KeymonSoft/Mariana.git
synced 2026-04-20 22:29:29 +00:00
19/9/23 - Pruebas
This commit is contained in:
@@ -36,16 +36,6 @@ Sub Class_Globals
|
|||||||
Public promos As C_Promos
|
Public promos As C_Promos
|
||||||
Public historico As C_Historico
|
Public historico As C_Historico
|
||||||
|
|
||||||
'nuevocliente -> NuevoCliente
|
|
||||||
'buscar -> ticketsDia
|
|
||||||
'colonia -> clientes
|
|
||||||
'nopago -> noVenta
|
|
||||||
'tarjeta -> Nota
|
|
||||||
'fila -> Cliente
|
|
||||||
'colonia2 -> Productos
|
|
||||||
|
|
||||||
'xxxxxxxxxxxxxxxxxxxxxxxxx
|
|
||||||
|
|
||||||
Dim reqManager As DBRequestManager
|
Dim reqManager As DBRequestManager
|
||||||
Dim s As C_Subs
|
Dim s As C_Subs
|
||||||
Dim v As String = Application.VersionName
|
Dim v As String = Application.VersionName
|
||||||
|
|||||||
@@ -1761,7 +1761,12 @@ Sub tickets_dia_LongClick
|
|||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
Sub Subs_envioOk(succes As Boolean)
|
Sub Subs_envioOk(succes As Boolean)
|
||||||
Log("###################### " & succes)
|
Log("###################### ENVIO OK - " & succes)
|
||||||
|
If Not(succes) Then
|
||||||
|
ToastMessageShow($"El envio no se completo con exito, por favor vuelva a enviar."$, True)
|
||||||
|
Else
|
||||||
|
ToastMessageShow($"¡El envio exitoso!."$, True)
|
||||||
|
End If
|
||||||
ProgressDialogHide
|
ProgressDialogHide
|
||||||
End Sub
|
End Sub
|
||||||
'################################ Termina codigo de prueba #############################
|
'################################ Termina codigo de prueba #############################
|
||||||
|
|||||||
@@ -17,6 +17,7 @@ Sub Class_Globals
|
|||||||
Dim db, kmt, errorLog As SQL 'Requiere la libreria "SQL" 'ignore
|
Dim db, kmt, errorLog As SQL 'Requiere la libreria "SQL" 'ignore
|
||||||
Dim ssid As String 'ignore
|
Dim ssid As String 'ignore
|
||||||
Dim reqsList As List
|
Dim reqsList As List
|
||||||
|
Dim reqError As Boolean = False
|
||||||
Private subsLogs As Boolean = False
|
Private subsLogs As Boolean = False
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
@@ -65,7 +66,8 @@ Sub envioTest
|
|||||||
Private cmd As DBCommand
|
Private cmd As DBCommand
|
||||||
cmd.Initialize
|
cmd.Initialize
|
||||||
cmd.Name = "select_fecha"
|
cmd.Name = "select_fecha"
|
||||||
For i = 0 To 20
|
For i = 0 To 50
|
||||||
|
' Sleep(200)
|
||||||
reqManager.ExecuteQuery(cmd, 0, $"select_fecha_${i}"$)
|
reqManager.ExecuteQuery(cmd, 0, $"select_fecha_${i}"$)
|
||||||
reqsList.Add($"select_fecha_${i}"$)
|
reqsList.Add($"select_fecha_${i}"$)
|
||||||
Next
|
Next
|
||||||
@@ -82,7 +84,10 @@ End Sub
|
|||||||
Sub JobDone(Job As HttpJob)
|
Sub JobDone(Job As HttpJob)
|
||||||
LogColor("C_SUBS JOBDONE - " & Job.Success, Colors.Red)
|
LogColor("C_SUBS JOBDONE - " & Job.Success, Colors.Red)
|
||||||
If Job.Success = False Then
|
If Job.Success = False Then
|
||||||
|
Log($"Error en el request ${Job.Tag}"$)
|
||||||
LogColor("** " & Job.Tag & " Error: " & Job.ErrorMessage, Colors.Red)
|
LogColor("** " & Job.Tag & " Error: " & Job.ErrorMessage, Colors.Red)
|
||||||
|
If reqsList.IndexOf(Job.Tag) > -1 Then reqsList.RemoveAt(reqsList.IndexOf(Job.Tag))
|
||||||
|
reqError = True
|
||||||
Else
|
Else
|
||||||
If Job.JobName = "DBRequest" Then
|
If Job.JobName = "DBRequest" Then
|
||||||
Dim resultado As DBResult = reqManager.HandleJob(Job)
|
Dim resultado As DBResult = reqManager.HandleJob(Job)
|
||||||
@@ -94,13 +99,19 @@ Sub JobDone(Job As HttpJob)
|
|||||||
Next
|
Next
|
||||||
Next
|
Next
|
||||||
End If
|
End If
|
||||||
Log(reqsList.Size)
|
|
||||||
If reqsList.Size = 0 Then 'Ya no hay DBReqs pendientes.
|
|
||||||
envioOk(True)
|
|
||||||
Log("-= FIN =-")
|
|
||||||
End If
|
|
||||||
End If
|
End If
|
||||||
End If
|
End If
|
||||||
|
Log(reqsList.Size)
|
||||||
|
If reqsList.Size = 0 Then 'Ya no hay DBReqs pendientes.
|
||||||
|
Log(reqError)
|
||||||
|
If Not(reqError) Then
|
||||||
|
envioOk(True)
|
||||||
|
Else
|
||||||
|
envioOk(False)
|
||||||
|
End If
|
||||||
|
reqError = False
|
||||||
|
Log("-= FIN =-")
|
||||||
|
End If
|
||||||
Job.Release
|
Job.Release
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ Public Sub ExecuteQuery(Command As DBCommand, Limit As Int, Tag As Object)
|
|||||||
WriteList(Command.Parameters, out2)
|
WriteList(Command.Parameters, out2)
|
||||||
out2.Close
|
out2.Close
|
||||||
j.PostBytes(link & "?method=query", ms.ToBytesArray)
|
j.PostBytes(link & "?method=query", ms.ToBytesArray)
|
||||||
j.GetRequest.Timeout = 20000 'timeout del request (20 segs)
|
j.GetRequest.Timeout = 30000 'timeout del request (30 segs)
|
||||||
End Sub
|
End Sub
|
||||||
|
|
||||||
'Executes a batch of (non-select) commands.
|
'Executes a batch of (non-select) commands.
|
||||||
|
|||||||
Reference in New Issue
Block a user