Professional Documents
Culture Documents
contenedor
Cuadro de Lista
Cuadro combinado
Etiqueta
Grupo de opciones
Procedimiento Load
* Se realiza la apertura de todas las tablas utilizadas en el formulario *-------------------USE Ciudad IN 0 AGAIN ALIAS Ciudad SHARED USE Departamento IN 0 AGAIN ALIAS Departamento SHARED USE Cliente IN 0 AGAIN ALIAS Cliente SHARED USE Proveedor IN 0 AGAIN ALIAS Proveedor SHARED USE Rubro IN 0 AGAIN ALIAS Rubro SHARED USE Sucursal IN 0 AGAIN ALIAS Sucursal SHARED USE Usuario IN 0 AGAIN ALIAS Usuario SHARED USE Producto IN 0 AGAIN ALIAS Producto SHARED
Procedimiento Unload
* Cierra todas las tablas abiertas en el formulario SELEC Ciudad USE SELEC Departamento USE SELEC Cliente USE SELEC Proveedor USE SELEC Rubro USE SELEC Sucursal USE
Procedimiento Salida
IF ALLTRIM(ThisForm.List1.VALUE) = "Ciudad" REPORT FORM INF_Ciudad.FRX PREVIEW ENDIF IF ALLTRIM(ThisForm.List1.VALUE) = "Departamento" REPORT FORM INF_Departamento.FRX PREVIEW ENDIF
ThisForm.Combo1.listindex = 1 ThisForm.Combo2.listindex = ThisForm.Combo2.listcount ENDIF IF ALLTRIM(THIS.VALUE) = "Rubro" ThisForm.Combo1.RowSource = "Rubro.descripcion,codrub" ThisForm.Combo1.RowSourceType = 6 ThisForm.Combo2.RowSource = "Rubro.descripcion,codrub" ThisForm.Combo2.RowSourceType = 6 ThisForm.Combo1.listindex = 1 ThisForm.Combo2.listindex = ThisForm.Combo2.listcount ENDIF IF ALLTRIM(THIS.VALUE) = "Sucursal" ThisForm.Combo1.RowSource = "Sucursal.descripcion,codsuc" ThisForm.Combo1.RowSourceType = 6 ThisForm.Combo2.RowSource = "Sucursal.descripcion,codsuc" ThisForm.Combo2.RowSourceType = 6 ThisForm.Combo1.listindex = 1 ThisForm.Combo2.listindex = ThisForm.Combo2.listcount ENDIF IF ALLTRIM(THIS.VALUE) = "Productos" ThisForm.Combo1.RowSource = "Producto.descripcion,codpro" ThisForm.Combo1.RowSourceType = 6 ThisForm.Combo2.RowSource = "Producto.descripcion,codpro" ThisForm.Combo2.RowSourceType = 6 ThisForm.Combo1.listindex = 1 ThisForm.Combo2.listindex = ThisForm.Combo2.listcount ENDIF IF ALLTRIM(THIS.VALUE) = "Usuarios" ThisForm.Combo1.RowSource = "Usuario.nombre,usuario" ThisForm.Combo1.RowSourceType = 6 ThisForm.Combo2.RowSource = "Usuario.nombre,usuario" ThisForm.Combo2.RowSourceType = 6 ThisForm.Combo1.listindex = 1 ThisForm.Combo2.listindex = ThisForm.Combo2.listcount ENDIF Thisform.Refresh()
Grupo de opciones
Propiedades a modificar AutoSize = .T. BackStyle = 0 Transparente BorderStyle = 0-Ninguno ButtomCount= 2 ControlSource = Vn_Orden Name = Vorden
2- Clic en Generar
2- Clic en ok
Contenedor3
Propiedades
SpecialEffect = 1-BajoRelieve
If Alltrim(Thisform.List1.Value) = "Departamento" If THISFORM.VORDEN.VALUE = 1 Select * From Departamento; WHERE Departamento.CODIGO Between Thisform.Combo1.Value And Thisform.Combo2.Value; ORDER By Departamento.CODIGO; INTO Cursor TMP ELSE Select * From Departamento; WHERE Departamento.CODIGO Between Thisform.Combo1.Value And Thisform.Combo2.Value; ORDER By Departamento.DESCRIPCION; INTO Cursor TMP ENDIF ENDIF Select TMP Count If _Tally = 0 =Messagebox("NO EXISTEN DATOS PARA LISTAR",0+64+0,"INFORMACION DEL SISTEMA") Else Thisform.SALIDA() ENDIF Select TMP Use
Command2
Caption = \<Cancelar FontBold= .T. ForeColor= 0,0,255
Procedimiento Click
thisform.Release