Separation of Lanthanides/ Lanthanides and Actinides
Poliza de vehiculo
1.
2. VERSION 5.00
Begin VB.Form Form1
Caption = "Poliza"
ClientHeight = 8325
ClientLeft = 60
ClientTop = 345
ClientWidth = 9105
LinkTopic = "Form1"
ScaleHeight = 8325
ScaleWidth = 9105
StartUpPosition = 3 'Windows Default
Begin VB.CommandButton Command_limpiar
Caption = "Limpiar"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 7200
TabIndex = 33
Top = 3000
Width = 1575
End
Begin VB.CommandButton Command_salir
Caption = "Salir"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 7200
TabIndex = 32
3. Top = 3480
Width = 1575
End
Begin VB.CommandButton Command_calcular
Caption = "Calcular"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 375
Left = 7200
TabIndex = 25
Top = 2520
Width = 1575
End
Begin VB.TextBox Text_edad
Height = 285
Left = 2520
TabIndex = 24
Top = 2280
Width = 1935
End
Begin VB.Frame Frame3
Caption = "Resultados:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 855
Left = 1680
TabIndex = 12
Top = 6480
Width = 5175
Begin VB.TextBox Text_valor_prima
4. Height = 285
Left = 1920
TabIndex = 22
Top = 240
Width = 1935
End
Begin VB.Label Label1
AutoSize = -1 'True
Caption = "Valor de la prima:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 360
TabIndex = 13
Top = 360
Width = 1500
End
End
Begin VB.Frame Frame2
Caption = "Datos del vehiculo:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 2535
Left = 1680
TabIndex = 6
Top = 3720
Width = 5175
Begin VB.TextBox Text_poliza
Height = 285
Left = 960
5. TabIndex = 35
Top = 2040
Width = 1935
End
Begin VB.TextBox Text_valor_vehiculo
Height = 285
Left = 1920
TabIndex = 21
Top = 1680
Width = 1935
End
Begin VB.TextBox Text_año_vehiculo
Height = 285
Left = 1920
TabIndex = 20
Top = 1320
Width = 1935
End
Begin VB.TextBox Text_color
Height = 285
Left = 960
TabIndex = 19
Top = 960
Width = 1935
End
Begin VB.TextBox Text_modelo
Height = 285
Left = 1080
TabIndex = 18
Top = 600
Width = 1935
End
Begin VB.TextBox Text_placa
Height = 285
Left = 960
TabIndex = 17
Top = 240
Width = 1935
End
Begin VB.Label Label3
AutoSize = -1 'True
Caption = "Poliza:"
BeginProperty Font
Name = "MS Sans Serif"
6. Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 360
TabIndex = 34
Top = 2040
Width = 585
End
Begin VB.Label Label15
AutoSize = -1 'True
Caption = "Placa:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 360
TabIndex = 11
Top = 360
Width = 555
End
Begin VB.Label Label14
AutoSize = -1 'True
Caption = "Año del vehiculo:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
7. Left = 360
TabIndex = 10
Top = 1440
Width = 1500
End
Begin VB.Label Label13
AutoSize = -1 'True
Caption = "Modelo:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 360
TabIndex = 9
Top = 720
Width = 690
End
Begin VB.Label Label12
AutoSize = -1 'True
Caption = "Color:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 360
TabIndex = 8
Top = 1080
Width = 510
End
Begin VB.Label Label11
AutoSize = -1 'True
Caption = "Valor del vehiculo:"
8. BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 360
TabIndex = 7
Top = 1800
Width = 1605
End
End
Begin VB.Frame Frame1
Caption = "Datos del propietario del vehiculo:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 3135
Left = 1680
TabIndex = 0
Top = 360
Width = 5175
Begin VB.Frame Frame5
Caption = "Estado civil:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
9. Left = 240
TabIndex = 29
Top = 2280
Width = 3135
Begin VB.OptionButton Option_soltero
Caption = "Soltero"
Height = 255
Left = 720
TabIndex = 31
Top = 240
Width = 855
End
Begin VB.OptionButton Option_casado
Caption = "Casado"
Height = 255
Left = 1920
TabIndex = 30
Top = 240
Width = 855
End
End
Begin VB.Frame Frame4
Caption = "Sexo:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 615
Left = 240
TabIndex = 26
Top = 960
Width = 3135
Begin VB.OptionButton Option2_femenino
Caption = "Femenino"
Height = 255
Left = 1800
TabIndex = 28
Top = 240
Width = 1095
10. End
Begin VB.OptionButton Option1_masculino
Caption = "Masculino"
Height = 255
Left = 600
TabIndex = 27
Top = 240
Width = 1095
End
End
Begin VB.TextBox Text_nacimiento
Height = 285
Left = 2160
TabIndex = 16
Top = 1560
Width = 1935
End
Begin VB.TextBox Text_cedula
Height = 285
Left = 1080
TabIndex = 15
Top = 600
Width = 1935
End
Begin VB.TextBox Text_nombre
Height = 285
Left = 1080
TabIndex = 14
Top = 240
Width = 1935
End
Begin VB.Label Label2
AutoSize = -1 'True
Caption = "Edad:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
11. Left = 360
TabIndex = 23
Top = 1920
Width = 510
End
Begin VB.Label Label10
AutoSize = -1 'True
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 360
TabIndex = 5
Top = 2280
Width = 75
End
Begin VB.Label Label9
AutoSize = -1 'True
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 360
TabIndex = 4
Top = 1080
Width = 75
End
Begin VB.Label Label8
AutoSize = -1 'True
Caption = "Cedula:"
BeginProperty Font
Name = "MS Sans Serif"
12. Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 360
TabIndex = 3
Top = 720
Width = 660
End
Begin VB.Label Label7
AutoSize = -1 'True
Caption = "Fecha de nacimiento:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
Left = 360
TabIndex = 2
Top = 1680
Width = 1845
End
Begin VB.Label Label6
AutoSize = -1 'True
Caption = "Nombre:"
BeginProperty Font
Name = "MS Sans Serif"
Size = 8.25
Charset = 0
Weight = 700
Underline = 0 'False
Italic = 0 'False
Strikethrough = 0 'False
EndProperty
Height = 195
13. Left = 360
TabIndex = 1
Top = 360
Width = 720
End
End
End
Attribute VB_Name = "Form1"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = False
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Private Sub Command_calcular_Click()
On Error GoTo ERROR:
Dim Recarga1 As Double
Dim Descuento As Double
Dim Cobrar1 As Double
Dim Cobrar2 As Double
If Option2_femenino.Value = True And Option_soltero.Value = True And Text_edad <
30 And Text_año_vehiculo > 10 Then
Text_valor_prima = Text_poliza
Else
If Option2_femenino.Value = True And Option_soltero.Value = True And Text_edad <
30 And Text_año_vehiculo < 10 Then
Text_valor_prima = Text_poliza
Else
If Option2_femenino.Value = True And Option_soltero.Value = True And Text_edad >
30 And Text_año_vehiculo < 10 Then
Text_valor_prima = Text_poliza
Else
If Option2_femenino.Value = True And Option_soltero.Value = True And Text_edad >
30 And Text_año_vehiculo < 10 Then
Text_valor_prima = Text_poliza
14. Else
If Option2_femenino.Value = True And Option_casado.Value = True And Text_edad >
30 And Text_año_vehiculo > 10 Then
Descuento = Text_poliza - Text_poliza * 2 / 100
Cobrar1 = Text_valor_vehiculo - Text_valor_vehiculo * 15 / 100
Text_valor_prima = Str(Descuento + Cobrar1)
Else
If Option2_femenino.Value = True And Option_casado.Value = True And Text_edad >
30 And Text_año_vehiculo < 10 Then
Descuento = Text_poliza - Text_poliza * 2 / 100
Cobrar2 = Text_valor_vehiculo - Text_valor_vehiculo * 20 / 100
Text_valor_prima = Str(Descuento + Cobrar2)
Else
If Option1_masculino.Value = True And Option_casado.Value = True And Text_edad <
18 And Text_año_vehiculo > 10 Then
Text_valor_prima = Text_poliza
Else
If Option1_masculino.Value = True And Option_casado.Value = True And Text_edad <
18 And Text_año_vehiculo < 10 Then
Text_valor_prima = Text_poliza
Else
If Option1_masculino.Value = True And Option_casado.Value = True And Text_edad >
25 And Text_año_vehiculo > 10 Then
15. Text_valor_prima = Text_poliza
Else
If Option1_masculino.Value = True And Option_casado.Value = True And Text_edad >
25 And Text_año_vehiculo < 10 Then
Text_valor_prima = Text_poliza
Else
If Option1_masculino.Value = True And Option_soltero.Value = True And Text_edad <
18 And Text_año_vehiculo > 10 Then
Text_valor_prima = Text_poliza
Else
If Option1_masculino.Value = True And Option_soltero.Value = True And Text_edad <
18 And Text_año_vehiculo < 10 Then
Text_valor_prima = Text_poliza
Else
If Option1_masculino.Value = True And Option_soltero.Value = True And Text_edad >
25 And Text_año_vehiculo > 10 Then
Text_valor_prima = Text_poliza
Else
If Option1_masculino.Value = True And Option_soltero.Value = True And Text_edad >
25 And Text_año_vehiculo < 10 Then
Text_valor_prima = Text_poliza
Else
16. If Option1_masculino.Value = True And Text_edad > 18 And Text_edad < 25 And
Text_año_vehiculo > 10 Then
Recarga1 = Text_poliza + Text_poliza * 2 / 100
Cobrar1 = Text_valor_vehiculo - Text_valor_vehiculo * 15 / 100
Text_valor_prima = Str(Recarga1 + Cobrar1)
Else
If Option1_masculino.Value = True And Text_edad > 18 And Text_edad < 25 And
Text_año_vehiculo < 10 Then
Recarga1 = Text_poliza + Text_poliza * 2 / 100
Cobrar2 = Text_valor_vehiculo - Text_valor_vehiculo * 20 / 100
Text_valor_prima = Str(Recarga1 + Cobrar2)
End If
End If
End If
End If
End If
End If
End If
End If
End If
End If
End If
End If
End If
End If
End If
End If
On Error GoTo ERROR:
SALIR:
Exit Sub
ERROR:
MsgBox ("Faltan campos por llenar")
Resume SALIR:
End Sub
Private Sub Command_limpiar_Click()
17. Text_nombre = “”
Text_cedula = “”
Text_nacimiento = “”
Text_edad = “”
Text_placa = “”
Text_modelo = “”
Text_color = “”
Text_año_vehiculo = “”
Text_valor_vehiculo = “”
Text_poliza = “”
Text_valor_prima = “”
Option1_masculino = “”
Option2_femenino = “”
Option_soltero = “”
Option_casado = “”
End Sub
Private Sub Command_salir_Click()
End
End Sub