seating arrangment
TRANSCRIPT
-
8/18/2019 Seating Arrangment
1/53
Seating Arrangement
Submitted in partial fulfillment of the requirements for theawards of the degree of
Master of computer application
[Software Engineering]
Guide: Submitted by:
Mrs. Jyostna Rajeev Ranjan
MCA (S!" ###rd Sem.
Rollno$ %&'&))*%+
University School of Information echnologyGGS Indraprastha University! "elhi#$$%%%&
'(%%)#(%$$*
&
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
2/53
+E,I-I+.E
,his is to -ertify that the proje-t report (#,"'**! entitled Seating Arrangement/
done by Mr. Rajeev Ranjan 0 Roll no. %&'&))*%+ is an authenti- wor1 -arried out
by him under my guidan-e. ,he matter embodied in this proje-t wor1 has not been
submitted earlier for the award of any degree or diploma to the best of my
1nowledge and belief.
2ate$ Mrs. Jyotsna
3S#,044S#53
6
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
3/53
A-1nowledgement
# would li1e to than1 my proje-t guide0 Mrs. Jyotsna for her guidan-e. ,his proje-t
entitled Seating Arrangement/ -ould not have been -ompleted without the
fle7ibility and support provided by her to me to pursue this proje-t.
# wish to than1 our proje-t in -harge Mr. Sanjay Mali1 for -oordinating all
the proje-t related a-tivities.
At last # wish to e7press my sin-ere than1s to all the authors whose wor1s
(both online and in print! we have referred to0 in -ourse of my study of the subje-t.
8
Rajeev RanjanMCA (S!"###rd Sem.%&'&))*%+3S#,0 44S#53Rajeevranjan&8.6%%9:gmail.-om
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
4/53
able of contents+ontents pageno&/
&.ntrodu-tion
&.&.& 5urpose
&.&.6 S-ope
&.&.8 2efinitions0 A-ronyms0 and Abbreviations
&.6. ;verall 2es-ription
&.6.& 5rodu-t 5erspe-tive +
&.6.&.& System #nterfa-es +
&.6.&.6 3ser #nterfa-es +
&.6.&.8
-
8/18/2019 Seating Arrangment
5/53
&.8. Spe-ifi- Requirements &%
&.8.& 7ternal #nterfa-e Requirements &%
&.8.6 =un-tional Requirements &&
&.8.6.& >alidity -he-1s on the inputs &&
&.8.6.6 7a-t sequen-e of operations &&
&.8.6.8 Responses to abnormal situation &6
&.8.8 5erforman-e requirement &6
&.8.) ?ogi-al 2atabase requirements &6
&.8.* Software System attributes &6
&.8.*.& Reliability &6
&.8.*.6 Availability &6
&.8.*.8 Se-urity &6
&.8.*.) Maintainability &8
6. 2ata flow diagram &8
8. ntity Relationship 2iagram &)
). 2ata di-tionary$ &)
).&. 2es-ription of modules &*
).6Student information and maintenan-e module$ &*
).8Course information module$ &*
).)Subje-t information module$ &*
).*2atabase maintenan-e module$ &
*. 3ses Case 2iagram$ &
*.&3ses Case des-ription$ &'
*.6. Maintain student information &+
*
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
6/53
*.8Maintain Subje-t #nformation 6%
*.). Maintain 3ser A--ounts 6)
. Coding 6+
'. Snapshots )*
+. Referen-es$ *8
$/ Software ,e0uirements Specification 'S/,/S*
$/ Introduction:
$/$/$ 1urpose
,he purpose of this do-umentation is to present the Software Requirement
Spe-ifi-ation for Seating Arrangement for the 7amination department .,his
2o-ument illustrate the how this software ma1es easier of arranging seat for an
7amination.
$/$/( Scope
,he software produ-t Seating Arrangement is a appli-ation whi-h arranges the
Seat matri7 for an e7amination. ,he appli-ation -reates the databases fordifferent
Allo-ation table at run time0 information provided by user. ,he appli-ation then
establishes the -onne-tion to a--ess database and allo-ates the seat for students.
$/$/2 "efinitions:
"S3: Stands for data source name
#t spe-ifies the sour-e name from where the data is -oming.
+onnection string:
Conne-tions string has information required to -onne-t to a database. #tgenerally -onsist of information of provider0 drivers0 data sour-e0 user name0
password et-.
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
7/53
,ecord set:
Re-ordset obje-t is used for the management of re-ords that result fromdatabase request.
$/(/ 4verall "escription:
A data base is an ordered set of data that is usually saved in one or several files
that belong together. ,he data is stru-tured as tables0 with referen-e from one
table to another being possible.
,here are various type of database management system are available for use li1e
2@60 ora-le0 MS"A--ess. All of them have their own advantages and
disadvantages.
MS"A--ess is treated -omparatively simple than other database system in terms
of learning and using but not suitable for large databases.
Some time the user need to -reate the database at runtime as per user
requirement for ta1ing advantage of that database system.
,he appli-ation seating Arrangement/ design and arranges seat matri7 in
MS A--ess format. ,his appli-ation is general purpose that is it ta1es the
information about database to -reate of any sie and -an be added any number of
tables to MS A--ess database. ,he appli-ation ta1es database name as the input.
3ser must have proper right to use the appli-ation. ,hen it establishes the
-onne-tion to MS A--ess database. After su--essful establishing of -onne-tion
the appli-ation ta1es the name of table0 number of -olumn0 number of rows as
input from the user and -reates the table in runtime in the spe-ified database
name provided earlier by the user. ,hen appli-ation establishes the -onne-tion to
'
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
8/53
the table and adds re-ords as per our requirement spe-ified or defined for the
appli-ation.
$/(/$1roduct 1erspective:
,his appli-ation is fully windows based self -ontained and independent software
5rodu-t produ-ts.
$/(/$/$ System Interface:
Bone
$/(/$/( User Interface:
,his system has very user friendly and menu based interfa-e. =ollowing s-reens
will be provided$
& .A login s-reen for entering the username 0 password and user name. A--ess to
different s-reens will be based on the information provided.
6. ,here is the s-reen for -reating the databases and opening databases.
8. ,here is a form in whi-h user -an spe-ify the table name and sie of the table.
+
=R;B, B2A55?#CA,#;B
#B
>@ .%
MS
ACCSS 2A,A@AS
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
9/53
$/(/$/2 5ardware Interface:
,he hardware interfa-es for this appli-ation are$
#. S-reen resolution of at least +%% 7 %% for proper and -omplete viewing
of s-reens. @ut performs best at &%6) 7 '+.
ii. 5roper hardware -onfiguration for running ora-le and MS"A--ess databases
$/(/$/6 Software Interface:
,he software interfa-es for this appli-ation are$
i. indows DpE windows 9+
ii. MS A--ess 6%%8 or any higher version of MS A--ess as the 2@MS for
database.
iii. >isual @asi- " for -oding Edeveloping the software.
iv. ;ra-le database
$/(/$/7 +ommunication interfaces
Bone
$/(/$/7 Memory +onstrains:
At least &6+ M@ ram and & 4@ hard dis1 spa-e will be required.
$/(/( 1roduct -unctions:
,he system will allow a--ess only to authoried users. ,hose -an a--ess the
A--ess database -an establish the -onne-tion by providing the information.
=ollowing are the major fun-tions that will be provided by the system$
i. ?ogin fa-ility for enabling only authoried a--ess to system.
ii. Authoried user spe-ifies the database information require -reating or opening
9
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
10/53
the databases.
iii. ,he appli-ation establishes the -onne-tion on the run time.
iv. ,he appli-ation provides the fun-tionality to input the name of table to be
-reated or opened.
v. ,hen it a--esses the re-ords of the table to be evaluated a--ording to
appli-ation.
vi. using the above information it generate the report table into MS"A--ess
format.
$/(/2 +onstraints:
i. 2ue to limited features of 2@MS being used performan-e tuning features
will not be applied to the queries and thus the system may be-ome slow
with the in-rease in number of re-ords.
ii. 2ue to the limited features of the 2@MS database Auditing will also not
be provided.
iii. Administrator will have to implement a se-urity poli-y to safeguard the
Re-ords from unauthoried users.
$/(/6 .ssumptions and "ependencies:
i. A user must have the 1nowledge of using appli-ation the handle databases.
ii. ,he user must 1now username and password to a--ess database
$/2/ Specific ,e0uirements:
,his se-tion -ontains the software requirements to a level of detail suffi-ient to
enable designers to design the system0 and testers to test that system.
$/2/$ E8ternal Interface ,e0uirements:
&%
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
11/53
$/2/$/$ User Interfaces:
,he following s-reens will be provided to the users$
&. ?ogin S-reen$ from this s-reen the user will login to the appli-ation. >arious
fields available for this s-reen will be
(a! 3ser #2$ alphanumeri- of length up to &% -hara-ters
(b! 5assword$ alphanumeri- of length up to + -hara-ters
6. Step& S-reen$ After logging in su--essfully by the user the step& s-reen of
the appli-ation will appear. ,he user -an enter the database information for
MS A--ess database.
8. step6 s-reen$ Be7t s-reen is step6 s-reen in wit-h user -an input the table
name and sie of the table to be -reated.
). Step8 s-reen$ in this s-reen user -an spe-ify the -ourse information of the
student for allo-ation of seat matri7. Also -an spe-ify multiple -ourse
information.
$/2/$/( 5ardware interfaces
As stated in se-tion 6.&.8
$/2/$/2 Software interfaces
As stated in se-tion 6.&.)
$/2/( System feature
$/2/(/$ 9alidity checs on the inputs:
(i! ;nly the authoried user -an a--ess the database and appli-ation.
(ii! 5roper validity -he-1s should be imposed while data is being transfer from
one database to other.
&&
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
12/53
$/2/(/( E8act se0uence of operations
,here must e7ist an Ms A--ess database to be opened. ,he user must have
proper right to a--ess the Ms A--ess database before using this appli-ation the
-onne-tion must be established and tested before the transa-tion between
different tables ta1es pla-e. A 3ser -an e7it from the appli-ation whenever heEshe
wants.
$/2/(/2 ,esponses to abnormal situation
Error handling and recovery
rroneous data operations are reje-ted with an error message prompt. Bo
re-overy module is needed as erroneous operation is not allowed to
pro-eed.
$/2/2 1erformance re0uirement
Bone
$/2/6 "esign +onstraints
Bone
$/2/7 ;ogical "atabase re0uirements:
'i* ?og$ user id0 password
'ii* Student info$ enroll no.0 student name0 -ourseFid0 year
$/2/& Software System attributes:
$/2/&/$ ,eliability
,he system would be reliable enough to save a number of re-ords.
$/2/&/( .vailability
,he system has to run as per the requirement of the user.
&6
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
13/53
$/2/&/2 Security
,he system will use password prote-tion to allow only authenti- users to a--ess
,he system a--ording to their privilege.
$/2/&/6 Maintainability
,he appli-ation is to be designed in a maintainable manner. #t should be easy to
#n-orporate new requirements in the individual modules.
(/ "ata flow diagram
Student details
2ata entry operator
&8
Student info
management
Report
generation
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
14/53
#d0 password
3ser a--ount info
Administrator
Entity ,elationship "iagram:
&)
login
User
account
managementstudent
-ourse
subje-t
Consist
of
Study
in
Student id
Student name
age
Course nameCourse id
Subje-t idSubje-t name
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
15/53
"ata dictionary:2ata di-tionary des-ribes the -olumns0 whi-h are used in the development of
the system. #t is one of the most important 2@A tools. ,he data di-tionary des-ribes
effe-tively a database that -ontains information about the entities.
2atabase profile helps -onne-ting to the databaseG it prevents unauthoried
use of database. =ollowing are the tables and views that the database -ontains.
.I"5
StrudentFid Bumber &%Student name ,e7t 6%
CourseFid Bumber %
HearFofFadm 2ate ""
.I"5
CourseFid Bumber %*
Course name ,e7t 6%
BoFofFSem Bumber %
.I"5
CourseFid Bumber %*
Subje-tFid ,e7t 6%
Subje-t name ,e7t %
"ES+,I1I43 4- M4"U;ES
System is -ontrolled in mar1et units of limited sie to simplify development
&*
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
16/53
and maintenan-e when ne-essary0 modifi-ation of SE is done partly due to separate
fun-tion they perform. ;ur system -an be modularied into various modules ea-h
one performing some spe-ifi- fun-tion to a-hieve their obje-tive. ,here modules
are$
Student information and maintenance module:
,his module -onsists of fun-tions that perform the operation to 1eep re-ord of
individual information of students in data file. All ,he details of a single student a-t
as a single re-ord in the file.
+ourse information module:
,his module -onsists of fun-tions that perform the operation to 1eep re-ord of-ourse related information li1e subje-t id0 -ourse id 0 subje-t name 0no of semester in
whi-h they taught et-. All these information are used to maintain the relation
between student in -ollege and their respe-tive -ourse.
Sub?ect information module:
,his module -onsists of fun-tions that perform the operation to 1eep re-ord of
subje-t name in ea-h semester of -ourse and all optional subje-ts also. #t also
1eeping the re-ord of new subje-ts if it is going to be add in parti-ular -ourse.
,he various operations -an be performed on the data files$
&. Addition of new re-ords.
6. 2eletion of a parti-ular re-ord
8. Retrieving data.
). 2isplaying data.
*. Modifi-ation of any information stores.
"atabase maintenance module:
,his module is used to maintain the entire database whi-h are -reated for ea-he7amination time and 1eeping all the seating arrangement re-ord with room no. So0
that if any requirement o--urs then -an able to open and see their information
2/ Uses +ase "iagram:
&
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
17/53
Maintain Student info.
AddEmodifyEdelete student details
?ogin
Reset System Maintain Subje-t info. 2eletion of all e7isting AddEModifyEdelete subje-t
#nformation from the for different semester
from ba-1end database
Maintain user A--ounts 4enerate Reports Add modifyEdelete user &.student list report
A--ounts 6.seating arrangement report
Uses +ase description:
$/ ;ogin
&'
administrator Co"ordinator
2atantryoperator
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
18/53
$/$/
-
8/18/2019 Seating Arrangment
19/53
All users must have a user a--ount -reated for them in the system0 prior to
e7e-uting the use -ases. #f the use -ase was su--essful0 the a-tor is logged into the
system. #f no0 the system state is un-hanged. #f the a-tor has the role I2ata entry
operator he Eshe will have a--ess to only s-reen -orresponding to the subje-t info
maintenan-e0 student info maintenan-e module of the system.
#f the a-tor has the role Iadministrator heEsheE will have a--ess to only s-reen
-orresponding to user a--ount maintenan-e module and reset system feature of the
system.
&.' E8tension points
Bone
(/ Maintain student information
(/$
-
8/18/2019 Seating Arrangment
20/53
6. ;n-e the data entry operator provides the requested information0 one of the sub"
flows is e7e-uted.
a. #f the data entry operator sele-ted Add a Student/0 the Add a student Sub"
flow is e7e-uted.
b. #f the data ntry operator sele-ted/ 3pdate a student/0 the update a student
sub flow is e7e-uted.
-. #f the data entry operator sele-ted 2elete a student/ 0 the delete a student
sub flow is e7e-uted
(/2/$.lternative flows
(/2/$/$ Student not found
#f in the update a student or delete a student sub"flows0 a student with the spe-ified
enrollment number does not e7ist0 and the system displays an error message. ,he data
entry operator -an then enter a different enrollment number or -an-el the operation0 at
whi-h points the use -ase ends
(/2/$/( Update cancelled
#f in the update a student sub"flow0 the data entry operator de-ides not to update the
student information0 the update is -an-elled and the basi- flow is re"started at the
beginning.
(/2/$/2 delete cancelled
#f in the delete a student sub"flow0 the data entry operator de-ides not to delete the
student information0 the delete is -an-elled and the @asi- =low is re"started at the
beginning.
6%
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
21/53
(/2 Special ,e0uirements
Bone
(/6 pre#condions
,he data entry operator must be logged onto the system before these use -ase
beginnings.
(/7 1ost#+ondition
#f the use -ase was su--essful0 the student information is added0 updated0 or deleted
from the system otherwise0 the system state is un-hanged
(/& E8tension points
Bone
2/ Maintain Sub?ect Information
2/$
-
8/18/2019 Seating Arrangment
22/53
K 3pdate a subje-t
K 2elete a subje-t.
(ii! ;n-e the 2; provides the required information0 one of the sub flows is e7e-uted.
A. #f 2; sele-ted Add a subje-t/ the Add"a subje-t sub flow is e7e-uted.
b. #f 2; sele-ted 3pdate"a subje-t/ the update"a" subje-t/ sub flow is e7e-uted
-. #f 2; sele-ted 2elete" a" subje-t/0 the 2elete"a"subje-t sub flow is e7e-uted.
2/7/$ .dd a Sub?ect
(i! ,he System requests the 2; to enter the subje-t information. ,his in-ludes$
L Bame of the subje-t
2/7/( Update a Sub?ect
(i! ,he system requests the 2; to enter subje-tFid.
(ii! 2; enters the subje-tFid. ,he system retrieves and displays the subje-t
information.
(iii! 2; ma1es the -hanges.
(iv! Re-ord is updated
2/7/2 "elete a Sub?ect
(i! ntry of subje-tFid.
(ii! After this0 system retrieves displays subje-t information.
L System prompts the 2; to -onfirm the deletion.
L 2; verifies the deletion.
L ,he system mar1s the subje-t re-ord for deletion.
66
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
23/53
2/& .lternative -low
2/&/$ Sub?ect not found
#f in any sub flows0 subje-t"id not found0 error message is displayed. ,he 2; may
enter a different id or -an-el the -ase ends here.
2/&/( Update +ancelled
#f in the update a subje-t sub"flow0 the data entry operator de-ides not to update the
subje-t information0 the update is -an-elled and the basi- flow is restarted at the
begin.
2/&/2 "elete +ancellation
#f in delete"a"subje-t sub flow0 the 2; de-ides not to delete subje-t0 the delete is
-an-elled0 and the basi- flow is restarted from the beginning.
2/A Special ,e0uirements:
Bone
2/) Use +ase#relationships
Bone
). Generate ,eport
6/$ Introduction
,his use -ase allows the 2R to generate Student reports. ;ptions are
a. Course -ode wise
68
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
24/53
b. Semester wise
C. nrollment Bumber wise
6/( .ctors
2ata Reporter
6/2 1re#+onditions
2R must logged on to the system
6/6 1ost conditions
#f use -ase is su--essful0 desired report is generated. ;therwise0 the system state is
un-hanged.
6/7
-
8/18/2019 Seating Arrangment
25/53
6/) Use case relationships
Bone
7/ Maintain User .ccounts
7/$ Introduction
,his use -ase allows the administrator to maintain user a--ount. ,his in-ludes
adding0 -hanging and deleting user a--ount information from the system.
7/( .ctors
Administrator
7/2 1re#+onditions
,he administrator must be logged on to the system before the use -ase begins.
7/6 1ost#+onditions
#f the use -ase was su--essful0 the user a--ount information is added0 updated0 or
deleted from the system. ;therwise0 the system state is un-hanged.
7/7
-
8/18/2019 Seating Arrangment
26/53
is e7e-uted
L #f the Administrator sele-ted Add a 3ser A--ount/0 the .dd a User .ccount sub
flow is e7e-uted.
L #f the Administrator sele-ted 3pdate a 3ser A--ount/0 the Update a User
.ccount sub"flow is e7e-uted.
L #f the Administrator sele-ted 2elete a 3ser A--ount/0 the "elete a User .ccount
sub"flow is e7e-uted.66
7/7/$ .dd a User .ccount
&. ,he system requests that the Administrator enters the user information. ,his
in-ludes$
(a! 3ser Bame
(b! 3ser #2"should be unique for ea-h user a--ount
(c! 5assword
(d ! Role
6. ;n-e the Administrator provides the requested information0 the user a--ount
information is added.
7/7/( Update a User .ccount
&. ,he system requests that the Administrator enters the 3ser #2.
6. ,he Administrator enters the 3ser #2. ,he system retrieves and displays the user
a--ount information.
6
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
27/53
8. ,he Administrator ma1es the desired -hanges to the user a--ount information.
,his in-ludes any of the information spe-ified in the .dd a User .ccount sub"flow.
). ;n-e the Administrator updates the ne-essary information0 the system updates the
user a--ount re-ord with the updated information.
7/7/2 "elete a User .ccount
&. ,he system requests that the Administrator enters the 3ser #2.
6. ,he Administrator enters the 3ser #2. ,he system retrieves and displays the user
a--ount information.
8. ,he system prompts the Administrator to -onfirm the deletion of the user a--ount.
). ,he Administrator -onfirms the deletion.
*. ,he system deletes the user a--ount re-ord.
7/& .lternative -lows
7/&/$ User 3ot -ound
#f in the Update a User .ccount or "elete a User .ccount sub"flows0 a user
a--ount with the spe-ified 3ser #2 does not e7ist0 the system displays an error
Message. ,he Administrator -an then enter a different 3ser #2 or -an-el the
operation0 at whi-h point the use -ase ends.
7/&/( Update +ancelled
#f in the Update a User .ccount sub"flow0 the Administrator de-ides not to update
the user a--ount information0 the update is -an-elled and the
-
8/18/2019 Seating Arrangment
28/53
started at the beginning.
7/&/2 "elete +ancelled
#f in the "elete a User .ccount sub"flow0 the Administrator de-ides not to delete the
user a--ount information0 the delete is -an-elled and the
-
8/18/2019 Seating Arrangment
29/53
5rivate Sub ,imer&F,imer (!
5rogress@ar&.>alue O 5rogress@ar&.>alue P 6*
#f 5rogress@ar&.>alue QO &%% ,hen
,imer&.nabled O =alse
frmlogin.Show
Me. isible O =alse
nd Sub
5rivate Sub mnu7itFCli-1 (!
nd
nd Sub
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
5rivate Sub mnu=ile;pen2esignFCli-1 (!
nd Sub
5rivate Sub mnu=ileCreateFCli-1 (!
=orm&.Show
nd Sub
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
69
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
30/53
5rivate Sub mnu=ile;penFCli-1 (!
db& O #nput @o7 (nter the database name!
Hr O #nput @o7 (nter the year!
db& O db& yr
tb O db& yr
db& O db& .mdb
3nload Me
?oad =orm)
=orm).Show
?oad =orm)
=orm).Show
?oad studentfrm
studentfrm.Show
?oad =orm6
=orm6.Show
nd Sub
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
;ogin -orm:
2im db As 2atabase
2im rs As Re-ordset
5rivate Sub -md-an-elFCli-1 (!
t7tuserpassword.,e7t O
t7tuserpassword.Set=o-us
-md-an-el.nabled O =alse
8%
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
31/53
nd Sub
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
5rivate Sub =ormFA-tivate (!
t7tusername.Set=o-us
nd Sub
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
5rivate Sub -mdhelpFCli-1 (!
Msg@o7 =or pro-eeding to the ne7t window please enter the valid username and
password. After that press ;N./ vb#nformation0 alid 3ser0 vb#nformation
3nload Me
mainfrm.Show
7it Sub
8&
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
32/53
nd #f
rs.MoveBe7t
end
Msg@o7 #nvalid 3ser..0 vbCriti-al
-mdo1.nabled O =alse
-md-an-el.nabled O =alse
t7tuserpassword.?o-1ed O ,rue
t7tusername.,e7t O
t7tuserpassword.,e7t O
t7tusername.Set=o-us
e7$
Msg@o7 2atabase already e7ist
nd Sub
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
5rivate Sub =ormF?oad(!
Set db O ;pen2atabase(App.5ath P Tlog.mdb!
Set rs O db.;penRe-ordset(login!
nd Sub
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
5rivate Sub ,imer&F,imer(!
?abel).Caption O ,ime
?abel*.Caption O 2ate
nd Sub
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
86
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
33/53
+reate "atabase:
2im db As 2atabase
2im wr1 As or1spa-e
2im tabldf As ,able2ef
2im fld As =ield
2im tablename As String
2im dbname As String
2im year As String
2im a As String
2im rs As Re-ordset
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
5rivate Sub -md-an-elFCli-1(!
dbnamet7t.,e7t O
dbnamet7t.Set=o-us
yeart7t.,e7t O Clear
tablenamet7t.,e7t O Clear
nd Sub
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
5rivate Sub -mde7itFCli-1(!
nd
nd Sub
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
5rivate Sub -mdo1FCli-1(!
88
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
34/53
2im S(6%! As String
2im i0 j As #nteger
;n rror 4o,o e7
dbname O dbnamet7t.,e7t
year O yeart7t.,e7t
dbname O dbname year
tablenamet7t.,e7t O dbname year
Set wr1 O [email protected](%!
Set db O Create2atabase(dbname0 db?ang4eneral0 Gpwd O !
Msg@o7 database -reated..
3nload Me
?oad mainfrm
mainfrm.Show
7it Sub
e7$
dbnamet7t.,e7t O Clear
yeart7t.,e7t O Clear
tablenamet7t.,e7t O Clear
Msg@o7 database already e7ist
3nload Me
nd Sub
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
5rivate Sub -mdo1F4ot=o-us (!
tablenamet7t.,e7t O dbname year
8)
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
35/53
nd Sub
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
5rivate Sub =orm ?oad (!
nd Sub
5rivate Sub mnu=ile7itFCli-1 (!
3nload Me
?oad mainfrm
nd Sub
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
4pen -orm:
2im i0 j As #nteger
2im s-0 -r As #nteger
2im db As 2atabase
2im rs As Re-ordset
2im -n As Bew A2;[email protected]
2im rs& As Bew A2;[email protected]
2im str As String
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
5rivate Sub Command&FCli-1 (!
Set rs& O Bew A2;[email protected]
2im a As Bew A2;[email protected]
-id O ,e7t&.,e7t
sid O ,e7t6.,e7t
LLLLLLLLLwhen inde7 is not fullLLLLLLLLLLLLLLLL
8*
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
36/53
nseat O ,e7t8.,e7t
j O nseat " &
,e7t&.nabled O =alse
,e7t6.nabled O =alse
,e7t8.nabled O =alse
a.Command,e7t O S?C, S,32B,F#2 =R;M S,32B,F#B=;
-
8/18/2019 Seating Arrangment
37/53
rs.=ields (j! O rs&.=ields (%!
rs&.MoveBe7t
rs.3pdate
rs.MoveBe7t
#f rs&.;= ,hen
Msg@o7 ,
-
8/18/2019 Seating Arrangment
38/53
nd #f
Be7t i
end
lse
Msg@o7 tb
i O %
hile Bot rs&.;= And i U nrow
=or i O % ,o nrow " &
Msg@o7 seat j i
rs.AddBew
Msg@o7 rs&.=ields(%!
rs.=ields(j! O rs&.=ields(%!
rs&.MoveBe7t
rs.3pdate
#f rs&.;= ,hen
7it Sub
nd #f
Be7t i
end
nd #f
Msg@o7 tb
Msg@o7 subdivision j
Be7t j
Set rs& O Bothing
8+
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
39/53
3nload Me
?oad =orm)
=orm).Show
nd
nd Sub
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
5rivate Sub Command6FCli-1(!
2im r As String
r O Msg@o7 (AR H;3 AB, ,; D#, ,
-
8/18/2019 Seating Arrangment
40/53
nd Sub
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
.dd able:
2im dbt As 2atabase
2im rst As Re-ordset
5rivate Sub Command&FCli-1 (!
2im S (6%! As String
2im i0 j as #nteger
;n rror 4o,o e7
tablename O ,e7t&.,e7t
n-ol O ,e7t6.,e7t
nsub-ol O ,e7t8.,e7t
nrow O ,e7t).,e7t
seat O n-ol L nsub-ol
Msg@o7 seat
tb O tablename
Set tabldf O dbt.Create,able2ef (tablename!
=or i O & ,o seat
S (i! O seatid i
Msg@o7 S (i!
ith tabldf
Msg@o7 i
.=ields. Append .Create=ield(S (i!0 db,e7t!
nd ith
)%
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
41/53
Be7t i
dbt.,able2efs.Append tabldf
Msg@o7 seat seat
Msg@o7 ,able -reated..
3nload Me
?oad =orm6
=orm6.Show
7it Sub
7$
dbnamet7t.,e7t O Clear
yeart7t.,e7t O Clear
tablenamet7t.,e7t O Clear
Msg@o7 database already e7ists
3nload Me
nd Sub
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
5rivate Sub Command6FCli-1(!
nd
nd Sub
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
5rivate Sub =ormF?oad (!
?abel*.Caption O db&
Set wr1 O [email protected] (%!
Set dbt O ;pen2atabase (db&!
)&
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
42/53
nd Sub
""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Student -orm:
2im dbt As 2atabase
2im rst As Re-ordset
5rivate Sub Command&FCli-1(!
2im S(6%! As String
2im i0 j As #nteger
;n rror 4o,o e7
tablename O ,e7t&.,e7t
n-ol O ,e7t6.,e7t
nsub-ol O ,e7t8.,e7t
nrow O ,e7t).,e7t
seat O n-ol L nsub-ol
Msg@o7 seat
tb O tablename
Set tabldf O dbt.Create,able2ef(tablename!
=or i O & ,o seat
S(i! O seatid i
Msg@o7 S(i!
ith tabldf
Msg@o7 i
.=ields.Append .Create=ield(S(i!0 db,e7t!
nd ith
)6
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
43/53
-
8/18/2019 Seating Arrangment
44/53
"""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""""
Snapshots
$/Splash form:
))
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
45/53
,he first page of appli-ation is Splash form. Splash form whi-h shows the appli-ation is
loading their pro-essing file and going to be start.
(/;ogin from:
)*
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
46/53
?ogin form is used to a--ept the user information li1e
username and their respe-tive password. #t allows only authoried user who have the
permission to a--ess this software.
2/mainform:
)
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
47/53
Main form whi-h is the parent form of this appli-ation
helps us to -reate database for seating arrangement and room details where seat are
allo-ated.
6/+reate datablase:
)'
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
48/53
Create database form where user -an ma1e a database for seating arrangement.
And all the information related to seating plan li1e room detail and student allo-ated
to that room are store in this database.
7/ .ddBroomdetail from:
)+
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
49/53
&/.dd ,ecord form
)9
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
50/53
A/ StudentBrecord form:
*%
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
51/53
)/ +ourseBdetail form:
*&
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
52/53
,eferences:
• vangelos 5etroutsos0 Mastering >isual @asi- /0 @5@ 5ubli-ation.
• Spe-ial edition using visual basi- by @rian siler and Jeff Spotts.
• Steven isual @asi- 5rogramming0 @la-1 @oo1/0 ,he
2reamte-h5ress0reprint W 6%%).
• #van @ayross0 SV?0 5?ESV?/0 @5@ 5ubli-ations0 8rd dition" 6%%*
*6
www.final-yearprojects.co.cc | www.troubleshoot4free.com/fyp/
-
8/18/2019 Seating Arrangment
53/53
• http$EEwww.daniweb.-omEforumsEthread*%'9.htmlX
• http$EEwww.freevb-ode.-omEShowCode.aspY#2O)+
• http$EEwww.softloo1up.-omEtutorialEdataFvbE-h&).asp
• http$EEwww.bigresour-e.-omE>@">@"Adding"2ata"to"A--ess",able"
=ield"?