Sei sulla pagina 1di 74

APPENDICES

41

APPENDIX A - BLOCK DIAGRAM

42

Figure A1: ASCM Block Diagram This is the block diagram (Illustrated in Figure A.1) of the project; RFID Tag (student) receives data from the RFID card via carrier frequency generated by magnetic induction. The data received will be transmitted to the cable (for student RFID card). The GSM works when the PC got the students contact number which would be transmitted to the RS232 cable convertible into USB and it would be receive received by the GSM module according to the program which links the students contact number to the GSM module

43

APPENDIX B - SCHEMATIC DIAGRAM

44

Figure B.1: Power Supply Schematic Diagram

45

Figure B.2: GSM Module Schematic Diagram

46

Figure B.3: RFID Reader Schematic Diagram

The carrier is generated by a 74HC4060 and a 4 MHz crystal. Using "Q4" delivers the desired 125 kHz signal. The AM Demodulator is build of a AA113 (for historic reasons) and R5, C5. The demodulator is followed by a limiting amplifier. The voltage across the coil is about 14 Vpp.

47

APPENDIX C - DATA SHEETS

48

GSM Module Data Sheet

49

50

51

52

53

54

55

56

APPENDIX D - HARDWARE DESIGN

57

58

59

60

APPENDIX E - PCB LAYOUT

61

Figure E1: GSM Module PCB Layout

62

Figure E2: RFID Reader PCB Lay out

63

Figure E3: Power Supply PCB Layout

64

APPENDIX F - SYSTEM FLOWCHART

65

Start

Log in Account A New Student?


Tap RFID Card

Read RFID Tag Student Info. RFID Tag successfully read? Error detected: Check Hardware

Subject Consolidation

Students and Subjects are integrated in the system.

Edit Subjects?

?
Student and Subjects are successfully enrolled in the system

New User?

END

Figure F1: Student and Subject Enrollment Flowchart


66

Start

Subject Consolidation Management System will provide Student and Subjects information

A
GSM gets mobile number of

the student in the system

GSM sent text message to student Error Detected: Check SIM Load Balance Text sent Successfully?

Text message successfully sent to student Data = 0

Text new student? Figure F2: GSM Notification Flowchart


67

End

APPENDIX G - SOURCE CODE

68

Dim ctr As Integer Private Sub tmrPbar_Timer() ctr = ctr + 1 If ctr = 2 Then Unload Me frmlogin.Show End If End Sub Dim rs As New ADODB.Recordset Dim showmain As Boolean Dim try Private Sub txtusername_Change() If Len(txtusername.Text) = 0 Or Len(txtpassword.Text) = 0 Then cmdOK.Enabled = False Else cmdOK.Enabled = True End If End Sub Private Sub cmdCancel_Click() End End Sub

69

Private Sub cmdOK_Click() Dim rs As New ADODB.Recordset Dim sql As String If txtusername.Text = "" Then MsgBox "Pls. enter your Username first.", vbInformation, "Access Denied!" txtusername.SetFocus Exit Sub End If

If txtpassword.Text = "" Then MsgBox "Pls. enter your Password first.", vbInformation, "Access Denied!" txtpassword.SetFocus Exit Sub End If OpenConnection sql = "SELECT * FROM LOGIN WHERE USERNAME = '" & txtusername.Text & "' AND PASSWORD='" & txtpassword.Text & "'" rs.Open sql, con, 2, 2 If rs.EOF = True Then MsgBox "Invalid username or password.", vbExclamation, "Access Denied!" txtusername.Text = "" txtpassword.Text = "" txtusername.SetFocus rs.Close 70

CloseConnection Exit Sub Else AccT = rs.Fields("AccType").Value AccU = rs.Fields("Username").Value End If rs.Close CloseConnection Unload Me frmMainMenu.Show End Sub Private Sub txtpassword_Change() If Len(txtusername.Text) = 0 Or Len(txtpassword.Text) = 0 Then cmdOK.Enabled = False Else cmdOK.Enabled = True End If End Sub Private Sub txtpassword_KeyPress(KeyAscii As Integer) If KeyAscii = 13 Then cmdOK_Click End If End Sub

71

