Está en la página 1de 4

ISTP “Urusayhua” 1

PRACTICA DE HERRAMIENTAS DE DESARROLLO DE SOFTWARE


APELLIDOS Y NOMBRES:……………………………………………………………………………………………………….

Desarrollar una aplicación que permita calcular las boletas de pagos de los trabajadores de los docentes
del Instituto Superior Tecnológico Privado “URUSAYHUA”. Se debe ingresar el código del Docente,
Nombres y Apellidos, Sabiendo que se tiene tres categorías: Nombrado, Contratado, Eventual. Siendo la
forma de pago por hora de la siguiente manera:

Nombrado S/. 8.00


Contratado S/. 5.00
Eventual S/. 3.00

Además se deben considerar los descuentos de ley (IPSS, SNP, Fonavi). La aplicación deberá contener 2
formularios uno de presentación y otro de cálculos.

a) Formulario Presentación (FrmPresenta)

Crear Interfaz de Usuario


Ubicar los controles indicados
 3 etiquetas
 1 botón de comando
 Un control de imagen

Establecer Propiedades
Control Propiedad Valor
Form1 Name(nombre)
Caption
Icon
Label1 Caption
FontName
Alignment
Label2 Caption
FontName
Alignment
Image1 Picture
Stretch
Command1 Name (nombre)
Caption
Picture

Añadir un nuevo formulario. (Proyecto>Agregar formulario)

Prof.: Ing. Jorge Mamani Benique


ISTP “Urusayhua” 2

b) Formulario de Cálculos FrmBoleta

Crear Interfaz de Usuario


Ubicar los controles indicados
 15 Etiquetas (label)
 12 cajas de texto (TextBox)
 03 botones de comando (CommandButton)
 03 Botones de opción (OptionButton)
 02 Frames (Formas)
 Líneas graficas

Establecer Propiedades
Control Propiedad Valor
Form2 Name(nombre) FrmBoleta
Caption Boleta de Pagos
Icon D:\Iconos\binoculr.ico
Label1 Caption Código
Label2 Caption Nombres y Apellidos
Label3 Caption Horas Normales
Label4 Caption Horas Extras
Label5 Caption Ingresos
Font Negrita
Label6 Caption Descuentos
Font Negrita
Label7 Caption Horas Normales
Label8 Caption Horas Extras
Label9 Caption Total Ingresos
Font Negrita
Label10 Caption IPSS
Label11 Caption SNP
Label12 Caption Fonavi
Label13 Caption Total Descuentos
Font Negrita
Label14 Caption Neto
Font Negrita
Label15 Caption * 1.5
Prof.: Ing. Jorge Mamani Benique
ISTP “Urusayhua” 3

Text1 Name (nombre) TxtCodigo


Text “”
Text2 Name (nombre) TxtNombres
Text “”
Text3 Name (nombre) TxtHN
Text “”
Text4 Name (nombre) TxtHE
Text “”
Text5 Name (nombre) TxtPagoHN
Text “”
Enabled False
Text6 Name (nombre) TxtPagoHE
Text “”
Enabled False
Text7 Name (nombre) TxtTotalIngresos
Text “”
Enabled False
Text8 Name (nombre) TxtIPSS
Text “”
Enabled False
Text9 Name (nombre) TxtSNP
Text “”
Enabled False
Text10 Name (nombre) TxtFonavi
Text “”
Enabled False
Text11 Name (nombre) TxtTotalDescuentos
Text “”
Enabled False
Frame1 Caption Categoría
Option1 Name (nombre) OptNombrado
Caption Nombrado
Option2 Name (nombre) OptContratado
Caption Contratado
Option3 Name (nombre) OptEventual
Caption Eventual
Frame2 Caption “”
Text12 Name (nombre) TxtNeto
Enabled False
Command1 Name (nombre) CmdAceptar
Caption &Aceptar
Style 1-Graphical
Picture D:\Iconos\checkmrk.ico
Command2 Name (nombre) CmdNuevo
Caption &Nuevo
Style 1-Graphical
Picture D:\Iconos\note03.ico
Command3 Name (nombre) CmdCancelar
Caption &Cancelar
Style 1-Graphical
Picture D:\Iconos\w95mbx01.ico

Escribir Códigos De La Aplicación

Código Del Formulario FrmPresentacion


Botón CmdContinuar Evento Click
Private Sub CmdContinuar_Click()
'Descargar el formulario actual y mostrar el formulario FrmBoleta en forma modal
Unload Me
FrmBoleta.Show vbModal
End Sub

Prof.: Ing. Jorge Mamani Benique


ISTP “Urusayhua” 4

Código Del Formulario FrmBoleta


General Declaraciones
Dim pago As Double

Boton CmdAceptar Evento Click


Private Sub CmdAceptar_Click()
TxtPagoHN.Text = Str(Val(TxtHN.Text) * pago)
TxtPagoHE.Text = Str(Val(TxtHE.Text) * pago * 1.5)
TxtTotalIngresos.Text = Str(Val(TxtPagoHN.Text) + Val(TxtPagoHE.Text))
TxtIPSS.Text = Str(Val(TxtTotalIngresos.Text) * 0.03)
TxtSNP.Text = Str(Val(TxtTotalIngresos.Text) * 0.03)
TxtFonavi.Text = Str(Val(TxtTotalIngresos.Text) * 0.07)
TxtTotalDescuentos = Str(Val(TxtIPSS.Text) + Val(TxtSNP.Text) + Val(TxtFonavi.Text))
TxtNeto.Text = Str(Val(TxtTotalIngresos) - Val(txtTotalDescuentos))
End Sub

Boton CmdCancelar Evento Click


Private Sub CmdCancelar_Click()
End
End Sub

Boton CmdNuevo Evento Click


Private Sub CmdNuevo_Click()
TxtCodigo = " "
TxtNombres = " "
TxtHN = " "
TxtHE = " "
TxtPagoHN = " "
TxtPagoHE = " "
TxtTotalIngresos = " "
txtTotalDescuentos = " "
TxtIPSS = " "
TxtSNP = " "
TxtFonavi = " "
TxtNeto = " "
TxtCodigo.SetFocus
OptNombrado.Value = True
End Sub

Form Evento Load


Private Sub Form_Load()
pago = 8
End Sub

Control OptNombrado Evento Click


Private Sub OptNombrado_Click()
pago = 8
End Sub

Control OptContratado Evento Click


Private Sub OptContratado_Click()
pago = 5
End Sub

Control OptEventual Evento Click


Private Sub OptEventual_Click()
pago = 3
End Sub

El evento Load.- El evento load del formulario ocurre cuando se carga un formulario.

Prof.: Ing. Jorge Mamani Benique

También podría gustarte