2 Commits

Author SHA1 Message Date
b4010f2d7b - VERSION 5.10.02
- Se agregó el dia 2 para la frecuencia, si un hoy es p. ej. viernes, y un cliente tiene dia de visita 1 lunes y dia de visita 2 viernes, tambien va a aparecer en los clientes.
2025-10-03 19:19:38 -06:00
2c252b2373 - VERSION 5.09.04
- Se agregaron varios motivos de NoVenta.
2025-09-17 21:35:51 -06:00
12 changed files with 41 additions and 21 deletions

View File

@@ -1121,7 +1121,7 @@ Version=12.8
#Region Project Attributes #Region Project Attributes
#ApplicationLabel: ADM #ApplicationLabel: ADM
#VersionCode: 1 #VersionCode: 1
#VersionName: 5.09.03 #VersionName: 5.10.02
'SupportedOrientations possible values: unspecified, landscape or portrait. 'SupportedOrientations possible values: unspecified, landscape or portrait.
#SupportedOrientations: portrait #SupportedOrientations: portrait
#CanInstallToExternalStorage: False #CanInstallToExternalStorage: False

View File

@@ -92,11 +92,11 @@ ModuleClosedNodes30=2,4,5,6,7,8
ModuleClosedNodes31= ModuleClosedNodes31=
ModuleClosedNodes32=15,16,17,18,19 ModuleClosedNodes32=15,16,17,18,19
ModuleClosedNodes4= ModuleClosedNodes4=
ModuleClosedNodes5= ModuleClosedNodes5=1,3
ModuleClosedNodes6=3 ModuleClosedNodes6=3
ModuleClosedNodes7= ModuleClosedNodes7=
ModuleClosedNodes8= ModuleClosedNodes8=
ModuleClosedNodes9= ModuleClosedNodes9=
NavigationStack=C_TicketsDia,b_guardaNoVenta_Click,300,1,C_TicketsDia,GPS_LocationChanged,218,0,C_TicketsDia,ListView1_ItemLongClick,213,0,Diseñador Visual,mapa_rutas.bal,-100,2,C_TicketsDia,b_noventa0_Click,229,0,MAPA_RUTAS,b_guardaNoVenta_Click,575,0,Diseñador Visual,clientes.bal,-100,3,C_Clientes,B4XPage_Appear,141,6,Diseñador Visual,datosclienteBotones.bal,-100,2,C_Clientes,CreateListItem,210,0,Starter,reinicializaReqManager,164,0 NavigationStack=Tracker,guardaYEnviaUbicacion,307,0,MAPA_RUTAS,b_inicioVenta_Click,470,1,MAPA_RUTAS,B_VERDE_Click,440,0,MAPA_RUTAS,B_ROJO_Click,445,0,MAPA_RUTAS,B_AZUL_Click,450,0,C_Cliente,Class_Globals,0,0,C_Cliente,B4XPage_Appear,324,0,B4XMainPage,B4XPage_Created,215,0,C_Principal,b_cargar_Click,1297,0,C_Principal,JobDone,1311,2
SelectedBuild=0 SelectedBuild=0
VisibleModules=30,2,14,5,6,19,31,27,18,32,8,11 VisibleModules=30,2,14,5,6,19,31,27,18,32

View File

@@ -711,7 +711,7 @@ Sub JobDone(Job As HttpJob)
p_validacion.Visible = False p_validacion.Visible = False
et_codigo.Text = "" et_codigo.Text = ""
If recarga = "0" Then If recarga = "0" Then
Subs.panelVisible(P_CIEGO,0,0) Subs.panelVisible(p_ciego,0,0)
Else If recarga = "1" Then Else If recarga = "1" Then
Starter.skmt.ExecNonQuery("delete from CUENTAA") Starter.skmt.ExecNonQuery("delete from CUENTAA")
Starter.skmt.ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)", Array As Object("1")) Starter.skmt.ExecNonQuery2("INSERT INTO CUENTAA VALUES (?)", Array As Object("1"))

View File