Private Sub cmdSend_Click() MSComm1.Output = "AT" & Chr(&HD) delay MSComm1.Output = "ATE=0" & Chr(&HD) delay MSComm1.Output = "AT+CMGF=1" & Chr(&HD) delay MSComm1.Output = "AT+CSCA=" & Chr(&H22) & "+639180000101" & Chr(&H22) & Chr(&HD) delay MSComm1.Output = "AT+CMGS=" & Chr(&H22) & "09307463095" & Chr(&H22) & Chr(&HD) delay MSComm1.Output = "JEFF" & Chr(&H1A) delay MsgBox "message sent to " & "d", vbInformation, "message sent" End Sub Private Sub Command1_Click() Dim strStatus As String If acr120.ACR120Open(0, strStatus) Then 'MsgBox "RFID Reader has been connected.", vbInformation, "Connect RFID Reader" strCon = True Else MsgBox strStatus, vbCritical, "Error" End If End Sub 72

Private Sub Command2_Click() MSComm1.Output = "AT" & Chr(&HD) delay MSComm1.Output = "ATE=0" & Chr(&HD) delay MSComm1.Output = "AT+CMGF=1" & Chr(&HD) delay MSComm1.Output = "AT+CSCA=" & Chr(&H22) & "+639180000101" & Chr(&H22) & Chr(&HD) delay MSComm1.Output = "AT+CMGS=" & Chr(&H22) & "09307463095" & Chr(&H22) & Chr(&HD) delay MSComm1.Output = "test" & Chr(&H1A) delay MsgBox "Confirmation sent to " & "d", vbInformation, "Message Sent" MSComm1.PortOpen = False End Sub

Private Sub Form_Activate() If AccT <> "Admin" Then mnulog.Enabled = False mnuupdate.Enabled = False End If

strCon = False 73

Command1_Click End Sub Private Sub delay() Timer1.Enabled = True While Timer1.Enabled = True DoEvents Wend End Sub Private Sub Timer1_Timer() Timer1.Enabled = False End Sub Private Sub Form_Load() newenroll = False End Sub Private Sub mnuassess_Click() frmConsolidation.Show vbModal, Me End Sub Private Sub mnuexit_Click() ask = MsgBox("Exit System now?", vbQuestion + vbYesNo + vbDefaultButton2, vTitle) If ask = vbNo Then Exit Sub End If 'backup db FileCopy App.Path & "\Consolidation.mdb", "D:\Backup\Condolidation DB Backup.mdb 74

End End Sub Private Sub mnufees_Click() Me.Enabled = False frmfees.Show 0, Me End Sub Private Sub mnulog_Click() Me.Enabled = False frmusername.Show 0, Me End Sub Private Sub mnurecords_Click() Me.Enabled = False frmrecord.Show 0, Me End Sub Private Sub mnuupdate_Click() Me.Enabled = False frmcurriculum.Show 0, Me End Sub Dim mypos Private Sub cmdadd_Click() tmrReadRFID.Enabled = False cmdsave.Visible = True cmdupdate.Visible = False pindot (True) 75

txtstudno.SetFocus bura 'txtname.Text = "Lastname, Firstname Middle Name" End Sub Public Sub bura() txtpic.Text = "" txtaddress.Text = "" txtage.Text = "" txtbday.Text = "" txtbplace.Text = "" txtcitizenship.Text = "" txtcivilstatus.Text = "" txtcollege_name.Text = "" txtcollege_year.Text = "" txtelem_name.Text = "" txtelem_year.Text = "" txtmobile.Text = "" txtFname.Text = "" txtlname.Text = "" txtMI.Text = "" txtemergency_address.Text = "" txtemergency_name.Text = "" txtemergency_telno.Text = "" txtfather_name.Text = "" 76

txtfather_occu.Text = "" txtGender.Text = "" txtguardian_name.Text = "" txtguardian_telno.Text = "" txthigh_name.Text = "" txthigh_year.Text = "" txtmother_name.Text = "" txtrelation.Text = "" txtstudno.Text = "" txttelno.Text = "" End Sub Private Sub cmdCancel_Click() cmdsave.Visible = True cmdupdate.Visible = False pindot (False) filltext

datrecord.Refresh datrecord.Recordset.MoveLast datrecord.Recordset.MoveFirst datrecord.Recordset.Move mypos datrecord.Recordset.MoveNext datrecord.Recordset.MovePrevious End Sub 77

Private Sub cmdedit_Click() tmrReadRFID.Enabled = False cmdsave.Visible = False cmdupdate.Visible = True

