Professional Documents
Culture Documents
Atm System: Problem Analysis and Project Planning
Atm System: Problem Analysis and Project Planning
ATM SYSTEM
1.2 Objectives:
The objective of this software is similar to ATM software installed in ATM center. It should first validate the pin in the ATM card. Then the type of transaction is enquired and the information from the customer is validated. If it is a withdrawal the amount is asked. After the money is delivered the transaction just made is updated in the database where the customers information is stored.
1.3 Scope:
The scope of the project is to design an ATM system that will help in completely automatic banking this software is going to be designed for withdrawal and deposit of money and register the transaction in the database where the customers information is stored.
T.Kujani/CSE
The ATM should provide easy access to the data for the customer. It should also have a highly secure interface so that one can take money one behalf of others. So the security is one of the main aspects in ATM.
2. Problem Statement( USE Case Analysis) 2.1 Identified Use cases a) Login verify:
Here the user enters the card and password to enter into the main form. If the password is correct the system will display the next form.
b) Withdraw:
Allows to withdraw the amount required by user.
c) Deposit:
Allows the user to Deposit the amount
d) Mini Statement:
Give a mini statement regarding all the trnsaction details.
e) ATM_status:
It gives the status of the transaction occurring in the system.
b) SystemAdmin:
System administrator plays an important role. He is the system designer. All the updating works is done by him only like adding, deleting customer accounts.
T.Kujani/CSE
T.Kujani/CSE
3.1.3 Pre conditions: None 3.1.4 Post conditions: User will perform the corresponding transactions.
3.4 Mini_stmt:
T.Kujani/CSE
T.Kujani/CSE
4.Class Diagram
5. ACTIVITY DIAGRAM
T.Kujani/CSE
T.Kujani/CSE
DEPOSIT
WITHDRAW
T.Kujani/CSE
MINISTATEMENT
MACHINE STATUS
8. COLLABORATION DIAGRAM
T.Kujani/CSE
LOGIN
DEPOSIT
T.Kujani/CSE
MINI STATEMENT
WITHDRAW
T.Kujani/CSE
MACHINE STATUS
9. COMPONENT DIAGRAM
T.Kujani/CSE
VB CODE
Database Information Table: user table fields 1. User_name 2. password 3. Acct_no Table: trans_table fields 1. Acc_no 2. Trans_date 3. Trans_type 4. Trans_amount 5. Trans_balance Table: acc_table fields 1. Acct_no 2. Balance
Form1: Private Sub Login_Click() Dim log1 As atm_mc Set log1 = New atm_mc MsgBox "hi" Call log1.Login_verify(Trim(Text1.Text), Trim(Text2.Text)) End Sub
T.Kujani/CSE
Form1:
Form2: Private Sub Command2_Click() Dim act As Class1 Dim tn As Class3 Set act = New Class1 Set tn = New Class3 If Option1.Value = True Then MsgBox " withdraw" Call act.withdraw(Trim(Text1.Text)) Else If Option2.Value = True Then MsgBox "deposit" Call act.deposit(Trim(Text1.Text)) Else If Option3.Value = True Then MsgBox "mini" Call tn.ministatement(Form1.Label1.Caption) End If End If End If End Sub
T.Kujani/CSE
Form2:
Account class: Option Explicit '##ModelId=4D7B08470290 Private Acc_no As Integer '##ModelId=4D7B08560213 Private Balance As Integer '##ModelId=4D7B08AA0109 Public NewProperty As Transaction '##ModelId=4D7B0864034B Public Sub withdraw(amount As Integer) Set db = OpenDatabase("D:\OOADLAB\atmdb.mdb") Set rs = db.OpenRecordset("act_table") rs.MoveFirst Do While Not rs.EOF If rs(0).Value = Trim(Form1.Label1.Caption) Then If rs(1).Value > amount Then rs.EditMode rs(0).Value = Trim(Form1.Label1.Caption) rs(1).Value = rs(1).Value - amount rs.update MsgBox rs(1).Value Call NewProperty2.update_transaction(rs(0).Value, "wd", amount, rs(1).Value)
T.Kujani/CSE
Call display_availability(1) Exit Do Else Call display_availability(0) End If End If rs.MoveNext Loop rs.Close db.Close End Sub
'##ModelId=4D7B0871036B Public Sub deposit() Set db = OpenDatabase("D:\OOADLAB\atm.mdb") Set rs = db.OpenRecordset("acc_table") rs.MoveFirst Do While Not rs.EOF If rs(0).Value = Trim(Form1.Label1.Caption) Then rs.EditMode rs(1).Value = rs(1).Value + amount rs.update Call NewProperty2.update_transaction(rs(0).Value, "deposit", amount, rs(1).Value) Exit Do End If rs.MoveNext Loop rs.Close db.Close End Sub '##ModelId=4D7B087A0138 Public Sub display_availability(flag As Integer) If flag = 1 Then MsgBox "success" Else MsgBox "not available" End If End Sub
T.Kujani/CSE
'##ModelId=4D7B08560213 Private Balance As Integer '##ModelId=4D7B08AA0109 Public NewProperty As Transaction '##ModelId=4D7B0864034B Public Sub withdraw(amount As Integer) Set db = OpenDatabase("D:\OOADLAB\atmdb.mdb") Set rs = db.OpenRecordset("act_table") rs.MoveFirst Do While Not rs.EOF If rs(0).Value = Trim(Form1.Label1.Caption) Then If rs(1).Value > amount Then rs.EditMode rs(0).Value = Trim(Form1.Label1.Caption) rs(1).Value = rs(1).Value - amount rs.update MsgBox rs(1).Value Call NewProperty2.update_transaction(rs(0).Value, "wd", amount, rs(1).Value) Call display_availability(1) Exit Do Else Call display_availability(0) End If End If rs.MoveNext Loop rs.Close db.Close End Sub
'##ModelId=4D7B0871036B Public Sub deposit() Set db = OpenDatabase("D:\OOADLAB\atm.mdb") Set rs = db.OpenRecordset("acc_table") rs.MoveFirst Do While Not rs.EOF If rs(0).Value = Trim(Form1.Label1.Caption) Then rs.EditMode rs(1).Value = rs(1).Value + amount rs.update Call NewProperty2.update_transaction(rs(0).Value, "deposit", amount, rs(1).Value) Exit Do End If
T.Kujani/CSE
rs.MoveNext Loop rs.Close db.Close End Sub '##ModelId=4D7B087A0138 Public Sub display_availability(flag As Integer) If flag = 1 Then MsgBox "success" Else MsgBox "not available" End If End Sub
Transaction Class: Option Explicit '##ModelId=4D7B08470290 Private Acc_no As Integer '##ModelId=4D7B08560213 Private Balance As Integer '##ModelId=4D7B08AA0109 Public NewProperty As Transaction '##ModelId=4D7B0864034B Public Sub withdraw(amount As Integer) Set db = OpenDatabase("D:\OOADLAB\atmdb.mdb") Set rs = db.OpenRecordset("act_table") rs.MoveFirst Do While Not rs.EOF If rs(0).Value = Trim(Form1.Label1.Caption) Then If rs(1).Value > amount Then rs.EditMode rs(0).Value = Trim(Form1.Label1.Caption) rs(1).Value = rs(1).Value - amount rs.update MsgBox rs(1).Value Call NewProperty2.update_transaction(rs(0).Value, "wd", amount, rs(1).Value) Call display_availability(1) Exit Do Else Call display_availability(0) End If End If
T.Kujani/CSE
'##ModelId=4D7B0871036B Public Sub deposit() Set db = OpenDatabase("D:\OOADLAB\atm.mdb") Set rs = db.OpenRecordset("acc_table") rs.MoveFirst Do While Not rs.EOF If rs(0).Value = Trim(Form1.Label1.Caption) Then rs.EditMode rs(1).Value = rs(1).Value + amount rs.update Call NewProperty2.update_transaction(rs(0).Value, "deposit", amount, rs(1).Value) Exit Do End If rs.MoveNext Loop rs.Close db.Close End Sub '##ModelId=4D7B087A0138 Public Sub display_availability(flag As Integer) If flag = 1 Then MsgBox "success" Else MsgBox "not available" End If End Sub
USER MODULE Option Explicit '##ModelId=4D7B07010138 Private User_name As String '##ModelId=4D7B0714009C Private Password As String
selva363@gmail.com<kvinoth1991@gmail.com>jselvaraj.js@gmail.com
T.Kujani/CSE
'##ModelId=4D7B07210128 Private DOB As Date '##ModelId=4D7B072E032C Private ACCNO As Integer '##ModelId=4D7B08A2001F Public NewProperty As ATM '##ModelId=4D7B08A60000 Public NewProperty2 As Account '##ModelId=4D7B073C030D Public Sub read() End Sub '##ModelId=4D7B0747002E Public Sub write1() End Sub
RESULT: Thus the mini project for ATM has been successfully implemented using Rational Rose and Transformed with Visual Basic Code.
T.Kujani/CSE
Date: STOCK MAINTENANCE Exp:2 Aim: To implement Stock project using Rational Rose and Visual Basic.
1.4Objectives
The purpose of the document is to define the requirements of the stock maintenance system. This supplementary specification lists the requirements that are not readily captured in the use cases of the use case model. The supplementary specification & the use case model together capture a complete set of requirement on the system.
1.3 Scope:
This supplementary specification applies to the stock maintenance system. This specification defines the non-functional requirements of the system, such as reliability, usability, performance and supportability as well as functional requirements that are common across a number of use cases.
T.Kujani/CSE
b).Maintain Books:
It is a transaction performed by the employee when he wishes to add, change and/or delete books information from the system.
c).View Stock:
It is a transaction performed by the manager when he wishes to view the books available in the stock maintenance system.
d).View report:
It is a transaction performed by the administrator when he wishes to view the report generated after all the stock update.
b).Administrator:
The administrator maintains all the database and reports. He is responsible for changing the information of database and takes care of the payment and administrative reports.
T.Kujani/CSE
Login
insert
delete
Admin search
totalbooks
Report
T.Kujani/CSE
3.1.4 Post-condition:
The given details must be matched with database details to log on to the system.
3.2 Insert:
3.2.1 Brief description: Performed by admin to insert the books. 3.2.2 Flow of Events: 3.2.2.1 Basic flow: 1. Enter the name and password. 2. Verify the details in database. 3. Insert the book details in the database. 3.2.2.2 Alternative flow: None 3.2.3 Pre conditions: The admin must have log on to the system.
3.2.4 Post-condition:
Store it in database
3.3 Search:
3.3.1 Brief description: Initiated by user to search the details. 3. 3.2 Flow of Events: 3.3.2.1 Basic flow: 1. Enter the name of the book. 2. Enter the name of the author. 3. Search the book in database. 3.3.2.2 Alternative flow: 1. Enter the name of the book. 2. Search the book the details in database. 3.3.3 Pre conditions: User must be logged on to the system. 3.3.4 Post-condition: Data retrieved from database.
3.4 Delete:
3.4.1 Brief description: Initiated by admin to delete the details. 3. 4.2 Flow of Events: 3.4.2.1 Basic flow: 1. Enter the name of the book. 2. Enter the name of the author. 3. Delete the book in database.
T.Kujani/CSE
3.4.2.2 Alternative flow: 1. Enter the name of the book. 2. Delete the book the details in database 3.4.3 Pre conditions: Admin must be logged on to the system.
3.4.4 Post-condition:
Corresponding book must be deleted from the database
4.Class Diagram:
5. Sequence Diagram:
Login:
: User : Admin
login_verify( )
confirmation( )
T.Kujani/CSE
Insert:
: Admin
Database
Insert
Display
Delete:
: Admin
Database
Delete
Display
T.Kujani/CSE
Search:
User : User
: Admin
Database
login_verify( )
confirmation( )
Search
Display
6.Collaburation Diagram:
Login:
2: confirmation( )
1: login_verify( ) : Admin
: User
T.Kujani/CSE
Insert:
4: Insert 1: Enter the book name 2: Enter the author name 3: Enter price of the book Database 5: Display : Admin
Search:
: Admin
Delete:
2: Delete
T.Kujani/CSE
login
getting pwd
rejecting error
validating
8.Activity Diagram:
available Login
Admin
User
Logout
Logout
T.Kujani/CSE
9.Component Diagram:
Books
search_book customer
access_over
store_in
Database
10.Deployment diagram:
store_details
book_center_ server
T.Kujani/CSE
Form:1
Option Explicit '##ModelId=4D77F2CB00EA Private name As Str '##ModelId=4D77F2D1000F Private pwd As Str '##ModelId=4D77F34302BF Public NewProperty As Admin '##ModelId=4D77F34C0261 Public NewProperty2 As Collection '##ModelId=4D77F2D90186 Public Sub login() Dim log1 As Admin Set log1 = New Admin MsgBox "welcome" Call log1.Login_verify(Trim(Text1.Text), Trim(Text2.Text)) End Sub
T.Kujani/CSE
Form:2
Private Sub Command1_Click() Set bookdet = New Bookdetails Call bookdet.insert End Sub Private Sub Command2_Click() Set bookdet = New Bookdetails Call bookdet.delete End Sub Private Sub Command3_Click() Set bookdet = New Bookdetails Call bookdet.search End Sub Private Sub Command5_Click() DataReport1.Show vbModal End Sub
Private Sub Command6_Click() Set bookdet = New Bookdetails Call bookdet.total End Sub
T.Kujani/CSE
T.Kujani/CSE
Book details:
Option Explicit '##ModelId=4D77F2E202DE Private b_name As Str '##ModelId=4D77F2EC038A Private author As Str '##ModelId=4D77F2F30119 Private price As Integer '##ModelId=4D77F3040251 Dim count As Integer Dim db As DAO.Database Dim rs As DAO.Recordset Public Sub insert() Set db = DAO.OpenDatabase("D:\thulasi\stockdb.mdb") Set rs = db.OpenRecordset("Book details") rs.AddNew rs(0).Value = Form2.Text1.Text rs(1).Value = Form2.Text2.Text rs(2).Value = Int(Form2.Text3.Text) rs.Update MsgBox "Values Inserted" End Sub
'##ModelId=4D77F309036B Public Sub delete() Set db = DAO.OpenDatabase("D:\thulasi\stockdb.mdb") Set rs = db.OpenRecordset("Book details") Do While Not rs.EOF rs.Edit If Form2.Text1.Text = rs(0).Value Then rs(0).Value = Form2.Text1.Text rs(1).Value = Form2.Text2.Text rs(2).Value = Int(Form2.Text3.Text) rs.delete MsgBox "Values Deleted" Exit Do
T.Kujani/CSE
End If rs.MoveNext Loop End Sub '##ModelId=4D77F30E01C5 Public Sub search() Set db = DAO.OpenDatabase("D:\thulasi\stockdb.mdb") Set rs = db.OpenRecordset("Book details") rs.MoveFirst Do While Not rs.EOF If Form2.Text1.Text = rs(0).Value Then count = count + 1 Exit Do End If rs.MoveNext Loop Form2.Text4.Text = count End Sub '##ModelId=4D77F31100AB Public Sub totalbooks() Set db = DAO.OpenDatabase("D:\thulasi\stockdb.mdb") Set rs = db.OpenRecordset("Book details") rs.MoveFirst count = 0 While Not rs.EOF count = count + 1 rs.MoveNext Wend MsgBox "Total books Available" & count End Sub
T.Kujani/CSE
Report Generation:
RESULT: Thus the mini project for stock management has been successfully implemented using Rational Rose and Transformed with Visual Basic Code.
T.Kujani/CSE Date: Ex.No: 3 Aim: To implement E-Book Management system using Rational Rose and Visual Basic.
E-BOOK MANAGEMENT
1.2 OBJECTIVE:
The purpose of this document is to define the requirements of the e-book management system. This system reduces the manual work to great extent. The e-book management is carried out by the system in an efficient manner.
1.3 SCOPE:
The scope of the project is to design an e-book management system that will help in completely automatic booking of the required books. This software is going to be designed for the searching and purchasing of the books online and every customer can maintain a membership in this system who can have more special features than the customer who is not a member.
T.Kujani/CSE
b) Sign Out:
This use case describes how a user logs out from the e-book management system.
c) Add Book:
This use case allows the user to make a record of the available books.
e) Search Books:
This use case allows the user to search the details of the particular book that they require.
f) Purchase:
This use case describes how the user purchases the book and it updates the details of purchased book in the database.
g) Comments:
This use case allows the users and the members to leave the comments about the e-book management system.
b) Members:
The person who can do all the transactions using the system like search books, get book details, purchase etc.
T.Kujani/CSE
3.1.1.3 Pre conditions: None 3.1.1.4 Post conditions: User will perform the corresponding transactions.
T.Kujani/CSE
T.Kujani/CSE
T.Kujani/CSE
If the customers enter any wrong information then the system displays an error message.
4. CLASS DIAGRAM:
SIGN UP:
T.Kujani/CSE
ADD BOOK:
ADD CUSTOMER:
ADD COMMENTS:
T.Kujani/CSE
PURCHASE:
SEARCH BOOK:
T.Kujani/CSE
SIGNUP:
ADD BOOK:
ADD CUSTOMER:
T.Kujani/CSE
SEARCH BOOK:
T.Kujani/CSE
PURCHASE:
8)ADD COMMENTS:
T.Kujani/CSE
8. ACTIVITY DIAGRAM:
9.COMPONENT DIAGRAM:
T.Kujani/CSE
VB CODING:
T.Kujani/CSE
DATA BASE: 1. customer Table uname string password string cname string DOB Date Ph number Number Mem id Number Email string Security- string Answer string Balance Number 2. book Table bname string author string publication string ISBN Number Edition string Price Number
3. transaction Table uname string mem id Number book name string Author name - string
FORM1 (Login):
Private Sub Command1_Click() //SIGN IN Dim mem As member Dim cus As customer Set mem = New member Set cus = New customer Call mem.login_verify(Trim(Text1.Text), Trim(Text2.Text)) End Sub Private Sub Command2_Click() Form1.Hide Form2.Show End Sub //SIGN UP
T.Kujani/CSE
Private Sub Command3_Click() Form1.Hide Call pwdform End Sub Public Sub pwdform() Form4.Show Form4.Command1.Visible = False Form4.Text3.Visible = False Form4.Label4.Visible = False End Sub
//PASSWORD
FORM2 (Sign Up): Private Sub Command1_Click() //Join Dim mem As member Dim cus As customer Set mem = New member Set cus = New customer Call cus.addcustomer(Text2.Text, Text3.Text, Text1.Text, Text8.Text, Text6.Text, Text4.Text, Combo4.Text, Text7.Text) End Sub Private Sub Command2_Click() End End Sub //Cancel
T.Kujani/CSE
Private Sub Command3_Click() Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text6.Text = "" Text7.Text = "" Text8.Text = "" Combo4.Text = "" End Sub Private Sub Command4_Click() Form2.Hide Form1.Show Form1.Text1.Text = "" Form1.Text2.Text = "" End Sub Public Sub clearit() Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text6.Text = "" Text7.Text = "" Text8.Text = "" Combo4.Text = "" End Sub
//Clear
//Home
T.Kujani/CSE
FORM3 (Main page): Private Sub Command1_Click() //Search Dim mem As member Dim cus As customer Set mem = New member Set cus = New customer Call mem.searchbook(Text1.Text, Text2.Text) End Sub Private Sub Command2_Click() //Get Details Set db = OpenDatabase("C:\Documents and Settings\PRABA\Desktop\ebook\ebook.mdb") Set rs = db.OpenRecordset("book") rs.MoveFirst Do While Not rs.EOF If (Text1.Text = rs(0).Value) Then If (Text2.Text = rs(1).Value) Then Text3.Text = "" Text3.Text = "Name=" & rs(0).Value & vbCrLf & " Author=" & rs(1).Value & vbCrLf & " Publication=" & rs(2).Value & vbCrLf & " ISBN=" & rs(3).Value & vbCrLf & " Edition=" & rs(4).Value Exit Do End If End If rs.MoveNext Loop End Sub Private Sub Command4_Click() Form3.Hide Form1.Show Form1.Text1.Text = "" Form1.Text2.Text = "" End Sub Private Sub Command3_Click() Text1.Text = "" Text2.Text = "" Text3.Text = "" End Sub Private Sub Command5_Click() Form3.Hide Form5.Show End Sub //Home
//Clear
//Contact
T.Kujani/CSE
Private Sub Command6_Click(Index As Integer) Dim add1 As member Set add1 = New member Call add1.addbook(Text1.Text, Text2.Text) End Sub
//Add
FORM4 (Password):
Dim db As DAO.Database Dim rs As DAO.Recordset Private Sub Command1_Click() //Save Set db = OpenDatabase("C:\Documents and Settings\PRABA\Desktop\ebook\ebook.mdb") Set rs = db.OpenRecordset("customer") rs.MoveFirst Do While Not rs.EOF If (Text1.Text = rs(0).Value) Then If (Text2.Text = rs(5).Value) Then rs.Edit rs(1).Value = Text3.Text rs.Update
T.Kujani/CSE
MsgBox "Your password is updated" Exit Do End If End If rs.MoveNext Loop Form4.Hide Form1.Show End Sub Private Sub Command2_Click() Form4.Hide Form1.Show Form1.Text1.Text = "" Form1.Text2.Text = "" End Sub
//Home
Private Sub Command3_Click() //Check mem ID Set db = OpenDatabase("C:\Documents and Settings\PRABA\Desktop\ebook\ebook.mdb") Set rs = db.OpenRecordset("customer") rs.MoveFirst Do While Not rs.EOF If (Text1.Text = rs(0).Value) Then If (Text2.Text = rs(5).Value) Then Form4.Command1.Visible = True Form4.Label4.Visible = True Form4.Text3.Visible = True Exit Do End If End If rs.MoveNext Loop End Sub
T.Kujani/CSE
FORM5 (Contact):
Private Sub Command1_Click() MsgBox "Your Message has been Sent" Call clearit End Sub Private Sub Command2_Click() Form5.Hide Form3.Show End Sub Private Sub Command3_Click() Form5.Hide Form1.Show Form1.Text1.Text = "" Form1.Text2.Text = "" End Sub Private Sub Command4_Click() End End Sub Public Sub clearit() Text2.Text = "" Text3.Text = "" End Sub
//Send
//Cancel
//Home
//Logout
T.Kujani/CSE
FORM6 (Purchase):
Dim db As DAO.Database Dim rs As DAO.Recordset Private Sub Command1_Click(Index As Integer) Dim tr As transaction Set tr = New transaction Call tr.purchase(Text3.Text, Text4.Text) End Sub //Purchase
Private Sub Command2_Click(Index As Integer) //Logout End End Sub Private Sub Command3_Click(Index As Integer) //Home Form6.Hide Form1.Show End Sub Private Sub Text1_Change() //MemId Text box Set db = OpenDatabase("C:\Documents and Settings\PRABA\Desktop\ebook\ebook.mdb") Set rs = db.OpenRecordset("customer") rs.MoveFirst Do While Not rs.EOF If (Form1.Text1.Text = rs(0).Value) Then Form6.Text1.Text = rs(5).Value Exit Do End If rs.MoveNext Loop End Sub Private Sub Text2_Change() //Balance Text Box Set db = OpenDatabase("C:\Documents and Settings\PRABA\Desktop\ebook\ebook.mdb") Set rs = db.OpenRecordset("customer") rs.MoveFirst Do While Not rs.EOF If (Form1.Text1.Text = rs(0).Value) Then Form6.Text2.Text = rs(9).Value Exit Do End If rs.MoveNext Loop
T.Kujani/CSE
End Sub Private Sub Text3_Change() //Price Text Box Set db = OpenDatabase("C:\Documents and Settings\PRABA\Desktop\ebook\ebook.mdb") Set rs = db.OpenRecordset("book") rs.MoveFirst Do While Not rs.EOF If (Form3.Text1.Text = rs(0).Value) Then Form6.Text3.Text = rs(5).Value Exit Do End If rs.MoveNext Loop End Sub
CLASS CODING
CUSTOMER CLASS:
Option Explicit Dim db As DAO.Database Dim rs As DAO.Recordset '##ModelId=4D77B7100132 Private cname As String '##ModelId=4D77B7140084 Private uname As String '##ModelId=4D77B71801CD Private pwd As String
T.Kujani/CSE
'##ModelId=4D77B71B01F0 Private ddate As Date '##ModelId=4D77B7C003DE Private phno As Integer '##ModelId=4D77B7E10004 Private mail As String '##ModelId=4D77B7E401BD Private security As String '##ModelId=4D77B7EA004F Private ans As String '##ModelId=3C30FB8E000F Public Sub addcustomer(uname As String, pwd As String, cname As String, ddate As Date, phno As Integer, mail As String, security As String, ans As String) Set db = OpenDatabase("C:\Documents and Settings\PRABA\Desktop\ebook\ebook.mdb") Set rs = db.OpenRecordset("customer") rs.AddNew rs(0).Value = uname rs(1).Value = pwd rs(2).Value = cname rs(3).Value = ddate rs(4).Value = phno rs(5).Value = phno - 1023 rs(6).Value = mail rs(7).Value = security rs(8).Value = ans rs.Update MsgBox "Your Details has been Added" MsgBox rs(5).Value Call clearit rs.Close db.Close End Sub
MEMBER CLASS:
Option Explicit Dim db As DAO.Database Dim rs As DAO.Recordset
T.Kujani/CSE
Dim rs1 As DAO.Recordset Dim a As Integer '##ModelId=4D77B8060219 Private uname As String '##ModelId=4D77B80B0017 Private pwd As String '##ModelId=4D77B81B02EC Private bname As String '##ModelId=4D77B8200114 Private author As String '##ModelId=4D77B84B002D Private aname As String '##ModelId=4D77B85001C4 Private price As Integer '##ModelId=4D77B85302D2 Private total As Integer
'##ModelId=3C30FBCD00CB Public Sub login_verify(uname As String, pwd As String) Set db = OpenDatabase("C:\Documents and Settings\PRABA\Desktop\ebook\ebook.mdb") Set rs = db.OpenRecordset("customer") rs.MoveFirst Do While Not rs.EOF If rs(0).Value = uname Then If rs(1).Value = pwd Then MsgBox ("welcome " + rs(2).Value) Form1.Hide Form3.Show Exit Do End If End If rs.MoveNext Loop End Sub
'##ModelId=3C30FBD500AB
T.Kujani/CSE
Public Sub searchbook(bname As String, author As String) Set db = OpenDatabase("C:\Documents and Settings\PRABA\Desktop\ebook\ebook.mdb") Set rs = db.OpenRecordset("book") rs.MoveFirst Do While Not rs.EOF If (rs(0).Value = bname) Then If (rs(1).Value = author) Then MsgBox (rs(0).Value + " Book is available") Exit Do End If End If rs.MoveNext Loop End Sub '##ModelId=4D77B89402FB Public Sub addbook(bname As String, aname As String) Set db = OpenDatabase("C:\Documents and Settings\PRABA\Desktop\ebook\ebook.mdb") Set rs = db.OpenRecordset("transaction") Set rs1 = db.OpenRecordset("customer") rs1.MoveFirst Do While Not rs1.EOF If (rs1(0).Value = Form1.Text1.Text) Then a = rs1(5).Value End If rs1.MoveNext Loop rs.AddNew rs(0).Value = Form1.Text1.Text rs(1).Value = a rs(2).Value = bname rs(3).Value = aname rs.Update MsgBox "Book is added to your Account" End Sub
TRANSACTION CLASS:
Option Explicit Dim db As DAO.Database Dim rs As DAO.Recordset
T.Kujani/CSE
'##ModelId=3C30B87403D8 Private price As Integer '##ModelId=3C30B88703B9 Private total As Integer '##ModelId=4D77B8960247 Public Sub purchase(price As Integer, total As Integer) Set db = OpenDatabase("C:\Documents and Settings\PRABA\Desktop\ebook\ebook.mdb") Set rs = db.OpenRecordset("customer") rs.MoveFirst Do While Not rs.EOF If rs(0).Value = Form1.Text1.Text Then rs.Edit rs(9).Value = rs(9).Value - (price * total) rs.Update Exit Do End If rs.MoveNext Loop MsgBox "You have purchased the book" Form6.Hide Form3.Show End Sub
RESULT: Thus the mini project for e_booking management has been successfully implemented using Rational Rose and Transformed with Visual Basic Code.
E-TICKETING
Aim: To implement E-Ticketing project using Rational Rose and Visual Basic.
1.2 Objectives
The purpose of this document is to know about the availability of seats. According to the requirements spectators reserve his/her tickets.
1.3 Scope
This document for online ticket reservation for theater makes the work easy for the Spectators to book the tickets. This time consuming process is made easy by booking tickets online.,
1.4Problem Statement
Computers play an integral part in day to day life. It makes work faster and easy. Every job is computerized now. So is the ticket reservation, we can book our tickets online. During the reservation of tickets the spectators has to select the theatre, date, show, no of seats ,etc.,The reservation counter keeps track of passengers information. System wil have all the details about the theatres and the facilities provided by them. A database is maintained by the database administrator. Spectators can select theatres according to their convenience, they select their desired shows in the desired date and pay the amount by the credit card.
T.Kujani/CSE
T.Kujani/CSE
3.1.4 Post conditions: If the use case is successful the actor logs into the system.
3.3.2.2 Alternative flow: 1. If there is no seats available (or) 2. If the balance is less, then the error message is displayed. 3.3.3 Pre conditions: None 3.3.4 Post conditions: If the use case is successful the actor books the ticket in the desired theatre.
T.Kujani/CSE
2. The spectators will book the desired tickets. 3.4.2.2 Alternative Flow: 1. If the required seats are not available then show the error message. 3.4.3 Pre Condition: There are enough no of seats in the theatre, 3.4.4 Post Condition If the use case is successful then the tickets are booked correctly 4.Class Diagram
T.Kujani/CSE
Account Details:
Book Ticket:
T.Kujani/CSE
Display Details:
Account Details:
T.Kujani/CSE
Book Ticket:
Display Details:
View Details:
T.Kujani/CSE
7.Activity Diagram
T.Kujani/CSE
9.Component Diagram
10.Deployment Diagram
T.Kujani/CSE
VB CODING: DATABASE:
Table: USERDETAIL FIELDS
1. Username 2. password 3. Acctno 4. Balance 5. Credit no Table: DAY1, DAY2 &DAY3 FIELDS
1. Theatername 2. Ticket_rate 3. Total seats 4. Morning 5. Noon 6. Evening 7. Night FORM 1 Login: Private Sub Command1_Click() Dim log1 As user
T.Kujani/CSE
FORM 2
T.Kujani/CSE
FORM 3 Display Details Dim log2 As website Set log2 = New website If Option1.Value = True Then Call log2.display_det1(Combo1.Text, Combo2.Text, Option1.Value) End If If Option2.Value = True Then Call log2.display_det2(Combo1.Text, Combo2.Text, Option2.Value) End If If Option3.Value = True Then Call log2.display_det3(Combo1.Text, Combo2.Text, Option3.Value) End If If Option4.Value = True Then Call log2.display_det4(Combo1.Text, Combo2.Text, Option4.Value) End If End Sub Book Private Sub Command1_Click() Dim log1 As user Set log1 = New user Call log1.booktic(Combo1.Text, Combo2.Text, Trim(Text2.Text)) End Sub
T.Kujani/CSE
FORM 4
Account Private Sub Command3_Click() Form4.Hide Form2.show Set db = OpenDatabase("D:\eticket\userdetails.mdb") Set rs = db.OpenRecordset("userdetails") Form2.Text1.Text = rs(1).Value Form2.Text3.Text = rs(2).Value Form2.Text2.Text = rs(4).Value End Sub
T.Kujani/CSE
T.Kujani/CSE
Exit Do End If End If rs.MoveNext Loop If flag = True Then MsgBox "Hi" MsgBox rs(1).Value Form1.Hide Form2.show Form2.Text1.Text = rs(1).Value Form2.Text3.Text = rs(2).Value Form2.Text2.Text = rs(4).Value Else MsgBox "Invalid Login" End End If End Sub ##ModelId=4D6FD4A50203 Public Sub booktic(theatername As String, dat As String, seats As Integer) If dat = "day1" Then Set db = DAO.OpenDatabase("D:\eticket\day1.mdb") Set rs = db.OpenRecordset("day1") End If If dat = "day2" Then Set db = DAO.OpenDatabase("D:\eticket\day2.mdb") Set rs = db.OpenRecordset("day2") End If If dat = "day3" Then Set db = DAO.OpenDatabase("D:\eticket\day3.mdb") Set rs = db.OpenRecordset("day3") End If rs.MoveFirst Do While Not rs.EOF If rs(0).Value = theatername Then If Form3.Option1.Value = True Then If rs(3).Value > seats Then rs.Edit rs(3).Value = rs(3).Value - seats rs.Update rs.Close db.Close Call credit Call details(Trim(Form3.Combo1.Text), Trim(Form3.Combo2.Text), Trim(Form3.Option1. Caption), Trim(Form3.Text2.Text)) Else: MsgBox "SORRY!!!Required seats not available!!!"
T.Kujani/CSE
End If End If If Form3.Option2.Value = True Then If rs(4).Value > seats Then rs.Edit rs(4).Value = rs(4).Value - seats rs.Update rs.Close db.Close Call credit Call details(Trim(Form3.Combo1.Text), Trim(Form3.Combo2.Text), Trim(Form3.Option2. Caption), Trim(Form3.Text2.Text)) Else: MsgBox "SORRY!!!Required seats not available" End If End If If Form3.Option3.Value = True Then If rs(5).Value > seats Then rs.Edit rs(5).Value = rs(5).Value - seats rs.Update rs.Close db.Close Call credit Call details(Trim(Form3.Combo1.Text), Trim(Form3.Combo2.Text), Trim(Form3.Option3. Caption), Trim(Form3.Text2.Text)) Else: MsgBox "SORRY!!!Required seats not available!!!" End If End If If Form3.Option4 = True Then If rs(6).Value > seats Then rs.Edit rs(6).Value = rs(6).Value - seats rs.Update rs.Close db.Close Call credit Call details(Trim(Form3.Combo1.Text), Trim(Form3.Combo2.Text), Trim(Form3.Option4. Caption), Trim(Form3.Text2.Text)) Else: MsgBox "SORRY!!!Required seats not available!!!" End If End If Exit Do End If rs.MoveNext Loop End Sub
T.Kujani/CSE
'##ModelId=4D6FC6FF01A5 Public Sub credit() Set db = OpenDatabase("D:\eticket\userdetails.mdb") Set rs = db.OpenRecordset("userdetails") rs.MoveFirst Do While Not rs.EOF If rs(0).Value = Form1.Text1.Text Then rs.Edit rs(4).Value = rs(4).Value - (Form3.Text2.Text * 100) rs.Update rs.Close db.Close MsgBox "CONGRATS!!Your tickets are booked!!!" Form3.Hide Form4.show Exit Do End If rs.MoveNext Loop End Sub
'##ModelId=4D6FC6FF01A5 Public Sub details(theater As String, day As String, show As String, seats As String) Set db = OpenDatabase("D:\eticket\userdetails.mdb") Set rs = db.OpenRecordset("userdetails") rs.MoveFirst Do While Not rs.EOF If rs(1).Value = Form2.Text1.Text Then Form4.Text1.Text = "Name :" & rs(1).Value & vbCrLf & " Theater:" & theater & vbCrLf & " Day:" & day & vbCrLf & " Show:" & show & vbCrLf & " No of seats:" & seats Exit Do End If rs.MoveNext Loop End Sub Website Private theater As String Private day As String Private show As String Dim db As DAO.Database Dim rs As DAO.Recordset
'##ModelId=4D6FC7880290
T.Kujani/CSE
Public Sub display_det1(theatername As String, dat As String, show As String) If Form3.Combo2.Text = "day1" Then Set db = DAO.OpenDatabase("D:\eticket\day1.mdb") Set rs = db.OpenRecordset("day1") End If If Form3.Combo2.Text = "day2" Then Set db = DAO.OpenDatabase("D:\eticket\day2.mdb") Set rs = db.OpenRecordset("day2") End If If Form3.Combo2.Text = "day3" Then Set db = DAO.OpenDatabase("D:\eticket\day3.mdb") Set rs = db.OpenRecordset("day3") End If rs.MoveFirst Do While Not rs.EOF If rs(0).Value = theatername Then Form3.Text1.Text = rs(3).Value Exit Do End If rs.MoveNext Loop End Sub
'##ModelId=4D6FC6FF01A5 Public Sub display_det2(theatername As String, dat As String, show As String) If Form3.Combo2.Text = "day1" Then Set db = DAO.OpenDatabase("D:\eticket\day1.mdb") Set rs = db.OpenRecordset("day1") End If If Form3.Combo2.Text = "day2" Then Set db = DAO.OpenDatabase("D:\eticket\day2.mdb") Set rs = db.OpenRecordset("day2") End If If Form3.Combo2.Text = "day3" Then Set db = DAO.OpenDatabase("D:\eticket\day3.mdb") Set rs = db.OpenRecordset("day3") End If rs.MoveFirst Do While Not rs.EOF If rs(0).Value = theatername Then Form3.Text1.Text = rs(4).Value Exit Do End If rs.MoveNext loop End Sub
T.Kujani/CSE
'##ModelId=4D6FC6FFA435 Public Sub display_det3(theatername As String, dat As String, show As String) If Form3.Combo2.Text = "day1" Then Set db = DAO.OpenDatabase("D:\eticket\day1.mdb") Set rs = db.OpenRecordset("day1") End If If Form3.Combo2.Text = "day2" Then Set db = DAO.OpenDatabase("D:\eticket\day2.mdb") Set rs = db.OpenRecordset("day2") End If If Form3.Combo2.Text = "day3" Then Set db = DAO.OpenDatabase("D:\eticket\day3.mdb") Set rs = db.OpenRecordset("day3") End If rs.MoveFirst Do While Not rs.EOF If rs(0).Value = theatername Then Form3.Text1.Text = rs(5).Value Exit Do End If rs.MoveNext Loop End Sub
'##ModelId=4D65A4FF01A5 Public Sub display_det4(theatername As String, dat As String, show As String) If Form3.Combo2.Text = "day1" Then Set db = DAO.OpenDatabase("D:\eticket\day1.mdb") Set rs = db.OpenRecordset("day1") End If If Form3.Combo2.Text = "day2" Then Set db = DAO.OpenDatabase("D:\eticket\day2.mdb") Set rs = db.OpenRecordset("day2") End If If Form3.Combo2.Text = "day3" Then Set db = DAO.OpenDatabase("D:\eticket\day3.mdb") Set rs = db.OpenRecordset("day3") End If rs.MoveFirst Do While Not rs.EOF If rs(0).Value = theatername Then Form3.Text1.Text = rs(6).Value Exit Do End If
T.Kujani/CSE
RESULT: Thus the mini project for e_ticketing has been successfully implemented using Rational Rose and Transformed with Visual Basic Code.
T.Kujani/CSE
Aim: To implement Online Examination System project using Rational Rose and Visual basic.
1.2 Objective:
The purpose of this document is to define the online examination system. This system reduces the manual work to great extent. The online examination system is carried out by the system in an efficient manner.
1.3 Scope:
The scope of the project is to design an online examination system, that will help the student to write the examination in a easier manner, which also helps the student to test their capability.
T.Kujani/CSE
a). STUDENT:
The person who can write the exam and views the result.
signin
signup
4.CLASS DIAGRAM:
T.Kujani/CSE
: student login_verify
SIGN UP:
: student
member database
: student
member database
VIEW RESULT:
T.Kujani/CSE
: student
member database
request result
display result
SIGNUP:
: student
T.Kujani/CSE
VIEW RESULT:
T.Kujani/CSE
start
login
join as member
finished the exam End of Exam view result view result Display Result
8.ACTIVITY DIAGRAM:
T.Kujani/CSE
start
details found
exam finished
display result
9.COMPONENT DIAGRAM:
Database
Exam
student
10.DEPLOYMENT DIAGRAM:
T.Kujani/CSE
student database
Exam Database
T.Kujani/CSE
T.Kujani/CSE
Question-1 Private Sub Command1_Click() // next question Dim ex As exam Set ex = New exam If Option1.Value = True Then Call ex.marks Else Call ex.demarks End If q1.Hide q2.Show End Sub Private Sub Command2_Click() // end now Dim ex As exam Set ex = New exam MsgBox "Your exam is interupted in middle" Call ex.total End Sub
Question-2 Private Sub Command1_Click() //next question Dim ex As exam Set ex = New exam If Option3.Value = True Then Call ex.marks
T.Kujani/CSE
Else Call ex.demarks End If q2.Hide q3.Show End Sub Private Sub Command2_Click() // end now Dim ex As exam Set ex = New exam MsgBox "Your exam is interupted in middle" Call ex.total End Sub
Question-3 Private Sub Command1_Click() //next question Dim ex As exam Set ex = New exam If Option3.Value = True Then Call ex.marks Else Call ex.demarks End If q3.Hide q4.Show End Sub
T.Kujani/CSE
Private Sub Command2_Click() // end now Dim ex As exam Set ex = New exam MsgBox "Your exam is interupted in middle" Call ex.total End Sub
Question-4 Private Sub Command1_Click() //next question Dim ex As exam Set ex = New exam If Option2.Value = True Then Call ex.marks Else Call ex.demarks End If q4.Hide q5.Show End Sub Private Sub Command2_Click() // end now Dim ex As exam Set ex = New exam MsgBox "Your exam is interupted in middle" Call ex.total End Sub
T.Kujani/CSE
Question-9 Private Sub Command1_Click() //finish Dim ex As exam Set ex = New exam If Option3.Value = True Then Call ex.marks Else Call ex.demarks End If q5.Hide MsgBox "YOU FINISHED YOUR EXAM" Call ex.total begin.Show End Sub
T.Kujani/CSE
Login Private Sub Command1_Click() //Enter Dim cus As customer Set cus = New customer Call cus.addcustomer(Text1.Text, Text4.Text, Combo1.Text, Text2.Text, Text3.Text) MsgBox "THE E-WAR BEGINS" signup.Hide q1.Show End Sub Private Sub Command2_Click() //cancel signup.Hide begin.Show End Sub
T.Kujani/CSE
rs(0).Value = uname rs(1).Value = coll rs(2).Value = dept rs(3).Value = addr rs(4).Value = memid rs(5).Value = 0 rs.Update End Sub
EXAM:
Option Explicit '##ModelId=4D7F6D4F0247 Private mid As Integer '##ModelId=4D7F6D5800D7 Private stname As String '##ModelId=4D7F6F410385 Public NewProperty As member Public db As DAO.Database Public rs As DAO.Recordset '##ModelId=4D810BA10251 Public Sub login(mid As Integer, stname As String) Set db = DAO.OpenDatabase("C:\Users\Vinoth Kumar K\Desktop\online examination\online examination\choosebestans.mdb") Set rs = db.OpenRecordset("student") rs.MoveFirst Do While Not rs.EOF If (rs(4).Value = mid) Then If (rs(0).Value = stname) Then MsgBox " your score is " MsgBox rs(5).Value End If End If rs.MoveNext Loop End Sub '##ModelId=4D810BA7006D Public Sub marks () Set db = DAO.OpenDatabase("C:\Users\Vinoth Kumar K\Desktop\online examination\online examination\choosebestans.mdb") Set rs = db.OpenRecordset("student") rs.MoveFirst Do While Not rs.EOF If (rs(0).Value = signup.Text1.Text) Then rs.Edit
T.Kujani/CSE
rs(5).Value = rs(5).Value + 10 rs.Update Exit Do End If rs.MoveNext Loop End Sub '##ModelId=4D810BAA01C5 Public Sub demarks() Set db = DAO.OpenDatabase("C:\Users\Vinoth Kumar K\Desktop\online examination\online examination\choosebestans.mdb") Set rs = db.OpenRecordset("student") rs.MoveFirst Do While Not rs.EOF If (rs(0).Value = signup.Text1.Text) Then rs.Edit rs(5).Value = rs(5).Value - 3 rs.Update End If rs.MoveNext Loop End Sub '##ModelId=4D810BB501A5 Public Sub total() Set db = DAO.OpenDatabase("C:\Users\Vinoth Kumar K\Desktop\online examination\online examination\choosebestans.mdb") Set rs = db.OpenRecordset("student") rs.MoveFirst Do While Not rs.EOF If (rs(0).Value = signup.Text1.Text) Then MsgBox "Your score is " MsgBox rs(5).Value End If rs.MoveNext Loop End Sub
RESULT: Thus the mini project for online examination system has been successfully implemented using Rational Rose and Transformed with Visual Basic Code.
RECRUITMENT SYSTEM
Aim: To implement Recruitment System project using Rational Rose and Visual Basic.
1.2 Objectives
The Objective of this project is to create a portal in par with the existing Job Portals. In this Portal for Recruitment System the candiates can apply for a job and search for the jobs . Also the Recruiter can post his requirements for any post in the company.
1.3 Scope
This portal will help the Graduates to easily find a job and gives a plate full of choices for them to choose from. It will aslo make a recruiters job very easy to find his employeee. It will be a one stop Portal for the Candidates and Recruiters.
1.4Problem Statement
The emergence of meta-search engines allows job-seekers to search across multiple websites. Some of these new search engines index and list the advertisements of traditional job boards. These sites tend to aim for providing a "one-stop shop" for jobseekers. However, there are many other job search engines which index pages solely from employers' websites, choosing to bypass traditional job boards entirely. These vertical search engines allow job-seekers to find new positions that may not be advertised on traditional job boards, and online recruitment websites.
T.Kujani/CSE
In this project we have developed a System where Recruirter can Post the requirements of his Company and Search for the candidate who matches his requirements. The details of the Candidate will be diplayed to the recuiter . Candidate can Post his Resume on the Portal, Search for a Job by specifying his Skill, and also apply for a Job. The Resume of the Candidate will be stored in the Database along with the number of jobs he has applied for.
2.2 Identified Actors a) Recruiter The Companies who employs the candidates are the Recruiters. b) Candidate The gradudates in search of a job who come and seek for a better job is called a candidate.
T.Kujani/CSE
T.Kujani/CSE
3. The actor searches for the job and the system gives the corresponding details. 3.2.2.2 Alternative flow: The actor can apply for the job if he has already given his details. 3.2.3 Pre conditions: The user logs on the system. 3.2.4 Post conditions: User gets the job of his choice.
3.3 Recruiter:
3.3.1 Brief description: Describes the complete action of the recruiter on the portal.
T.Kujani/CSE
4. CLASS DIAGRAM
T.Kujani/CSE
LOGIN RECRUITER
CANDIDATE
REGISTER
T.Kujani/CSE
RECRUITER
LOGIN RECRUITER
T.Kujani/CSE
CANDIDATE
REGISTER
RECRUITER
T.Kujani/CSE
8. ACTIVITY DIAGRAM
T.Kujani/CSE
9.COMPONENT DIAGRAM
10.DEPLOYNENT DIAGRAM
T.Kujani/CSE
VB CODING DATABASE TABLES: 1. Applied: Empid Jobid 2. Candidate: EmpId Ename Contact Address Skills Experience Location Age 3. Jobs JobId JobName ComName JobDesc Location Skills 4. User Uname Password UserId
5. User1 RecName Pwd CompId FORM 1CODING Private Sub Command1_Click() MsgBox "Welcome" Dim log1 As Portal Dim log2 As User If Option1.Value = True Then Set log1 = New Portal Call log1.Login_verify(Trim(Text1.Text), Trim(Text2.Text)) Else
T.Kujani/CSE
If Option2.Value = True Then Set log2 = New User Call log2.Login(Trim(Text1.Text), Trim(Text2.Text)) End If End If End Sub
Register Form Register Private Sub Command1_Click() Dim r As User Set r = New User Call r.confirm(Trim(Text1.Text), Trim(Text2.Text)) End Sub
T.Kujani/CSE
MATCH JOB Private Sub Command2_Click() Dim m As Recruit Set m = New Recruit Call m.match(Combo1.Text, Text2.Text) End Sub
POST JOB Private Sub Command1_Click() Dim p As Recruit Set p = New Recruit Call p.postjob(Text6.Text, Text7.Text, Text11.Text, Text8.Text, Text9.Text, Text10.Text) End Sub
T.Kujani/CSE
CLEAR Private Sub Command4_Click() Text6.Text = "" Text7.Text = "" Text8.Text = "" Text9.Text = "" Text10.Text = "" Text11.Text = "" End Sub
CANDIDATE POST RESUME Private Sub Command1_Click() Dim p As Apply Set p = New Apply Call p.postskills(Text1.Text, Text2.Text, Text3.Text, Text4.Text, Text5.Text, Text6.Text) End Sub
T.Kujani/CSE
Search Jobs
Private Sub Command2_Click() Dim s As Apply Set s = New Apply Call s.search(Trim(Form3.Combo1.Text), Trim(Form3.Combo2.Text)) End Sub
APPLY Private Sub Command3_Click() Dim a As Apply Set a = New Apply Call a.confirm(Trim(Text8.Text), Trim(Text9.Text)) End Sub
T.Kujani/CSE
TOTAL JOBS APPLIED Private Sub Command5_Click() Dim tot As Apply Set tot = New Apply Call tot.total End Sub
LOGOUT Private Sub Command4_Click() End End Sub CODINGS FOR CLASS APPLY Option Explicit Dim db As DAO.Database Dim rs As DAO.Recordset '##ModelId=4D5AAC1D02BF Private Can_name As Variant '##ModelId=4D5AAC2400CB Private C_id As Variant '##ModelId=4D5AAD4503B9
T.Kujani/CSE
Public Sub postskills(name As String, age As Integer, con As Integer, add As String, skills As String, exp As Integer) Set db = OpenDatabase("F:\OOAD\RS\RS_DB.mdb") Set rs = db.OpenRecordset("Candidate") rs.AddNew rs(1).Value = name rs(7).Value = age rs(2).Value = con rs(3).Value = add rs(4).Value = skills rs(5).Value = exp rs.Update rs.Close db.Close MsgBox "Resume Posted" End Sub '##ModelId=4D5AAD4D0261 Public Sub search(a As String, b As String) Set db = OpenDatabase("F:\OOAD\RS\RS_DB.mdb") Set rs = db.OpenRecordset("Jobs") rs.MoveFirst Do While Not rs.EOF If rs(4).Value = b And rs(5).Value = a Then Form3.Text7.Text = "Job ID: " & rs(0).Value & vbCrLf & "Job Name: " & rs(1).Value & vbCrLf & "Company Name: " & rs(2).Value & vbCrLf & "Job Description: " & rs(3).Value End If rs.MoveNext Loop MsgBox "Found!" End Sub '##ModelId=4D5B21F00242 Public Sub confirm(b As Integer, c As String) Dim a As Integer Set db = OpenDatabase("F:\OOAD\RS\RS_DB.mdb") Set rs = db.OpenRecordset("Applied") a = Form1.Label1.Caption rs.AddNew rs(0).Value = a rs(1).Value = b rs.Update rs.Close db.Close MsgBox "Applied" End Sub
T.Kujani/CSE
Public Sub total() Dim a As Integer Dim Count As Integer Set db = OpenDatabase("F:\OOAD\RS\RS_DB.mdb") Set rs = db.OpenRecordset("Applied") a = Form1.Label1.Caption rs.MoveFirst Count = 0 While Not rs.EOF If rs(0).Value = a Then Count = Count + 1 rs.MoveNext End If Wend MsgBox "Number of Jobs Applied.... " & Count End Sub
PORTAL Option Explicit Dim db As DAO.Database Dim rs As DAO.Recordset '##ModelId=4D5AAB7900BB Private C_id As Variant '##ModelId=4D5AAB83009C Private R_id As Variant '##ModelId=4D5AAD90035B Public NewProperty As Apply '##ModelId=4D5AABE8005D Public Sub Login_verify(username As String, Password As String) MsgBox "Inside" Set db = OpenDatabase("F:\OOAD\RS\RS_DB.mdb") Set rs = db.OpenRecordset("User1") rs.MoveFirst Do While Not rs.EOF If rs(0).Value = username Then If rs(1).Value = Password Then MsgBox rs(0).Value Form1.Hide Form2.Show
T.Kujani/CSE
Exit Do End If End If rs.MoveNext Loop End Sub '##ModelId=4D5AADD00109 Public Sub confirmation() End Sub RECRUIT Option Explicit Dim db As DAO.Database Dim rs As DAO.Recordset '##ModelId=4D5AABFE003E Private Company_name As Variant '##ModelId=4D5AAC070157 Private R_id As Variant '##ModelId=4D5AAC10000F Public Sub postjob(jobid As Integer, jname As String, skill As String, cname As String, jdesc As String, loc As String) Set db = DAO.OpenDatabase("F:\OOAD\RS\RS_DB.mdb") Set rs = db.OpenRecordset("Jobs") rs.AddNew rs(0).Value = jobid rs(1).Value = jname rs(2).Value = cname rs(3).Value = jdesc rs(4).Value = loc rs(5).Value = skill rs.Update rs.Close db.Close MsgBox "Job Posted" End Sub
'##ModelId=4D5AAC160280 Public Sub match(skill As String, jobid As Integer) Set db = DAO.OpenDatabase("F:\OOAD\RS\RS_DB.mdb") Set rs = db.OpenRecordset("Candidate")
T.Kujani/CSE
rs.MoveFirst Do While Not rs.EOF If rs(4).Value = Form2.Combo1.Text Then Form2.Text1.Text = rs(1).Value Form2.Text3.Text = rs(7).Value Form2.Text4.Text = rs(5).Value Form2.Text5.Text = rs(2).Value Exit Do End If rs.MoveNext Loop End Sub '##ModelId=4D5B21EB02AF Public Sub confirm() End Sub
USER Option Explicit Dim db As DAO.Database Dim rs As DAO.Recordset '##ModelId=4D5AAB20002E Private U_name As Variant '##ModelId=4D5AAB28032C Private Password As Variant '##ModelId=4D5AAD6E0232 Public NewProperty As Portal '##ModelId=4D5AAD7F02EE Public NewProperty2 As Recruit
'##ModelId=4D5AAB580280 Public Sub confirm(Uname As String, pwd As String) Set db = OpenDatabase("J:\OOAD\RS\RS_DB.mdb") Set rs = db.OpenRecordset("User") Dim num As Integer Dim i As Date rs.MoveFirst i = Second(Now) num = Int(2 * i)
T.Kujani/CSE
rs.AddNew rs(0).Value = Uname rs(1).Value = pwd rs(2).Value = num rs.Update rs.Close db.Close MsgBox "Registered Successfully" Form4.Hide Form1.Show End Sub '##ModelId=4D5AAB6A0157 Public Sub Login(username As String, Password As String) MsgBox "Inside" Set db = OpenDatabase("F:\OOAD\RS\RS_DB.mdb") Set rs = db.OpenRecordset("User") rs.MoveFirst Do While Not rs.EOF If rs(0).Value = username Then If rs(1).Value = Password Then MsgBox rs(0).Value Form1.Label1.Caption = rs(2).Value Form1.Hide Form3.Show Exit Do End If End If rs.MoveNext Loop End Sub
RESULT: Thus the mini project for recruitment system has been successfully implemented using Rational Rose and Transformed with Visual Basic Code.
T.Kujani/CSE
Aim: To implement Software Personal Management system using Rational Rose and Visual basic.
1. PROBLEM ANALYSIS AND PROJECT PLANNING: 1.1 INTRODUCTION: The Software Personal Management is used to maintain the personal and salary details of an employee working in the software company. The employees personal details and salary details will be maintained separately in the database. 1.2 OBJECT: The purpose of this document is to maintain the salary and personal details of an employee. This system reduces the manual work to great extent. 1.3 SCOPE: This system is very essential for every software companies as it reduces man power. This system can be used for all kinds of software companies to maintain personal and salary details and generate reports of specified criteria. 1.4 PROBLEM STATEMENT: In this system, we are going to display the personal details of the employee as well as the salary details of the employee. The manager can add the employee details or can delete the employee details based on the performance. The personal details include details about the idno, name, department, experience, address, date of birth etc.The employee can view the personal details but they cannot change the details then can inform the mistake to the respective concern about the changes. And then employee salary details will be also be displayed based on the idno and the department.The employee can view the salary details but they cannot change. By giving the basic the system will calculate the hra, da, gross pay, bpf, deduction, netpay. And then we can generate the report for the employees personal details as well as the salary details.
T.Kujani/CSE
2. PROBLEM STATEMENT(Use Case)analysis: 2.1 IDENTIFIED USE CASES: a) get_per_detail: This use case allows the manager to enter the personal details of an employee into the personal details database. b) get_salary _detail: This use case allows the manager to enter the salary details of an employee into the salary details database. c) Calculate: This use case is used to calculate basic, hra, da, bpf, gpay, deduction and net pay for each and every employee. d) display detail: This use case is used to display the personal and salary details of an employee whenever the employees identity number along with department is provided. 2.2 IDENTIFIED ACTORS: a) Manager: The manager provides the personal and salary details of an employee and maintains the system. b) Person: The particular employee can view his own salary and personal details.
2.3USECASE DIAGRAM:
T.Kujani/CSE
get_per_detail
get_salary_detail
person
manager
display_detail
calculate
4.CLASS DIAGRAM:
T.Kujani/CSE
calculate( )
The manager will calculate the salary details of the particular employee.
display detail
: manager
: personal_detail
: salary_detail
display_per_detail( )
display_salary_detail( )
The employees pesonal details will be displayed by using the display_per_detail() and then we can also display the salary details by using the display_salary_detail().
T.Kujani/CSE
get_per_detail
: person
: personal_detail
add_per_detail( )
get_salary_detail
: manager
: salary_detail
add_salary_detail( )
The manager can add the salary details by using the add_salary_detail().
T.Kujani/CSE
display_detail
1: display_per_detail( ) : personal_detail
: manager
2: display_salary_detail( ) : salary_detail
get_per_detail
1: add_per_detail( ) : personal_detail : person
get_salary_detail
1: add_salary_detail( ) : salary_detail : manager
T.Kujani/CSE
7.ACTIVATION DIAGRAM:
start
authentication
login
personal details salary details management employee basic set salary detail display personal details view personal details
calculate calculate the salary add or delete add or delete the details display
display
stop
T.Kujani/CSE
display salary
enter the id
get the id
9. COMPONENT DIAGRAM:
employe e personal detail
salary detail
T.Kujani/CSE
salary detail
T.Kujani/CSE
da: integer bpf: integer Gpay: integer Deduction: integer net pay: integer
FORM1 CODING:
Private Sub Command1_Click() //VIEW PERSONAL Form2.Show End Sub Private Sub Command2_Click() //VIEW SALARY Form3.Show End Sub Private Sub Command3_Click() //EXIT End End sub
FORM2 CODING:
T.Kujani/CSE
Dim s_per As personal_detail Private Sub Command1_Click() Set s_per = New personal_detail Call s_per.add_per_detail(Text1.Text, Text2.Text, Text3.Text, Text4.Text, Text5.Text, Text6.Text) End Sub Private Sub Command2_Click() Set s_per = New personal_detail Call s_per.display_per_detail(Trim(Text1.Text), Trim(Text2.Text)) End Sub Private Sub Command3_Click() Form2.Hide Form1.Show End Sub Private Sub Command4_Click() Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Text6.Text = "" End Sub Private Sub Command5_Click() DataReport1.Show vbModal End Sub Private Sub Command6_Click() Set s_per = New personal_detail Call s_per.delete_per_detail End Sub Private Sub Form_Load() Text1.Text = Form3.Text1.Text End Sub
T.Kujani/CSE
FORM3 CODING:
Dim s_det As salary_detail Private Sub Command1_Click() Set s_det = New salary_detail Call s_det.add_salary_detail(Trim(Text1.Text), Trim(Text2.Text), Int(Trim(Text3.Text)), Int(Trim(Text4.Text)), Int(Trim(Text5.Text)), Int(Trim(Text6.Text)), Int(Trim(Text7.Text)), Int(Trim(Text8.Text)), Int(Trim(Text9.Text))) End Sub Private Sub Command2_Click() Set s_det = New salary_detail Call s_det.calculate(Trim(Text1.Text), Trim(Text2.Text)) End Sub Private Sub Command3_Click() End End Sub Private Sub Command4_Click() Form3.Hide Form1.Show End Sub Private Sub Command5_Click() Text1.Text = ""
T.Kujani/CSE
Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" Text6.Text = "" Text7.Text = "" Text8.Text = "" Text9.Text = "" End Sub Private Sub Command6_Click() Set s_det = New salary_detail Call s_det.display_salary_detail(Trim(Text1.Text), Trim(Text2.Text)) End Sub Private Sub Command7_Click() DataReport1.Show vbModal End Sub Private Sub Command8_Click() Set s_det = New salary_detail Call s_det.delete_salary_detail End Sub
T.Kujani/CSE
Private eid As String Private name As String Private dob As Date Private dep As String Private exp As Integer Private address As String Public NewProperty As salary_detail Public Sub display_per_detail(eid As String, name As String) Set db = DAO.OpenDatabase("D:/msp/software/soft.mdb") Set rs = db.OpenRecordset("per117") rs.MoveFirst Do While Not rs.EOF If Trim(rs(0).Value) = Trim(Form2.Text1.Text) Then Form2.Text1.Text = rs(0).Value Form2.Text2.Text = rs(1).Value Form2.Text3.Text = rs(2).Value Form2.Text4.Text = rs(3).Value Form2.Text5.Text = rs(4).Value Form2.Text6.Text = rs(5).Value Exit Do End If rs.MoveNext Loop rs.Close db.Close End Sub Public Sub add_per_detail(eid As String, name As String, dob As Date, dep As String, exp As Integer, address As String) Set db = DAO.OpenDatabase("D:/msp/software/soft.mdb") Set rs = db.OpenRecordset("per117") rs.AddNew rs(0).Value = Form2.Text1.Text rs(1).Value = Form2.Text2.Text rs(2).Value = Form2.Text3.Text rs(3).Value = Form2.Text4.Text rs(4).Value = Int(Form2.Text5.Text) rs(5).Value = Form2.Text6.Text rs.Update MsgBox "values inserted" rs.Close db.Close End Sub
T.Kujani/CSE
Public Sub delete_per_detail() Set db = DAO.OpenDatabase("D:/msp/software/soft.mdb") Set rs = db.OpenRecordset("per117") rs.MoveFirst Do While Not rs.EOF If Form2.Text1.Text = rs(0).Value Then rs.Delete End If rs.MoveNext Loop MsgBox "details deleted" End Sub SALARY DEAILS CLASS: Option Explicit Dim db As DAO.Database Dim rs As DAO.Recordset Private eid As String Private dep As String Private basic As Integer Private hra As Integer Private da As Integer Private bpf As Integer Private gpay As Integer Private deduction As Integer Private netpay As Integer Public Sub add_salary_detail(eid As String, dep As String, basic As Integer, hra As Integer, da As Integer, bpf As Integer, gpay As Integer, deduction As Integer, netpay As Integer) Set db = DAO.OpenDatabase("D:/msp/software/soft.mdb") Set rs = db.OpenRecordset("sal117") MsgBox "inside" rs.AddNew rs(0).Value = Form3.Text1.Text rs(1).Value = Form3.Text2.Text rs(2).Value = Int(Form3.Text3.Text) rs(3).Value = Int(Form3.Text4.Text) rs(4).Value = Int(Form3.Text5.Text) rs(5).Value = Int(Form3.Text6.Text) rs(6).Value = Int(Form3.Text7.Text) rs(7).Value = Int(Form3.Text8.Text) rs(8).Value = Int(Form3.Text9.Text) rs.Update MsgBox "values inserted" rs.Close
T.Kujani/CSE
db.Close End Sub Public Sub calculate(eid As String, dep As String) Set db = DAO.OpenDatabase("D:/msp/software/soft.mdb") Set rs = db.OpenRecordset("sal117") rs.MoveFirst Do While Not rs.EOF If rs(0).Value = eid Then If rs(1).Value = dep Then rs.Edit rs(3).Value = (rs(2).Value * 0.1224) Form3.Text4.Text = rs(3).Value rs(4).Value = (rs(2).Value * 0.15) Form3.Text5.Text = rs(4).Value rs(5).Value = (rs(2).Value * 0.25) Form3.Text6.Text = rs(5).Value rs(6).Value = (rs(3).Value + rs(4).Value + rs(5).Value - 1500) Form3.Text7.Text = rs(6).Value rs(7).Value = 200 Form3.Text8.Text = rs(7).Value rs(8).Value = (rs(6).Value + rs(7).Value) Form3.Text9.Text = rs(8).Value rs.Update MsgBox "payslip is generated" Exit Do End If End If rs.MoveNext Loop rs.Close db.Close End Sub Public Sub display_salary_detail(eid As String, dep As String) MsgBox "please enter dep" Set db = DAO.OpenDatabase("D:/msp/software/soft.mdb") Set rs = db.OpenRecordset("sal117") rs.MoveFirst Do While Not rs.EOF Form3.Text2.Text = Form2.Text4.Text If rs(0).Value = eid Then If rs(1).Value = dep Then Form3.Text2.Text = rs(1).Value Form3.Text3.Text = rs(2).Value Form3.Text4.Text = rs(3).Value Form3.Text5.Text = rs(4).Value
T.Kujani/CSE
Form3.Text6.Text = rs(5).Value Form3.Text7.Text = rs(6).Value Form3.Text8.Text = rs(7).Value Form3.Text9.Text = rs(8).Value Exit Do End If End If rs.MoveNext Loop MsgBox "payslip is generated" rs.Close db.Close End Sub Public Sub delete_salary_detail() Set db = DAO.OpenDatabase("D:/msp/software/soft.mdb") Set rs = db.OpenRecordset("sal117") rs.MoveFirst Do While Not rs.EOF If Form3.Text1.Text = rs(0).Value Then rs.Delete End If rs.MoveNext Loop MsgBox "details deleted" End Sub
RESULT: Thus the mini project for software personal management has been successfully implemented using Rational Rose and Transformed with Visual Basic Code.
T.Kujani/CSE
Date:
EXAM REGISTRATION
Exp no: 8
Aim:
To implement exam registration project using Rational Rose and Visual Basic.
The exam registration system is used to have the details about the exams registration and the details about the person who have cancelled the exam registration. In this we can insert the details of the person who have registered and then we can view the details about the cancellation.
1.2 OBJECTIVE:
The purpose of this document is to maintain the details of the registration of the particular person and cancellation details.
1.3 SCOPE:
This system is very essential for every registration as it reduces the man power. This system can be used for all kinds of the registration and cancellation.
1.4 PROBLEM STATEMENT:
In this system we are going to register the exam by giving their personal details as well as the subject what he/she is going register. We can also insert the details of the person and then we can delete personal details of the person. In one form we can register the details about the exam registration. In another form we can cancel the registration by giving the id of the particular student and then details will be deleted automatically and then we can verify in the database table. It will reduce the man power.
T.Kujani/CSE
a)get_stud_detail: This use case allows the examimer to enter the personal details of the student to the database. b)display_stud_detail: This use case allows to display the student personal details including the registered. c)update_stud_detail: This use case allows the examiner to update the details of the student based on the registration. d)update_data_detail: This use case is used to update the details of the student to the database and then it can be verified whenever we needed.
2.2 IDENTIFIED ACTORS:
a) Student: The student provides the personal details including the registration of the subjects which is maintained in the system. b)database: The database will provide the details including the registration and cancellation.
T.Kujani/CSE
get_stud_detail
display_stud_detail
student
database
update_stud_detail
update_data_detail
4.CLASS DIAGRAM:
T.Kujani/CSE
5.SEQUENCE DIAGRAM:
display_stud_detail:
: student : stud_detail
display_stud_detail( )
The student personal detail is added by using the display_stud_detail() it includes the details such as name,subject,address etc. get_stud_details:
: student : stud_detail
add_stud_detail( )
T.Kujani/CSE
update_data_detail:
: database : data_detail
update_data_detail( )
The database will update the data by using the update_data_detail() update_stud_detail:
: student
: stud_detail
update_stud_detail( )
T.Kujani/CSE
6.COLLABORTION DIAGRAM:
display_stud_detail:
1: display_stud_detail( ) : stud_detail
: student
get_stud_details:
1: add_stud_detail( ) : stud_detail
: student
update_data_detail:
1: update_data_detail( )
: data_detail
: database
update_stud_detail:
1: update_stud_detail( ) : stud_detail
: student
T.Kujani/CSE
7.ACTIVITY DIAGRAM:
start
register
cancellation
cancel registration
apply
stop
8.STATECHART DIAGRAM:
start start enter id cancellatio n
final state
cancelling
getting the id
registering
enter subject
T.Kujani/CSE
9.COMPONENT DIAGRAM:
student exam registration
database
10.PACKAGE DIAGRAM:
UI
student details
Registration database
11.DEPLOYMENT DIAGRAM:
student exam registration
database
T.Kujani/CSE
VB CODING:
DATABASE DETAILS: TABLE1 NAME: data117 FIELDS: id: integer subject: string TABLE2 NAME: stud117 FIELDS: id: integer name: string address: string phoneno: integer subject: integer
FORM1 CODING: Private Sub Command1_Click() Form1.Hide Form2.Show End Sub Private Sub Command2_Click() Form1.Hide Form3.Show End Sub Private Sub Command3_Click() End End Sub
T.Kujani/CSE
FORM2 CODING: Dim s_detail As stud_detail Private Sub Command1_Click() Set s_detail = New stud_detail Call s_detail.add_stud_detail(Text1.Text, Text2.Text, Text3.Text, Text4.Text, Text5.Text) End Sub Private Sub Command2_Click() Set s_detail = New stud_detail Call s_detail.cancel_stud_detail End Sub Private Sub Command3_Click() Form2.Hide Form1.Show End Sub Private Sub Command4_Click() Text1.Text = "" Text2.Text = "" Text3.Text = "" Text4.Text = "" Text5.Text = "" End Sub Private Sub Command5_Click() Set s_detail = New stud_detail Call s_detail.display_stud_detail(Trim(Text1.Text), Trim(Text2.Text)) End Sub Private Sub Command6_Click() DataReport1.Show vbModal End Sub Private Sub Form_Load() Text1.Text = Form3.Text1.Text End Sub
T.Kujani/CSE
FORM3 CODING: Dim d_detail As data_detail Private Sub Command1_Click() Set d_detail = New data_detail Call d_detail.delete_data_detail End Sub Private Sub Command2_Click() Set d_detail = New data_detail Call d_detail.cancel_data_detail End Sub Private Sub Command3_Click() Form3.Hide Form1.Show End Sub Private Sub Command4_Click() Text1.Text = "" Text2.Text = "" End Sub Private Sub Command5_Click() DataReport1.Show vbModal End Sub
T.Kujani/CSE
CLASS CODING: DATA DETAIL CLASS: Option Explicit Dim db As DAO.Database Dim rs As DAO.Recordset Private id As String Private subject As String Public Sub delete_data_detail() Set db = DAO.OpenDatabase("D:\117\exam\register.mdb") Set rs = db.OpenRecordset("data117") rs.MoveFirst Do While Not rs.EOF If Form3.Text1.Text = rs(0).Value Then If Form3.Text2.Text = rs(1).Value Then rs.Delete End If End If rs.MoveNext Loop MsgBox "details deleted" rs.Close
T.Kujani/CSE
db.Close End Sub Public Sub cancel_data_detail() End End Sub Public Sub update_data_detail(id As String, subject As String) Set db = DAO.OpenDatabase("D:\117\exam\register.mdb") Set rs = db.OpenRecordset("data117") rs.AddNew rs(0).Value = id rs(1).Value = subject rs.Update rs.Close db.Close End Sub STUDENE DETAILS CLASS: Option Explicit Dim db As DAO.Database Dim rs As DAO.Recordset Private id As String Private name As String Private address As String Private phoneno As String Private subject As String Public NewProperty As data_detail Public Sub add_stud_detail(id As String, name As String, address As String, phoneno As String, subject As String) Set db = DAO.OpenDatabase("D:\117\exam\register.mdb") Set rs = db.OpenRecordset("stud117") rs.AddNew rs(0).Value = Form2.Text1.Text rs(1).Value = Form2.Text2.Text rs(2).Value = Form2.Text3.Text rs(3).Value = Form2.Text4.Text rs(4).Value = Form2.Text5.Text rs.Update MsgBox "details added" rs.Close db.Close End Sub
T.Kujani/CSE
Public Sub cancel_stud_detail() End End Sub Public Sub display_stud_detail(id As String, name As String) MsgBox "please enter id" Set db = DAO.OpenDatabase("D:\117\exam\register.mdb") Set rs = db.OpenRecordset("stud117") rs.MoveFirst Do While Not rs.EOF If Trim(rs(0).Value) = Trim(Form2.Text1.Text) Then Form2.Text1.Text = rs(0).Value Form2.Text2.Text = rs(1).Value Form2.Text3.Text = rs(2).Value Form2.Text4.Text = rs(3).Value Form2.Text5.Text = rs(4).Value Exit Do End If rs.MoveNext Loop rs.Close db.Close End Sub Public Sub update_stud_detail(id As String, name As String, address As String, phoneno As Integer, subject As String) Set db = DAO.OpenDatabase("D:\117\exam\register.mdb") Set rs = db.OpenRecordset("stud117") rs.AddNew rs(0).Value = id rs(1).Value = name rs(2).Value = address rs(3).Value = phoneno rs(4).Value = subject rs.Update rs.Close db.Close End Sub
RESULT: Thus the mini project for exam registration system has been successfully implemented using Rational Rose and Transformed with Visual Basic Code.
Aim:
To implement course reservation project using Rational Rose and Visual Basic.
2.Objectives
The ultimate objective of this software is to eliminate hassles that the candidate overcomes while registering him. The software will reduce the paper work. This also reduces the time delay.
3.Scope
If the candidate is a new user he is requested to fill the form. This form will contain important particulars of the candidate like name, DOB, Resident address, Belongs to (i.e., whether the candidate is belongs to school or college or a working person) etc. Then the candidate can fill up the course details and reserve the course. If he is an already user he no need to fill the form, he can directly register the course.
4.Problem Statement
The system is built for the candidate who may belongs to any category such as school student, working person, college student or may be others to reserve the course in a particular Institute. If the candidate is an already user he can directly login and can reserve the course that he desired. If the candidate is a new user, then he must submit his own details. After filling the details he can reserve his course at particular/desired center location. If the candidate wants to edit his/her profile he can edit it. Both the new user and already user can view the availability of seats in particular course in a particular location. If the seats are available, he/she can register the course. All the updates and changes are stored in Database.
T.Kujani/CSE
b)Sign in
This use case describes how the New user logs into the system.
e)Display availability
This use case display the availability of seats to the candidate.
b)New user
The new user is the one who is new to the institute, so he must fill his required details.
T.Kujani/CSE
signin
alreadyuser Enter_the_details
newcandi
register_the_course
display_availability
T.Kujani/CSE
T.Kujani/CSE
4. The actor can view the availability of seats in a particular course in a particular center. 5. If the contents are true then the details will be stored in the database and confirmation message will be displayed.
4.Class Diagram:
T.Kujani/CSE
5. Activity Diagram:
6. State Diagram:
Go to main page start Login Page New user? Details Page
Reserve seat/logout
end
Reservatio n Page
T.Kujani/CSE
confirmation
Signup:
newcandi database
signup
add_details added_as_member
enter_details
added_in_database added
T.Kujani/CSE
select_course add_course
Registered select_course
added
registered
Display availability:
member database
requesting_availability
searching
display_availability
login
T.Kujani/CSE
Sign up:
newcandi 1: signup 2: add_details
3: added_as_member database
3: added database
5: added
newcandi
6: registered
T.Kujani/CSE
Display availability:
2: searching
database
3: display_availability
member 1: requesting_availability
9.Component Diagram:
server
UserInterface
course register
Databas e
T.Kujani/CSE
10.Deployment Diagram:
DATA BASE
Course Registration
user
2.Student_details :
1. 2. 3. 4. 5. Name Password DOB Resident Belongs to 6. Qualification
T.Kujani/CSE
FORM 2:
Private Sub Submit_Click() Dim s As stud Set s = New stud Call s.submit(Text1.Text, Text2.Text, Text3.Text, Combo2.Text, Text4.Text) MsgBox "Your details are successfully added" Form2.Hide Form3.Show End Sub Private Sub Logout_Click() End End Sub
T.Kujani/CSE
FROM 3:
Private Sub Display_Click() Set c = New course Call c.disp(Combo1.Text, Combo2.Text) End Sub Private Sub Register_Click() Set c = New course Call c.register(Combo1.Text, Combo2.Text) MsgBox "Your requested course is registered successfully" End Sub
Private Sub Logout_Click() End End Sub Private Sub EditProfile_Click() Form3.Hide Form2.Show End Sub
T.Kujani/CSE
T.Kujani/CSE
If cname = "DBMS" Then rs(5).Value = rs(5).Value - 1 End If rs.Update Exit Do End If rs.MoveNext Loop End Sub
Public Sub disp(cname As String, loc As String) Set db = DAO.OpenDatabase("E:\coursereg\stud_det.mdb") Set rs = db.OpenRecordset("course_det") rs.MoveFirst Do While Not rs.EOF If rs(0).Value = loc Then If cname = "C" Then Form3.Text2.Text = rs(1).Value End If If cname = "C++" Then Form3.Text2.Text = rs(2).Value End If If cname = "JAVA" Then Form3.Text2.Text = rs(3).Value End If If cname = "DOTNET" Then Form3.Text2.Text = rs(4).Value End If If cname = "DBMS" Then Form3.Text2.Text = rs(5).Value End If Exit Do End If rs.MoveNext Loop End Sub
Student class:
Option Explicit Dim db As DAO.Database Dim rs As DAO.Recordset Private name As String Private flag As Boolean Private pswd As String
T.Kujani/CSE
Public Sub verify(name As String, pswd As String) Set db = DAO.OpenDatabase("E:\coursereg\stud_det.mdb") Set rs = db.OpenRecordset("student_det") rs.MoveFirst Do While Not rs.EOF If rs(0).Value = name Then If rs(1).Value = pswd Then MsgBox "Hi" MsgBox rs(0).Value Form1.Hide Form3.Show flag = True Exit Do End If End If rs.MoveNext Loop If flag = False Then MsgBox "You are not a member yet!! Signin pls!!" End End If rs.Close db.Close End Sub Public Sub verify1(name As String, pswd As String) Set db = DAO.OpenDatabase("E:\coursereg\stud_det.mdb") Set rs = db.OpenRecordset("student_det") rs.AddNew rs(0).Value = name rs(1).Value = pswd rs.Update rs.Close db.Close Form1.Hide Form2.Show MsgBox "Enter your details here!!" End Sub Public Sub submit(name As String, dob As Date, resident As String, belong As String, qual As String) Set db = DAO.OpenDatabase("E:\coursereg\stud_det.mdb") Set rs = db.OpenRecordset("student_det") Do While Not rs.EOF If rs(0).Value = name Then rs.Edit rs(2).Value = dob
T.Kujani/CSE
rs(3).Value = resident rs(4).Value = belong rs(5).Value = qual rs.Update Exit Do End If rs.MoveNext Loop rs.Close db.Close End Sub
RESULT: Thus the mini project for course registration system has been successfully implemented using Rational Rose and Transformed with Visual Basic Code.