Final Project ESOFT METRO CAMPUS Shaping Lives, Creating Futures. Final Project – Assessment Sheet Programme Assured Diploma in Information Technology Assessor/Lecturer Unit Final Project Project Title Skills International Student’s Name Student’s Registration No Submission Date Marks Achieved (%) Assessor/Lecturer Feedback Important Points. • Carefully check the hand in date and the instructions given with the project. Late submissions will not be accepted. • Ensure that sufficient time is spent to complete the assignment by the due date. • Do not wait till the last minute to get feedback on the project. Such excuses will not be accepted for late submissions. • You must be responsible for efficient management of your time. • If you are unable to hand in your project on time and have valid reasons such as illness, you may apply (in writing) for an extension. • Failure to achieve at least 40.00% marks will result in a Repeat grade. • Non-submission of work without valid reasons will lead to an automatic Repeat. You will then be asked to complete an alternative project. • If you use other people’s work or ideas in your assignment, it must be properly referenced, using the HARVARD referencing system, in your text or any bibliography. Otherwise, you’ll be found guilty of committing plagiarism. • If you are caught plagiarising, your grade will be reduced to a Repeat or at worst, you could be excluded from the course. All rights reserved © ESOFT Metro Campus 1 Project Guidelines • • • • • You need to create a software solution for Skills International School using visual studio as your final project. Use C# Programming language for your project Follow the structure given in this document. Design given forms and apply value additions for it according to your requirement. Software should contain minimum two forms. Additional forms and features will get additional marks. (Login form and one Registration form is compulsory) Please follow the given instructions before you start the project. Instructions • • • • • • • Design the software system according to the given instructions. Use appropriate fonts, colors, and images for Frontend (GUI design) of your software. Proposed Software system must have a database and properly connected to the system. (Database should be designed using SQL Server Management Studio) Database must contain minimum one Table (Table column structure provided in Figure X). Test the software and submit the project on or before the given deadline. Create a Microsoft Word Document including all the screenshots of forms in your system and code snippets of each form. The entire project brief (These nine pages) should be attached as the first section of your project documentation. Word Processing Rules • The font size should be 12 point and should be in the style of Time New Roman. • Set line spacing to 1.15. Justify all paragraphs. • Ensure that all headings are consistent in terms of size and font style. • Use the spell check and grammar check function of the word processing application to review the use of language on your assignment. All rights reserved © ESOFT Metro Campus 2 Word Document Template Using the Microsoft Word application, create a document to include the following: Should mention your name, student id number, batch number in the document. • Table of Contents • Acknowledgement • Brief Introduction to the System with o Functional o Non-functional requirements • User Interface Design • Program Code Listing (copy and paste the important codes NOT THE SCREENSHOTS) • Screenshots of the database • Screen shots of the system demonstrate the functions of the System and Error Message • Simple User guide on how to operate the system • Future Enhancement & Conclusion • References (List of Books or Materials referred) All rights reserved © ESOFT Metro Campus 3 PowerPoint Presentation Template Using the Microsoft PowerPoint application, create a presentation to include the following: • Title Page (Include Project title, Batch number, Registration number and Name) • Introduction to the System • Screenshots of interfaces • Future Enhancements Duration: 15 – 20 mins (Minimum of 8-10 slides) Marks Breakdown Implementation of the system - 50% Documentation - 30% PowerPoint Presentation - 10% System Demonstration and Presentation Skills - 10% All rights reserved © ESOFT Metro Campus 4 Proposed Project Figure I – Login Form • Above form consist of; o One Picture Box o One Group Box o Three Labels ▪ Skills International ▪ Username ▪ Password o Two Text Boxes ▪ Username ▪ Password o Three Buttons ▪ Clear ▪ Login ▪ Exit Design the above form using these tools and change respective properties using suitable values. All rights reserved © ESOFT Metro Campus 5 Figure II – Registration Form All rights reserved © ESOFT Metro Campus 6 • Above form consist of; o Four Group Boxes ▪ Student Registration ▪ Basic Details ▪ Contact Details ▪ Parent Details o Thirteen Labels ▪ Skills International ▪ Reg No ▪ First Name ▪ Last Name ▪ Date of Birth ▪ Gender ▪ Address ▪ Email ▪ Mobile Phone ▪ Home Phone ▪ Parent Name ▪ NIC ▪ Contact No o Nine Text Boxes ▪ First Name ▪ Last Name ▪ Address (Multiline) ▪ Email ▪ Mobile Phone ▪ Home Phone ▪ Parent Name ▪ NIC ▪ Contact No o Four Buttons ▪ Register ▪ Update ▪ Clear ▪ Delete o Two LinkLabels ▪ Logout ▪ Exit o Two Radio Buttons ▪ Male ▪ Female o One DateTimePicker ▪ Date of Birth o One ComboBox ▪ Reg No Design the above form using these tools and change respective properties using suitable values. All rights reserved © ESOFT Metro Campus 7 Project Instructions Designing • Design the project using Microsoft Visual Studio. Designing above two forms is a must, you can add more forms based on your imagination and those will be considered when marking. • Change the properties of each object with suitable values. Functional Operations • When user runs the project, Login form needs to be appeared. Form I – Login Form (Figure I) • There is one user in the system. User name is “Admin” & Password is “Skills@123”. When user click on Login ( ) button after applying “Admin” as the username and “Skills@123” as the Password, the system needs to hide the login form and open the second form which is Registration form (Figure II). If the login credentials are wrong (Either Username, either Password or both), system needs to generate an error message (Figure III). Figure III – Error Message • • • You can increase number of users for the system. If so, there needs to be a table in the database to track those usernames and passwords as shown in figure IX. When user clicks on Clear ( ) button, texts in both username textbox and password textbox needs to be cleared and the username textbox needs to be focused. When you click on the Exit Button ( ) it needs to appear the following message box. Figure IV – Exit Message All rights reserved © ESOFT Metro Campus 8 • If you click on Yes button, the entire system needs to be closed and if you click on No, the system stays without a change, but the dialogue box needs to be closed. Form II – Registration Form (Figure II) • The Form II (Figure II) is designated form for Student Registrations. • Create the Database using Microsoft SQL Server Management Studio. Name the database as Student. • Create the Registration Table. • Connect the created Student Database with your C# project. • In student Registration form, a registration can be done by clicking on Register Button ( ). Once the user clicks on Register Button after providing all the details in related fields in the registration form, the details need to be added in the “Registration” Table (Figure X) of “Student” Database and needs to appear following message box as well. Figure V – Register Message Box • • Give the facility to the user to update records using Update Button ( Once the update executed, show the following message box. ). Figure VI – Update Message Box • Give the facility for the user to Delete a selected record from the Database Table using the Delete Button ( ). Before Execution of Delete function, need to get users confirmation to delete. For that, use following message box or similar one. All rights reserved © ESOFT Metro Campus 9 Figure VII – Delete Message Box • Once the user clicks on Yes from the appearing message box, the details needs to be deleted from the system database based on the Registration Number of the record. After the execution of the Delete, following message box needs to be appeared. Figure VIII – Delete Confirmation Message Box • • • When the user clicks on the Reg No dropdown list ( ), the user can see the registration numbers (Previously registered) appearing in the drop down list. When the user selects a registration number, it needs to work as a Search function when user changes the text of this and need to fill all other fields in the form by focusing the Reg No from the Database Table. When you click on the Exit Link Label ( ) it needs to appear the Exit message box (Figure IV). When user clicks on Logout Link Label ( ), it needs to logout from the system, disappear the Registration form and appear the login form (Figure I). All rights reserved © ESOFT Metro Campus 10 Database Information Set Database name as “Student” and Registration Table (Figure X) needs to be there inside. When designing the Registration Table in the Database, apply regNo column as the primary key for the table. Figure IX – Database Table - Logins Figure X – Database Table - Registration Table Structure Use the following table to identify data types for each column when you create the “Registration” table. Field Name regNo firstName lastName dateOfBirth gender address email mobilePhone homePhone parentName nic contactNo Datatype Integer varchar(50) varchar(50) dateTime varchar(50) varchar(50) varchar(50) Integer Integer varchar(50) varchar(50) Integer Contents Acknowledgement ................................................................................................................................ 12 Introduction to the system ................................................................................................................. 12 Function requirement’s ..................................................................................................................... 12 Nonfunctional requirements.................................................................................................................. 12 User Interface Design ....................................................................................................................... 12 Main Coding’s for the system ........................................................................................................... 17 Screenshot of database ...................................................................................................................... 21 All rights reserved © ESOFT Metro Campus 11 Screenshots of system for function and error messages.................................................................... 23 User Guide for the System ................................................................................................................ 26 Future Enhancement ......................................................................................................................... 32 Conclusion ........................................................................................................................................ 32 References ......................................................................................................................................... 32 Acknowledgement I am truly thanking our lecturer Mr. Rajitha sir for valuable knowledge and skills sir have given to me and guiding me correctly .undoubtedly I will contribute his guidance to my future successes. Sincerely, Zameer Jahan Introduction to the system Skills International system is a IT related school system. First you should log with the username password, then it will access you to go through the home page. from the home page there are 4 four pathways. 1. 2. 3. 4. About – shows about our school Register – can register to our school or else delete or update any registrations Courses – shows the courses Login - through this you can Log another account Function requirement’s 1. Should have a good performance 2. User can input the username password and logged in the system 3. System can be use by authorized users Nonfunctional requirements 1. System should have satisfied performance for us 2. System is secured because user should know the password to logged in 3. System is user-friendly User Interface Design All rights reserved © ESOFT Metro Campus 12 So there are 7 interfaces , 2 main interfaces in the system is logging and Registration form. Login Interface In this interface there is / are : • One Group Box • One Background Image • Three Labels Skills International Username Password • Two Text Boxes Username Password • Three Buttons Clear Login Exit All rights reserved © ESOFT Metro Campus 13 Registration Form In this interface there is / are : o Four Group Boxes ▪ Student Registration ▪ Basic Details ▪ Contact Details All rights reserved © ESOFT Metro Campus 14 ▪ Parent Details o Thirteen Labels ▪ Skills International ▪ Reg No ▪ First Name ▪ Last Name ▪ Date of Birth ▪ Gender ▪ Address ▪ Email ▪ Phone No ▪ Telephone No ▪ Parent Name ▪ NIC ▪ Contact No o Nine Text Boxes ▪ First Name ▪ Last Name ▪ Address (Multiline) ▪ Email ▪ Phone No ▪ Telephone No ▪ Parent Name ▪ NIC ▪ Contact No o Five Buttons ▪ Register ▪ Update ▪ Back ▪ Clear ▪ Delete o Two Link Labels ▪ Logout ▪ Exit o Two Radio Buttons ▪ Male ▪ Female o One DateTimePicker ▪ Date of Birth o One Combo Box ▪ Reg No Homepage Form All rights reserved © ESOFT Metro Campus 15 In this interface there is / are : o Four picture boxes o Four Buttons ▪ About Us ▪ Register ▪ Courses ▪ Login o One label ▪ Skills International Course Form All rights reserved © ESOFT Metro Campus 16 In this interface there is / are : o One Label ▪ Choose your course o Three buttons ▪ Back ▪ Diploma in ICT (Ditec) ▪ Certificate in ICT ( CIT ) Main Coding’s for the system 1. Loging form To connect the database : using System.Data.SqlClient; once above code was typed now type the below code : //Login Button// SqlConnection connection = new SqlConnection (@"Data Source=(LocalDB)\v11.0;AttachDbFilename=D:\Zameer assigment\jammu new\Skills International\Database\Student.mdf;Integrated Security=True;Connect Timeout=30"); connection.Open(); string username = Usernamebox.Text; string password = Passwordbox.Text; string query = " select * from Login where username = '"+username+"' and password = '"+password+"'"; SqlCommand command = new SqlCommand (query,connection); SqlDataReader row = command.ExecuteReader(); if (row.HasRows) { //Then the next form// Homepage home = new Homepage(); All rights reserved © ESOFT Metro Campus 17 home.Show(); this.Hide(); } else { //If wrong data inputed error message// MessageBox.Show("Wrong username and password,please try again !", "Invalid Login Details", MessageBoxButtons.OK, MessageBoxIcon.Error); } connection.Close(); Clear button code : { Usernamebox.Text = ""; Passwordbox.Text = ""; } 2. Registration form Register button : //register button codes// string id = regino_combobox.Text; string fname = fstname_txt.Text; string lname = lstname_txt.Text; DateTime dob = dateTimePicker1.Value; string gender; if (male_radiobtn.Checked) { gender = "male"; } else { gender = "female"; } string address = address_txt.Text; string email = email_txt.Text; string mobile = mobile_txt.Text; All rights reserved © ESOFT Metro Campus 18 string homephone = home_txt.Text; string parent = parentname_txt.Text; string nic = nic_txt.Text; string contact = contact_txt.Text; SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\v11.0;AttachDbFilename=D:\Zameer assigment\jammu new\Skills International\Database\Student.mdf;Integrated Security=True;Connect Timeout=30"); String query_insert = "insert into registration values ('" + id + "' , '" + fname + "', '" + lname + "' , '" + dob + "'," + " '" + gender + "' , '" + address + "' , '" + email + "' , '" + mobile + "' , '" + homephone + "' , '" + parent + "' ," + " '" + nic + "', '" + contact + "' ) "; SqlCommand cmd = new SqlCommand(query_insert, con); con.Open(); cmd.ExecuteNonQuery(); MessageBox.Show("Record Added Successfully", "Registeration Student", MessageBoxButtons.OK, MessageBoxIcon.Information); con.Close(); Update button : //Updating Button// string id = regino_combobox.Text; string fname = fstname_txt.Text; string lname = lstname_txt.Text; DateTime dob = dateTimePicker1.Value; string gender; if (male_radiobtn.Checked) { gender = "male"; } else { gender = "female"; } string address = address_txt.Text; string email = email_txt.Text; string mobile = mobile_txt.Text; string homephone = home_txt.Text; string parent = parentname_txt.Text; string nic = nic_txt.Text; string contact = contact_txt.Text; All rights reserved © ESOFT Metro Campus 19 //sql connection string for update button// SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\v11.0;AttachDbFilename=D:\Zameer assigment\jammu new\Skills International\Database\Student.mdf;Integrated Security=True;Connect Timeout=30"); String query_update = "update registration set registration_no = '" + fstname_txt.Text + "' where registration_no = '" + regino_combobox.Text + "' "; SqlCommand cmd = new SqlCommand(query_update, con); con.Open(); cmd.ExecuteNonQuery(); MessageBox.Show("Record Updated Successfully", "Registration Update Student", MessageBoxButtons.OK, MessageBoxIcon.Information); con.Close(); Clear code: //clearing codes// regino_combobox.ResetText(); fstname_txt.Clear(); lstname_txt.Clear(); dateTimePicker1.ResetText(); male_radiobtn.ResetText(); female_radiobtn.ResetText(); address_txt.Clear(); email_txt.Clear(); mobile_txt.Clear(); home_txt.Clear(); parentname_txt.Clear(); nic_txt.Clear(); contact_txt.Clear(); delete code : // DELETE BUTTON string id = regino_combobox.Text; string fname = fstname_txt.Text; string lname = lstname_txt.Text; DateTime dob = dateTimePicker1.Value; string gender; if (male_radiobtn.Checked) { gender = "male"; } All rights reserved © ESOFT Metro Campus 20 else { gender = "female"; } string address = address_txt.Text; string email = email_txt.Text; string mobile = mobile_txt.Text; string homephone = home_txt.Text; string parent = parentname_txt.Text; string nic = nic_txt.Text; string contact = contact_txt.Text; //sql connection string for Delete button// if (MessageBox.Show("Do you want to delete", "confirmation", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) { } SqlConnection con = new SqlConnection(@"Data Source=(LocalDB)\v11.0;AttachDbFilename=D:\Zameer assigment\jammu new\Skills International\Database\Student.mdf;Integrated Security=True;Connect Timeout=30"); String query_update = "delete from registration where registration_no = '" + regino_combobox.Text + "' "; SqlCommand cmd = new SqlCommand(query_update, con); con.Open(); cmd.ExecuteNonQuery(); con.Close(); Screenshot of database All rights reserved © ESOFT Metro Campus 21 All rights reserved © ESOFT Metro Campus 22 Screenshots of system for function and error messages Above shows when typing a wrong username and password All rights reserved © ESOFT Metro Campus 23 Above images shows when you click exit it will ask a confirmation to exit Above images shows when you click register it will say record added successfully All rights reserved © ESOFT Metro Campus 24 Above images shows when you click Delete it will ask you a confirmation for delete the record Above images shows when you click Update it will say record Updated successfully All rights reserved © ESOFT Metro Campus 25 User Guide for the System Once this form appeared , you will need to enter the correct username and password if not it will say to retype the correct username password Once you type the username and password and If you mistakenly type the password in username then click clear it will clear it Then after all if you type the username and password correctly then click the login button, or else if you want to exit the system then click the exit button Click the login button after typing the username and password All rights reserved © ESOFT Metro Campus 26 After you clicking the login button by typing the correct username and the password , this form will be appeared. So this is the home page. In here there are four button which leads four pathways (forms). So you can decide which page you should go. There is login because if you want to log in another username password or else any other else want to log in you can click the login button and go back to the login. All rights reserved © ESOFT Metro Campus 27 So if you click about us it will go to the about page as shown in the below. So this the about us page and if you want to go back, click the back button it will take you to the homepage All rights reserved © ESOFT Metro Campus 28 Once you go back to the homepage and click the courses , above form will appeared So if you click CIT then below form will appeared and if you want to go back then click back So above form have the details of CIT course. If you want to check the other course then click back button and click the Ditec and below form will appear All rights reserved © ESOFT Metro Campus 29 Above shown form is Ditec course , so now if you want to see the other course again click the back button and select or else if you want to go to homepage click the home button. So above form will be appeared again and now to register click the register button . All rights reserved © ESOFT Metro Campus 30 Above form is the register form. In this form you can register your details after you type your data then click register. If you want to update anything then re type the data and click update. If you want to clear then click the clear button. If you want to delete the data then click the delete button. If you want to go back to the home page then click the back button. If you want to go to login page then click the link label in the top ( Logout ). If you want to close the system then click the exit link label below ( Exit) . All rights reserved © ESOFT Metro Campus 31 Future Enhancement In future student can submit there assignment’s as well as they can do their modules exams in the system. Will add them. Conclusion Then we have come to conclusion of our system, so we described our interfaces , messages, coding’s, databases. So there are 7 interfaces and 2 main interfaces are login and register.so you can log in by typing the correct username and password and you can register you details. References Diploma part 2 book ( Diploma in Information technology ) - Esoft All rights reserved © ESOFT Metro Campus 32