pindot (True) txtstudno.SetFocus End Sub Private Sub cmdfind_Click() Dim hanap hanap = InputBox("Enter the Student Number to find:", vTitle) With datrecord.Recordset .FindFirst "[Student_Number]='" & hanap & "'" If .NoMatch = True Then MsgBox "Student Number does not exists!", vbInformation, vTitle End If End With End Sub Private Sub cmdsave_Click() If txtmobile.Text = "" Then MsgBox "Please enter a valid Cellphone #!", vbExclamation, vTitle txtmobile.SetFocus Exit Sub 78

End If If txtstudno.Text = "" Then MsgBox "Please enter a valid Student Number.", vbInformation, vTitle txtstudno.SetFocus Exit Sub End If 'If Len(txtstudno.Text) <> 7 Then ' MsgBox "Please enter a valid Student Number.", vbInformation, vTitle ' txtstudno.SetFocus ' ' Exit Sub 'End If Dim Y For Y = 0 To lststudno.ListCount - 1 If txtstudno.Text = lststudno.List(X) Then MsgBox "The Student Number you entered is already in use by another Student. Please enter a different Student Number.", vbExclamation, vTitle txtstudno.SetFocus Exit Sub End If Next

'If txtname.Text = "Lastname, Firstname Middle Name" Then ' MsgBox "Please enter a valid Student Name.", vbInformation, vTitle 79

txtname.SetFocus ' ' Exit Sub 'End If If txtage.Text = "" Then MsgBox "The Field Age is required!", vbExclamation, vTitle txtage.SetFocus Exit Sub End If If txtGender.Text = "" Then MsgBox "The Field Gender is required!", vbExclamation, vTitle txtGender.SetFocus Exit Sub End If If txtcivilstatus.Text = "" Then MsgBox "The Field Civil Status is required!", vbExclamation, vTitle txtcivilstatus.SetFocus Exit Sub End If If txtcitizenship.Text = "" Then MsgBox "The Field Citizenship is required!", vbExclamation, vTitle txtcitizenship.SetFocus Exit Sub End If 80

If txtbday.Text = "" Then MsgBox "The Field Birthday is required!", vbExclamation, vTitle txtbday.SetFocus Exit Sub End If If txtbplace.Text = "" Then MsgBox "The Field Birthplace is required!", vbExclamation, vTitle txtbplace.SetFocus Exit Sub End If

If txtlname.Text = "" Or txtFname.Text = "" Then MsgBox "Please enter a valid Student Name.", vbInformation, vTitle txtname.SetFocus Exit Sub End If If txtpic.Text = "" Then txtpic.Text = App.Path & "\images\NPA.jpg" End If With datrecord.Recordset .AddNew .Fields![Address] = txtaddress.Text .Fields![age] = txtage.Text .Fields![Birthday] = txtbday.Text 81

.Fields![birthplace] = txtbplace.Text .Fields![Citizenship] = txtcitizenship.Text .Fields![Civil_Status] = txtcivilstatus.Text .Fields![course] = cbocourse.Text ' .Fields![college_year] = txtcollege_year.Text ' .Fields![Elementary_Name] = txtelem_name.Text ' .Fields![elementary_year] = txtelem_year.Text ' .Fields![relationship_address] = txtemergency_address.Text ' .Fields![emergency_contact] = txtemergency_name.Text ' .Fields![relationship_telno] = txtemergency_telno.Text ' .Fields![father_name] = txtfather_name.Text ' .Fields![father_occupation] = txtfather_occu.Text ' .Fields![gender] = txtGender.Text ' .Fields![guardian_name] = txtguardian_name.Text ' .Fields![guardian_telno] = txtguardian_telno.Text ' .Fields![highschool_name] = txthigh_name.Text ' .Fields![highschool_year] = txthigh_year.Text ' .Fields![mother_name] = txtmother_name.Text ' .Fields![mother_occupation] = txtmother_occu.Text ' .Fields![student_name] = txtname.Text .Fields![FName] = txtFname.Text .Fields![LName] = txtlname.Text .Fields![mi] = txtMI.Text ' .Fields![Relationship] = txtrelation.Text 82

.Fields![Student_Number] = txtstudno.Text .Fields![mobilenum] = txtmobile.Text ' .Fields![telno] = txttelno.Text .Fields![Photo] = txtpic.Text .Update datrecord.Refresh End With

OpenConnection Dim rs As New ADODB.Recordset rs.Open "insert into RFID (RFID,Studno) values ('" & txtRFID.Text & "','" & txtstudno.Text & "')", con, 2, 2 CloseConnection pindot (False) filltext End Sub Private Sub Command1_Click() With datrecord.Recordset .AddNew .Fields![Student_Number] = "101" .Fields![course] = txtstudno.Text .Update End With End Sub

