jsad61_final_project_doc_optcust
TRANSCRIPT
INSTITUTE MANAGEMENT SYSTEM FOR THE JOHN PAUL II
Completed by
Batch: JSAD 61
Group: Maxtec
Members: Suresh Roshan Gerard Bolonna (912301907 v)Milinda Laknath Arambewella (930380091 v)Payagala Waduge Ishara Ashen Fernando (931151355 v)
For partial completion of thePROFESSIONAL CERTIFICATE IN JAVA TECHNOLOGY EXAMINATION
Certification Authority
CHAMBER OF CHARTERED JAVA PROFESSIONALS INTERNATIONAL
Training Partner
JAVA INSTITUTE FOR ADVANCED TECHNOLOGY
Institute Management System for John Paul II Page 2
ACKNOWLEDGEMENTSOur group wishes to thank our members for their tremendous contribution and support both inmorally and financially towards the completion of the project to achieve our goal, We are also gratefulto our lecturers who help us throughout the development of this project Dr. Ishantha Siribaddana, Mr.Pradeep Lakshitha, Branch manager Mr. Aruna Sathischandra, Mr. Asela Cooray who without his/herhelp and guidance this project not have been completed, And we show our gratitude to our families,friends and all who contributed to bring this project to success.
Institute Management System for John Paul II Page 3
Table of ContentsIntroduction ..................................................................................................................................................14
Problem Analysis Information of Client Requirements .............................................................................15
Brief Expression Regarding Client Issues .............................................................................................. 15
Client’s Requirements .............................................................................................................................. 15
Students Details Management ................................................................................................................................ 15
Lecturer Details Management ................................................................................................................................. 15
Course Details Management ................................................................................................................................... 15
Class Scheduling....................................................................................................................................................... 15
Income / Expenses Calculation & Analysis ........................................................................................................... 15
Income Assets ........................................................................................................................................................... 15
Expenses .................................................................................................................................................................... 15
Project Plan...................................................................................................................................................16
Program Features .....................................................................................................................................16
Income / Expenses tracking & analyzing ................................................................................................ 16
Income Assets ........................................................................................................................................................... 16
Expenses .................................................................................................................................................................... 16
Limitations.................................................................................................................................................16
Research .......................................................................................................................................................17
Business Research...................................................................................................................................17
Reason for Particular Methods ................................................................................................................17
Summary of Research Facts ....................................................................................................................17
Interview with the client. ........................................................................................................................................... 17
Inspecting application forms using to register a student. .................................................................................... 17
Inspecting payment records of lecturers................................................................................................................ 17
Class schedules. ....................................................................................................................................................... 17
Course fees payments.............................................................................................................................................. 18
Inspecting student payments invoices. .................................................................................................................. 18
Records of expenses regarding (Water, Electricity, Telephone, etc)................................................................ 18
Records of income regarding (Bank Interest, Application Forms, Stationeries).............................................. 18
Students’ class classification details (batches, classes Declaration)................................................................ 18
Analysis ........................................................................................................................................................19
Business Process Diagrams....................................................................................................................19
Registering a student ................................................................................................................................................ 19
Lecturer Payment Calculation ................................................................................................................................. 20
Recruit Lecturer ......................................................................................................................................................... 21
Student Registration ................................................................................................................................................. 22
Calculate Other Expenses ....................................................................................................................................... 23
Calculate Other Income............................................................................................................................................ 24
Institute Management System for John Paul II Page 4
Recruit Employer .......................................................................................................................................................25
System Design ............................................................................................................................................. 26
Activity Diagrams ..................................................................................................................................... 26
Class Schedule Activity ............................................................................................................................................26
Class Schedule Evaluation ......................................................................................................................................27
Class Schedule Composing / Printing ....................................................................................................................28
Lecturer Payment Calculation and Issuing ............................................................................................................29
Recruit Lecturer .........................................................................................................................................................30
Student Registration..................................................................................................................................................31
Calculate Other Expenses .......................................................................................................................................32
Calculate Other Income ............................................................................................................................................33
Recruit Employer .......................................................................................................................................................34
Database Design .......................................................................................................................................... 35
ER Diagram ............................................................................................................................................... 35
Database Schema..................................................................................................................................... 36
“courses” Table Schema ..........................................................................................................................................36
“lecturers” Table Schema .........................................................................................................................................36
“lecturer_academic_ol” Table Schema (Associate of “lecturers” Table)...........................................................36
“lecturer_academic_al” Table Schema (Associate of “lecturers” Table)...........................................................36
“lecturer_pro_qualifications” Table Schema (Associate of “lecturers” Table) ..................................................36
“lecturer_payment” Table Schema (Associate of “lecturers” Table) ..................................................................36
“lecturer_payment_entry” Table Schema (Associate of “lecturers” Table).......................................................36
“class_schedules” Table Schema (Associate of “lecturers” Table) ...................................................................36
“schedule_evaluation” Table Schema ....................................................................................................................36
“students” Table Schema .........................................................................................................................................36
“class_schedules_list” Table Schema (Associate of “lecturers” & “courses” Tables) .....................................36
“schedule_evaluation_list” Table Schema (Associate of “schedule_evaluation”, “class_schedules”,“lecturers” & “courses” Tables) ................................................................................................................................36
“lecturer_pay_cal_status” Table Schema (Associate of “schedule_evaluation_list” Table) ..........................36
“student_courses” Table Schema (Associate of “students” & “courses” Tables) ............................................36
“student_payments” Table Schema (Associate of “students” & “courses” Tables) .........................................37
“employers” Table Schema ......................................................................................................................................37
“other_expense_types” Table Schema ..................................................................................................................37
“other_expenses” Table Schema (Associate of “other_expense_types” Table) .............................................37
“other_fees_type” Table Schema............................................................................................................................37
“other_fees” Table Schema (Associate of “other_fees_type” & students Tables)...........................................37
“other_income_types” Table Schema ....................................................................................................................37
“other_income” Table Schema (Associate of “other_income_types” Table) ....................................................37
“login” Table Schema................................................................................................................................................37
Institute Management System for John Paul II Page 5
Assumptions .............................................................................................................................................38
Storyboards (wireframes) ............................................................................................................................40
Main Frame................................................................................................................................................40
Login screen............................................................................................................................................................... 40
Login details incorrect............................................................................................................................................... 40
After successfully logged in main frame ................................................................................................................ 41
Shows when database login or access details not specified or incorrect......................................................... 41
Course Registration Frame ......................................................................................................................42
Course registration main frame............................................................................................................................... 42
Remove course confirmation when “Remove Course” Button Pressed ........................................................... 42
Course unable to delete ........................................................................................................................................... 42
Course updated ......................................................................................................................................................... 42
Details not specified when attempt to submit without specifying essential data ............................................. 43
Attempt to save or update with currently existing course name......................................................................... 43
When new course submitted to database ............................................................................................................. 43
When course deleted from database ..................................................................................................................... 43
Course search results dialog ................................................................................................................................... 44
Lecturer Registration Frame ....................................................................................................................45
Lecturer registration frame....................................................................................................................................... 45
When search and select with combo box and if detect identical items............................................................. 45
When lecturer details updated................................................................................................................................. 45
Attempt to save or update with currently existing NIC No .................................................................................. 46
Attempt to add currently existing or selected lecturer.......................................................................................... 46
When required bio data not specified..................................................................................................................... 46
Attempt to select invalid or currently beyond the present data and time .......................................................... 46
If O\L check box selected and no data specified.................................................................................................. 46
If A\L check box selected and no data specified .................................................................................................. 47
If Add Professional Qualifications check box selected and no data specified ................................................. 47
New lecturer submitted to database....................................................................................................................... 47
Lecturer delete confirmation .................................................................................................................................... 47
Lecturer details deleted from database ................................................................................................................. 47
Lecturer unable to delete when lecturer details were related with class schedules or payment details...... 48
Search lecturer with ID results dialog..................................................................................................................... 48
Student Registration Frame .....................................................................................................................49
Student registration frame........................................................................................................................................ 49
Attempt to add new student without specifying required details or registering without course ..................... 49
Student details updated............................................................................................................................................ 49
Attempt to delete student that already registered with course ........................................................................... 49
Institute Management System for John Paul II Page 6
Attempt to remove a course registered with a student that already payments made for the course ...........50
Attempt to add same course already registered with...........................................................................................50
Attempt to save or update with currently existing NIC No...................................................................................50
Student submitted to database................................................................................................................................50
Check and output if selected entry id related to details which attempt to delete if not ouput message.......50
Student details deleted from database...................................................................................................................51
Attempt to add currently existing entry...................................................................................................................51
Attempt to update selected student with different ID ...........................................................................................51
Student course search results dialog .....................................................................................................................52
Student search results dialog ..................................................................................................................................52
Employer Registration Frame.................................................................................................................. 53
Employer registration frame.....................................................................................................................................53
Attempt to existing employer ...................................................................................................................................53
Attempt to update or register new employer with currently existing NIC no.....................................................53
Attempt to submit employer details without specifying important details..........................................................54
Employer details updated.........................................................................................................................................54
Attempt to specify invalid date for birth date .........................................................................................................54
New employer record added....................................................................................................................................54
Employer record delete confirmation......................................................................................................................54
Employer record deleted from database................................................................................................................55
Employer search results dialog ...............................................................................................................................55
Attempt to update employer record with different ID............................................................................................55
Employer search by last name dialog ....................................................................................................................56
Other Expenses Type Registration Frame.............................................................................................. 57
Other expenses type registration frame.................................................................................................................57
Attempt to update, save without specifying details ..............................................................................................57
New other expense type added...............................................................................................................................57
Other expense entry updated ..................................................................................................................................57
Attempt to add currently existing other expense entry ........................................................................................58
Other expense entry deleted ...................................................................................................................................58
Attempt to delete other expense entry currently related with expense records...............................................58
Other expense type search results dialog .............................................................................................................59
Other Expenses Frame............................................................................................................................. 60
Other expenses frame ..............................................................................................................................................60
Expense record added..............................................................................................................................................60
Attempt to add expense record without details .....................................................................................................60
Payment record revised............................................................................................................................................61
Attempt to update selected record with different ID .............................................................................................61
Institute Management System for John Paul II Page 7
Other expenses delete entry confirmation............................................................................................................. 61
Other expense record deleted................................................................................................................................. 61
Attempt to compose report without selecting expense type or aggregate option............................................ 61
Other expenses report .............................................................................................................................................. 62
Search other expense entries by ID or date results dialog ................................................................................. 62
Other Income Type Registration Frame ..................................................................................................63
Other income type registration frame..................................................................................................................... 63
New other income entry added ............................................................................................................................... 63
Other income type updated ..................................................................................................................................... 63
Attempt to update or save with currently existing entry....................................................................................... 63
Other income type deleted....................................................................................................................................... 63
Attempt to delete other income type related with other income records........................................................... 64
Other income search results dialog ........................................................................................................................ 64
Other Income Frame .................................................................................................................................65
Other income frame .................................................................................................................................................. 65
Attempt add currently existing record..................................................................................................................... 65
Other income entry revised...................................................................................................................................... 65
Attempt to update or save without specifying details........................................................................................... 66
New other income entry added ............................................................................................................................... 66
Other income records delete confirmation ............................................................................................................ 66
Other income record deleted ................................................................................................................................... 66
Other income record search results dialog............................................................................................................ 67
Other income report .................................................................................................................................................. 67
Other Fee Type Registration Frame.........................................................................................................68
Other fee type registration frame ............................................................................................................................ 68
Attempt to save or update with currently existing entry details .......................................................................... 68
Other fee type updated............................................................................................................................................. 68
Other fee type deleted .............................................................................................................................................. 68
Attempt to delete other fee entry related with other fee records ........................................................................ 69
New other fee type added ........................................................................................................................................ 69
Other fee type search results dialog....................................................................................................................... 69
Student Other Fee Frame .........................................................................................................................70
Student other fees frame.......................................................................................................................................... 70
Attempts submit or revise entry without details .................................................................................................... 70
Attempt submit same invoice again........................................................................................................................ 70
New other fee payment record added.................................................................................................................... 71
Other fee entries delete confirmation ..................................................................................................................... 71
Other fee entry deleted............................................................................................................................................. 71
Institute Management System for John Paul II Page 8
Attempt to revise invoice with different ID..............................................................................................................71
Other fee payment entry revised.............................................................................................................................71
Invoice search results dialog ...................................................................................................................................72
Student find splash screen, Occurred when identical entries in combo box ....................................................72
Student search results dialog ..................................................................................................................................73
Lecturer Payment Frame.......................................................................................................................... 74
Lecturer payment frame ...........................................................................................................................................74
Evaluation entry assess confirmation.....................................................................................................................74
Attempt to issue payment when payment entry was selected or details missing............................................74
Lecturer payment entries revise confirmation .......................................................................................................75
Lecturer payment entry revised ...............................................................................................................................75
Lecturer payment issue confirmation......................................................................................................................75
Attempt to revise entry which is currently not related to lecturer or payment entry ........................................75
Lecturer payment entries delete confirmation .......................................................................................................75
Lecturer payment entry deleted...............................................................................................................................76
Lecturer search results dialog .................................................................................................................................76
Lecturer payment entry search results dialog .......................................................................................................77
Lecturer payment history and analyzing tab..........................................................................................................77
Attempt to filter data without specifying lecturer or aggregate option ...............................................................78
Lecturer search splash screen, Occurred when identical entries found in combo box ..................................78
Student Course Payment Frame.............................................................................................................. 79
Student course payment frame ...............................................................................................................................79
Attempt to issue for currently issued invoice .........................................................................................................79
Attempt to issue invoice without specifying particular details .............................................................................79
Payment entry or invoice revised ............................................................................................................................80
When payment invoice entry submitted to database ...........................................................................................80
Attempt to issue invoice with amount greater than the remaining due .............................................................80
Attempt to issue payment invoice for completed payment scheme...................................................................80
Attempt to edit or revise a payment entry with different invoice entry...............................................................80
Invoice entry search results dialog .........................................................................................................................81
Student search results dialog ..................................................................................................................................81
Class Scheduling & Planning Frame....................................................................................................... 82
Create, revise schedule tab .....................................................................................................................................82
Attempt to add new schedule for currently scheduled lecturer...........................................................................82
Schedule entry updated............................................................................................................................................82
Schedule delete confirmation ..................................................................................................................................82
Attempt to update or add new schedule without specifying certain details ......................................................83
Attempt to delete or update schedule entry with different ID ..............................................................................83
Institute Management System for John Paul II Page 9
When the scheduled entries were not within the scheduled month .................................................................. 83
Attempt to add currently existing entry................................................................................................................... 83
Attempt to add, remove or update evaluated schedule entries.......................................................................... 83
Attempt to delete without selecting an entry or selected entry details were missing...................................... 84
New schedule entry added ...................................................................................................................................... 84
When attempt to delete evaluated schedule entry ............................................................................................... 84
Schedule entry deleted............................................................................................................................................. 84
Lecturer search results dialog ................................................................................................................................. 85
Schedule entry search results dialog ..................................................................................................................... 85
Evaluate schedule status tab................................................................................................................................... 86
Evaluation revised ..................................................................................................................................................... 86
Attempt submit evaluation details in invalid format .............................................................................................. 86
Attempt to submit currently evaluated entry.......................................................................................................... 86
Attempt to revise an entry yet to be evaluated before revising it ....................................................................... 87
Evaluation entry submitted....................................................................................................................................... 87
Daily schedule report composing tab ..................................................................................................................... 87
Change Login Details Frame....................................................................................................................88
Change login details Frame..................................................................................................................................... 88
Attempt to save new login details without specifying such details .................................................................... 88
Attempt to change login details without specifying correct old login details..................................................... 88
Specified password length not eligible as a secure password ........................................................................... 88
The specified user name contains more than one whitespace in certain word or not specified ................... 89
The new password in the password confirmation field doesn’t match .............................................................. 89
Specified login details or the password was same as the old one .................................................................... 89
Login details changed............................................................................................................................................... 89
Database Configuration Frame ................................................................................................................90
Database configuration frame ................................................................................................................................. 90
New settings added................................................................................................................................................... 90
Database access success with the specified details after the “Test Connection” command ........................ 90
Specified database name incorrect ........................................................................................................................ 91
Database login details incorrect .............................................................................................................................. 91
Specified server access password incorrect ......................................................................................................... 91
Implementation.............................................................................................................................................92
Brief Description Regarding Implementation within the Company .......................................................92
User Acceptance Letter ............................................................................................................................93
Limitations and Future Enhancements.......................................................................................................95
Project Experience and Learning Points ....................................................................................................96
Conclusion....................................................................................................................................................97
Institute Management System for John Paul II Page 10
Appendix A: Business research documents .......................................................................................... 98
Student registration form......................................................................................................................... 98
A reference of financial details .............................................................................................................. 100
Appendix B: Minutes of the meetings ................................................................................................... 101
Appendix C: User manual ...................................................................................................................... 102
Installing software .................................................................................................................................. 102
Step 1: Establishing database server...................................................................................................................102
Configuring MySQL Server .................................................................................................................... 106
Step 2: Installing Java Runtime Environment. ....................................................................................................113
Step 3 (The final step): Installing “Institute Management System”. .................................................................116
Preparing To Run “Institute Management System” ............................................................................. 121
Step 1: Deploying Database for “Institute Management System”....................................................................121
Step 2: Running the “Institute Management System” for First Time. ..............................................................122
Defining a Password .............................................................................................................................. 125
Database Backup and Restore .............................................................................................................. 127
Backup Database: ...................................................................................................................................................127
Restore Database:...................................................................................................................................................128
Appendix D: SQL Queries ...................................................................................................................... 129
Globally Related SQL Queries: .............................................................................................................................129
Course Registration Frame SQL Queries: ............................................................................................ 129
Related to "Add Course" Button ............................................................................................................................129
Related to "Update Details" Button .......................................................................................................................129
Related to "View All Course" Button .....................................................................................................................129
Related to "Remove Course" Button ....................................................................................................................129
Related to Search by Course ID ("Find" button) .................................................................................................130
Related to Search by Course Name ("Find button") ..........................................................................................130
Lecturer Registration Frame SQL Queries: .......................................................................................... 130
Related to "Save" Button ........................................................................................................................................130
Related to "Update" Button ....................................................................................................................................130
Related to "Delete" Button .....................................................................................................................................131
Related to Find by "Last Name" ("Find" Button) .................................................................................................131
Related to "NIC" Combo Box .................................................................................................................................131
Related to "Lecturer Full Name" Combo Box......................................................................................................132
Related to Find by "Lecturer ID" ("Find" Button).................................................................................................132
Related to O/L "Academic Type" Combo Box.....................................................................................................132
Related to A/L "Academic Type" Combo Box .....................................................................................................132
Student Registration Frame SQL Queries: ........................................................................................... 133
Common Queries: ...................................................................................................................................................133
Related to Find by "Student ID" ("Find" Button)..................................................................................................133
Institute Management System for John Paul II Page 11
Related to Find by "Full Name" ("Find" Button) .................................................................................................. 133
Related to "NIC" Combo Box................................................................................................................................. 133
Related to Find by "Course ID" ("Find" Button) .................................................................................................. 133
Related to Find by "Course Name" Combo Box................................................................................................. 133
Related to "Remove Course" Button .................................................................................................................... 133
Related to "Save" Button........................................................................................................................................ 134
Related to "Update" Button .................................................................................................................................... 134
Related to "Delete" Button ..................................................................................................................................... 134
Employer Registration Frame SQL Queries:......................................................................................... 134
Common Queries: ................................................................................................................................................... 134
Related to Find by "Employer ID" ("Find" Button) .............................................................................................. 135
Related to "Full Name" Combo Box ..................................................................................................................... 135
Related to Find by "Emplyer Last Name" ("Find" Button) ................................................................................. 135
Related to "NIC" Combo Box................................................................................................................................. 135
Related to "Save" Button........................................................................................................................................ 135
Related to "Update" Button .................................................................................................................................... 136
Related to "Delete" Button ..................................................................................................................................... 136
Other Expenses Frame SQL Queries:....................................................................................................136
Common Queries: ................................................................................................................................................... 136
Related to Find by "Other Expenses ID" ("Find" Button)................................................................................... 136
Related to Find by "Submit Date" ("Find" Button) .............................................................................................. 136
Related to "Other Expense Type" Combo Box ................................................................................................... 137
Related to Find by "Bill No" ("Find" Button)......................................................................................................... 137
Related to "Filter" Button ........................................................................................................................................ 137
Related to "Paid" Button......................................................................................................................................... 137
Related to "Revise Payment" Button.................................................................................................................... 138
Other Income Frame SQL Queries:........................................................................................................138
Common Queries: ................................................................................................................................................... 138
Related to Find by "Other Income ID" ("Find" Button) ....................................................................................... 138
Related to Find by "Date" ("Find" Button) ............................................................................................................ 138
Related to "Other Income Type" Combo Box ..................................................................................................... 138
Related to Find by "Receipt No" ("Find" Button)................................................................................................. 138
Related to "Filter" Button ........................................................................................................................................ 139
Related to "Save" Button........................................................................................................................................ 139
Related to "Update" Button .................................................................................................................................... 139
Related to "Delete" Button ..................................................................................................................................... 139
Other Expense Type Registration Frame SQL Queries:.......................................................................139
Common Queries: ................................................................................................................................................... 139
Institute Management System for John Paul II Page 12
Related to Find by "Other Expense Type ID" ("Find" Button)...........................................................................140
Related to Find by "Other Expenses Name" ("Find" Button) ............................................................................140
Related to "Save" Button ........................................................................................................................................140
Related to "Update" Button ....................................................................................................................................140
Related to "Delete" Button .....................................................................................................................................140
Other Fee Type Registration Frame SQL Queries:............................................................................... 140
Related to Find by "Other Fee ID" ("Find" Button) .............................................................................................140
Related to Find by "Other Fee Name" ("Find" Button) .......................................................................................140
Related to "Save" Button ........................................................................................................................................141
Related to "Update" Button ....................................................................................................................................141
Related to "Delete" Button .....................................................................................................................................141
Other Income Type Registration Frame SQL Queries: ........................................................................ 141
Common Queries: ...................................................................................................................................................141
Related to Find by "Other Income Type ID" ("Find" Button) .............................................................................141
Related to Find by "Other Income Type Name" ("Find" Button).......................................................................141
Related to "Save" Button ........................................................................................................................................141
Related to "Update" Button ....................................................................................................................................142
Related to "Delete" Button .....................................................................................................................................142
Lecturer Payments Frame (Payments Tab) SQL Queries: ................................................................... 142
Common Queries: ...................................................................................................................................................142
Related to Find by "Lecturer ID" ("Find" Button).................................................................................................143
Related to Find by "Payment Entry ID" ("Find" Button) .....................................................................................143
Related to "Assess Payment" Button ...................................................................................................................143
Related to "Issue Payment" Button.......................................................................................................................144
Related to "Revise Payment" Button ....................................................................................................................144
Related to "Delete" Button .....................................................................................................................................145
Lecturer Payments Frame (Payment History / Analyzing Tab) SQL Queries: .................................... 145
Common Queries: ...................................................................................................................................................145
Related to Find by "Lecturer ID" ("Find" Button).................................................................................................145
Related to "Lecturer Name" Combo Box .............................................................................................................145
Related to "Filter" Button ........................................................................................................................................145
Student Payments Frame SQL Queries: ............................................................................................... 146
Common Queries: ...................................................................................................................................................146
Related to Find by "Invoice ID" ("Find" Button)...................................................................................................146
Related to Find by "Student ID" ("Find" Button)..................................................................................................146
Related to Find by "Student Name" ("Find" Button) ...........................................................................................146
Related to "Course Name" Combo Box ...............................................................................................................146
Related to "Paid" Button .........................................................................................................................................147
Institute Management System for John Paul II Page 13
Related to "Edit" Button .......................................................................................................................................... 147
Student Other Fees Frame SQL Queries:.............................................................................................. 147
Common Queries: ................................................................................................................................................... 147
Related to Find by "Invoice ID" ("Find" Button)................................................................................................... 147
Related to Find by "Student ID" ("Find" Button) ................................................................................................. 148
Related to "Student Name" Combo Box .............................................................................................................. 148
Related to "Other Fee Type" Combo Box............................................................................................................ 148
Related to "Paid" Button......................................................................................................................................... 148
Related to "Revise" Button..................................................................................................................................... 148
Related to "Delete Record" Button ....................................................................................................................... 148
Lecturer Class Scheduling Frame (Create / Revise Schedule Tab) SQL Queries: ............................. 149
Common Queries: ................................................................................................................................................... 149
Related to Find by "Lecture ID" ("Find" Button) .................................................................................................. 149
Related to Find by "Schedule ID" ("Find" Button)............................................................................................... 149
Related to "Lecture Name" Combo Box .............................................................................................................. 149
Related to Find by "Scheduled for Month" ("Find" Button) ............................................................................... 149
Related to "Save" Button........................................................................................................................................ 150
Related to "Revise" Button..................................................................................................................................... 150
Related to "Delete" Button ..................................................................................................................................... 150
Lecturer Class Scheduling Frame (Evaluate Schedule Status Tab) SQL Queries: ............................ 150
Related to "Generate" Button ................................................................................................................................ 150
Related to "Submit Evaluation" Button................................................................................................................. 151
Related to "Edit Evaluation" Button ...................................................................................................................... 151
Lecturer Class Scheduling Frame (Schedule Reports Tab) SQL Queries: .........................................152
Related to "Compose Date wise Schedule" Button ........................................................................................... 152
Login Frame SQL Queries:.....................................................................................................................152
Related to "Login" Button ....................................................................................................................................... 152
Change Login Details Frame SQL Queries: .......................................................................................... 152
Related to "Change Login Details" Button........................................................................................................... 152
Institute Management System for John Paul II Page 14
IntroductionThe program development primarily for accounts management, student details management such as-automating the expenses, income analysis, and also class scheduling, lecturers’ payments,Students’ payment details management.Of course this software developed for manipulated by a single user rather than for multiple usersTherefore user account creation was not possible only the access level protection was included.
Institute Management System for John Paul II Page 15
Problem Analysis Information of Client Requirements
Brief Expression Regarding Client IssuesOur client is an accountant at an Institute handles accounts and other task which include maintaining“Student Details”, “Employer Details”, “Lecturer Details” and many other tasks which describedbelow.
Client’s Requirements
Students Details Management Student’s Registration Details. Student’s Course Payments. Tracking payments or course installments.
Lecturer Details Management Lecturer Registration Details. Lecturer per hour salary calculation for the period of lectured. Lecturer Expertise & Class Referring.
Course Details Management Course Fees. Course Duration.
Class Scheduling Planning class schedules. Notifying Lecturers.
Income / Expenses Calculation & Analysis
Income Assets
Application forms. Course fees. Other income. Sale of books.
Expenses
Staff salaries. Lecturer fees. Telephone bills. Electricity bills. Printing & Stationery. General expenses. Travelling Bank charges. Computer Repairs. Bank charges.
Institute Management System for John Paul II Page 16
Project Plan
Program Features
The current preceding features were proposed according to client expectations as defined above,And thoroughly design this program to use by a single user.
Student Registration. Lecturer Registration. Class scheduling and planning and composing schedule reports using jasper reports. Lecturer payment planning tracking lecture hours and assessing monthly payments. Course details management (or course fee controlling, discounts). Students’ payments tracking.
Income / Expenses tracking & analyzing
Income Assets
Daily income recording. Date wise income report generating.
Expenses
Bill payments recording (for example Electricity, Telephone bills). Staff salary issues recording. Lecturers payment assessing, issuing recording. Overall business analyzing of expenses & income with jasper reports for business
forecasting which provide detailed knowledge regarding organizational development.
Limitations
As comparing to the features of the program this software also lack of certain generic & advancefeatures,Which is dramatically improve the accuracy and the overall automation functionality of the program,Current limitations are as described below.
Database backup functions (Scheduled database backup, manual backup, backuparchiving, Backup protection features, Real-time backup or Backup synchronizing).
Multiple user accounts are not possible to create. Security password encryption. Password reset options. User event tracking (for example if new student was registered, there is an event
recorded who registered the new student) – This feature require multiple user accountfeature.
User wise access level restrictions. Password reset only possible by reset via database which holds the account login details. Database backup can only perform by the database server options. No multilingual capabilities.
Institute Management System for John Paul II Page 17
Research
Business Research
Our research into the development of this program started by directly interviewing with the client,Because we felt it is the most eligible to start the research and gather required information.
After that we inspect how they maintain details in the physical world such as records, payments,accounts and then we started researching each task as described below.
Then we inspect how they maintain their student registration, and payroll processing such facts bytheir application forms which used to register a student.
And we also look into their payment records to see how they maintain the payments; it was greatlyconvince us to develop the payment processing system for the lecturer payments.
At the conclusion of our research we compose scrutinize report of functions of their typical ways ofmaintaining the tasks we researched and make concepts of possible ways of how it can beautomated by software and start developing the program.
Reason for Particular Methods
The main reason for the methods we chosen to research, is our group members felt that this is themost-Eligible way to grasp knowledge in how the work is performed by the institute staff,Essentially this is our very first software project that we develop therefore it was extremely subtle forus to develop thus we need to deeply analyze the activities of client’s organizational events.
Summary of Research Facts
Interview with the client. Student registration requirements. Lecturer registration requirements. Managing the expenses details. Managing the income details. Lecturer payment scheme.
Inspecting application forms using to register a student. The process of registering a student. The crucial information used to register a student. The process of maintaining the student details. The manner of registering a student with a course. Procedure of student payment record maintenance.
Inspecting payment records of lecturers. Payment calculation process. Maintaining the records of lecturer payments. The process used to calculate daily salary according to total hours per day, according
to the lectures completed for a day. Class schedules.
Time table specification manner used to express the daily schedule (Greatly helpful forthe development of reports using the Jasper).
Institute Management System for John Paul II Page 18
Course fees payments. Invoice details. How payment records are maintained. Payment methods. Installment payment details maintenance.
Inspecting student payments invoices. Template style (Greatly helpful for designing the invoice with Jasper ). Required details of invoice.
Records of expenses regarding (Water, Electricity, Telephone, etc). The process of maintaining expense records. Details used to manage expense records. Common details used to maintain details (Essential for developing common wireframe). Payment methods used to pay the expense. The processes of payments are done according to the payment methods.
Records of income regarding (Bank Interest, Application Forms, Stationeries). The process of maintaining income records. Details used to manage income records. Common details used to maintain details (Essential for developing common wireframe). Income sources.
Students’ class classification details (batches, classes Declaration). Class details management process. The process of referring student class or batch. Assigning a student to new class, batch.
Institute Management System for John Paul II Page 19
Analysis
Business Process Diagrams
Registering a student
Institute Management System for John Paul II Page 19
Analysis
Business Process Diagrams
Registering a student
Institute Management System for John Paul II Page 19
Analysis
Business Process Diagrams
Registering a student
Institute Management System for John Paul II Page 20
Lecturer Payment Calculation
Institute Management System for John Paul II Page 20
Lecturer Payment Calculation
Institute Management System for John Paul II Page 20
Lecturer Payment Calculation
Institute Management System for John Paul II Page 21
Recruit Lecturer
Institute Management System for John Paul II Page 21
Recruit Lecturer
Institute Management System for John Paul II Page 21
Recruit Lecturer
Institute Management System for John Paul II Page 22
Student Registration
Institute Management System for John Paul II Page 22
Student Registration
Institute Management System for John Paul II Page 22
Student Registration
Institute Management System for John Paul II Page 23
Calculate Other Expenses
Institute Management System for John Paul II Page 23
Calculate Other Expenses
Institute Management System for John Paul II Page 23
Calculate Other Expenses
Institute Management System for John Paul II Page 24
Calculate Other Income
Institute Management System for John Paul II Page 24
Calculate Other Income
Institute Management System for John Paul II Page 24
Calculate Other Income
Institute Management System for John Paul II Page 25
Recruit Employer
Institute Management System for John Paul II Page 25
Recruit Employer
Institute Management System for John Paul II Page 25
Recruit Employer
Institute Management System for John Paul II Page 26
System Design
Activity Diagrams
Class Schedule Activity
Institute Management System for John Paul II Page 26
System Design
Activity Diagrams
Class Schedule Activity
Institute Management System for John Paul II Page 26
System Design
Activity Diagrams
Class Schedule Activity
Institute Management System for John Paul II Page 27
Class Schedule Evaluation
Institute Management System for John Paul II Page 27
Class Schedule Evaluation
Institute Management System for John Paul II Page 27
Class Schedule Evaluation
Institute Management System for John Paul II Page 28
Class Schedule Composing / Printing
Institute Management System for John Paul II Page 28
Class Schedule Composing / Printing
Institute Management System for John Paul II Page 28
Class Schedule Composing / Printing
Institute Management System for John Paul II Page 29
Lecturer Payment Calculation and Issuing
Institute Management System for John Paul II Page 29
Lecturer Payment Calculation and Issuing
Institute Management System for John Paul II Page 29
Lecturer Payment Calculation and Issuing
Institute Management System for John Paul II Page 30
Recruit Lecturer
Institute Management System for John Paul II Page 30
Recruit Lecturer
Institute Management System for John Paul II Page 30
Recruit Lecturer
Institute Management System for John Paul II Page 31
Student Registration
Institute Management System for John Paul II Page 31
Student Registration
Institute Management System for John Paul II Page 31
Student Registration
Institute Management System for John Paul II Page 32
Calculate Other Expenses
Institute Management System for John Paul II Page 32
Calculate Other Expenses
Institute Management System for John Paul II Page 32
Calculate Other Expenses
Institute Management System for John Paul II Page 33
Calculate Other Income
Institute Management System for John Paul II Page 33
Calculate Other Income
Institute Management System for John Paul II Page 33
Calculate Other Income
Institute Management System for John Paul II Page 34
Recruit Employer
Institute Management System for John Paul II Page 34
Recruit Employer
Institute Management System for John Paul II Page 34
Recruit Employer
Institute Management System for John Paul II Page 35
Database Design
ER Diagram
Institute Management System for John Paul II Page 36
Database Schema
“courses” Table Schemacourses (courseID, ID, Name, Fee, LecturerPerHourRate)
“lecturers” Table Schemalecturers (lecturerID, FullName, LastName, HiredDate, Gender, DateOfBirth, Age, Nic,ResidenceAddress, TeleFixed, MobileNo, Email, City, Country, StateProvince, PostalCode)
“lecturer_academic_ol” Table Schema (Associate of “lecturers” Table)lecturer_academic_ol (lecturerIDf, OlType, Subject, Grade, Year)
“lecturer_academic_al” Table Schema (Associate of “lecturers” Table)lecturer_academic_al (lecturerIDf, AlType, Grade, Stream, Subject, Year)
“lecturer_pro_qualifications” Table Schema (Associate of “lecturers” Table)lecturer_pro_qualifications (lecturerIDf, InstituteUniversity, Qualification, CertificateNo,Description)
“lecturer_payment” Table Schema (Associate of “lecturers” Table)lecturer_payment (lecturerIDf, TotalHours, TotalAmount, Remaining, TotalPaid)
“lecturer_payment_entry” Table Schema (Associate of “lecturers” Table)lecturer_payment_entry (lecPayHistory_ID, ID, lecturerIDf, PaidAmount, TotalAmount,Remaining, TotalPaid, DATE, TIME)
“class_schedules” Table Schema (Associate of “lecturers” Table)class_schedules (scheduleID, ID, lecturerIDf, ScheduledMonth, ScheduleEntryDate)
“schedule_evaluation” Table Schemaschedule_evaluation (evalID, ID, RelatedDate)
“students” Table Schemastudents (studentID, ID, Title, FullName, Address, Email, DateOfBirth, Gender, TeleFixed, MobileNo,Nic, Guardian)
“class_schedules_list” Table Schema (Associate of “lecturers” & “courses” Tables)class_schedules_list (scheduleIDf, courseIDf, Class, Batch, Date, StartTime, EndTime,EstimatedHours)
“schedule_evaluation_list” Table Schema (Associate of “schedule_evaluation”,“class_schedules”, “lecturers” & “courses” Tables)schedule_evaluation_list (evalList_ID, ID, evalIDf, scheduleIDf, lecturerIDf, courseIDf,DefaultStartTime, CurrentStartTime, DefaultEndTime, CurrentEndTime, CurrentHours, Status)
“lecturer_pay_cal_status” Table Schema (Associate of “schedule_evaluation_list”Table)
lecturer_pay_cal_status (evalList_IDf, UpdateStatus)
“student_courses” Table Schema (Associate of “students” & “courses” Tables)student_courses (studentIDf, courseIDf, CourseName, RegisterDate, Class, Batch, Fee, PayMethod,Installments)
Institute Management System for John Paul II Page 37
“student_payments” Table Schema (Associate of “students” & “courses” Tables)students_payments (invoiceID, studentIDf, courseIDf, PayDate, Payment, Installments)
“employers” Table Schemaemployers (ID, employerID, NameFull, LastName, Gender, Nic, DateOfBirth, Age, PostalCode,StateProvince, City, Address, TeleFixed, MobileNo, Email, Employment, Salary, RecruitDate, Date,TIME)
“other_expense_types” Table Schemaother_expense_types (otheExpenseTypeID, ID, Name)
“other_expenses” Table Schema (Associate of “other_expense_types” Table)other_expenses (otherExpenseID, ID, otherExpenseTypeIDf, BillNo, BillAmount, PaidAmount,Remarks, Remaining, PaidDate, BillDate, EntryDate, EntryTime, EntryReviseDate)
“other_fees_type” Table Schemaother_fees_type (othFeeType_ID, ID, FeeTypeName)
“other_fees” Table Schema (Associate of “other_fees_type” & students Tables)other_fees (othFeeInvoice_ID, ID, othFeeType_IDf, studentIDf, Payable, Paid, Remaining, PaidDate,REVISE_DATE, REVISE_TIME)
“other_income_types” Table Schemaother_income_types (othIncomeTypeID, ID, Name)
“other_income” Table Schema (Associate of “other_income_types” Table)other_income (otherIncomeID, ID, ReceiptNo, IncomeAmount, Remarks, ReceiveDate, Date,
Time)
“login” Table Schemalogin (userID, password)
Institute Management System for John Paul II Page 38
Assumptions
Requirement: Lecturer registration.Assumption: Lecturer registration frame developed for registering lecturers and managing the data,with ternary mode table relationship for qualification registering yet the relationship depends on the-lecturers qualifications.
Requirement: Student registration & course registration.Assumption: Student must registered with at least one course to allow registering as a student,And any student who paid for a course cannot be removed or deleted from the database.
Requirement: Student course payment.Assumption: Student payment details will be stored in “student_payment” associate table accordingto course ID.
Requirement: Tracking payments or course installments.Assumption: Tracking the payment or course installments may possible with assessing the studentpayment entries stored in the “student_payment” table with SQL query.
Requirement: Lecturer registration details.Assumption: Lecturer details were managed with three separated tables they were associatedtables, and also contains the foreign key of the main table to refer to the correct entry in each table tocorrelate.
Requirement: Lecturer per hour salary calculation for the period of lectured.Assumption: The salary of lecturer calculated by assessing current work hours done and accordingto the per hour rate therefore it was assessed or calculated by the evaluated class schedules in“schedule_evaluation_list” table although already evaluated schedules were ignored by determiningthe evaluated state according to the “lecturer_pay_cal_status” table.
Requirement: Lecturer class referring.Assumption: The lecturers’ classes were referred through the class schedule and the referring doneby composing the daily class schedules according to each lecturer.
Requirement: Managing the course details.Assumption: Course details managed with the course registration frame contains course name, perhour rate which is necessary to calculate the lecturer per hour salary.
Requirement: Course duration.Assumption: The course duration for a particular course were calculated according to the first startdate of a batch by the registration date for the course by calculating the difference of registration dateand the present date.
Requirement: Planning class schedules.Assumption: Class schedules create by considering the year, month, date, and lecturer whichmeans each schedule was created for a date & per lecturer.
Institute Management System for John Paul II Page 39
Requirement: Notifying lecturers.Assumption: Lecturers were notified through a daily schedule report according to the current date,notifying regarding the daily lectures.
Requirement: Managing the income details and income assets.Assumption: Income assets were registered via the “Other Income Registration: frame and stored inthe “other_income_types” table, each income type would be a unique representation of an incomerecord which is submitted via the “Other Income” frame yet the representation of each record will belimited to the pre-registered “other_income_types” or the income assets.
Requirement: Managing the expense details and expenses or liabilities.Assumption: The process of the expenses were likewise managing the other income details, suchas each expense entry represent unique expense type registered by the “Other Expense Types”frame.
Institute Management System for John Paul II Page 40
Storyboards (wireframes)
Main Frame
Login screen
Login details incorrect
Institute Management System for John Paul II Page 41
After successfully logged in main frame
Shows when database login or access details not specified or incorrect
Institute Management System for John Paul II Page 42
Course Registration Frame
Course registration main frame
Remove course confirmation when “Remove Course” Button Pressed
Course unable to delete
Course updated
Institute Management System for John Paul II Page 43
Details not specified when attempt to submit without specifying essential data
Attempt to save or update with currently existing course name
When new course submitted to database
When course deleted from database
Institute Management System for John Paul II Page 44
Course search results dialog
Institute Management System for John Paul II Page 45
Lecturer Registration Frame
Lecturer registration frame
When search and select with combo box and if detect identical items
When lecturer details updated
Institute Management System for John Paul II Page 46
Attempt to save or update with currently existing NIC No
Attempt to add currently existing or selected lecturer
When required bio data not specified
Attempt to select invalid or currently beyond the present data and time
If O\L check box selected and no data specified
Institute Management System for John Paul II Page 47
If A\L check box selected and no data specified
If Add Professional Qualifications check box selected and no data specified
New lecturer submitted to database
Lecturer delete confirmation
Lecturer details deleted from database
Institute Management System for John Paul II Page 48
Lecturer unable to delete when lecturer details were related with class schedules or paymentdetails
Search lecturer with ID results dialog
Institute Management System for John Paul II Page 49
Student Registration Frame
Student registration frame
Attempt to add new student without specifying required details or registering without course
Student details updated
Attempt to delete student that already registered with course
Institute Management System for John Paul II Page 50
Attempt to remove a course registered with a student that already payments made for thecourse
Attempt to add same course already registered with
Attempt to save or update with currently existing NIC No
Student submitted to database
Check and output if selected entry id related to details which attempt to delete if not ouputmessage
Institute Management System for John Paul II Page 51
Student details deleted from database
Attempt to add currently existing entry
Attempt to update selected student with different ID
Institute Management System for John Paul II Page 52
Student course search results dialog
Student search results dialog
Institute Management System for John Paul II Page 53
Employer Registration Frame
Employer registration frame
Attempt to existing employer
Attempt to update or register new employer with currently existing NIC no
Institute Management System for John Paul II Page 54
Attempt to submit employer details without specifying important details
Employer details updated
Attempt to specify invalid date for birth date
New employer record added
Employer record delete confirmation
Institute Management System for John Paul II Page 55
Employer record deleted from database
Employer search results dialog
Attempt to update employer record with different ID
Institute Management System for John Paul II Page 56
Employer search by last name dialog
Institute Management System for John Paul II Page 57
Other Expenses Type Registration Frame
Other expenses type registration frame
Attempt to update, save without specifying details
New other expense type added
Other expense entry updated
Institute Management System for John Paul II Page 58
Attempt to add currently existing other expense entry
Other expense entry deleted
Attempt to delete other expense entry currently related with expense records
Institute Management System for John Paul II Page 59
Other expense type search results dialog
Institute Management System for John Paul II Page 60
Other Expenses Frame
Other expenses frame
Expense record added
Attempt to add expense record without details
Institute Management System for John Paul II Page 61
Payment record revised
Attempt to update selected record with different ID
Other expenses delete entry confirmation
Other expense record deleted
Attempt to compose report without selecting expense type or aggregate option
Institute Management System for John Paul II Page 62
Other expenses report
Search other expense entries by ID or date results dialog
Institute Management System for John Paul II Page 63
Other Income Type Registration Frame
Other income type registration frame
New other income entry added
Other income type updated
Attempt to update or save with currently existing entry
Other income type deleted
Institute Management System for John Paul II Page 64
Attempt to delete other income type related with other income records
Other income search results dialog
Institute Management System for John Paul II Page 65
Other Income Frame
Other income frame
Attempt add currently existing record
Other income entry revised
Institute Management System for John Paul II Page 66
Attempt to update or save without specifying details
New other income entry added
Other income records delete confirmation
Other income record deleted
Institute Management System for John Paul II Page 67
Other income record search results dialog
Other income report
Institute Management System for John Paul II Page 68
Other Fee Type Registration Frame
Other fee type registration frame
Attempt to save or update with currently existing entry details
Other fee type updated
Other fee type deleted
Institute Management System for John Paul II Page 69
Attempt to delete other fee entry related with other fee records
New other fee type added
Other fee type search results dialog
Institute Management System for John Paul II Page 70
Student Other Fee Frame
Student other fees frame
Attempts submit or revise entry without details
Attempt submit same invoice again
Institute Management System for John Paul II Page 71
New other fee payment record added
Other fee entries delete confirmation
Other fee entry deleted
Attempt to revise invoice with different ID
Other fee payment entry revised
Institute Management System for John Paul II Page 72
Invoice search results dialog
Student find splash screen, Occurred when identical entries in combo box
Institute Management System for John Paul II Page 73
Student search results dialog
Institute Management System for John Paul II Page 74
Lecturer Payment Frame
Lecturer payment frame
Evaluation entry assess confirmation
Attempt to issue payment when payment entry was selected or details missing
Institute Management System for John Paul II Page 75
Lecturer payment entries revise confirmation
Lecturer payment entry revised
Lecturer payment issue confirmation
Attempt to revise entry which is currently not related to lecturer or payment entry
Lecturer payment entries delete confirmation
Institute Management System for John Paul II Page 76
Lecturer payment entry deleted
Lecturer search results dialog
Institute Management System for John Paul II Page 77
Lecturer payment entry search results dialog
Lecturer payment history and analyzing tab
Institute Management System for John Paul II Page 78
Attempt to filter data without specifying lecturer or aggregate option
Lecturer search splash screen, Occurred when identical entries found in combo box
Institute Management System for John Paul II Page 79
Student Course Payment Frame
Student course payment frame
Attempt to issue for currently issued invoice
Attempt to issue invoice without specifying particular details
Institute Management System for John Paul II Page 80
Payment entry or invoice revised
When payment invoice entry submitted to database
Attempt to issue invoice with amount greater than the remaining due
Attempt to issue payment invoice for completed payment scheme
Attempt to edit or revise a payment entry with different invoice entry
Institute Management System for John Paul II Page 81
Invoice entry search results dialog
Student search results dialog
Institute Management System for John Paul II Page 82
Class Scheduling & Planning Frame
Create, revise schedule tab
Attempt to add new schedule for currently scheduled lecturer
Schedule entry updated
Schedule delete confirmation
Institute Management System for John Paul II Page 83
Attempt to update or add new schedule without specifying certain details
Attempt to delete or update schedule entry with different ID
When the scheduled entries were not within the scheduled month
Attempt to add currently existing entry
Attempt to add, remove or update evaluated schedule entries
Institute Management System for John Paul II Page 84
Attempt to delete without selecting an entry or selected entry details were missing
New schedule entry added
When attempt to delete evaluated schedule entry
Schedule entry deleted
Institute Management System for John Paul II Page 85
Lecturer search results dialog
Schedule entry search results dialog
Institute Management System for John Paul II Page 86
Evaluate schedule status tab
Evaluation revised
Attempt submit evaluation details in invalid format
Attempt to submit currently evaluated entry
Institute Management System for John Paul II Page 87
Attempt to revise an entry yet to be evaluated before revising it
Evaluation entry submitted
Daily schedule report composing tab
Institute Management System for John Paul II Page 88
Change Login Details Frame
Change login details Frame
Attempt to save new login details without specifying such details
Attempt to change login details without specifying correct old login details
Specified password length not eligible as a secure password
Institute Management System for John Paul II Page 89
The specified user name contains more than one whitespace in certain word or not specified
The new password in the password confirmation field doesn’t match
Specified login details or the password was same as the old one
Login details changed
Institute Management System for John Paul II Page 90
Database Configuration Frame
Database configuration frame
New settings added
Database access success with the specified details after the “Test Connection” command
Institute Management System for John Paul II Page 91
Specified database name incorrect
Database login details incorrect
Specified server access password incorrect
Institute Management System for John Paul II Page 92
Implementation
Brief Description Regarding Implementation within the CompanyBefore we leave to the client, we request an appointment to get there for implementing our software-According to our clients appointment we went to implement the software.
Before the implementation on company’s computers we make sure every machine was clean andmalware free, configure every computer with specific group policy scheme to make sure to preventany bad configuration or access to the database server, which is a vital part containing company’sdetails.
The software has been installed on two computers in the company one with administrative privilegesto access and configuring database, restoring backups, and the second with limited access privilegeswith access only to the software except to the database server.
We add third party disaster recovery scheme to automatically backup the database in every 30mins,for more convenient control over the software by user and to guarantee the reliability of recoveringdatabase in any circumstances or to improve the contingency in recoverability.
After installing on the machines, we make a test run on the software to make sure the functions areas anticipated and error free before explaining and provide any training to the client,Then we start with a brief explanation of wireframes and detailed explanation of every element ineach wireframe,
Then we explain general configuration basics: how to add, change or remove login details,configuring database access via the software.
And other functions as below:
Registering a lecturer Registering a student How to compose a daily class schedule How to generate reports How to analyze income / expenses How to evaluate daily class schedules to calculate the lecturers’ salary .etc
And also client has requested a copy of the database EER diagram of the software.
Institute Management System for John Paul II Page 93
User Acceptance Letter
Institute Management System for John Paul II Page 94
Institute Management System for John Paul II Page 95
Limitations and Future Enhancements
Limitations:
Cannot create multiple user accounts. Unable to provide restrictions on critical actions. Invoicing process doesn’t generate or start from 0 on every day. No multilingual capabilities.
Enhancements:
Shortcut keys for more convenient control. Graphical reports such as graphs for income / expense analyzing. Multiple user account support. User event tracking. User wise function limitation (control restriction). Improved GUI for make more vivid. Dynamic multilingual capabilities.
Institute Management System for John Paul II Page 96
Project Experience and Learning Points The most interesting experience was the adaptability that we experience throughout the
development of this software which means we need to creatively turn it into computerizedenvironment from traditional way the current business process is running.
Working with a team is another valuable experience we earned, such as working with team spiritor collaborating with team members and solving issues planning project and discussing concepts.
When considering a professional course like JSAD we learned how to become professional in thefield of software development, with the professional work ethics we learned throughout the courseduration.
Key responsibilities when developing software is a critical proportion we need to understand,While we develops reducing faults and insuring the accuracy of the functions integrated this is themost crucial part we learned from this project.
Meeting a client and understanding client’s issues that anticipate from the software is veryessential to reduce software drawbacks and reducing the development time, this is very importantexperience we earned about the development efficiency.
Planning a creative presentation was extremely vital to demonstrate the software to client, this ismost important learning point our team grasped.
Project planning and management is very essential when developing team driven projects, it’svery essential experience that our team members gained.
Working under high-stress is inevitable in the software development we had good training andexperience duration of the project.
Self-learning and researching is crucial to create solutions to client requirements and to move withthe latest technology, and we have successfully completed the project with these skills.
Institute Management System for John Paul II Page 97
ConclusionWhile software based business solutions offer many benefits to companies, none of these willmaterialize if users or employees reluctant to the adoption of software driven solutions that providedfor the present time traditional business process of a particular company,
The best way to ensure the investment made for the project worthwhile is making software drivenfunctions simpler and easy to understand, providing training how to manipulate the software,
Ultimately that will drive adoption and use, which will deliver the promised benefits of IT forCompanies at large, boosting productivity and dramatically improving the user experience with users’experience in the new technology or software based solutions for Companies.
Institute Management System for John Paul II Page 98
Appendix A: Business research documents
Forms of the company:
Student registration formThe student registration form mainly used to design the student registration with course registrationand lecturer registration.
Institute Management System for John Paul II Page 99
A list of courses offered by the institute which specified on student registration form
Institute Management System for John Paul II Page 100
A reference of financial detailsInformation helped to design Income / Expense information management.
Institute Management System for John Paul II Page 101
Appendix B: Minutes of the meetings
Date and time : 3/11/2013 10:30 PMLocation : Chillaw Road Wennappuwa, Sri Lanka.Resource person : Mr. Mahesh (Manager at John Paul II Institute).Members present : Mr. Mahesh.
Gathered information
General information regarding main requirements. The typical manner currently using to manage students details and course registration. Assets and accounts details (Income / Expense Information). Revenue details regarding the process of managing financial details and composing
reports of income / expenses. Current payroll process for lecturer payment calculations and managing payment
records.
Institute Management System for John Paul II Page 102
Appendix C: User manual
Installing softwareInstallation Requirements
MySQL Server 5.5 or later version JRE v1.7 or Later [32 or 64 bit Runtime Environment] (Depending on OS Architecture) Institute Management System
Step 1: Establishing database serverRun setup then from the welcome screen click on “Next” button
Select installation type “Custom” and then click on “Next”
Institute Management System for John Paul II Page 103
From the below window select “MySQL Server Datafiles” and click on “Change” then select locationfor “MySQL Datafile” and click “Ok”, then click on “Next” See: Figure 1.
NOTE: The purpose of changing the location was to backup database files easily and prevents anyloss of data or performance defect by keeping then on system partition, and also then default locationwas a restricted area which needs to change permission to access for any purpose such as backingup database files manually, changing the permission may compromise system security.
Figure 1: Changing the location
Institute Management System for John Paul II Page 104
Make sure the settings were correct, and then click on “Install”
Wait for installation to complete
Institute Management System for John Paul II Page 105
After installation finished click on “Finish”NOTE: If you want to configure the server as soon as installation finished keep the-“Configure the MySQL Server now” check box checked.
See: Configuring MySQL Server for further instructions.
Institute Management System for John Paul II Page 106
Configuring MySQL Server
Run “MySQlInstanceConfig.exe” tool exist in “C:\Program Files\MySQL\MySQL Server 5.5\bin”,Click on “Next”
Select “Detailed Configuration” option and then click “Next”
Institute Management System for John Paul II Page 107
Select “Developer Machine” option then click “Next”NOTE: Select this option if the installed computer also intended for general purpose functions.
Select “Multifunctional Database” option then click nextNOTE: This would be the most suitable option due to database design designed by “InnoDB” type
Institute Management System for John Paul II Page 108
Set InnoDB Tablespace SettingsNOTE: It is always better to select a partition rather than the “C:”
Then select the “InnoDB” data files location or directory and click on “Ok”
Then click “Next” on the main window.
Institute Management System for John Paul II Page 109
Configure the concurrent connections to the database serverSelect "Manual Setting" option and set number of connections to 5 then click on “Next”.
NOTE: Number of connections necessary if the application installed on multiple workstations' andaccessing a single remote server.
Configure the networking optionsSet port number 3306 (3306 was already set automatically, 3306 default port no)Check on "Add firewall exception for this port" if server access remotely.
NOTE: Make sure the "Strict Mode" check box checked, it is recommended to enable that option tokeep compatible with old databases, click on “Next”.
Institute Management System for John Paul II Page 110
Select default characters setSet as “Standard Character Set”, and then click on “Next”.NOTE: Use other option best suited if using any languages other than English.
Configuring windows optionsCheck on “Install as Windows Service” check box (by default checked).
Rename or keep default service name for the MySQL server service.
Check on “Launch the MySQL Server automatically” otherwise the service must start manually eachtime the computer turned on.
Check on “Include Bin Directory in Windows Path”, and then click on “Next”.
Institute Management System for John Paul II Page 111
Configuring security options such as access user/passwordCheck on “Modify Security Settings” check box.Specify current root password if available otherwise leave blankSpecify new root passwordConfirm new password, Click on “Next”.
NOTE: Check on “Enable root access from remote machines” check box if the server access fromremote machines.
WARNING: a bug may cause crash at the final step where server configuration initiated due to theoption which enabled “Enable root access from remote machines” check box checked, yet there is noproblems exist.
Institute Management System for John Paul II Page 112
Final step click on “Execute” to start the server instance configuration,This would take few minutes to complete the configuration.
POTENTIAL ISSSUE: When selecting “Enable root access from remote machines” check box maycause crash while configuring the server.
After configuration completed click on “Finish”.
Institute Management System for John Paul II Page 113
Step 2: Installing Java Runtime Environment.
NOTE: Depending on your OS install 32bit or 64bit version of “JAVA Runtime Environment” 1.7 orlater version required.
Run jre-7u21-windows-i586.exe
Check on "Change destination folder" check box to install on a different location, rather than thedefault location.
Change destination folder this is not a necessary to do at all unless it’s not important.
Institute Management System for John Paul II Page 114
Browse for a location and click "OK”.
Then click on “Next”, after that windows installer will start the setup to perform the installationprocess.
Then wait for the installation to complete.
Institute Management System for John Paul II Page 115
After installation was complete click on “Close” button.
Institute Management System for John Paul II Page 116
Step 3 (The final step): Installing “Institute Management System”.
Run “insSetup_ver_1.0_x86.exe” then click on "Next" button.
Specify provided serial no and click on “Next” button.
Institute Management System for John Paul II Page 117
Specify the company name and click on "Next" button.
Select installation folder or leave the default location then click on "Next" button.
Institute Management System for John Paul II Page 118
Select folder for installation click on "Change" button then select location and click on "OK" button.
Select start menu shortcut folder and configure user access levels then click on "Next" button.
Institute Management System for John Paul II Page 119
In this step check your installation settings and click on "Next" button to install the application.
Wait for the installation to complete.
Institute Management System for John Paul II Page 120
After installation complete click on “Finish” button.
Institute Management System for John Paul II Page 121
Preparing To Run “Institute Management System”
Step 1: Deploying Database for “Institute Management System”.Open command prompt (Start – Run – Type: cmb).
Type CD <Program Location> then press enter key.NOTE: The default location would be "C:\Program Files(x86)\Institute Management System\bin".
Then type the letter of installed partition as here "C:" then press enter key.
Institute Management System for John Paul II Page 122
In the command prompt type "mysql --password=123 --user=root --host=localhost --port=3306 <dbIntegrity.sql",Then press enter key
NOTE: If no password has been specified leave the password parameter as this --password=
Know the database has been successfully imported into the server.
Step 2: Running the “Institute Management System” for First Time.From the start menu navigate to and run “Start - All Programs - Institute Management System -Institute Management System.exe”
Institute Management System for John Paul II Page 123
After launching the application it will verify the login details and prompt to configure login details ifaccess to the server failed.
Shows when login details incorrect click on "OK" button to proceed.NOTE: Output error will differ according to the login details state.
In the "Database Configuration" dialog specify the server login details and click on "Save" button.
Notify when saved click on “OK” button to proceed.
Institute Management System for John Paul II Page 124
Then click on "Test Connection" button to check server access possible, if so it will notify as belowmessage otherwise display error regarding inability to access the server.
Close the dialog and click on login button (Leave the fields empty).
Institute Management System for John Paul II Page 125
Defining a Password
IMPORTANT: Accessing the frame only possible after deploying or importing thedatabase into the MySQL server.
Open the application leave login details empty and click on "Login" button.
From the menu bar "Edit - Change Login Details"
In the "change Login Details" dialog specify the old Password and User Name,Then specify new Password and User Name.
NOTE: If creating a password for the first time leave old Password and User Name fields empty.IMPORTANT: Password length should be greater than 5 characters.
Institute Management System for John Paul II Page 126
Then click on "Change Login Details" button,After that message will notify login details has been changed click on "OK" button to proceed.
Institute Management System for John Paul II Page 127
Database Backup and Restore
Backup Database:Open the application and then login to the program, Navigate to and open "Tools - BackupDatabase".
Click on "Browse" button and select location for the backups and specify backup name, Then click on"Save" button.
Institute Management System for John Paul II Page 128
Then click on "Backup" button to initiate the backup process, Wait for the backup to complete.
Click on "OK" button and close the dialog after backup was complete.
NOTE: “Last Attempt Backup Status” shows backup was successful or interrupted.
IMPORTANTIntegrated database backup utility only support full backup due to the features of the Serveredition MySQL Lite or MySQL Community Edition, for advance disaster recovery plans mayneed the support of third party software for performing procedures such as “Incremental”,“Differential” backups.
Restore Database:For any disaster recovery situation please contact the vendor or developer for assistance in recoveryprocess.
Institute Management System for John Paul II Page 129
Appendix D: SQL Queries
Globally Related SQL Queries:
Search Queries:SELECT COUNT("+col_ValidateCol+") AS duplicates FROM "+table+" WHERE
"+col_ValidateCol+" LIKE "+" '"+entry+"'
SELECT "+col_ValidateCol+" FROM "+table+" WHERE "+col_ValidateCol+" LIKE "+" '"+entry+"'
SELECT "+col_PrimaryKey+" FROM "+table+" WHERE "+col_ValidateCol+"='"+entry+"'
SELECT MAX("+col_INT_ID+") AS maxID FROM "+table+"
SELECT MAX("+col_INT_ID+") AS maxID FROM "+table+"
Course Registration Frame SQL Queries:
Related to "Add Course" Button
Search Queries:SELECT MAX(ID) AS maxID FROM courses
Insert Queries:INSERT INTO courses
VALUES('"+finalizeKey+"','"+newID+"','"+csrRegName.getText()+"','"+csrRegFee.getText().replace(",","")+"', '"+csrRegLecPerHourRate.getText().replace(",", "")+"')
Related to "Update Details" Button
Update Queries:UPDATE courses SET
Name='"+csrRegName.getText()+"',Fee='"+csrRegFee.getText().replace(",", "")+"',LecturerPerHourRate='"+csrRegLecPerHourRate.getText().replace(",", "")+"' WHEREcourseID='"+csrRegID.getText()+"'
Related to "View All Course" Button
Search Queries:SELECT courseID, Name FROM courses
Related to "Remove Course" Button
Delete Queries:DELETE FROM courses WHERE courseid='"+csrRegID.getText()+"'
Institute Management System for John Paul II Page 130
Related to Search by Course ID ("Find" button)
Search Query:SELECT * FROM courses WHERE courseID LIKE '%"+csrRegID.getText()+"%'
SELECT * FROM courses WHERE courseID LIKE '%"+getID+"%'
Related to Search by Course Name ("Find button")
Search Query:SELECT * FROM courses WHERE Name LIKE '%"+csrRegName.getText()+"%'
Lecturer Registration Frame SQL Queries:
Related to "Save" Button
Search Queries:SELECT MAX(ID) AS maxID, lecturerID FROM lecturers
Insert Queries:INSERT INTO lecturers
VALUES('"+finalizeKey+"','"+newID+"','"+LecRegFullName.getSelectedItem().toString()+"','"+LecRegLastName.getText()+"','"+hiredDate+"','"+SelectedGender+"','"+dateOfBirth+"','"+LecRegAge.getText()+"','"+LecRegNic.getSelectedItem().toString()+"','"+LecRegAddress.getText()+"','"+LecRegTeleFixed.getText()+"','"+LecRegMobile.getText()+"','"+LecRegEmail.getText()+"','"+LecRegCity.getText()+"','"+LecRegCountry.getText()+"','"+LecRegStateProvince.getText()+"','"+LecRegPostalCode.getText()+"')
INSERT INTO lecturer_academic_olVALUES('"+finalizeKey+"','"+OLList[0]+"','"+OLList[1]+"','"+OLList[2]+"', '"+OLList[3]+"')
INSERT INTO lecturer_academic_alVALUES('"+finalizeKey+"','"+ALList[0]+"','"+ALList[3]+"','"+ALList[1]+"','"+ALList[2]+"','"+ALList[4]+"')
INSERT INTO lecturer_pro_qualificationsVALUES('"+finalizeKey+"','"+ProQ[0]+"','"+ProQ[1]+"','"+ProQ[2]+"','"+ProQ[3]+"')
Related to "Update" Button
Update Queries:UPDATE lecturers SET FullName='"+LecRegFullName.getSelectedItem().toString()+"',
LastName='"+LecRegLastName.getText()+"', HiredDate='"+hiredDate+"', Gender='"+SelectedGender+"',DateOfBirth='"+dateOfBirth+"', Age='"+LecRegAge.getText()+"', Nic='"+LecRegNic.getSelectedItem()+"',ResidenceAddress='"+LecRegAddress.getText()+"', TeleFixed='"+LecRegTeleFixed.getText()+"',MobileNo='"+LecRegMobile.getText()+"', Email='"+LecRegEmail.getText()+"',City='"+LecRegCity.getText()+"', Country='"+LecRegCountry.getText()+"',StateProvince='"+LecRegStateProvince.getText()+"', PostalCode='"+LecRegPostalCode.getText()+"'WHERE lecturerID='"+LecRegId.getText()+"'
Institute Management System for John Paul II Page 131
Insert Queries:INSERT INTO lecturer_academic_ol VALUES('"+LecRegId.getText()+"','"+column0+"',
'"+column1+"', '"+column2+"', '"+column3+"')
INSERT INTO lecturer_academic_al VALUES('"+LecRegId.getText()+"','"+column0+"','"+column3+"', '"+column1+"', '"+column2+"', '"+column4+"')
INSERT INTO lecturer_pro_qualifications VALUES('"+LecRegId.getText()+"','"+column0+"','"+column1+"', '"+column2+"', '"+column3+"')
Delete Queries:DELETE FROM lecturer_academic_ol WHERE lecturerIDf='"+LecRegId.getText()+"'
DELETE FROM lecturer_academic_ol WHERE lecturerIDf='"+LecRegId.getText()+"'
DELETE FROM lecturer_academic_al WHERE lecturerIDf='"+LecRegId.getText()+"'
DELETE FROM lecturer_academic_al WHERE lecturerIDf='"+LecRegId.getText()+"'
DELETE FROM lecturer_pro_qualifications WHERE lecturerIDf='"+LecRegId.getText()+"'
DELETE FROM lecturer_pro_qualifications WHERE lecturerIDf='"+LecRegId.getText()+"'
Search Queries:SELECT lecturerIDf FROM lecturer_academic_ol WHERE lecturerIDf='"+LecRegId.getText()+"'
SELECT lecturerIDf FROM lecturer_academic_al WHERE lecturerIDf='"+LecRegId.getText()+"'
SELECT lecturerIDf FROM lecturer_pro_qualifications WHERElecturerIDf='"+LecRegId.getText()+"'
Related to "Delete" Button
Delete Query:DELETE FROM lecturers WHERE lecturerID='"+LecRegId.getText()+"'
Related to Find by "Last Name" ("Find" Button)
Search Query:SELECT lecturerID, FullName, HiredDate FROM lecturers WHERE LastName LIKE
'%"+LecRegLastName.getText()+"%'
Related to "NIC" Combo Box
Search Queries:SELECT lecturerID, Nic FROM lecturers WHERE Nic LIKE '%"+getKeyWord+"%'
Institute Management System for John Paul II Page 132
Related to "Lecturer Full Name" Combo Box
Search Queries:SELECT lecturerID, FullName FROM lecturers WHERE FullName LIKE '"+getKeyWord+"%'
SELECT lecturerID, FullName, HiredDate FROM lecturers WHERE FullName LIKE'"+LecturerName+"%'
Common Queries:SELECT * FROM lecturers WHERE lecturerID='"+getKey+"'
SELECT * FROM lecturer_academic_ol WHERE lecturerIDf='"+getKey+"'
SELECT * FROM lecturer_academic_al WHERE lecturerIDf='"+getKey+"'
SELECT * FROM lecturer_pro_qualifications WHERE lecturerIDf='"+getKey+"'
Related to Find by "Lecturer ID" ("Find" Button)
Search Queries:SELECT lecturerID, FullName, HiredDate FROM lecturers WHERE lecturerID LIKE
'%"+LecRegId.getText()+"%'
SELECT * FROM lecturers WHERE lecturerID='"+getKey+"'
SELECT * FROM lecturer_academic_ol WHERE lecturerIDf='"+getKey+"'
SELECT * FROM lecturer_academic_al WHERE lecturerIDf='"+getKey+"'
SELECT * FROM lecturer_pro_qualifications WHERE lecturerIDf='"+getKey+"'
Related to O/L "Academic Type" Combo Box
Search Query:SELECT DISTINCT(OlType) AS Ol_Type FROM lecturer_academic_ol WHERE Subject LIKE
'%"+getOLKeyWord+"%'
Related to A/L "Academic Type" Combo Box
Search Query:SELECT DISTINCT(AlType) AS al_subject FROM lecturer_academic_al WHERE AlType LIKE
'"+getKeyWord+"%'
Institute Management System for John Paul II Page 133
Student Registration Frame SQL Queries:
Common Queries:SELECT * FROM students WHERE studentID='"+getID+"'
SELECT * FROM student_courses WHERE studentIDf=(SELECT studentID FROM studentsWHERE studentID='"+getID+"')
SELECT * FROM courses WHERE courseID='"+getID+"'
Related to Find by "Student ID" ("Find" Button)
Search Queries:SELECT * FROM students WHERE studentID LIKE '"+stdRegID.getText()+"%'
Related to Find by "Full Name" ("Find" Button)
Search Queries:SELECT studentID, FullName, Nic FROM students WHERE FullName LIKE
'"+stdRegFullName.getText()+"%'
Related to "NIC" Combo Box
Search Queries:SELECT studentID, Nic FROM students WHERE Nic LIKE '"+keyWord+"%'
Related to Find by "Course ID" ("Find" Button)
Search Queries:SELECT * FROM courses WHERE courseID LIKE '%"+stdRegCourseID.getText()+"%'
Related to Find by "Course Name" Combo Box
Search Queries:SELECT courseID, Name FROM courses WHERE Name LIKE '%"+keyWord+"%'
Related to "Remove Course" Button
Search Queries:SELECT studentIDf, courseIDf FROM student_payments WHERE
studentIDf='"+stdRegID.getText()+"' ANDcourseIDf='"+stdRegCourseList.getValueAt(stdRegCourseList.getSelectedRow(), 0)+"'
Institute Management System for John Paul II Page 134
Related to "Save" Button
Search Queries:SELECT MAX(ID) AS maxID FROM students
Insert Queries:INSERT INTO students
VALUES('"+finalizeKey+"','"+newID+"','"+stdRegTitle.getText()+"','"+stdRegFullName.getText()+"','"+stdRegAddress.getText()+"','"+stdRegEmail.getText()+"','"+DateOfBirth+"','"+stdRegGender.getSelectedItem()+"','"+stdRegTeleFixed.getText()+"','"+stdRegMobileNo.getText()+"','"+stdNic+"','"+stdRegGuardian.getText()+"')
INSERT INTO student_coursesVALUES('"+finalizeKey+"','"+RowEntry[0]+"','"+RowEntry[1]+"','"+RowEntry[2]+"','"+RowEntry[3]+"','"+RowEntry[4]+"','"+RowEntry[5]+"','"+RowEntry[6]+"', '"+RowEntry[7]+"')
Related to "Update" Button
Update Queries:UPDATE students SET Title='"+stdRegTitle.getText()+"',
FullName='"+stdRegFullName.getText()+"', Address='"+stdRegAddress.getText()+"',Email='"+stdRegEmail.getText()+"', DateOfBirth='"+dateOfBith+"',Gender='"+stdRegGender.getSelectedItem().toString()+"', TeleFixed='"+stdRegTeleFixed.getText()+"',MobileNo='"+stdRegMobileNo.getText()+"', Nic='"+studentNic+"',Guardian='"+stdRegGuardian.getText()+"' WHERE studentID='"+stdRegID.getText()+"'
Delete Queries:DELETE FROM student_courses WHERE studentIDf='"+stdRegID.getText()+"'
Insert Queries:INSERT INTO student_courses
VALUES('"+stdRegID.getText()+"','"+column0+"','"+column1+"','"+column2+"','"+column3+"','"+column4+"','"+column5+"','"+column6+"','"+column7+"')
Related to "Delete" Button
Delete Queries:DELETE FROM student_courses WHERE studentIDf='"+stdRegID.getText()+"'
DELETE FROM students WHERE studentID='"+stdRegID.getText()+"'
Employer Registration Frame SQL Queries:
Common Queries:SELECT * FROM employers WHERE employerID='"+getKey+"'
Institute Management System for John Paul II Page 135
Related to Find by "Employer ID" ("Find" Button)
Search Queries:SELECT * FROM employers WHERE employerID LIKE '%"+empRegID.getText()+"%'
Related to "Full Name" Combo Box
Search Queries:SELECT DISTINCT(NameFull) AS empName, employerID FROM employers WHERE NameFull
LIKE '"+sch+"%'
SELECT employerID, NameFull FROM employers WHERE NameFull LIKE'%"+SelectedItemName+"%'
Related to Find by "Emplyer Last Name" ("Find" Button)
Search Queries:SELECT employerID, LastName, Date, Time FROM employers WHERE LastName LIKE
'%"+empRegLastName.getText()+"%'
Related to "NIC" Combo Box
Search Queries:SELECT employerID, Nic FROM employers WHERE Nic LIKE '%"+getTypedText+"%'
Related to "Save" Button
Search Queries:SELECT MAX(ID) AS maxID, employerID FROM employers
Insert Queries:INSERT INTO employers
VALUES('"+newID+"','"+finalizeKey+"','"+var_empRegName+"','"+empRegLastName.getText()+"','"+SelectedGender+"','"+var_empRegNic+"','"+inputDateOfBirth+"','"+empRegAge.getText()+"','"+empRegPostCode.getText()+"','"+empRegSateProvince.getText()+"','"+empRegCity.getText()+"','"+empRegAddress.getText()+"','"+empRegTele.getText()+"','"+empRegMobile.getText()+"','"+empRegEmail.getText()+"','"+empRegEmployment.getText()+"','"+empRegCurrentSalary.getText().replace(",","")+"','"+inputRecruitDate+"','"+stDate+"','"+stTime+"')
Institute Management System for John Paul II Page 136
Related to "Update" Button
Update Queries:UPDATE employers SET
NameFull='"+((JTextField)empRegFullName.getEditor().getEditorComponent()).getText()+"',LastName='"+empRegLastName.getText()+"', Gender='"+getGender+"',Nic='"+((JTextField)empRegNic.getEditor().getEditorComponent()).getText()+"',DateOfBirth='"+getDateOfBirth+"', Age='"+empRegAge.getText()+"',PostalCode='"+empRegPostCode.getText()+"', StateProvince='"+empRegSateProvince.getText()+"',City='"+empRegCity.getText()+"', Address='"+empRegAddress.getText()+"',TeleFixed='"+empRegTele.getText()+"', MobileNo='"+empRegMobile.getText()+"',Email='"+empRegEmail.getText()+"', Employment='"+empRegEmployment.getText()+"',Salary='"+empRegCurrentSalary.getText().replace(",", "")+"', RecruitDate='"+getRecruitDate+"' WHEREemployerID='"+empRegID.getText()+"'
Related to "Delete" Button
Delete Queries:DELETE FROM employers WHERE employerID='"+empRegID.getText()+"'
Other Expenses Frame SQL Queries:
Common Queries:SELECT * FROM other_expenses WHERE otherExpenseID='"+getID+"'
SELECT otheExpenseTypeID, Name FROM other_expense_types WHEREotheExpenseTypeID='"+rs.getString("otherExpenseTypeIDf")+"'
SELECT SUM(Remaining) AS accumulated FROM other_expenses WHEREotherExpenseTypeIDf=(SELECT otheExpenseTypeID FROM other_expense_types WHEREName='"+othExpenseTypeName.getSelectedItem().toString()+"')
Related to Find by "Other Expenses ID" ("Find" Button)
Search Queries:SELECT otherExpenseID, otherExpenseTypeIDf, BillNo, EntryDate, EntryTime FROM
other_expenses WHERE otherExpenseID LIKE '%"+othExpenseID.getText()+"%'
SELECT Name FROM other_expense_types WHEREotheExpenseTypeID='"+rs.getString("otherExpenseTypeIDf")+"'
Related to Find by "Submit Date" ("Find" Button)
Search Queries:SELECT otherExpenseID, otherExpenseTypeIDf, BillNo, EntryDate, EntryTime FROM
other_expenses WHERE EntryDate='"+searchDate+"'SELECT Name, otheExpenseTypeID FROM other_expense_types WHERE
otheExpenseTypeID='"+rs.getString("otherExpenseTypeIDf")+"'
Institute Management System for John Paul II Page 137
Related to "Other Expense Type" Combo Box
Search Queries:SELECT * FROM other_expense_types WHERE Name LIKE '"+sch+"%'
Related to Find by "Bill No" ("Find" Button)
Search Queries:SELECT otherExpenseID, otherExpenseTypeIDf, BillNo, EntryDate, EntryTime FROM
other_expenses WHERE BillNo LIKE '%"+othExpenseBillNo.getText()+"%'
SELECT Name FROM other_expense_types WHEREotheExpenseTypeID='"+rs.getString("otherExpenseTypeIDf")+"'
Related to "Filter" Button
Search Queries:SELECT * FROM other_expenses WHERE otherExpenseTypeIDf LIKE (SELECT
otheExpenseTypeID FROM other_expense_types WHERE Name='"+othExpenseType+"') AND BillDateBETWEEN '"+othExpenseFromDate.getText()+"' AND '"+othExpenseToDate.getText()+"' ORDER BY IDASC
SELECT * FROM other_expenses WHERE otherExpenseTypeIDf LIKE (SELECTotheExpenseTypeID FROM other_expense_types WHERE Name='"+othExpenseType+"') AND PaidDateBETWEEN '"+othExpenseFromDate.getText()+"' AND '"+othExpenseToDate.getText()+"' ORDER BY IDASC
SELECT * FROM other_expenses WHERE BillDate BETWEEN'"+othExpenseFromDate.getText()+"' AND '"+othExpenseToDate.getText()+"' ORDER BY ID ASC
SELECT * FROM other_expenses WHERE PaidDate BETWEEN'"+othExpenseFromDate.getText()+"' AND '"+othExpenseToDate.getText()+"' ORDER BY ID ASC
SELECT Name FROM other_expense_types WHEREotheExpenseTypeID='"+getOtherExpenseTypeID+"'
Related to "Paid" Button
Search Queries:SELECT MAX(ID) AS MaxID FROM other_expenses
Insert Queries:INSERT INTO other_expenses
VALUES('"+finalizekey+"','"+NewID+"','"+ExpTypeID+"','"+othExpenseBillNo.getText()+"','"+othExpenseBillAmount.getText().replace(",", "") +"','"+othExpensePaidAmount.getText().replace(",", "")+"','"+othExpenseRemarks.getText()+"','"+othExpenseRemaining.getText().replace(",", "")+"','"+othExpensePaidDate.getText()+"','"+othExpenseBillDate.getText()+"','"+date+"','"+time+"','None')
Institute Management System for John Paul II Page 138
Related to "Revise Payment" Button
Update Queries:UPDATE other_expenses SET
otherExpenseTypeIDf='"+othExpenseTypeIDVec.get(othExpenseTypeName.getSelectedIndex())+"',BillNo='"+othExpenseBillNo.getText()+"', BillAmount='"+othExpenseBillAmount.getText().replace(",", "")+"', PaidAmount='"+othExpensePaidAmount.getText().replace(",", "") +"',Remarks='"+othExpenseRemarks.getText()+"',Remaining='"+othExpenseRemaining.getText().replace(",", "") +"',PaidDate='"+othExpensePaidDate.getText()+"', BillDate='"+othExpenseBillDate.getText()+"',EntryReviseDate='"+date+"' WHERE otherExpenseID='"+othExpenseID.getText()+"'
Delete Queries:DELETE FROM other_expenses WHERE otherExpenseID='"+othExpenseID.getText()+"'
Other Income Frame SQL Queries:
Common Queries:SELECT oin.otherIncomeID, oin.ReceiptNo, oin.ReceiveDate, oin.Date, oin.IncomeAmount,
oin.Remarks, oin.IncomeTypeIDf, oint.Name FROM other_income oin, other_income_types oint WHEREotherIncomeID='"+getKey+"' AND oint.othIncomeTypeID=oin.IncomeTypeIDf
Related to Find by "Other Income ID" ("Find" Button)
Search Queries:SELECT * FROM other_income WHERE otherIncomeID LIKE '"+othIncomeID.getText()+"%'
Related to Find by "Date" ("Find" Button)
Search Queries:SELECT * FROM other_income WHERE Date='"+currentFormat+"'
Related to "Other Income Type" Combo Box
Search Queries:SELECT othIncomeTypeID, Name FROM other_income_types WHERE Name LIKE
'"+getKeyWord+"%'
Related to Find by "Receipt No" ("Find" Button)
Search Queries:SELECT * FROM other_income WHERE ReceiptNo LIKE '"+othIncomeReceiptNo.getText()+"%'
Institute Management System for John Paul II Page 139
Related to "Filter" Button
Search Queries:SELECT oin.otherIncomeID, oin.IncomeAmount, oin.ReceiveDate, oint.Name FROM
other_income oin, other_income_types oint WHEREoin.IncomeTypeIDf='"+othIncomeTypeNameID.getText()+"' ANDoint.othIncomeTypeID=oin.IncomeTypeIDf AND oin.IncomeTypeIDf=oint.othIncomeTypeID ANDReceiveDate BETWEEN '"+othIncomeFromDate.getText()+"' AND '"+othIncomeToDate.getText()+"'ORDER BY oin.ID ASC
SELECT oin.otherIncomeID, oin.IncomeAmount, oin.ReceiveDate, oint.Name FROMother_income oin, other_income_types oint WHERE oint.othIncomeTypeID=oin.IncomeTypeIDf ANDoin.IncomeTypeIDf=oint.othIncomeTypeID AND ReceiveDate BETWEEN'"+othIncomeFromDate.getText()+"' AND '"+othIncomeToDate.getText()+"' ORDER BY oin.ID ASC
Related to "Save" Button
Search Queries:SELECT MAX(ID) as maxID, otherIncomeID FROM other_Income
Insert Queries:INSERT INTO other_income VALUES('"+finalizeKey+"',
'"+newID+"','"+incomeTypeID+"','"+othIncomeReceiptNo.getText()+"','"+othIncomeAmount.getText().replace(",", "")+"','"+othIncomeRemarks.getText()+"','"+othIncomeReceiveDate.getText()+"','"+stDate+"','"+stTime+"')
Related to "Update" Button
Update Queries:UPDATE other_income SET IncomeTypeIDf='"+othIncomeTypeNameID.getText()+"',
ReceiptNo='"+othIncomeReceiptNo.getText()+"',IncomeAmount='"+othIncomeAmount.getText().replace(",", "")+"',Remarks='"+othIncomeRemarks.getText()+"', ReceiveDate='"+othIncomeReceiveDate.getText()+"'WHERE otherIncomeID='"+othIncomeID.getText()+"'
Related to "Delete" Button
Delete Queries:DELETE FROM other_income WHERE otherIncomeID='"+othIncomeID.getText()+"'
Other Expense Type Registration Frame SQL Queries:
Common Queries:SELECT * FROM other_expense_types WHERE otheExpenseTypeID='"+getID+"'
Institute Management System for John Paul II Page 140
Related to Find by "Other Expense Type ID" ("Find" Button)
Search Queries:SELECT * FROM other_expense_types WHERE otheExpenseTypeID LIKE
'%"+othExpTypeID.getText()+"%'
Related to Find by "Other Expenses Name" ("Find" Button)
Search Queries:SELECT * FROM other_expense_types WHERE Name LIKE '"+othExpTypeName.getText()+"%'
Related to "Save" Button
Search Queries:SELECT MAX(ID) AS MaxID FROM other_expense_types
Insert Queries:INSERT INTO other_expense_types
VALUES('"+finalizeKey+"','"+newID+"','"+othExpTypeName.getText()+"')
Related to "Update" Button
Update Queries:UPDATE other_expense_types SET Name='"+othExpTypeName.getText()+"' WHERE
otheExpenseTypeID='"+othExpTypeID.getText()+"'
Related to "Delete" Button
Delete Queries:DELETE FROM other_expense_types WHERE
otheExpenseTypeID='"+othExpTypeID.getText()+"'
Other Fee Type Registration Frame SQL Queries:
Related to Find by "Other Fee ID" ("Find" Button)
Search Queries:SELECT * FROM other_fees_type WHERE othFeeType_ID LIKE '"+othFeeTypeID.getText()+"%'
Related to Find by "Other Fee Name" ("Find" Button)
Search Queries:SELECT othFeeType_ID, FeeTypeName FROM other_fees_type WHERE FeeTypeName LIKE
'%"+othFeeTypeName.getText()+"%'
Institute Management System for John Paul II Page 141
Related to "Save" Button
Search Queries:SELECT MAX(ID) AS maxID FROM other_fees_type
Insert Queries:INSERT INTO other_fees_type
VALUES('"+finalizeKey+"','"+newID+"','"+othFeeTypeName.getText()+"')
Related to "Update" Button
Update Queries:UPDATE other_fees_type SET FeeTypeName='"+othFeeTypeName.getText()+"' WHERE
othFeeType_ID='"+othFeeTypeID.getText()+"'
Related to "Delete" Button
Delete Queries:DELETE FROM other_fees_type WHERE othFeeType_ID='"+othFeeTypeID.getText()+"'
Other Income Type Registration Frame SQL Queries:
Common Queries:SELECT othIncomeTypeID, Name FROM other_income_types WHERE
othIncomeTypeID='"+getOtherIncomeTypeID+"'
Related to Find by "Other Income Type ID" ("Find" Button)
Search Queries:SELECT othIncomeTypeID, Name FROM other_income_types WHERE othIncomeTypeID LIKE
'"+othIncomeTypeID.getText()+"%'
Related to Find by "Other Income Type Name" ("Find" Button)
Search Queries:SELECT othIncomeTypeID, Name FROM other_income_types WHERE Name LIKE
'"+othIncomeTypeName.getText()+"%'
Related to "Save" Button
Insert Queries:INSERT INTO other_income_types VALUES('"+finalizeKey+"', '"+newID+"',
'"+othIncomeTypeName.getText()+"')
Institute Management System for John Paul II Page 142
Related to "Update" Button
Update Queries:UPDATE other_income_types SET Name='"+othIncomeTypeName.getText()+"' WHERE
othIncomeTypeID='"+othIncomeTypeID.getText()+"'
Related to "Delete" Button
Delete Queries:DELETE FROM other_income_types WHERE othIncomeTypeID='"+othIncomeTypeID.getText()+"'
Lecturer Payments Frame (Payments Tab) SQL Queries:
Common Queries:SELECT
lecturers.lecturerID,schedule_evaluation_list.evalList_ID,schedule_evaluation_list.lecturerIDf,schedule_evaluation_list.courseIDf,schedule_evaluation_list.status,schedule_evaluation_list.CurrentHours,courses.LecturerPerHourRate,courses.courseID,courses.Name,lecturer_payment.lecturerIDf,lecturer_pay_cal_status.evalList_IDf,lecturer_pay_cal_status.UpdateStatus FROMlecturers,schedule_evaluation_list,courses,lecturer_payment,lecturer_pay_cal_status WHERElecturers.lecturerID LIKE '"+getLecturerID+"' ANDlecturers.lecturerID=schedule_evaluation_list.lecturerIDf ANDschedule_evaluation_list.courseIDf=courses.courseID ANDlecturers.lecturerID=lecturer_payment.lecturerIDf ANDschedule_evaluation_list.evalList_ID=lecturer_pay_cal_status.evalList_IDf
SELECTlecturers.lecturerID,schedule_evaluation_list.evalList_ID,schedule_evaluation_list.lecturerIDf,schedule_evaluation_list.courseIDf,schedule_evaluation_list.status,schedule_evaluation_list.CurrentHours,courses.LecturerPerHourRate,courses.courseID,courses.Name,lecturer_payment.lecturerIDf,lecturer_pay_cal_status.evalList_IDf,lecturer_pay_cal_status.UpdateStatus FROMlecturers,schedule_evaluation_list,courses,lecturer_payment,lecturer_pay_cal_status WHERElecturers.lecturerID LIKE '"+getLecturerID+"' ANDlecturers.lecturerID=schedule_evaluation_list.lecturerIDf ANDschedule_evaluation_list.courseIDf=courses.courseID ANDlecturers.lecturerID=lecturer_payment.lecturerIDf ANDschedule_evaluation_list.evalList_ID=lecturer_pay_cal_status.evalList_IDf ANDlecturer_pay_cal_status.UpdateStatus='No'
SELECTlecturers.lecturerID,schedule_evaluation_list.evalList_ID,schedule_evaluation_list.lecturerIDf,schedule_evaluation_list.courseIDf,schedule_evaluation_list.status,schedule_evaluation_list.CurrentHours,courses.LecturerPerHourRate,courses.courseID,courses.Name,lecturer_payment.lecturerIDf,lecturer_pay_cal_status.evalList_IDf,lecturer_pay_cal_status.UpdateStatus FROMlecturers,schedule_evaluation_list,courses,lecturer_payment,lecturer_pay_cal_status WHERElecturers.lecturerID LIKE '"+getLecturerID+"' ANDlecturers.lecturerID=schedule_evaluation_list.lecturerIDf ANDschedule_evaluation_list.courseIDf=courses.courseID ANDlecturers.lecturerID=lecturer_payment.lecturerIDf AND
Institute Management System for John Paul II Page 143
schedule_evaluation_list.evalList_ID=lecturer_pay_cal_status.evalList_IDf ANDlecturer_pay_cal_status.UpdateStatus='No'
SELECT lecturerIDf FROM lecturer_payment WHERE lecturerIDf='"+getLecturerID+"'
SELECT lc.FullName, lc.lecturerID, lp.TotalAmount, lp.Remaining, lp.TotalPaid FROM lecturers lc,lecturer_payment lp WHERE lp.lecturerIDf=lc.lecturerID AND lc.lecturerID='"+getLecturerID+"'
SELECTschedule_evaluation_list.evalList_ID,schedule_evaluation_list.lecturerIDf,schedule_evaluation_list.courseIDf,schedule_evaluation_list.status,schedule_evaluation_list.CurrentHours,courses.LecturerPerHourRate,courses.courseID,courses.Name,lecturer_pay_cal_status.evalList_IDf,lecturer_pay_cal_status.UpdateStatus FROM lecturers,schedule_evaluation_list,courses,lecturer_pay_cal_status WHERElecturers.lecturerID LIKE '"+getkey+"' AND lecturers.lecturerID=schedule_evaluation_list.lecturerIDf ANDschedule_evaluation_list.courseIDf=courses.courseID ANDschedule_evaluation_list.evalList_ID=lecturer_pay_cal_status.evalList_IDf
SELECT lc.FullName, lc.lecturerID FROM lecturers lc WHERE lc.lecturerID='"+getLecturerID+"'
SELECT lpe.lecPayHistory_ID, lpe.lecturerIDf, lpe.PaidAmount, lpe.TotalAmount, lpe.Remaining,lpe.TotalPaid, lp.TotalAmount, lp.Remaining, lp.TotalPaid, lc.FullName FROM lecturer_payment_entrylpe, lecturer_payment lp, lecturers lc WHERE lpe.lecPayHistory_ID='"+getLecPayEntry+"' ANDlpe.lecturerIDf=lc.lecturerID AND lpe.lecturerIDf=lp.lecturerIDf
Related to Find by "Lecturer ID" ("Find" Button)
Search Queries:SELECT lecturerID, FullName FROM lecturers WHERE lecturerID LIKE '" +
lecPayLecturerID.getText() + "%'
Related to Find by "Payment Entry ID" ("Find" Button)
Search Queries:SELECT lpe.lecPayHistory_ID, lpe.lecturerIDf, lc.FullName, lpe.PaidAmount, lpe.DATE, lpe.TIME
FROM lecturers lc, lecturer_payment_entry lpe WHERE lpe.lecPayHistory_ID LIKE'"+lecPayEntryID.getText()+"%' AND lpe.lecturerIDf=lc.lecturerID
Related to "Assess Payment" Button
Update Queries:UPDATE lecturer_pay_cal_status SET UpdateStatus='Yes' WHERE evalList_IDf='"+evalListID+"'
UPDATE lecturer_payment SET TotalHours='"+x1+"', TotalAmount='"+x5+"', Remaining='"+x6+"'WHERE lecturerIDf='"+lecPayLecturerID.getText()+"'
UPDATE lecturer_pay_cal_status SET UpdateStatus='Yes' WHERE evalList_IDf='"+evalListID+"'
Search Queries:SELECT lecturerIDf FROM lecturer_payment WHERE
lecturerIDf='"+lecPayLecturerID.getText()+"'
Institute Management System for John Paul II Page 144
Insert Queries:INSERT INTO lecturer_payment VALUES('"+lecPayLecturerID.getText()+"','"+x1+"','"+x5+"','0','0')
Related to "Issue Payment" Button
Search Queries:SELECT lecturerIDf FROM lecturer_payment WHERE
lecturerIDf='"+lecPayLecturerID.getText()+"'
Insert Queries:INSERT INTO lecturer_payment VALUES('" + lecPayLecturerID.getText() +
"','"+TotalHours.getText().replace(",", "")+ "','"+lecPayTotalAmount.getText().replace(",", "")+ "','" +lecPayRemaining.getText().replace(",", "")+ "','" + lecPayTotalPaid.getText().replace(",", "")+ "')
INSERT INTO lecturer_payment_entryVALUES('"+finalizeKey+"','"+newID+"','"+lecPayLecturerID.getText()+"','"+lecPayIssueAmount.getText().replace(",", "")+"','"+lecPayTotalAmount.getText().replace(",","")+"','"+lecPayRemaining.getText().replace(",", "")+"','"+lecPayTotalPaid.getText().replace(",","")+"','"+strPresentDate+"','"+strPresentTime+"')
INSERT INTO lecturer_payment_entryVALUES('"+finalizeKey+"','"+newID+"','"+lecPayLecturerID.getText()+"','"+Double.valueOf(lecPayIssueAmount.getText().replace(",", ""))+"','"+lecPayTotalAmount.getText().replace(",","")+"','"+lecPayRemaining.getText().replace(",", "")+"','"+lecPayTotalPaid.getText().replace(",","")+"','"+strPresentDate+"','"+strPresentTime+"')
Update Queries:UPDATE lecturer_payment SET TotalHours=TotalHours+'"+TotalHours.getText().replace(",",
"")+"',TotalAmount='"+lecPayTotalAmount.getText().replace(",","")+"',Remaining='"+lecPayRemaining.getText().replace(",","")+"',TotalPaid='"+lecPayTotalPaid.getText().replace(",", "")+"' WHERElecturerIDf='"+lecPayLecturerID.getText()+"'
Related to "Revise Payment" Button
Search Queries:SELECT TotalAmount, Remaining, TotalPaid FROM lecturer_payment WHERE
lecturerIDf='"+safeBuffer_lecturerID+"'
Update Queries:UPDATE lecturer_payment SET Remaining='"+String.valueOf(newRemaining)+"',
TotalPaid='"+String.valueOf(newTotalPaid)+"' WHERE lecturerIDf='"+safeBuffer_lecturerID+"'
UPDATE lecturer_payment_entry SET PaidAmount='"+lecPayIssueAmount.getText()+"',Remaining='"+newEntryRemaining+"', TotalPaid='"+newEntryTotalPaid+"' WHERElecPayHistory_ID='"+safeBuffer_lecPayEntryID+"' AND lecturerIDf='"+safeBuffer_lecturerID+"'
Institute Management System for John Paul II Page 145
Related to "Delete" Button
Search Queries:SELECT lp.Remaining, lp.TotalPaid, lpe.PaidAmount FROM lecturer_payment lp,
lecturer_payment_entry lpe WHERE lp.lecturerIDf='"+safeBuffer_lecturerID+"' ANDlpe.lecturerIDf='"+safeBuffer_lecturerID+"' AND lp.lecturerIDf=lpe.lecturerIDf ANDlpe.lecPayHistory_ID='"+safeBuffer_lecPayEntryID+"'
Update Queries:UPDATE lecturer_payment SET Remaining='"+newRemaining+"', TotalPaid='"+newTotalPaid+"'
WHERE lecturerIDf='"+safeBuffer_lecturerID+"'
Delete Queries:DELETE FROM lecturer_payment_entry WHERE lecturerIDf='"+lecPayLecturerID.getText()+"'
AND lecPayHistory_ID='"+safeBuffer_lecPayEntryID+"'
Lecturer Payments Frame (Payment History / Analyzing Tab) SQL Queries:
Common Queries:SELECT lecturerID, FullName FROM lecturers WHERE lecturerID='"+getLecturerID_2+"'
Related to Find by "Lecturer ID" ("Find" Button)
Search Queries:SELECT lecturerID, FullName FROM lecturers WHERE lecturerID LIKE
'"+lecPayHistoryLecID.getText()+"%'
Related to "Lecturer Name" Combo Box
Search Queries:SELECT lecturerID, FullName FROM lecturers WHERE FullName LIKE '"+keyword+"%'
Related to "Filter" Button
Search Queries:SELECT lpe.lecPayHistory_ID, lpe.DATE, lpe.TIME, lpe.PaidAmount, lpe.Remaining, lc.FullName
FROM lecturer_payment_entry lpe, lecturers lc WHERE lpe.lecturerIDf=lc.lecturerID AND DATEBETWEEN '"+fromDate+"' AND '"+toDate+"'
SELECT SUM(PaidAmount) AS sumPaid, TotalAmount FROM lecturer_payment_entry WHEREDATE BETWEEN '"+fromDate+"' AND '"+toDate+"' GROUP BY TotalAmount
SELECT SUM(Remaining) sumTotalRemain FROM lecturer_paymentSELECT lpe.lecPayHistory_ID, lpe.DATE, lpe.TIME, lpe.PaidAmount, lpe.Remaining, lc.FullName
FROM lecturer_payment_entry lpe, lecturers lc WHERE lpe.lecturerIDf=lc.lecturerID ANDlpe.lecturerIDf='"+lecPayHistoryLecID.getText()+"' AND DATE BETWEEN '"+fromDate+"' AND'"+toDate+"'
Institute Management System for John Paul II Page 146
SELECT SUM(PaidAmount) AS sumPaid, TotalAmount FROM lecturer_payment_entry WHERElecturerIDf='"+lecPayHistoryLecID.getText()+"' AND DATE BETWEEN '"+fromDate+"' AND '"+toDate+"'GROUP BY TotalAmount
SELECT Remaining FROM lecturer_payment WHERElecturerIDf='"+lecPayHistoryLecID.getText()+"'
Student Payments Frame SQL Queries:
Common Queries:SELECT sp.invoiceID, sp.Payment, sc.Installments, sc.Fee, s.studentID, s.FullName, s.Nic,
cs.courseID, cs.Name FROM student_payments sp, student_courses sc, students s, courses cs WHEREsp.invoiceID='"+getInvoiceID+"' AND s.studentID=sp.studentIDf AND cs.courseID=sp.courseIDf ANDsc.studentIDf=sp.studentIDf AND sc.courseIDf=sp.courseIDf
SELECT SUM(Payment) as totalPaid FROM student_payments WHEREstudentIDf='"+studentID+"' AND courseIDf='"+courseID+"'
SELECT studentID, FullName FROM students WHERE studentID='"+getID+"'SELECT Name FROM courses WHERE courseID IN (SELECT courseIDf FROM student_courses
WHERE studentIDf='"+getID+"')
Related to Find by "Invoice ID" ("Find" Button)
Search Queries:SELECT sp.invoiceID, s.FullName, s.Nic, cs.Name FROM student_payments sp, students s,
courses cs WHERE sp.invoiceID LIKE '"+stdPayInvoiceID.getText()+"%' AND s.studentID=sp.studentIDfAND cs.courseID=sp.courseIDf
Related to Find by "Student ID" ("Find" Button)
Search Queries:SELECT * FROM students WHERE studentID LIKE '%"+stdPayRegID.getText()+"%'
Related to Find by "Student Name" ("Find" Button)
Search Queries:SELECT * FROM students WHERE FullName LIKE '%"+stdPayName.getText()+"%'
Related to "Course Name" Combo Box
Search Queries:SELECT c.courseID, c.Fee, sc.Installments FROM courses c, student_courses sc WHERE
c.courseID=(SELECT courseID FROM courses WHEREName='"+stdPayCourseName.getSelectedItem().toString()+"') ANDsc.studentIDf='"+stdPayRegID.getText()+"' AND sc.courseIDf=c.courseID
Institute Management System for John Paul II Page 147
SELECT sp.invoiceID, sp.PayDate, sp.Payment, sp.Installments, sc.Installments FROMstudent_payments sp, student_courses sc WHERE sp.studentIDf='"+stdPayRegID.getText()+"' ANDsp.courseIDf='"+stdPayCourseID.getText()+"' AND sc.studentIDf='"+stdPayRegID.getText()+"' ANDsc.courseIDf='"+stdPayCourseID.getText()+"'
Related to "Paid" Button
Search Queries:SELECT MAX(invoiceID) AS maxID FROM student_payments
Insert Queries:INSERT INTO student_payments VALUES('"+newID+"','"
+stdPayRegID.getText()+"','"+stdPayCourseID.getText()+"','"+convertedDate+"','"+payment.getText().replace(",", "")+"', '"+installment.getText()+"')
Related to "Edit" Button
Update Queries:UPDATE student_payments SET Payment='"+payment.getText()+"',
Installments='"+installment.getText()+"' WHERE invoiceID='"+stdPayInvoiceID.getText()+"'
Student Other Fees Frame SQL Queries:
Common Queries:SELECT of.othFeeInvoice_ID, of.Payable, of.Paid, of.Remaining, of.PaidDate, ft.FeeTypeName,
of.studentIDf, of.othFeeType_IDf, st.FullName FROM other_fees of, other_fees_type ft, students stWHERE of.othFeeInvoice_ID='"+getInvoiceID+"' AND of.othFeeType_IDf=ft.othFeeType_ID ANDof.studentIDf=st.studentID
SELECT of.othFeeInvoice_ID, ft.FeeTypeName, of.Paid, of.Remaining, of.PaidDate FROMother_fees of, other_fees_type ft, students st WHERE st.studentID='"+othFeeStdID.getText()+"' ANDof.studentIDf=st.studentID AND of.othFeeType_IDf=ft.othFeeType_ID
SELECT studentID, FullName FROM students WHERE studentID='"+getKey+"'
SELECT fe.othFeeInvoice_ID, ft.FeeTypeName, fe.Payable, fe.Paid, fe.Remaining, fe.PaidDateFROM other_fees fe, other_fees_type ft WHERE fe.othFeeType_IDf='"+othFeeTypeID.getText()+"' ANDfe.studentIDf='"+othFeeStdID.getText()+"' AND ft.othFeeType_ID='"+othFeeTypeID.getText()+"'
Related to Find by "Invoice ID" ("Find" Button)
Search Queries:SELECT of.othFeeInvoice_ID, of.Paid, ft.FeeTypeName, st.FullName FROM other_fees of,
other_fees_type ft, students st WHERE of.othFeeInvoice_ID LIKE '"+othFeeInvoiceID.getText()+"%' ANDof.othFeeType_IDf=ft.othFeeType_ID AND of.studentIDf=st.studentID
Institute Management System for John Paul II Page 148
Related to Find by "Student ID" ("Find" Button)
Search Queries:SELECT studentID, FullName FROM students WHERE studentID LIKE
'"+othFeeStdID.getText()+"%'
Related to "Student Name" Combo Box
Search Queries:SELECT studentID, FullName FROM students WHERE FullName LIKE '"+keyWord+"%'
SELECT studentID, FullName FROM students WHERE FullName LIKE '"+StudentName+"%'
Related to "Other Fee Type" Combo Box
Search Queries:SELECT othFeeType_ID, FeeTypeName FROM other_fees_type WHERE FeeTypeName LIKE
'"+keyWord+"%'
Related to "Paid" Button
Search Queries:SELECT Remaining FROM other_fees WHERE othFeeInvoice_ID='"+safeBuffer_otherFeeID+"'
Insert Queries:INSERT INTO other_fees
VALUES('"+finalizeKey+"','"+newID+"','"+othFeeTypeID.getText()+"','"+othFeeStdID.getText()+"','"+othFeeTotal.getText().replace(",", "")+"','"+othFee.getText().replace(",","")+"','"+setRemaining+"','"+paidDate+"','0000-00-00', '00:00:00')
Related to "Revise" Button
Update Queries:UPDATE other_fees SET othFeeType_IDf='"+othFeeTypeID.getText()+"',
studentIDf='"+othFeeStdID.getText()+"', Payable='"+othFeeTotal.getText().replace(",", "")+"',Paid='"+othFee.getText().replace(",", "")+"', Remaining='"+newRemainingAmount+"',REVISE_DATE='"+PresentDate+"', REVISE_TIME='"+PresentTime+"' WHEREothFeeInvoice_ID='"+safeBuffer_otherFeeID+"'
Related to "Delete Record" Button
Delete Queries:UPDATE other_fees SET othFeeType_IDf='"+othFeeTypeID.getText()+"',
studentIDf='"+othFeeStdID.getText()+"', Payable='"+othFeeTotal.getText().replace(",", "")+"',Paid='"+othFee.getText().replace(",", "")+"', Remaining='"+newRemainingAmount+"',REVISE_DATE='"+PresentDate+"', REVISE_TIME='"+PresentTime+"' WHEREothFeeInvoice_ID='"+safeBuffer_otherFeeID+"'
Institute Management System for John Paul II Page 149
Lecturer Class Scheduling Frame (Create / Revise Schedule Tab) SQL Queries:
Common Queries:SELECT lecturerID, FullName FROM lecturers WHERE lecturerID='"+getKey+"'
SELECT scheduleID FROM class_schedules WHERE scheduleID='"+getScheduleID+"'
SELECT sch.scheduleID, sch.lecturerIDf, sch.ScheduledMonth, lc.FullName FROMclass_schedules sch, lecturers lc WHERE sch.scheduleID='"+getScheduleID+"' ANDlc.lecturerID=sch.lecturerIDf
SELECT schl.courseIDf, cs.Name, cs.LecturerPerHourRate, schl.Class, schl.Batch, schl.Date,schl.StartTime, schl.EndTime, schl.EstimatedHours FROM class_schedules_list schl, courses cs WHEREscheduleIDf='"+getScheduleID+"' AND cs.courseID=schl.courseIDf
SELECT sche.RelatedDate FROM schedule_evaluation sche, schedule_evaluation_list schel,class_schedules_list schl, class_schedules sch WHEREschl.courseIDf='"+rs2.getString("schl.courseIDf")+"' ANDsche.RelatedDate='"+rs2.getString("schl.Date")+"' AND sch.lecturerIDf='"+schRegLectureID.getText()+"'AND schel.lecturerIDf='"+schRegLectureID.getText()+"' ANDschel.courseIDf='"+rs2.getString("schl.courseIDf")+"' AND schel.courseIDf=schl.courseIDf
Related to Find by "Lecture ID" ("Find" Button)
Search Queries:SELECT lecturerID, FullName FROM lecturers WHERE lecturerID LIKE
'"+schRegLectureID.getText()+"%'
Related to Find by "Schedule ID" ("Find" Button)
Search Queries:SELECT sch.scheduleID, sch.lecturerIDf, sch.ScheduledMonth, lc.FullName FROM
class_schedules sch, lecturers lc WHERE sch.scheduleID LIKE '"+keyWord+"%' ANDlc.lecturerID=sch.lecturerIDf
Related to "Lecture Name" Combo Box
Search Queries:SELECT FullName, lecturerID FROM lecturers WHERE FullName LIKE '"+keyWord+"%'
SELECT lecturerID, FullName FROM lecturers WHERE FullName LIKE '"+LecturerName+"%'
Related to Find by "Scheduled for Month" ("Find" Button)
Search Queries:SELECT sch.scheduleID, sch.lecturerIDf, sch.ScheduledMonth, lc.FullName FROM
class_schedules sch, lecturers lc WHERE sch.ScheduledMonth LIKE '"+keyWord+"%' ANDlc.lecturerID=sch.lecturerIDf
Institute Management System for John Paul II Page 150
Related to "Save" Button
Search Queries:SELECT lecturerIDf, ScheduledMonth FROM class_schedules WHERE
lecturerIDf='"+schRegLectureID.getText()+"' AND ScheduledMonth='"+scheduledMonth+"'
Insert Queries:INSERT INTO class_schedules
VALUES('"+finalizeKey+"','"+newID+"','"+schRegLectureID.getText()+"','"+scheduledMonth+"','"+scheduleEntryDate+"')
INSERT INTO class_schedules_listVALUES('"+finalizeKey+"','"+column[0]+"','"+column[1]+"','"+column[2]+"','"+column[3]+"','"+column[4]+"','"+column[5]+"','"+column[6]+"')
Related to "Revise" Button
Update Queries:UPDATE class_schedules SET lecturerIDf='"+schRegLectureID.getText()+"',
ScheduledMonth='"+scheduledMonth+"' WHERE scheduleID='"+schRegSchID.getText()+"'
Delete Queries:DELETE FROM class_schedules_list WHERE scheduleIDf='"+schRegSchID.getText()+"'
Insert Queries:INSERT INTO class_schedules_list
VALUES('"+schRegSchID.getText()+"','"+column[0]+"','"+column[1]+"','"+column[2]+"','"+column[3]+"','"+column[4]+"','"+column[5]+"','"+column[6]+"')
Related to "Delete" Button
Delete Queries:DELETE FROM class_schedules WHERE scheduleID='"+schRegSchID.getText()+"' AND
lecturerIDf='"+schRegLectureID.getText()+"'
Lecturer Class Scheduling Frame (Evaluate Schedule Status Tab) SQL Queries:
Related to "Generate" Button
Search Queries:SELECT sch.scheduleID, sch.lecturerIDf, lc.FullName, cs.Name, schl.Batch, schl.Class,
schl.StartTime, schl.EndTime FROM class_schedules sch, class_schedules_list schl, lecturers lc,courses cs WHERE schl.Date='"+date+"' AND sch.lecturerIDf=lc.lecturerID ANDschl.courseIDf=cs.courseID AND schl.scheduleIDf=sch.scheduleID
SELECT CurrentStartTime, CurrentEndTime, Status, evalList_ID FROM schedule_evaluation_listWHERE evalIDf=(SELECT evalID FROM schedule_evaluation WHERE RelatedDate='"+date+"' ANDscheduleIDf='"+rs1.getString("sch.scheduleID")+"' ANDDefaultStartTime='"+rs1.getString("schl.StartTime")+"' ANDDefaultEndTime='"+rs1.getString("schl.EndTime")+"')
Institute Management System for John Paul II Page 151
SELECT UpdateStatus FROM lecturer_pay_cal_status WHERE evalList_IDf='"+getEvalID+"'
Related to "Submit Evaluation" Button
Insert Queries:INSERT INTO schedule_evaluation VALUES('"+finalizeKey+"','"+newID+"','"+relatedDate+"')
INSERT INTO schedule_evaluation_listVALUES('"+finalizeKey_B+"','"+newID_B+"','"+finalizeKey+"','"+column[0]+"','"+column[4]+"','"+courseID+"','"+column[6]+"','"+column[1]+"','"+column[7]+"','"+column[2]+"','"+currentWorkHours+"','"+column[3]+"')
INSERT INTO lecturer_pay_cal_status VALUES('"+finalizeKey_B+"','No')
Search Queries:SELECT courseID FROM courses WHERE Name='"+column[5]+"'
Related to "Edit Evaluation" Button
Search Queries:SELECT evalID FROM schedule_evaluation WHERE RelatedDate='"+safeBuffer_RelatedDate+"'
SELECT evalList_ID, ID FROM schedule_evaluation_list WHERE evalIDf LIKE '"+currentEvalID+"'
SELECT evalList_IDf FROM lecturer_pay_cal_status WHERE evalList_IDf='"+entryID+"' ANDUpdateStatus='Yes'
SELECT courseID FROM courses WHERE Name='"+column[5]+"'
SELECT evalList_ID FROM schedule_evaluation_list WHERE evalList_ID='"+entryID+"'
Delete Queries:DELETE FROM schedule_evaluation_list WHERE evalList_ID='"+entryID+"'DELETE FROM schedule_evaluation_list WHERE evalIDf=(SELECT evalID FROM
schedule_evaluation WHERE RelatedDate='"+safeBuffer_RelatedDate+"')
Insert Queries:INSERT INTO schedule_evaluation_list
VALUES('"+finalizeKey_B_PrecisionMode+"','"+newID_B_PrecisionMode+"','"+currentEvalID+"','"+column[0]+"','"+column[4]+"','"+courseID+"','"+column[6]+"','"+column[1]+"','"+column[7]+"','"+column[2]+"','"+currentWorkHours+"','"+column[3]+"')
INSERT INTO lecturer_pay_cal_status VALUES('"+finalizeKey_B_PrecisionMode+"','No')
INSERT INTO schedule_evaluation_listVALUES('"+finalizeKey_B+"','"+newID_B+"','"+currentEvalID+"','"+column[0]+"','"+column[4]+"','"+courseID+"','"+column[6]+"','"+column[1]+"','"+column[7]+"','"+column[2]+"','"+currentWorkHours+"','"+column[3]+"')
INSERT INTO lecturer_pay_cal_status VALUES('"+finalizeKey_B+"','No')
Institute Management System for John Paul II Page 152
Lecturer Class Scheduling Frame (Schedule Reports Tab) SQL Queries:
Related to "Compose Date wise Schedule" Button
Search Queries:SELECT schl.Class, schl.Batch, cs.Name, schl.StartTime, lc.FullName FROM class_schedules
sch, class_schedules_list schl, courses cs, lecturers lc WHERE schl.Date='"+dateWiseSchedule_Date+"'
Login Frame SQL Queries:
Related to "Login" Button
Search Queries:SELECT * FROM login WHERE userID='"+user.getText()+"' AND
password='"+String.valueOf(getPass)+"'
SELECT COUNT(userID) AS Total FROM login
Change Login Details Frame SQL Queries:
Related to "Change Login Details" Button
Search Queries:SELECT * FROM login WHERE userID='"+getTypedOldUser+"' AND
password='"+getTypedOldPassword+"'
SELECT COUNT(userID) as TotalUsers FROM login
Delete Queries:DELETE FROM login WHERE userID='"+getTypedOldUser+"'
Insert Queries:INSERT INTO login VALUES('"+getTypedNewUser+"', '"+getTypedNewPassword+"')INSERT INTO login VALUES('"+getTypedNewUser+"', '"+getTypedNewPassword+"')