Page 3 of 4

Re: Filtro con varios campos./Filter multiple fields.

Posted: Sat Apr 05, 2014 8:25 am
by serge_girard
Javier,

Gracias por los elogios !!

I'll continue in English: my experience is almost 40 years in programming, so that explanes a lot probably and this kind of programs I've written hundreds (not in HMG but other languages) so idea is always the same:
- get selections
- open database
- get information
- close database
- show information

On large systems of course you have to build in lots of controls in order to avoid the user to block other users or database.

Greetings and succes and if you have more questions.... be my guest!

Serge

Re: Filtro con varios campos./Filter multiple fields.

Posted: Sat Apr 05, 2014 5:28 pm
by Javier Tovar
Hola Serge_girard,
serge_girard wrote:my experience is almost 40 years in programming
No cabe duda que me falta mucho camino por recorrer, yo apenas voy un año y programo más en HMG que en otro lenguaje!.

Si, y en verdad gracias, en estos días voy a estudiar un poco sobre esas funciones que para mi eran desconocidas, más bien las había leído pero no sabia como usarlas, como la función EVAL y AEVAL, ya que la documentación de Link que esta en el IDE no es clara (por lo menos para mi), me refiero a ejemplos de la que esta en CA-Clipper 5.3 - Guide To CA-Clipper.

Y gracias por la ayuda ofrecida, como vaya avanzando iré preguntando! :D :D :D

Saludos
/////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
Hola Serge_girard,



No doubt I have a long way to go, I'm just over a year and I program in HMG in another language!.

If and to really thank and these days I study a little about those functions that were unknown to me, the more I read but did not know how to use them, as the EVAL function and AEVAL because the documentation that Link was the IDE is not clear (at least to me), I mean examples of this in CA-Clipper 5.3 - Guide to CA-Clipper.

And thanks for the assistance offered, as it progresses I'll asking! :D :D :D

regards

Re: Filtro con varios campos./Filter multiple fields.

Posted: Wed Apr 09, 2014 2:05 am
by Javier Tovar
Hola a todos,

Desde hace dos días trato de seguir con mi aplicación y no logro que funcione. En la sección de ventas estoy implementando con las "Devoluciones", lo que hago es lo siguiente:

Selecciono por medio de los filtros el zapato deseado, una vez que lo selecciono haciendo un doble click para que pasen los datos al primer grid, donde se van acumulando las artículos para su posterior venta, en el primer Grid se ven las existencias. Con el botón "Devoluciones" es donde incremento en 1 el zapato seleccionado, pero a veces si lo hace y a veces lo aplica en otro articulo (zapato). Ya revise Indices, código, copie, pegue, remplace,... y nada.

Lo más raro es que hago lo mismo en el demo que hice para preguntar por los filtros, y lo hace bien. Copio ese mismo código en el programa grande y no lo hace.

Se que hay algo que no veo, programación?, Indices?,.... no entiendo que pasa.

Gracias por la atención! :D

Saludos

////////////////////////////////////////////////////////////////////////////////////////////////////////////
Hi all,

Two days ago I try to continue with my application and I can not make it work. In the sales section I am implementing the "Returns", what I do is the following:

Selected by means of filters the desired shoe, once you select by double click to pass the data to the first grid, where the items are accumulated for subsequent sale in the first Grid stocks are. The "Return" button is where the selected increment on 1 shoe, but sometimes if you do and sometimes applied to other items (shoe). Now check Indices, code, copy, paste, replace, ... and nothing.

The strangest thing is that I do the same in the demo I did to ask for the filters, and does it well. I copy the same code into the great and does not program.

Is that something I see, programming?, Indices? .... I do not understand what happens.

Thanks for attention! : D

regards
GridMio.rar
(6.58 KiB) Downloaded 184 times
Zapateria1.rar
(10.82 MiB) Downloaded 212 times

Re: Filtro con varios campos./Filter multiple fields.

Posted: Wed Apr 09, 2014 7:26 am
by serge_girard
Javier,

