13.07.2015 Views

TRABAJO DE GRADUACIÓN - DSpace Universidad Don Bosco

TRABAJO DE GRADUACIÓN - DSpace Universidad Don Bosco

TRABAJO DE GRADUACIÓN - DSpace Universidad Don Bosco

SHOW MORE
SHOW LESS
  • No tags were found...

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Private Sub Form_Terminate()HIDComm1.UninitHIDComm1.DisconnectMe.Timer1inicio.Enabled = FalseMe.Timer2inicio.Enabled = FalseMe.Timerhora.Enabled = Falsers.CloseEndEnd Sub'Rutina que escribe la fecha y hora de entrada en la tabla registroPrivate Sub HorEntrada_Click()If Me.Text1.Text "" ThensSelect = "INSERT INTO Registro([HoraEntrada], [HoraSalida], [NombreEmpleado], " _& "[ApellidoEmpleado],[TagEmpleado], [Salario]) Values('" & Format(Now, "dd/mm/yyyy HH:mm:ss") & "', '" & Format(Now,"dd/mm/yyyy HH:mm:ss") & "', '" & Me.Nombre.Text & "', " _& "'" & Me.Apellido.Text & "', '" & Me.tag1.Text & "', " & Format(Me.txtSalario.Text, "#####0.##") & ") "cn.Execute sSelectMe.Label4.Caption = "HORA <strong>DE</strong> ENTRADA: "Me.hora.Text = NowBeepTimer2inicio = TrueElseMsgBox "Consulte antes un empleado", vbInformation, "Informacion"End IfEnd Sub'Rutina que escribe la fecha y hora de salida en la tabla registroPrivate Sub HorSalida_Click()If Me.Text1.Text "" ThensSelect = "INSERT INTO Registro([HoraEntrada], [HoraSalida], [NombreEmpleado], " _& "[ApellidoEmpleado],[TagEmpleado],[Salario]) Values('" & Format(Now, "dd/mm/yyyy HH:mm:ss") & "', '" & Format(Now, "dd/mm/yyyyHH:mm:ss") & "', '" & Me.Nombre.Text & "', " _& "'" & Me.Apellido.Text & "', '" & Me.tag1.Text & "', " & Format(Me.txtSalario.Text, "#####0.##") & ") "cn.Execute sSelectMe.Label4.Caption = "HORA <strong>DE</strong> SALIDA: "Me.hora.Text = NowBeepTimer2inicio = TrueElseMsgBox "Consulte antes un empleado", vbInformation, "Informacion"End IfEnd Sub'Rutina que activa el formulario de mantenimiento de empleadosPrivate Sub mtto_Click()Mantenimiento.ShowTimer1inicio.Enabled = FalseTimer2inicio.Enabled = FalseMantenimiento.Timer1.Enabled = TrueEnd Sub'Rutina que activa el formulario de Reporte de empleadosPrivate Sub reporte_Click()Reportes.ShowMe.Timer1inicio.Enabled = FalseMe.Timer2inicio.Enabled = FalseEnd Sub'Codigo asociado al boton de Salir. Al hacer clic sobre este boton, se desconecta el sistema RFID'y se cierra el programaPrivate Sub salir_Click()HIDComm1.UninitHIDComm1.DisconnectMe.Timer1inicio.Enabled = FalseMe.Timer2inicio.Enabled = FalseMe.Timerhora.Enabled = Falsers.CloseEndEnd Sub'Rutina para lectura de sistema RFID. Variables necesarias para la adquisicion de datos por USBPrivate Sub Timer1inicio_Timer()- 173 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!