PROYECTO 5
-
Upload
paulita-rioz -
Category
Education
-
view
1.946 -
download
2
Transcript of PROYECTO 5
PROYECTO DE VISUAL BASIC N°
SISTEMA DE FACTURACIÓN
Docente expositor: Lic. Jaime A. Flores Fuentes
Private Sub Form_Load()
End Sub
Form1.ShowText1.SetFocus
Private Sub Command1_Click()
End Sub
Dim clave As Stringclave = "soyer“If Text1.Text = clave ThenMsgBox ("Bienvenido al sistema")Form2.ShowForm1.HideElseMsgBox ("Error, vuelva a ingresar clave")Text1.Text = ""Text1.SetFocusEnd If
Private Sub Command1_Click()
End SubEnd
Al hacer clic en calcular se deberá hallar.Monto de hospedaje:
Días de hospedaje * Pago DíaEl pago día será de S/. 50 (Turista) ó
S/. 70 (Embassy)Monto Servicios:
Será de S/. 20 por cada servicioMonto total:
Monto de Hospedaje + Monto del ServicioIGV:
18% del Monto TotalTotal a Pagar:
Monto total + IGV
Private Sub Command1_Click()
End Sub
Dim dias As Integer, costo As Integer, cable As Integer, telefono As Integer, bar As Integer, hospedaje As Integer, servicio As Integer, total As Integer, igv As Integer, netos As Integerdias = Val(Text2.Text)If Option1.Value = True Then costo = 50If Option2.Value = True Then costo = 70hospedaje = costo * diasText3.Text = Str(hospedaje)If Check1.Value = vbChecked Then cable = 20If Check2.Value = vbChecked Then telefono = 20If Check3.Value = vbChecked Then bar = 20servicio = cable + telefono + barText4.Text = Str(servicio)total = hospedaje + servicioText5.Text = Str(total)igv = 0.18 * totalText6.Text = Str(igv)neto = total + igvText7.Text = Str(neto)
Private Sub Command1_Click()
End Sub
Text1.Text = ""Text2.Text = ""Text3.Text = ""Text4.Text = ""Text5.Text = ""Text6.Text = ""Text7.Text = ""Text1.SetFocus
Private Sub Command1_Click()
End Sub
Form3.Show
Private Sub Command1_Click()
End Sub
Dim res As Integerres = MsgBox("Desea salir del sistema?", 4 + 32 + 256, "Salir")If res = 6 ThenEndElseCancel = TrueEnd If
Private Sub Command1_Click()
End Sub
Form2.ShowForm3.Hide