@@ -53,6 +53,8 @@ Sub Class_Globals
Private b_guardaNoVenta As Button Private b_guardaNoVenta As Button
Private p_botonesNoVenta As Panel Private p_botonesNoVenta As Panel
Private et_comentarioNoVenta As EditText Private et_comentarioNoVenta As EditText
Private r_opcion7 As RadioButton
Private r_opcion6 As RadioButton
Private r_opcion5 As RadioButton Private r_opcion5 As RadioButton
Private r_opcion4 As RadioButton Private r_opcion4 As RadioButton
Private r_opcion3 As RadioButton Private r_opcion3 As RadioButton
@@ -710,13 +712,17 @@ Private Sub b_guardaNoVenta_Click
If r_opcion1.Checked Then If r_opcion1.Checked Then
motivo = "CERRADO" motivo = "CERRADO"
Else If r_opcion2.Checked Then Else If r_opcion2.Checked Then
motivo = "NO COMPRA" motivo = "NO TIENE DINERO"
Else If r_opcion3.Checked Then Else If r_opcion3.Checked Then
motivo = "CON PRODUCTO" motivo = "NO ABRE MAÑANA"
Else If r_opcion4.Checked Then Else If r_opcion4.Checked Then
motivo = "NO ESTA EL ENCARGADO" motivo = "FALTA DE PRODUCTO"
Else If r_opcion5.Checked Then
motivo = "PROMOCION CON OTRO DISTRIBUIDOR"
Else If r_opcion6.Checked Then
motivo = "RECIBEN MUCHOS PROVEEDORES"
Else Else
motivo = "CANCELACION" motivo = "NO LE QUEDA EL DIA"
End If End If
Log("FOTOCERRADO: " & fotoCerrado) Log("FOTOCERRADO: " & fotoCerrado)

View File

@@ -1079,7 +1079,7 @@ Sub b_cargar_Click
reqManager.ExecuteQuery(cmd , 0, "detallepaq") reqManager.ExecuteQuery(cmd , 0, "detallepaq")
cmd.Initialize cmd.Initialize
cmd.Name = "select_cat_clientes_ADM" cmd.Name = "select_cat_clientes2_ADM"
cmd.Parameters = Array As Object(e_ruta.text, ALMACEN) cmd.Parameters = Array As Object(e_ruta.text, ALMACEN)
reqManager.ExecuteQuery(cmd , 0, "kmt_datos") reqManager.ExecuteQuery(cmd , 0, "kmt_datos")
@@ -1122,7 +1122,7 @@ Sub b_cargar_Click
Panel11.Visible = False Panel11.Visible = False
cmd.Initialize cmd.Initialize
cmd.Name = "select_cat_clientes_ADM" cmd.Name = "select_cat_clientes2_ADM"
cmd.Parameters = Array As Object(E_RUTA2.text, ALMACEN) cmd.Parameters = Array As Object(E_RUTA2.text, ALMACEN)
reqManager.ExecuteQuery(cmd , 0, "kmt_datos") reqManager.ExecuteQuery(cmd , 0, "kmt_datos")
@@ -1301,6 +1301,7 @@ Sub JobDone(Job As HttpJob)
If Job.JobName = "DBRequest" Then If Job.JobName = "DBRequest" Then
Dim RESULT As DBResult = reqManager.HandleJob(Job) Dim RESULT As DBResult = reqManager.HandleJob(Job)
If RESULT.Tag = "kmt_datos" Then 'query tag If RESULT.Tag = "kmt_datos" Then 'query tag
Subs.logJobDoneResultados(RESULT)
S_CC.TEXT = "CARGANDO" S_CC.TEXT = "CARGANDO"
For Each records() As Object In RESULT.Rows For Each records() As Object In RESULT.Rows
Dim CAT_CL_CODIGO As String = records(RESULT.Columns.Get("CAT_CL_CODIGO")) Dim CAT_CL_CODIGO As String = records(RESULT.Columns.Get("CAT_CL_CODIGO"))

View File

