VERSION 5.00
Begin VB.Form frmSelTipoPago 
   BorderStyle     =   3  'Fixed Dialog
   Caption         =   "Seleccionar"
   ClientHeight    =   2925
   ClientLeft      =   45
   ClientTop       =   330
   ClientWidth     =   5025
   Icon            =   "frmSelTipoPago.frx":0000
   LinkTopic       =   "Form1"
   LockControls    =   -1  'True
   MaxButton       =   0   'False
   MinButton       =   0   'False
   ScaleHeight     =   2925
   ScaleWidth      =   5025
   ShowInTaskbar   =   0   'False
   StartUpPosition =   1  'CenterOwner
   Begin VB.CommandButton cmdAceptar 
      Caption         =   "Aceptar"
      Height          =   375
      Left            =   1905
      TabIndex        =   5
      Top             =   2415
      Width           =   1215
   End
   Begin VB.Frame Frame1 
      Caption         =   "Tipo de Pago"
      Height          =   2055
      Left            =   45
      TabIndex        =   0
      Top             =   135
      Width           =   4935
      Begin VB.OptionButton optTipoPago 
         Caption         =   "Todas las Ventas"
         Height          =   255
         Index           =   3
         Left            =   1560
         TabIndex        =   4
         Top             =   1560
         Value           =   -1  'True
         Width           =   1695
      End
      Begin VB.OptionButton optTipoPago 
         Caption         =   "Ventas al Contado"
         Height          =   270
         Index           =   2
         Left            =   1560
         TabIndex        =   3
         Top             =   1145
         Width           =   1815
      End
      Begin VB.OptionButton optTipoPago 
         Caption         =   "Ventas Credito (Factura Credito)"
         Height          =   240
         Index           =   1
         Left            =   1560
         TabIndex        =   2
         Top             =   760
         Width           =   2775
      End
      Begin VB.OptionButton optTipoPago 
         Caption         =   "Ventas Credito con Tarjeta"
         Height          =   255
         Index           =   0
         Left            =   1560
         TabIndex        =   1
         Top             =   360
         Width           =   2415
      End
      Begin VB.Image Image1 
         Height          =   480
         Left            =   360
         Picture         =   "frmSelTipoPago.frx":000C
         Top             =   360
         Width           =   480
      End
   End
End
Attribute VB_Name = "frmSelTipoPago"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Public SelTipoPago As String
Public TodosLosTiposDPago As Integer

Public NomTipoReporte As String



Private Sub cmdAceptar_Click()
    Unload Me
End Sub

Private Sub Form_Load()
    TodosLosTiposDPago = 1 'Por defecto tos los tipos d pago
    NomTipoReporte = optTipoPago(3).Caption
    SelTipoPago = "99"
End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Screen.MousePointer = 0
End Sub


Private Sub Form_Unload(Cancel As Integer)
Screen.MousePointer = 11
End Sub


Private Sub Frame1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
    Screen.MousePointer = 0
End Sub


Private Sub optTipoPago_Click(Index As Integer)
    'Permite seleccionar un tipo de pago
    Select Case Index
        Case 0          'Ventas Credito con Tarjeta
            SelTipoPago = "02"
            TodosLosTiposDPago = IIf(optTipoPago(3).Value = True, 1, 0)
            NomTipoReporte = optTipoPago(0).Caption
        Case 1          'Ventas Credito sin Tarjeta
            SelTipoPago = "06"
            TodosLosTiposDPago = IIf(optTipoPago(3).Value = True, 1, 0)
            NomTipoReporte = optTipoPago(1).Caption
        Case 2          'Ventas al Contado
            SelTipoPago = "01"
            TodosLosTiposDPago = IIf(optTipoPago(3).Value = True, 1, 0)
            NomTipoReporte = optTipoPago(2).Caption
        Case 3          'Todas las Ventas
            TodosLosTiposDPago = IIf(optTipoPago(3).Value = True, 1, 0)
            NomTipoReporte = optTipoPago(3).Caption
    End Select

End Sub