83

Private Sub cmdtakePhoto_Click() If txtstudno.Text = "" Then MsgBox "Enter a Student ID first!" Else cdlpic.ShowOpen txtpic.Text = App.Path & "\images\" & txtstudno.Text & ".jpg" FileCopy cdlpic.FileName, App.Path & "\images\" & txtstudno.Text & ".jpg" picstud.Picture = LoadPicture(txtpic.Text) End If End Sub Private Sub cmdupdate_Click() If txtmobile.Text = "" Then MsgBox "Please enter a valid Cellphone #!", vbExclamation, vTitle txtmobile.SetFocus Exit Sub End If If txtstudno.Text = "" Then MsgBox "Please enter a valid Student Number.", vbInformation, vTitle txtstudno.SetFocus Exit Sub End If If txtage.Text = "" Then MsgBox "The Field Age is required!", vbExclamation, vTitle txtage.SetFocus 84

Exit Sub End If If txtGender.Text = "" Then MsgBox "The Field Gender is required!", vbExclamation, vTitle txtGender.SetFocus Exit Sub End If If txtcivilstatus.Text = "" Then MsgBox "The Field Civil Status is required!", vbExclamation, vTitle txtcivilstatus.SetFocus Exit Sub End If If txtcitizenship.Text = "" Then MsgBox "The Field Citizenship is required!", vbExclamation, vTitle txtcitizenship.SetFocus Exit Sub End If If txtbday.Text = "" Then MsgBox "The Field Birthday is required!", vbExclamation, vTitle txtbday.SetFocus Exit Sub End If If txtbplace.Text = "" Then MsgBox "The Field Birthplace is required!", vbExclamation, vTitle 85

txtbplace.SetFocus Exit Sub End If If txtpic.Text = "" Then txtpic.Text = App.Path & "\images\NPA.jpg" End If mypos = datrecord.Recordset.AbsolutePosition With datrecord.Recordset .Edit .Fields![Address] = txtaddress.Text .Fields![age] = txtage.Text .Fields![Birthday] = txtbday.Text .Fields![birthplace] = txtbplace.Text .Fields![Citizenship] = txtcitizenship.Text .Fields![Civil_Status] = txtcivilstatus.Text .Fields![course] = cbocourse.Text .Fields![gender] = txtGender.Text .Fields![FName] = txtFname.Text .Fields![LName] = txtlname.Text .Fields![mi] = txtMI.Text .Fields![Student_Number] = txtstudno.Text .Fields![Photo] = txtpic.Text .Update datrecord.Refresh 86

End With pindot (False) cmdCancel_Click End Sub Private Sub datrecord_Reposition() filltext End Sub Public Sub pindot(r As Boolean) txtstudno.Enabled = r cmdsave.Enabled = r 'tmrReadRFID.Enabled = r cmdupdate.Enabled = r cmdcancel.Enabled = r txtFname.Enabled = r txtlname.Enabled = r txtFname.Enabled = r FRAINFO.Enabled = r txtmobile.Enabled = r fraeducation.Enabled = r cmdadd.Enabled = Not r cmdedit.Enabled = Not r cmddelete.Enabled = Not r cmdfind.Enabled = Not r datrecord.Enabled = Not r 87

cmdtakePhoto.Enabled = r End Sub Private Sub Form_Activate() If newenroll = True Then cmdadd_Click picstud.Picture = LoadPicture(App.Path & "\images\NPA.jpg") Else filltext lststudno.Clear With datrecord.Recordset If .RecordCount <> 0 Then .MoveFirst While Not .EOF lststudno.AddItem .Fields![Student_Number] .MoveNext Wend End If .MoveFirst End With End If

'load courses OpenConnection

88

cbocourse.Clear

Dim rs As New ADODB.Recordset ' rs.Open "select * from courses", con, 2, 2 If rs.EOF = False Then While Not rs.EOF cbocourse.AddItem rs.Fields("course").Value rs.MoveNext Wend End If rs.Clone CloseConnection

If RFID = "" Then tmrReadRFID.Enabled = True End Sub

Private Sub Form_Load() Me.Top = 2205 Me.Left = 1440

With datrecord .Connect = "Access 2000;" .Refresh .Connect = ";Pwd=" & "admin" 89

.DatabaseName = App.Path & "\Consolidation.mdb" .RecordSource = "Student_Record" .Refresh End With

txtRFID.Text = RFID End Sub Public Sub filltext() On Error Resume Next