@@ -33,6 +33,9 @@ Sub Class_Globals
Private Panel5 As Panel Private Panel5 As Panel
Private et_comentarioNoVenta As EditText Private et_comentarioNoVenta As EditText
Private Label3 As Label Private Label3 As Label
Private r_opcion7 As RadioButton
Private r_opcion6 As RadioButton
Private r_opcion5 As RadioButton
Private r_opcion4 As RadioButton Private r_opcion4 As RadioButton
Private r_opcion3 As RadioButton Private r_opcion3 As RadioButton
Private r_opcion2 As RadioButton Private r_opcion2 As RadioButton
@@ -277,13 +280,17 @@ Private Sub b_guardaNoVenta_Click
If r_opcion1.Checked Then If r_opcion1.Checked Then
motivo = "CERRADO" motivo = "CERRADO"
Else If r_opcion2.Checked Then Else If r_opcion2.Checked Then
motivo = "NO COMPRA" motivo = "NO TIENE DINERO"
Else If r_opcion3.Checked Then Else If r_opcion3.Checked Then
motivo = "CON PRODUCTO" motivo = "NO ABRE MAÑANA"
Else If r_opcion4.Checked Then Else If r_opcion4.Checked Then
motivo = "NO ESTA EL ENCARGADO" motivo = "FALTA DE PRODUCTO"
Else If r_opcion5.Checked Then
motivo = "PROMOCION CON OTRO DISTRIBUIDOR"
Else If r_opcion6.Checked Then
motivo = "RECIBEN MUCHOS PROVEEDORES"
Else Else
motivo = "CANCELACION" motivo = "NO LE QUEDA EL DIA"
End If End If
If motivo = "CERRADO" And fotoCerrado = "" Then If motivo = "CERRADO" And fotoCerrado = "" Then
nombreFoto = Subs.traeCliente & "_cerrado" nombreFoto = Subs.traeCliente & "_cerrado"

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -73,6 +73,8 @@ Sub Globals
Private p_botonesNoVenta As Panel Private p_botonesNoVenta As Panel
Private Panel5 As Panel Private Panel5 As Panel
Private et_comentarioNoVenta As EditText Private et_comentarioNoVenta As EditText
Private r_opcion7 As RadioButton
Private r_opcion6 As RadioButton
Private r_opcion5 As RadioButton Private r_opcion5 As RadioButton
Private r_opcion4 As RadioButton Private r_opcion4 As RadioButton
Private r_opcion3 As RadioButton Private r_opcion3 As RadioButton
@@ -472,7 +474,7 @@ Private Sub b_inicioVenta_Click
Subs.bitacora(Subs.fechanormal(DateTime.Now), Subs.traeUsuarioDeBD, Subs.traeAlmacen, Subs.traeRuta, "Inicia Venta", Subs.traeCliente, Subs.fechanormal(DateTime.Now), "", B4XPages.MainPage.lat_gps, B4XPages.MainPage.lon_gps, "2", "", "", "") Subs.bitacora(Subs.fechanormal(DateTime.Now), Subs.traeUsuarioDeBD, Subs.traeAlmacen, Subs.traeRuta, "Inicia Venta", Subs.traeCliente, Subs.fechanormal(DateTime.Now), "", B4XPages.MainPage.lat_gps, B4XPages.MainPage.lon_gps, "2", "", "", "")
Starter.enVenta = True Starter.enVenta = True
Subs.enVenta(1, "MAPA") Subs.enVenta(1, "MAPA")
l_venta.Text = "Ve a tu app de venta y cuando termines regresa aqui y presiona el botón para ingresar ""Peso"" o ""No Venta""" l_venta.Text = "Ve a tu app de venta y cuando termines regresa aqui y presiona el botón para ingresar ""Kilos"" o ""No Venta"""
LogColor($">>>>>> INICIA VENTA: ${Starter.enVenta} - ${Subs.traeCliente}"$, Colors.red) LogColor($">>>>>> INICIA VENTA: ${Starter.enVenta} - ${Subs.traeCliente}"$, Colors.red)
End Sub End Sub
@@ -559,13 +561,17 @@ Private Sub b_guardaNoVenta_Click
If r_opcion1.Checked Then If r_opcion1.Checked Then
motivo = "CERRADO" motivo = "CERRADO"
Else If r_opcion2.Checked Then Else If r_opcion2.Checked Then
motivo = "NO COMPRA" motivo = "NO TIENE DINERO"
Else If r_opcion3.Checked Then Else If r_opcion3.Checked Then
motivo = "CON PRODUCTO" motivo = "NO ABRE MAÑANA"
Else If r_opcion4.Checked Then Else If r_opcion4.Checked Then
motivo = "NO ESTA EL ENCARGADO" motivo = "FALTA DE PRODUCTO"
Else If r_opcion5.Checked Then
motivo = "PROMOCION CON OTRO DISTRIBUIDOR"
Else If r_opcion6.Checked Then
motivo = "RECIBEN MUCHOS PROVEEDORES"
Else Else
motivo = "CANCELACION" motivo = "NO LE QUEDA EL DIA"
End If End If
If motivo = "CERRADO" And fotoCerrado = "" Then If motivo = "CERRADO" And fotoCerrado = "" Then
nombreFoto = Subs.traeCliente & "_cerrado" nombreFoto = Subs.traeCliente & "_cerrado"