Can you please explain how it works?

Serge

Re: Filtro con varios campos./Filter multiple fields.

Posted: Wed Apr 09, 2014 3:29 pm
by Javier Tovar
Hola sege,

1 Si, los botones de arriba los utilizo como menú principal.
2 Nada mas tienen funcionando los botones Ventas, Clientes, Zapatos y Personal.
3 En Zapatos ahí voy ingresando los diferentes zapatos, los cuales tengo que meter, Tipo, Marca, Modelo, Color y Acabado. Esto es lo que define un zapato diferente. El numero de código solo es progresivo.
4 En zapatos ahí con el botón medidas me despliega unos TextBox donde puedo ingresar la cantidad de zapatos de acuerdo a la medida para poderlos ingresar al stock del almacén.
5 Y con el botón de existencias me muestra las existencias.
6 Con las flechas solo voy recorriendo los diferentes zapatos.
7 Con el botón Ventas es ahí donde voy a hacer las ventas de los zapatos, en el Grid_1 de la izq. es donde voy ingresardo los diferentes modelos de zapatos para la venta. Los voy ingresando del segundo Grid que esta a la derecha es Grid_3
Para seleccionar primero el zapato que quiero lo hago con los CmboBox que los uso como filtro.
Una vez que selecciono con un click el zapato en la Grid_3 y la numeración con el ComboBox que dice talla, le doy doble click en el registro de Grid_3 y lo manda a Grid_1.
8 Hay un boton que dice "Devoluciones" es ahi donde al acerlo debe de incrementar a +1 el modelo de zapato seleccionado en el Grid_3. Y es ahí donde no selecciona bien el registro.

En la pantalla de ventas donde habre el programa es ahi donde tengo el problema.

Si te fijas cuando le das un doble Click en el Grid_3 para que lo envie a Grid_1 ahi va un dato que es existencias. Y cuando tu seleccionas un zapato en grid_3 y le das devoluciones de be de incrementar la cantidad en +1 y no lo hace.

Espero haberme explicado. Y como dije en el ejemplo pequeño no hay problema

Gracias

//////////////////////////////////////////////////////////////////////////////////////////////////////////////




Hello sege ,

1 Yes , the buttons above the main menu use .
2 Not more are running the Sales, Clients , and Personal Shoes buttons.
3 On Shoes 'm entering there different shoes, which have to meter, Type , Brand, Model , Colour and Finish . This is what defines a different shoe. The code number is only gradual .
4 On the shoes there with me action button displays a TextBox where I can enter the number of shoes according to size so that they can enter the warehouse stock .
5 Then the button shows me the inventory stock .
6 Using the arrows only go touring the different shoes.
7 With the Sales button is where I will make sales of shoes, in the left Grid_1 . is where I ingresardo different models of shoes for sale. The second Grid 'm entering this right is Grid_3
To select the shoe that I do want to use as CmboBox the filter first.
Once you have selected with a click on the shoe Grid_3 and numbering with the ComboBox that says size give double click on the record and send it to Grid_3 Grid_1 .
8 There is a button that says " Returns " that is where the acerlo must increase to +1 the selected model shoe on Grid_3 . And that's where you do not select either the registry.



On the screen where Habre sales program that is where I have the problem.

If you notice when you give a double Click on Grid_3 for what you send goes to Grid_1 there is a fact that stock. And when you choose a shoe grid_3 and give refunds be to increase the quantity and +1 does not.

I hope I explained. And as I said in the small example no problem.

Gracias

Re: Filtro con varios campos./Filter multiple fields.

Posted: Wed Apr 09, 2014 8:54 pm
by danielmaximiliano
Hola :
no se entiende bien que necesitas, es muy engorrosa tu explicación.

selecciono mediante los diferentes combobox el articulo.
ejemplo "Hombre"
de ese filtrado selecciono un zapato (Cualquiera)
2014-04-09 17_45_07-.jpg
2014-04-09 17_45_07-.jpg (38.33 KiB) Viewed 2230 times
este se envia al grid Ventas.
2014-04-09 17_39_34-.jpg
2014-04-09 17_39_34-.jpg (19.04 KiB) Viewed 2230 times
ahora que hacemos ,que es lo que necesitas hacer ?