OpenConnection Dim rs As New ADODB.Recordset Dim sql As String

sql = "SELECT * FROM RFID WHERE RFID = '" & txtRFID.Text & "'" rs.Open sql, con.ConnectionString, 2, 2 If rs.EOF = False Then

StudID = rs.Fields("StudNo").Value End If rs.Close

CloseConnection

90

With datrecord.Recordset txtaddress.Text = .Fields![Address] txtmobile.Text = .Fields![mobilenum] txtFname.Text = .Fields![FName] txtlname.Text = .Fields![LName] txtMI.Text = .Fields![mi] txtage.Text = .Fields![age] txtbday.Text = .Fields![Birthday] txtbplace.Text = .Fields![birthplace] txtcitizenship.Text = .Fields![Citizenship] txtcivilstatus.Text = .Fields![Civil_Status]

cbocourse.Text = .Fields![course] txtGender.Text = .Fields![gender] txtstudno.Text = StudID txtpic.Text = .Fields![Photo] If txtpic.Text <> "" Then picstud.Picture = LoadPicture(txtpic.Text) Else picstud.Picture = LoadPicture(App.Path & "\images\NPA.jpg") End If End With

' OpenConnection 91

' Dim rs As New ADODB.Recordset ' rs.Open "select * from rfid where studno='" & txtstudno.Text & "'", con, 2, 2 ' If rs.EOF = False Then ' txtRFID.Text = rs.Fields("RFID").Value

' End If ' rs.Clone ' CloseConnection End Sub Private Sub Form_Unload(Cancel As Integer) Unload Me frmMainMenu.Enabled = True 'frmMainMenu.SetFocus End Sub Private Sub tmrReadRFID_Timer() 'read any RFID swipe every second 'call function that triggers the reload txtRFID.Text = readrfid() filltext End Sub Private Sub txtage_KeyPress(KeyAscii As Integer) If KeyAscii = 8 Then Exit Sub End If

92

If KeyAscii < 48 Or KeyAscii > 57 Then KeyAscii = 0 End If End Sub Private Sub txtcitizenship_Change()

If Len(txtcitizenship.Text) = 1 Then If txtcitizenship.Text = "F" Or txtcitizenship.Text = "f" Then txtcitizenship.Text = "Filipino" txtbday.SetFocus End If End If End Sub

Private Sub txtcitizenship_KeyPress(KeyAscii As Integer) If KeyAscii = 8 Then Exit Sub End If

