mirror of
https://github.com/KeymonSoft/Guna_Preventa.git
synced 2026-04-19 21:59:15 +00:00
....
This commit is contained in:
@@ -42,9 +42,11 @@ Private Sub B4XPage_Created (Root1 As B4XView)
|
||||
Root.LoadLayout("clientes")
|
||||
'Dim ruta As String
|
||||
entro ="2"
|
||||
p_clientes.Height = Root.Height
|
||||
p_clientes.Height = Root.Height
|
||||
p_clientes.Width = Root.Width
|
||||
Panel4.Left = Round(Root.Width/2)-(Panel4.Width/2)
|
||||
Panel4.Height = Root.Height * 0.70
|
||||
ListView1.Height = Panel4.Height * 0.95
|
||||
|
||||
' valido donde escribo el archivo de la base de datos de kmt
|
||||
' If File.ExternalWritable Then
|
||||
@@ -70,17 +72,24 @@ Sub B4XPage_Appear
|
||||
c = B4XPages.MainPage.skmt.ExecQuery("select CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO from kmt_info3 where gestion = 0 ORDER BY CAT_CL_CODIGO")
|
||||
ListView1.Clear
|
||||
lfila.Text = "NOMBRE"
|
||||
Subs.SetDivider(ListView1, Colors.White, 2)
|
||||
If c.RowCount>0 Then
|
||||
For i = 0 To c.RowCount - 1
|
||||
c.Position=i
|
||||
Dim label1 As Label
|
||||
label1 = ListView1.TwoLinesLayout.Label
|
||||
label1.TextSize = 13
|
||||
label1.TextColor = Colors.Black
|
||||
label1.TextSize = 20
|
||||
label1.TextColor = Colors.White
|
||||
Dim label2 As Label
|
||||
label2 = ListView1.TwoLinesLayout.SecondLabel
|
||||
label2.TextSize = 13
|
||||
label2.TextColor = Colors.Black
|
||||
label2.TextSize = 20
|
||||
label2.TextColor = Colors.White
|
||||
label1.Height = 25dip
|
||||
label2.Height = 60dip
|
||||
|
||||
ListView1.TwoLinesLayout.ItemHeight = 95dip
|
||||
label1.Typeface = Typeface.CreateNew(Typeface.DEFAULT_BOLD, Typeface.STYLE_BOLD)
|
||||
label2.Typeface = Typeface.CreateNew(Typeface.DEFAULT_BOLD, Typeface.STYLE_BOLD)
|
||||
ListView1.AddTwoLines(c.GetString("CAT_CL_CODIGO"), c.GetString("CAT_CL_NOMBRE"))
|
||||
Next
|
||||
End If
|
||||
@@ -135,7 +144,7 @@ Sub ListView1_ItemClick (Position As Int, Value As Object)
|
||||
B4XPages.MainPage.skmt.ExecNonQuery2("UPDATE HIST_STAY_OUT set HSO_INI = ? where HSO_INI = 0 ", Array As Object(STIME))
|
||||
DateTime.TimeFormat = "HH:mm:ss"
|
||||
' Log(entro)
|
||||
If B4XPages.MainPage.cliente.bitacora.IsInitialized Then
|
||||
If B4XPages.MainPage.cliente.bitacora.IsInitialized Then
|
||||
Log("VAMOS A CLIENTE CON ENVENTA = FALSO")
|
||||
B4XPages.MainPage.cliente.bitacora.iniciamosVenta
|
||||
Log(B4XPages.MainPage.cliente.bitacora.enVenta)
|
||||
@@ -159,19 +168,26 @@ Sub BUSCA_TextChanged (Old As String, New As String)
|
||||
q_buscar = "%" & busca.Text & "%"
|
||||
c2=B4XPages.MainPage.skmt.ExecQuery2("select CAT_CL_NOMBRE, CAT_CL_CALLE, CAT_CL_CODIGO from kmt_info3 where (CAT_CL_NOMBRE like ? OR CAT_CL_CODIGO LIKE ? OR CAT_CL_CALLE LIKE ?)and gestion = 0 order by CAT_CL_NOMBRE ", Array As String(q_buscar,q_buscar,q_buscar))
|
||||
ListView1.Clear
|
||||
Subs.SetDivider(ListView1, Colors.White, 2)
|
||||
lfila.text = "Nombre y Calle"
|
||||
If c2.RowCount>0 Then
|
||||
For i=0 To c2.RowCount -1
|
||||
c2.Position=i
|
||||
Dim label1 As Label
|
||||
label1 = ListView1.TwoLinesLayout.Label
|
||||
label1.TextSize = 9
|
||||
label1.TextColor = Colors.Gray
|
||||
label1.TextSize = 20
|
||||
label1.TextColor = Colors.White
|
||||
Dim label2 As Label
|
||||
label2 = ListView1.TwoLinesLayout.SecondLabel
|
||||
label2.TextSize = 17
|
||||
label2.TextColor = Colors.Gray
|
||||
ListView1.AddTwoLines(c2.GetString("CAT_CL_CODIGO"), c2.GetString("CAT_CL_NOMBRE") &" CALLE: "& c2.GetString("CAT_CL_CALLE"))
|
||||
label2.TextSize = 20
|
||||
label2.TextColor = Colors.White
|
||||
label1.Height = 25dip
|
||||
label2.Height = 60dip
|
||||
|
||||
ListView1.TwoLinesLayout.ItemHeight = 95dip
|
||||
label1.Typeface = Typeface.CreateNew(Typeface.DEFAULT_BOLD, Typeface.STYLE_BOLD)
|
||||
label2.Typeface = Typeface.CreateNew(Typeface.DEFAULT_BOLD, Typeface.STYLE_BOLD)
|
||||
ListView1.AddTwoLines(c2.GetString("CAT_CL_CODIGO"), c2.GetString("CAT_CL_NOMBRE")& CRLF &"CALLE: "& c2.GetString("CAT_CL_CALLE"))
|
||||
Next
|
||||
End If
|
||||
entro = "4"
|
||||
|
||||
Reference in New Issue
Block a user