el termino "Devoluciones" se aplica a un articulo vendido que el cliente por algún motivo devuelve el articulo por fallas / mal numero
este articulo tiene que mantener alguna caracteristica para que se acepte dicha devolucion / cambio por el mismo articulo o otro igual.

en el Grid ventas es posible incrementar / decrementar ese articulo que decrementa / incrementa el Stock de ese articulo.

Re: Filtro con varios campos./Filter multiple fields.

Posted: Thu Apr 10, 2014 1:19 am
by Javier Tovar
Hola a Todos en especial a DanielMaximiliano,

Bueno a lo mejor no fui claro, pero te explico:
1.- Filtramos Zapatos.DBF en Zapatos1.DBF y se muestran en Grid_3 y seleccionamos el zapato deseado y se pone en verde.
Paso1.jpg
Paso1.jpg (51.48 KiB) Viewed 2222 times
2.- Haciendo Doble Click se pasan los datos de Grid_3 en Grid_1, junto con existencias. (entre otros los datos que se muestran)
Paso2.jpg
Paso2.jpg (113.88 KiB) Viewed 2222 times
3.- le doy click en el boton "Devoluciones" y aquí quiero que se incremente la existencia en 1 el zapato seleccionado, y me dice que si encontro el zapato en Zapatos.DBF y que según tiene registro = 5 (Recno()=5)
Paso3.jpg
Paso3.jpg (136.32 KiB) Viewed 2222 times
Nota. No se por que no puedo subir otra imagen, entonces la hago en otro post.

Re: Filtro con varios campos./Filter multiple fields.

Posted: Thu Apr 10, 2014 1:34 am
by Javier Tovar
continuacion...

4.- Al hacer doble click me deberia de incrementar la cantidad de existencias en 1, y me vuelve a poner 33.
Paso5.jpg
Paso5.jpg (128.09 KiB) Viewed 2221 times
5.- Sin cambiar el zapato seleccionado y pulsar de nuevo "Devoluciones" me dice que encontró el zapato en Zapatos.DBF pero ahora me lo muestra con el valor de Registro = 1 (Recno()=1) ??? y si no cambie de zapato me debería de salir el mismo.
Paso7.jpg
Paso7.jpg (134.7 KiB) Viewed 2221 times
El procedimiento esta en Ventas.prg Linea 1285 "PROCEDURE DevoZapa()", y lo más raro es que en el demo, lo he hecho de diferentes formas y no hay error. Y he copiado DBF's, CDX's, son los mismos indices, etc. y no hago que funcione, se que es algo, a lo mejor sencillo , pero no lo puedo ver. Y lo quiero hacer desde aquí, para que el usuario no se traslade al Botón "Zapatos", que es donde doy de alta para que se vayan al stock del almacén con el Botón "Medidas" y después a bajo me sale un Botón que dice "Enviar al almacén". Ahí, todo jala bien.

Espero haber sido claro, y si no es así haganmelo saber.

Saludos

Re: Filtro con varios campos./Filter multiple fields.

Posted: Fri Apr 11, 2014 5:00 pm
by Javier Tovar
Hola a todos,

Creo que me estoy ahogando en un vaso con agua, ahorita queriendo hacer un ejemplo para el amigo Citro de otro Post me doy cuenta que no me responde para sacar un valor de un array. Una cosa tan simple. Creo que voy a reinstalar HMG y si no me sigue respondiendo, formateare mi PC.

Y disculpen por las molestias ocasionadas.

Saludos! :D :D :D

Re: Filtro con varios campos./Filter multiple fields.

Posted: Fri Apr 11, 2014 9:25 pm
by Javier Tovar
SIIIIIIIIIIIIIIIIIIIIIIII, HMG ya no respondía bien, ahora como Barco en el agua! :D :D :D

Saludos