La descarga está en progreso. Por favor, espere

La descarga está en progreso. Por favor, espere

Proyecto de Visual Basic N° SISTEMA DE FACTURACIÓN Docente expositor: Lic. Jaime A. Flores Fuentes.

Presentaciones similares


Presentación del tema: "Proyecto de Visual Basic N° SISTEMA DE FACTURACIÓN Docente expositor: Lic. Jaime A. Flores Fuentes."— Transcripción de la presentación:

1 Proyecto de Visual Basic N° SISTEMA DE FACTURACIÓN Docente expositor: Lic. Jaime A. Flores Fuentes

2 Form 1: Password del Sistema

3 Form2: Sistema de Facturación

4 Form3: Acerca del Autor

5 Programando el Form1 Private Sub Form_Load() End Sub Form1.Show Text1.SetFocus

6 Private Sub Command1_Click() End Sub Dim clave As String clave = "soyer“ If Text1.Text = clave Then MsgBox ("Bienvenido al sistema") Form2.Show Form1.Hide Else MsgBox ("Error, vuelva a ingresar clave") Text1.Text = "" Text1.SetFocus End If Programando el Comando Aceptar

7 Programando el Comando Salir Private Sub Command1_Click() End Sub End

8 Al hacer clic en calcular se deberá hallar. Monto de hospedaje: Días de hospedaje * Pago Día El pago día será de S/. 50 (Turista) ó S/. 70 (Embassy) Monto Servicios: Será de S/. 20 por cada servicio Monto total: Monto de Hospedaje + Monto del Servicio IGV: 18% del Monto Total Total a Pagar: Monto total + IGV

9 Programando el Form2 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 Integer dias = Val(Text2.Text) If Option1.Value = True Then costo = 50 If Option2.Value = True Then costo = 70 hospedaje = costo * dias Text3.Text = Str(hospedaje) If Check1.Value = vbChecked Then cable = 20 If Check2.Value = vbChecked Then telefono = 20 If Check3.Value = vbChecked Then bar = 20 servicio = cable + telefono + bar Text4.Text = Str(servicio) total = hospedaje + servicio Text5.Text = Str(total) igv = 0.18 * total Text6.Text = Str(igv) neto = total + igv Text7.Text = Str(neto) Programando el Comando Calcular

10 Private Sub Command1_Click() End Sub Programando el Comando Nuevo Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Text6.Text = "" Text7.Text = "" Text1.SetFocus

11 Private Sub Command1_Click() End Sub Programando el Comando Acerca de… Form3.Show

12 Private Sub Command1_Click() End Sub Programando el Comando Salir Dim res As Integer res = MsgBox("Desea salir del sistema?", 4 + 32 + 256, "Salir") If res = 6 Then End Else Cancel = True End If

13 Programando el Form3 Programando el Comando Aceptar Private Sub Command1_Click() End Sub Form2.Show Form3.Hide


Descargar ppt "Proyecto de Visual Basic N° SISTEMA DE FACTURACIÓN Docente expositor: Lic. Jaime A. Flores Fuentes."

Presentaciones similares


Anuncios Google