If KeyAscii > 47 And KeyAscii < 58 Or KeyAscii = Asc(".") Or KeyAscii = Asc("!") Or KeyAscii = Asc("@") Or KeyAscii = Asc("#") Or KeyAscii = Asc("$") Or KeyAscii = Asc("%") Or KeyAscii = Asc("^") Or KeyAscii = Asc("&") Or KeyAscii = Asc("*") Or KeyAscii = Asc("(") Or KeyAscii = Asc(")") Or KeyAscii = Asc("-") Or KeyAscii = Asc("_") Or KeyAscii = Asc("+") Or KeyAscii = Asc("=") Or KeyAscii = Asc(",") Or KeyAscii = Asc("<") Or KeyAscii = Asc(">") Or KeyAscii = Asc("?") Or KeyAscii = Asc("/") Or KeyAscii = Asc("{") Or KeyAscii = Asc("}") Or KeyAscii = Asc("[") Or KeyAscii = Asc("]") Or KeyAscii = Asc(";") Or KeyAscii = Asc(":") Or KeyAscii = Asc("'") Or KeyAscii = Asc("\") Or KeyAscii = Asc("\") Then 93

KeyAscii = 0 End If End Sub

Private Sub txtcivilstatus_Change()

If Len(txtcivilstatus.Text) = 1 Then If txtcivilstatus.Text = "S" Then txtcivilstatus.Text = "Single" txtcitizenship.SetFocus ElseIf txtcivilstatus.Text = "M" Then txtcivilstatus.Text = "Married" txtcitizenship.SetFocus ElseIf txtcivilstatus.Text = "W" Then If txtGender.Text = "Male" Then txtcivilstatus.Text = "Widow" txtcitizenship.SetFocus ElseIf txtGender.Text = "Female" Then txtcivilstatus.Text = "Widower" txtcitizenship.SetFocus Else txtcivilstatus.Text = "Widow" txtcitizenship.SetFocus End If 94

End If End If End Sub

Private Sub txtcivilstatus_KeyPress(KeyAscii As Integer) If KeyAscii = 8 Then txtGender.Text = "" Exit Sub End If If KeyAscii = Asc("S") Or KeyAscii = Asc("M") Or KeyAscii = Asc("W") Or KeyAscii = Asc("s") Or KeyAscii = Asc("m") Or KeyAscii = Asc("w") Then Exit Sub End If KeyAscii = 0 End Sub Private Sub txtcollege_year_KeyPress(KeyAscii As Integer) If KeyAscii = 8 Then Exit Sub End If If KeyAscii < 48 Or KeyAscii > 57 Then KeyAscii = 0 End If End Sub

95

Private Sub txtelem_year_KeyPress(KeyAscii As Integer) If KeyAscii = 8 Then Exit Sub End If

If KeyAscii < 48 Or KeyAscii > 57 Then KeyAscii = 0 End If

End Sub Private Sub txtemergency_name_KeyPress(KeyAscii As Integer) If KeyAscii = 8 Or KeyAscii = Asc(",") Or KeyAscii = Asc(".") Then Exit Sub End If If KeyAscii > 47 And KeyAscii < 58 Or KeyAscii = Asc(".") Or KeyAscii = Asc("!") Or KeyAscii = Asc("@") Or KeyAscii = Asc("#") Or KeyAscii = Asc("$") Or KeyAscii = Asc("%") Or KeyAscii = Asc("^") Or KeyAscii = Asc("&") Or KeyAscii = Asc("*") Or KeyAscii = Asc("(") Or KeyAscii = Asc(")") Or KeyAscii = Asc("-") Or KeyAscii = Asc("_") Or KeyAscii = Asc("+") Or KeyAscii = Asc("=") Or KeyAscii = Asc(",") Or KeyAscii = Asc("<") Or KeyAscii = Asc(">") Or KeyAscii = Asc("?") Or KeyAscii = Asc("/") Or KeyAscii = Asc("{") Or KeyAscii = Asc("}") Or KeyAscii = Asc("[") Or KeyAscii = Asc("]") Or KeyAscii = Asc(";") Or KeyAscii = Asc(":") Or KeyAscii = Asc("'") Or KeyAscii = Asc("\") Or KeyAscii = Asc("\") Then KeyAscii = 0 End If End Sub Private Sub txtemergency_telno_KeyPress(KeyAscii As Integer) If KeyAscii = 8 Or KeyAscii = Asc("-") Then 96

Exit Sub End If

If KeyAscii < 48 Or KeyAscii > 57 Then KeyAscii = 0 End If

End Sub Private Sub txtfather_name_KeyPress(KeyAscii As Integer) If KeyAscii = 8 Or KeyAscii = Asc(",") Or KeyAscii = Asc(".") Then Exit Sub End If If KeyAscii > 47 And KeyAscii < 58 Or KeyAscii = Asc(".") Or KeyAscii = Asc("!") Or KeyAscii = Asc("@") Or KeyAscii = Asc("#") Or KeyAscii = Asc("$") Or KeyAscii = Asc("%") Or KeyAscii = Asc("^") Or KeyAscii = Asc("&") Or KeyAscii = Asc("*") Or KeyAscii = Asc("(") Or KeyAscii = Asc(")") Or KeyAscii = Asc("-") Or KeyAscii = Asc("_") Or KeyAscii = Asc("+") Or KeyAscii = Asc("=") Or KeyAscii = Asc(",") Or KeyAscii = Asc("<") Or KeyAscii = Asc(">") Or KeyAscii = Asc("?") Or KeyAscii = Asc("/") Or KeyAscii = Asc("{") Or KeyAscii = Asc("}") Or KeyAscii = Asc("[") Or KeyAscii = Asc("]") Or KeyAscii = Asc(";") Or KeyAscii = Asc(":") Or KeyAscii = Asc("'") Or KeyAscii = Asc("\") Or KeyAscii = Asc("\") Then KeyAscii = 0 End If End Sub Private Sub txtgender_Change() If Len(txtGender.Text) = 1 Then If txtGender.Text = "M" Then txtGender.Text = "Male" 97

txtcivilstatus.SetFocus ElseIf txtGender.Text = "F" Then txtGender.Text = "Female" txtcivilstatus.SetFocus End If End If End Sub Private Sub txtgender_KeyPress(KeyAscii As Integer) If KeyAscii = 8 Then txtGender.Text = "" Exit Sub End If If KeyAscii = Asc("M") Or KeyAscii = Asc("F") Or KeyAscii = Asc("m") Or KeyAscii = Asc("f") Then Exit Sub End If KeyAscii = 0 End Sub Private Sub txtguardian_name_KeyPress(KeyAscii As Integer) If KeyAscii = 8 Or KeyAscii = Asc(",") Or KeyAscii = Asc(".") Then Exit Sub End If If KeyAscii > 47 And KeyAscii < 58 Or KeyAscii = Asc(".") Or KeyAscii = Asc("!") Or KeyAscii = Asc("@") Or KeyAscii = Asc("#") Or KeyAscii = Asc("$") Or KeyAscii = Asc("%") Or KeyAscii = Asc("^") Or KeyAscii = Asc("&") Or KeyAscii = Asc("*") Or KeyAscii = Asc("(") Or KeyAscii = Asc(")") Or KeyAscii = Asc("-") Or KeyAscii = Asc("_") Or KeyAscii = Asc("+") Or KeyAscii = Asc("=") Or KeyAscii = Asc(",") Or KeyAscii = 98

Asc("<") Or KeyAscii = Asc(">") Or KeyAscii = Asc("?") Or KeyAscii = Asc("/") Or KeyAscii = Asc("{") Or KeyAscii = Asc("}") Or KeyAscii = Asc("[") Or KeyAscii = Asc("]") Or KeyAscii = Asc(";") Or KeyAscii = Asc(":") Or KeyAscii = Asc("'") Or KeyAscii = Asc("\") Or KeyAscii = Asc("\") Then KeyAscii = 0 End If End Sub Private Sub txtguardian_telno_KeyPress(KeyAscii As Integer) If KeyAscii = 8 Or KeyAscii = Asc("-") Then Exit Sub End If If KeyAscii < 48 Or KeyAscii > 57 Then KeyAscii = 0 End If End Sub Private Sub txthigh_year_KeyPress(KeyAscii As Integer) If KeyAscii = 8 Then Exit Sub End If If KeyAscii < 48 Or KeyAscii > 57 Then KeyAscii = 0 End If End Sub Private Sub txtmother_name_KeyPress(KeyAscii As Integer) If KeyAscii = 8 Or KeyAscii = Asc(",") Or KeyAscii = Asc(".") Then Exit Sub 99

End If If KeyAscii > 47 And KeyAscii < 58 Or KeyAscii = Asc(".") Or KeyAscii = Asc("!") Or KeyAscii = Asc("@") Or KeyAscii = Asc("#") Or KeyAscii = Asc("$") Or KeyAscii = Asc("%") Or KeyAscii = Asc("^") Or KeyAscii = Asc("&") Or KeyAscii = Asc("*") Or KeyAscii = Asc("(") Or KeyAscii = Asc(")") Or KeyAscii = Asc("-") Or KeyAscii = Asc("_") Or KeyAscii = Asc("+") Or KeyAscii = Asc("=") Or KeyAscii = Asc(",") Or KeyAscii = Asc("<") Or KeyAscii = Asc(">") Or KeyAscii = Asc("?") Or KeyAscii = Asc("/") Or KeyAscii = Asc("{") Or KeyAscii = Asc("}") Or KeyAscii = Asc("[") Or KeyAscii = Asc("]") Or KeyAscii = Asc(";") Or KeyAscii = Asc(":") Or KeyAscii = Asc("'") Or KeyAscii = Asc("\") Or KeyAscii = Asc("\") Then KeyAscii = 0 End If End Sub Private Sub txtname_GotFocus() txtname.Text = "" End Sub Private Sub txtname_KeyPress(KeyAscii As Integer) If KeyAscii = 8 Or KeyAscii = Asc(",") Or KeyAscii = Asc(".") Then Exit Sub End If

If KeyAscii > 47 And KeyAscii < 58 Or KeyAscii = Asc(".") Or KeyAscii = Asc("!") Or KeyAscii = Asc("@") Or KeyAscii = Asc("#") Or KeyAscii = Asc("$") Or KeyAscii = Asc("%") Or KeyAscii = Asc("^") Or KeyAscii = Asc("&") Or KeyAscii = Asc("*") Or KeyAscii = Asc("(") Or KeyAscii = Asc(")") Or KeyAscii = Asc("-") Or KeyAscii = Asc("_") Or KeyAscii = Asc("+") Or KeyAscii = Asc("=") Or KeyAscii = Asc(",") Or KeyAscii = Asc("<") Or KeyAscii = Asc(">") Or KeyAscii = Asc("?") Or KeyAscii = Asc("/") Or KeyAscii = Asc("{") Or KeyAscii = Asc("}") Or KeyAscii = Asc("[") Or KeyAscii = Asc("]") Or KeyAscii = Asc(";") Or KeyAscii = Asc(":") Or KeyAscii = Asc("'") Or KeyAscii = Asc("\") Or KeyAscii = Asc("\") Then KeyAscii = 0 End If End Sub 100

Private Sub txtrelation_GotFocus() If txtmother_name.Text = txtemergency_name.Text Then txtrelation.Text = "Mother" txtemergency_telno.SetFocus Exit Sub ElseIf txtfather_name.Text = txtemergency_name.Text Then txtrelation.Text = "Father" txtemergency_telno.SetFocus Exit Sub End If

If txtguardian_name.Text = txtemergency_name.Text Then txtrelation.Text = "Guardian" txtemergency_telno.SetFocus End If End Sub

Private Sub txtrelation_KeyPress(KeyAscii As Integer) If KeyAscii = 8 Then Exit Sub End If

If KeyAscii > 47 And KeyAscii < 58 Or KeyAscii = Asc(".") Or KeyAscii = Asc("!") Or KeyAscii = Asc("@") Or KeyAscii = Asc("#") Or KeyAscii = Asc("$") Or KeyAscii = Asc("%") Or KeyAscii = Asc("^") Or KeyAscii = Asc("&") Or KeyAscii = Asc("*") Or KeyAscii = Asc("(") Or KeyAscii = Asc(")") Or KeyAscii = Asc("-") Or 101

KeyAscii = Asc("_") Or KeyAscii = Asc("+") Or KeyAscii = Asc("=") Or KeyAscii = Asc(",") Or KeyAscii = Asc("<") Or KeyAscii = Asc(">") Or KeyAscii = Asc("?") Or KeyAscii = Asc("/") Or KeyAscii = Asc("{") Or KeyAscii = Asc("}") Or KeyAscii = Asc("[") Or KeyAscii = Asc("]") Or KeyAscii = Asc(";") Or KeyAscii = Asc(":") Or KeyAscii = Asc("'") Or KeyAscii = Asc("\") Or KeyAscii = Asc("\") Then KeyAscii = 0 End If End Sub Private Sub txtRFID_Change() 'If Len(txtRFID.Text) = 10 Then ' filltext 'End If End Sub

Private Sub txtRFID_KeyPress(KeyAscii As Integer) If KeyAscii = 8 Then Exit Sub End If

If KeyAscii < 49 Or KeyAscii > 54 Then KeyAscii = 0 End If End Sub Private Sub txtstudno_GotFocus() txtstudno.BackColor = &HC0FFFF End Sub 102

Private Sub txtstudno_KeyPress(KeyAscii As Integer) 'If KeyAscii = 8 Or KeyAscii = Asc("-") Then ' Exit Sub 'End If ' 'If KeyAscii < 48 Or KeyAscii > 57 Then ' KeyAscii = 0 'End If End Sub

Private Sub txtstudno_LostFocus() txtstudno.BackColor = vbWhite End Sub

Private Sub txttelno_KeyPress(KeyAscii As Integer) If KeyAscii = 8 Or KeyAscii = Asc("-") Then Exit Sub End If

If KeyAscii < 48 Or KeyAscii > 57 Then KeyAscii = 0 End If End Sub 103

APPENDIX H USER INTERFACE

104

Figure H.1: Opening application

Figure H.2: Log-in form

105

Figure H.3: Subject consolidation form

Figure H.4: Update Curriculum


106

Figure H.5: Student Record

107

APPENDIX I SURVEY FORM

108

AMA Computer College Olongapo Campus Survey Questionaire School Staff: School: Date: ______________ Department:

1. Are you satisfied in the subject enrollment protocol by manual encoding of every subject that will be taken by the student?

o o o o
system?

Satisfied Not satisfied

2. Do you think manual enrollment protocol in subject gathering and encoding tends to consume a lot of time in both system user and student?

Yes No

3. Do you agree in the idea of having an RFID Technology in the enrollment

o o

Strongly agree Agree

109

o o
school?

Disagree Strongly Disagree

4. Are you satisfied in the given enrollment system currently using in your

o o o o

Satisfied Not Satisfied

5. Are you in favor that the ID used by the student in your school will be replace by the RFID Card which can also be useful every enrollment?

Yes No

110

APPENDIX J USER MANUAL

111

112

113

BIOGRAPHICAL SKETCH

114

Potrebbero piacerti anche