se mannual
Post on 04-Apr-2018
251 Views
Preview:
TRANSCRIPT
-
7/29/2019 se mannual
1/58
1
STUDY OF CASE TOOLS
VISUAL MODELLING:
Visual modeling is a way of thinking and analyzing about problemsusing models around real world ideas. A modeling language must include,
Model elements
Notations
GuidelinesVisual modeling approach is used since a system cannot be
comprehended to its entirety. Benefits of visual modeling includes,
Clarity
Familiarity
Maintenance
simplification
UML:
Unified modeling language(UML)is a communication standard of visualmodeling. The UML provides a smooth transition between the businessdomain and the computer domain. UML is an object oriented language forspecifying, constructing, visualizing and documenting the software systemand its components.UML is a graphical language with a set of rules and semantics.UML is a combination of
Data Modeling
Business Modeling
Object Modeling
Component Modeling
UML DIAGRAMS:UML defines graphical diagrams such as,
Class diagram
Use case diagram
Behavior diagrams
Interaction Diagramso Sequence Diagramso Collaboration Diagrams
State Chart Diagrams
Activity Diagram
Implementation Diagramso Component Diagram
o Deployment Diagrams
-
7/29/2019 se mannual
2/58
2
USE-CASE DIAGRAMS:Use-case diagrams graphically depict system behavior (use cases).Thesediagrams present a high level view of how the system is used as viewed froman outsiders (actors) perspective. A use-case diagram may depict all orsome of the use cases of a system.A use-case diagram can contain:
Actors (things outside the system) Use cases(system boundaries identifying what the system should do)
Interactions or relationships between actors and use cases in thesystem including the associations, dependencies and generalizations.
USE CASE: Use case is scenario for understanding system requirements. Everysingle use case must describe one main flow of events.
ACTOR
Actors represent system users, who provide input to and receive
information from the system. An actor is a stereotype of a class and isdepicted as a stickman on a use-case diagram. The name of the actor isdisplayed below the icon. Additional information about the actor can beviewed in the use-case specification.RELATIONSHIPS
You can add relationships to the diagram to show interactions betweenactors and use cases. Association relationships can be drawn from an actorto a use case. The generalize relationship can be drawn between actors.
Relationships between use case diagrams include
Communication
Uses Extend
FLOW OF EVENTSA flow of events is a sequence of transaction (or events)
performed by the system. They typically contain very detailed information,written in terms of what the system should do, not how accomplish the task.A flow of events should include:
When and how the use case starts and ends
Use case/actor interactions
Data needed by the use case
Normal sequence of events for the use case
Alternate or exception flowsUSE-CASE REALIZATIONS (SCENARIOS)
A use case realization is a graphic sequence of events, also referred toas a scenario or an instance of a use case. these realization or scenarios aredepicted in either a sequence or collaboration diagram.
The two most common scenarios are the typical(or primary)scenario,where all is well and the exception(secondary)scenario, which address thedeviations. The exception scenario address the what if ? elements of theuse case.
-
7/29/2019 se mannual
3/58
3
ACTIVITY DIAGRAM:An activity represents the performance of task or duty in a workflow. it
may also represent the execution of a statement in a procedure. An activitydiagram is activity centric. Transitions connect activities with other model
elements and object flows connect activities with objects.The activity icon appears as a rectangle with rounded ends with name
(take order and process order) and a compartment for actions.The name of an activity must be unique and should declare the
activitys purpose. All activity icons with the name on an activity diagramrepresent the same activity. You must add actions through the actionspecification.
Action on activities can occur of four times:
On entry
On exit
Do On event
SEQUENCE DIAGRAMS:Sequence diagram is a graphical view of a scenario that shows object
interaction in a time-based sequence. Sequence diagrams establish the rolesobjects. Sequence diagrams are normally associated with use cases.Sequence diagrams are closely related to collaboration diagrams and bothare alternate representation of an interaction.
A sequence diagram has two dimensions: typically, vertical placementrepresents time and horizontal placement represents different objects.
COLLABORATION DIAGRAMS:A collaboration diagram is an interaction diagram that shows the order
of messages that implement an operation or a transaction. Collaborationdiagrams show objects, their links, and their messages.
They can also contain simple class instances and class utility instances.Each collaboration diagram provides a view of the interactions or structuralrelationships that occur between objects and object-like entities in thecurrent model.
SCENARIOS:
Scenarios show the different sequence of interaction between actorsand system. A Scenario is an instance of a use case; it is an outline of eventsthat occur during system execution. A scenario can be expressed in text orsequence of steps.
STATE CHART DIAGRAMS:State chart diagrams model the dynamic behavior of individual classes
or any other kind of objects. They show the sequence of states that an objectgoes through, the events that cause a transition from one state to another,and the actions that result from a state change.
-
7/29/2019 se mannual
4/58
4
State chart diagrams are state centric; statement diagram is used tomodel the discrete stages of an objects lifetime.
Each state represents a named condition during the life of an objectduring which it satisfies some condition or waits for some events. A statechart diagram typically contains one start state and multiple end states.Transitions connect the various states on the diagram. Decisions,
synchronizations, and activities may also appear on state chart diagrams.
STEREOTYPES:Stereotype represents built-in extensibility mechanism for UML.Stereotype is new class of modeling element introduced during
modeling. General presentation of stereotype is string with guillemots.Various form of stereotype is
Class stereotypes
Association stereotypes
Dependency stereotypes
Component stereotypes
RATIONAL ROSE:Rational rose is a tool for understanding, analyze and designing of
software intensive system. Model in rational rose is constructed using viewsand diagrams
The views used are,
Use case view
Logical view
Component view
Development view Implementation view
Process viewRational Rose is a GUI environment containing,
Browser window
Diagram window
Diagram window
Documentation window
Log window
Options window
-
7/29/2019 se mannual
5/58
5
EX.NO: EMPLOYEE PAYROLL SYSTEMDATE:
AIM:
To create a Employee Payroll Systemfor manipulating payrollmanagement by using VB
SYSTEM REQUIREMENTS:
FRONT END: VISUAL BASIC
BACK END: MS ACCESS
CLASS DIAGRAM:
e m p d e t a i l s
n a m e
s t a f f n o
d e p ta d d r e s s
d o j
p f
c h e c k i n g ( )
b a s i c p a y
u gp g
c a l c b p ( )
11
t o t a l p a y
b a s i c p a y
d ar s i a
n a m e 2
c a l t p ( )
11
l o p
c l
b a s i c p a yd a
r s i a
c a l l o p ( )
11
g r o s s s a l
l o pt p
c a l g r s a l ( )
11
n e t s a l
g r o s s pp f
c a l n e t p
111 1 1 1 1 1 1 1 1 1
USE CASE DIAGRAM:
-
7/29/2019 se mannual
6/58
6
employee details
System
basic pay calculation
lop calculation
gross salary calculation
Employee
net pay calculation
COLLOBORATION DIAGRAM:
e m p l o y e e e m p d e t a i l s b a s i c
p a y
t o t a l p a y
lo p
g r o s s s a l
n e t s a ls y s t e m
8 : n e t s a l = g r o s s s a l i f n o p f
1 : re t r ie ve e m p d e t a ils 2 : b a s ic p a y c a lc b a s e d o n u g p g
3 : a d d b a s i c , D A , R S I A
4 : i f l o p n o t a va i l a b l e g s = t p
5 : c a l c u l a t io n o f lo p i f l o p a va i l a l
6 : g r o s s s a l= t p - l o p
7 : n e t s a l c a l c b y d e d u c t i n g p f i f a n y
9 : u p d a t e d e t a i ls
1 0 : in t i m a t e t h e e m p l o y e e
-
7/29/2019 se mannual
7/58
7
SEQUENTIAL DIAGRAM
-
7/29/2019 se mannual
8/58
8
e m p l o y e e e m p d e t a i l s b a s i c p a y t o t a l p a y l o p g r o s s s a ln e t s a l s y s t e m
r e t r i e v e e m p d e t a i l s
b a s i c p a y c a l c b a s e d o n u g p g
a d d b a s i c , D A , R S I A
i f l o p n o t a v a i l a b l e g s = t p
c a l c u l a t i o n o f l o p i f l o p a v a i l a b l e
g r o s s s a l = t p - l o p
n e t s a l c a l c b y d e d u c t i n g p f i f a
n e t s a l = g r o s s s a l i f n
u p d a t e d e t a i l s
i n t i m a t e t h e e m p l o y e e
FORM DESIGN:
-
7/29/2019 se mannual
9/58
9
SOURCE CODE:
FRONT END (VB 6.0)
START PROGRAMS MICROSOFT VISUAL STUDIO 6.0
MICROSOFT VISUAL BASIC 6.0 OPEN STANDARD EXE
FORM 1:Private Sub Command1_Click()
If Text1.Text = "admin" And Text2.Text = "admin" Then
Form2.ShowElseIf Text1.Text = "employee" And Text2.Text = "employee" Then
Form3.Show
ElseMsgBox "sorry try please"
End If
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub Command3_Click()
Text1.Text = ""Text2.Text = ""
End Sub
FORM 2:
-
7/29/2019 se mannual
10/58
10
Dim db As DatabaseDim rs As Recordset
Dim a1 As New admin
Private Sub Combo1_click()rs.MoveFirst
While Not rs.EOF
If Combo1.Text = rs.Fields(0) ThenText1.Text = rs(1)
Text2.Text = rs(2)
Text3.Text = rs(3)Text4.Text = rs(4)
End If
rs.MoveNext
WendEnd Sub
Private Sub Command1_Click()
Call a1.payrolldetails
End SubPrivate Sub Command2_Click()
Combo1.Text = ""Text1.Text = ""
Text2.Text = ""
Text3.Text = ""
Text4.Text = ""Text5.Text = ""
Text6.Text = ""
Text7.Text = ""Text8.Text = ""
-
7/29/2019 se mannual
11/58
11
Text9.Text = ""
Text10.Text = ""
Text11.Text = ""Text12.Text = ""
End Sub
Private Sub Command3_Click()
EndEnd Sub
Private Sub Command4_Click()
Form1.ShowEnd Sub
Private Sub Form_Load()Set db = DBEngine.OpenDatabase("C:\Users\Manikandan.P\Desktop\pay\PAYROLL.MDB")
Set rs = db.OpenRecordset("PAYROLL")
rs.MoveFirstWhile Not rs.EOF
Combo1.AddItem (rs(0))rs.MoveNext
WendEnd Sub
FORM 3:
Dim db As DatabaseDim rs As Recordset
-
7/29/2019 se mannual
12/58
12
Dim p As New employee1
Private Sub Combo1_click()
Call p.view_detailsEnd Sub
Private Sub Command1_Click()
Form1.ShowEnd Sub
Private Sub Command2_Click()End
End Sub
Private Sub Command3_Click()
rs.AddNew
rs.Fields(0) = Combo1.Textrs.Fields(1) = Text1.Text
rs.Fields(2) = Text2.Textrs.Fields(3) = Text3.Text
rs.Fields(4) = Text4.Textrs.Update
MsgBox "record added"
End Sub
Private Sub Form_Load()
Set db = DBEngine.OpenDatabase("C:\Users\Manikandan.P\Desktop\pay\PAYROLL.MDB")Set rs = db.OpenRecordset("PAYROLL")
rs.MoveFirst
While Not rs.EOFCombo1.AddItem (rs(0))rs.MoveNext
Wend
End Sub
Admin.cls
Dim db As Database
Dim rs As RecordsetDim a As Double
Dim llp, llp1 As Double
Dim it As Double
Dim da As DoubleOption Explicit
Public Sub payrolldetails()
Set db = DBEngine.OpenDatabase("C:\Users\Manikandan.P\Desktop\pay\PAYROLL.MDB")Set rs = db.OpenRecordset("PAYROLL")
rs.MoveFirst
While Not rs.EOFIf Form2.Text4.Text = rs.Fields(4) Then
llp = Val(Form2.Text4.Text) / 30
llp1 = Val(Form2.Text13.Text) * llpForm2.Text10.Text = llp1
-
7/29/2019 se mannual
13/58
13
Else
Form2.Text4.Text = Val(Form2.Text4.Text)
End IfForm2.Text6.Text = Val(Form2.Text4.Text) * (18 / 100)
Form2.Text7.Text = Val(Form2.Text4.Text) * (31 / 100)
a = Val(Form2.Text4.Text) * (50 / 100)
da = a + Val(Form2.Text4.Text)Form2.Text5.Text = da * (35 / 100)
Form2.Text8.Text = Val(Form2.Text4.Text) * (12 / 100)
Form2.Text11.Text = Val(Form2.Text4.Text) + Val(Form2.Text5.Text) +Val(Form2.Text6.Text) + Val(Form2.Text7.Text)
it = Val(Form2.Text4.Text) * 12
If it > 150000 ThenForm2.Text9.Text = Val(it) * (0.83 / 100)
Else
Form2.Text9.Text = 0End If
Form2.Text12.Text = Val(Form2.Text11.Text) - (Val(Form2.Text8.Text) +Val(Form2.Text9.Text) + llp1)
rs.MoveNextWend
End Sub
Employee1.cls
Dim db As Database
Dim rs As RecordsetOption Explicit
Public Sub view_details()
Set db = DBEngine.OpenDatabase("C:\Users\Manikandan.P\Desktop\pay\PAYROLL.MDB")Set rs = db.OpenRecordset("PAYROLL")rs.MoveFirst
While Not rs.EOF
If Form3.Combo1.Text = rs.Fields(0) ThenForm3.Text1.Text = rs(1)
Form3.Text2.Text = rs(2)
Form3.Text3.Text = rs(3)Form3.Text4.Text = rs(4)
End If
rs.MoveNext
WendEnd Sub
OUTPUT SCREEN:
-
7/29/2019 se mannual
14/58
14
-
7/29/2019 se mannual
15/58
15
CONCLUSIONThus the system is developed using object oriented programming
approach with the help of CASE tools.
EX.NO: TEXT EDITORDATE:
-
7/29/2019 se mannual
16/58
16
AIM:To create a text editor for manipulating text operation like WordPad, byusing VB.
SYSTEM REQUIREMENTS:
FRONT END: VISUAL BASIC
BACK END: MS ACCESS
USE CASE DIAGRAM:
COLLABORATION DIAGRAM:
-
7/29/2019 se mannual
17/58
17
SEQUENCE DIAGRAM:
FORM DESIGN:
-
7/29/2019 se mannual
18/58
18
SOURCE CODE:
FRONT END (VB 6.0)
START PROGRAMS MICROSOFT VISUAL STUDIO 6.0
MICROSOFT VISUAL BASIC 6.0 OPEN STANDARD EXE
Dim i As IntegerDim str As String
Dim clipfrm As New Form1
Dim flag As Integer
FILE MENU
EDIT MENU
Private Sub COPY_Click()
Set clipfrm = Screen.ActiveFormstr = clipfrm.rt.SelText
End SubPrivate Sub CUT_Click()
Set clipfrm = Screen.ActiveForm
str = clipfrm.rt.SelTextclipfrm.rt.SelText = ""
End Sub
FORMAT MENU
Private Sub COLOUR_Click()
Set clipfrm = Screen.ActiveFormcd.ShowColorclipfrm.rt.SelColor = cd.Color
End Sub
Private Sub EXIT_Click()
End
End Sub
Private Sub FIND_Click()
Dim str As String
-
7/29/2019 se mannual
19/58
19
str = InputBox("enter the text")
Set clipfrm = Screen.ActiveForm
clipfrm.rt.FIND (str)clipfrm.rt.SelStart = clipfrm.rt.SelStart
clipfrm.rt.SelLength = Len(str)
End Sub
Private Sub FONT_Click()
Set clipfrm = Screen.ActiveForm
cd.Flags = cdlCFScreenFontscd.ShowFont
clipfrm.rt.SelFontName = cd.FontName
clipfrm.rt.SelBold = cd.FontBoldclipfrm.rt.SelFontSize = cd.FontSize
clipfrm.rt.SelItalic = cd.FontItalic
clipfrm.rt.SelUnderline = cd.FontUnderlineEnd Sub
Private Sub NEW1_Click()
flag = 1Form1.rt.Text = ""
End Sub
Private Sub OPEN1_Click()
Dim frmopen As New Form1
Set frmopen = Screen.ActiveFormcd.ShowOpen
frmopen.rt.LoadFile (cd.FileName)
End Sub
Private Sub PASTE_Click()
Set clipfrm = Screen.ActiveForm
clipfrm.rt.SelText = strEnd Sub
Private Sub REDO_Click()rt.SelText = Clipboard.GetText
End Sub
Private Sub SAVE1_Click()Dim frmsave As New Form1
Set frmsave = Screen.ActiveForm
cd.ShowSavefrmsave.rt.SaveFile (cd.FileName)
End Sub
Private Sub SAVEAS1_Click()
cd.ShowSave
cd.Filter = "textdocument(*.txt)|*.text|allfiles(*.*)|*.* "rt.SaveFile (cd.FileName)
-
7/29/2019 se mannual
20/58
20
End Sub
Private Sub SELECTALL_Click()
rt.SelStart = 0rt.SelLength = Len(rt.Text)
End Sub
Private Sub UNDO_Click()
i = i - Len(typestring)rt.SelStart = i
rt.SelLength = Len(typestring) + 2
Clipboard.SetText (rt.SelRTF)rt.SelText = vbNullString
End Sub
OUTPUT SCREEN:
CONCLUSIONThus the system is developed using object oriented programming
approach with the help of CASE tools.
EX.NO: LIBRARY INFORMATION SYSTEMDATE:
-
7/29/2019 se mannual
21/58
21
AIM:To create a Library Management System for maintain the Library by
using VB.
SYSTEM REQUIREMENTS:
FRONT END: VISUAL BASIC
BACK END: MS ACCESS
CLASS DIAGRAM:
Book Search
Book nameAuthorAvailable books
Regno
Book Search()
DataBase
Book issueBook ReturnUser informationBook Information
Main()Validate user()
User
nameRegnoAvailable booksfine
New user()Existing User()
USECASE DIAGRAM:
-
7/29/2019 se mannual
22/58
22
ENTER INTO SYSTEM
USERNEWUSER
EXISTING USER
ISSUE
RETURN
STORE
DATA BASE ADMIN
ACTIVITY DIAGRAM:
Login
NewuserRegistration
Existinguser
Return
Book
Fine
End
Issuebook
AvailableBooks
Book
search
start
YesNo
SEQUENCE DUAGRAM:
-
7/29/2019 se mannual
23/58
23
useruser systemsystem data basedata base
1: newuser
2: save
3: existing user
4: retrieve
5: display information
6: issue
7: update
8: close
9: save
10: return
11: update
12: close
13: save
COLLABRATION DIAGRAM
user system
database
1: new user3: existing user
6: issue8: close
10: return
12: close
2: save
4: retrieve
7: update9: save
11: update13: save
5: display information
FORM DESIGN:
SOURCE CODE:
-
7/29/2019 se mannual
24/58
24
FRONT END (VB 6.0)START PROGRAMS MICROSOFT VISUAL STUDIO 6.0
MICROSOFT VISUAL BASIC 6.0 OPEN STANDARD EXE
FORM 1:
Private Sub Command1_Click()
Dim a As Boolean
a = False
If (Text1.Text = "admin" And Text2.Text = "admin") Then
a = True
Form2.ShowUnload Me
End If
If (a = False) Then
MsgBox ("Enter Correct Username and Password")
End If
End Sub
FORM 2:
-
7/29/2019 se mannual
25/58
25
Private Sub Command1_Click()
Form3.ShowUnload Me
End Sub
Private Sub Command2_Click()Form4.Show
Unload Me
End Sub
Private Sub Command3_Click()
Form5.ShowUnload Me
End Sub
Private Sub Command4_Click()
Form6.Show
Unload Me
End Sub
Private Sub Command5_Click()
Unload Me
End Sub
FORM 3:
-
7/29/2019 se mannual
26/58
26
Dim db As Database
Dim rs As Recordset
Private Sub Command1_Click()rs.AddNew
rs(0) = Val(Text1.Text)
rs(1) = Text2.Textrs.Update
a = MsgBox("stunet added")
Text1.Text = ""
End Sub
Private Sub Command2_Click()Form2.ShowUnload Me
End Sub
Private Sub Form_Load()
Set db = DBEngine.OpenDatabase("F:\MY PROJECT\PAYROLL
PROCESS\LIBRARY1.MDB")Set rs = db.OpenRecordset("student")
End Sub
FORM4:
-
7/29/2019 se mannual
27/58
27
Dim db As Database
Dim rs As RecordsetPrivate Sub Command1_Click()
With rs.AddNew
.Fields(0) = Val(Text1.Text)
.Fields(1) = Text2.Text
.Fields(2) = Val(Text3.Text)
.Update
End Witha = MsgBox("books updated")
Text1.Text = ""
Text2.Text = ""Text3.Text = ""
End Sub
Private Sub Command2_Click()
Form2.ShowUnload Me
End Sub
Private Sub Form_Load()Set db = DBEngine.OpenDatabase("F:\MY PROJECT\PAYROLL
PROCESS\LIBRARY1.MDB")
Set rs = db.OpenRecordset("books")
End Sub
FORM5:
-
7/29/2019 se mannual
28/58
28
Dim a As BooleanDim b As BooleanDim db As Database
Dim rs1 As Recordset
Dim rs2 As RecordsetPrivate Sub Command1_Click()
rs1.MoveFirst
While Not rs1.EOFIf (Val(Text1.Text) = rs1(0)) Then
a = True
rs2.MoveFirstWhile Not rs2.EOF
If (Val(Text2.Text) = rs2(0)) Then
b = True
rs2.EditIf (rs2(2) > 0) Then
rs2.Edit
rs2(2) = rs2(2) - 1rs2.Update
MsgBox "Book is Issued"
Else
MsgBox "No copies of books is avilable"End If
End If
rs2.MoveNextWend
End If
rs1.MoveNextWend
Text1.Text = ""
Text2.Text = ""If (a = False) Then
MsgBox ("Enter correct Student ID")
-
7/29/2019 se mannual
29/58
29
End If
If (a = True And b = False) Then
MsgBox ("Enter correct Book ID")End If
End Sub
Private Sub Command2_Click()
rs1.MoveFirstWhile Not rs1.EOF
If (Val(Text1.Text) = rs1(0)) Then
a = Truers2.MoveFirst
While Not rs2.EOF
If (Val(Text2.Text) = rs2(0)) Thenb = True
If (rs2(2) > 1) Then
MsgBox "Book is Renewed"Else
MsgBox "Please return the Book."End If
End Ifrs2.MoveNext
Wend
End Ifrs1.MoveNext
Wend
Text1.Text = ""Text2.Text = ""
If (a = False) Then
MsgBox ("Enter correct Student ID")End IfIf (a = True And b = False) Then
MsgBox ("Enter correct Book ID")
End IfEnd Sub
Private Sub Command3_Click()
Form2.ShowUnload Me
End Sub
Private Sub Form_Load()
Set db = DBEngine.OpenDatabase("F:\MY PROJECT\PAYROLLPROCESS\LIBRARY1.MDB")
Set rs1 = db.OpenRecordset("student")
Set rs2 = db.OpenRecordset("books")End Sub
Form 6
-
7/29/2019 se mannual
30/58
30
Dim a As BooleanDim b As Boolean
Dim db As Database
Dim rs1 As RecordsetDim rs2 As Recordset
Private Sub Command1_Click()
rs1.MoveFirstWhile Not rs1.EOF
If (Val(Text1.Text) = rs1(0)) Then
a = True
rs2.MoveFirstWhile Not rs2.EOF
If (Val(Text2.Text) = rs2(0)) Then
b = Truers2.Edit
rs2(2) = rs2(2) + 1
rs2.UpdateMsgBox ("Book is Returned")
End If
rs2.MoveNext
WendEnd If
rs1.MoveNext
Text1.Text = ""Text2.Text = ""
Wend
If (a = False) ThenMsgBox ("Enter correct Student ID")
End If
If (a = True And b = False) ThenMsgBox ("Enter correct Book ID")
End If
End Sub
Private Sub Command2_Click()
-
7/29/2019 se mannual
31/58
31
Form2.Show
Unload Me
End SubPrivate Sub Form_Load()
Set db = DBEngine.OpenDatabase("F:\MY PROJECT\PAYROLL
PROCESS\LIBRARY1.MDB")
Set rs1 = db.OpenRecordset("student")Set rs2 = db.OpenRecordset("books")
End Sub
OUTPUT SCREEN:
-
7/29/2019 se mannual
32/58
32
CONCLUSIONThus the system is developed using object oriented programming
approach with the help of CASE tools.
EX.NO: BANKING SYSTEM
-
7/29/2019 se mannual
33/58
33
DATE:
AIM:
To create Banking System for manipulating bank operation by usingVB.
SYSTEM REQUIREMENTS:
FRONT END: VISUAL BASIC
BACK END: MS ACCESS
USECASE DIAGRAM:
Approval process
Select type of transactoin
Deposit saving
withdraw amount
Bank client
CLASS DIAGRAM
-
7/29/2019 se mannual
34/58
34
balance checkaccountnumber
name
amount
checkbalance()
withdraw
accountno
amount
updateaccount()
deposit
accountno
amount
depositamount()
login
name
password
checkdetails()
selectchoice()
ministatementaccountno
name
transaction
date
amount
getdetails()
Activity diagram
start
check userdetails
select transaction tobe done
get amount from userand add it with balance
get amount from user and do
proper withdraw activity
produce the lasttransaction details
get the balance amount
from the account
stop
COLLABORATION DIAGRAM:
-
7/29/2019 se mannual
35/58
35
control
user
login
account
database
1: enter user name and password
2: check details
3: give permission
4: get the transactions
5: get the amount from the user
6: perform the updations
7: return the details to the user
SEQUENCE DIAGRAM:
loginuser account control database
1: enter user name and password
2: check details
3: give permission
4: get the transactions
5: get the amount from the user
6: perform the updations
7: return the details to the user
FORM DESIGN:
-
7/29/2019 se mannual
36/58
36
SOURCE CODE:
FRONT END (VB 6.0)START PROGRAMS MICROSOFT VISUAL STUDIO 6.0
MICROSOFT VISUAL BASIC 6.0 OPEN STANDARD EXE
FORM 1:
Private Sub Command1_Click()Form2.Show
Me.HideEnd Sub
FORM 2:
Dim db As Database
Dim rs As Recordset
-
7/29/2019 se mannual
37/58
37
Private Sub Command1_Click()
Do While Not Data1.Recordset.EOF
If (Text1.Text = Data1.Recordset(0) And Text2.Text = Data1.Recordset(1)) ThenMsgBox ("you can login")
Me.Hide
Form3.Show
GoTo xElse
Data1.Recordset.MoveNext
End IfLoop
MsgBox "Wrong user name or password"
Text1.Text = ""Text2.Text = ""
x:
End SubPrivate Sub Command2_Click()
Me.HideForm1.Show
End Sub
Private Sub Form_Load()
Set db = DBEngine.OpenDatabase("F:\MY PROJECT\bank project\bank.mdb")Set rs = db.OpenRecordset("atm1")
End Sub
FORM 3:
Private Sub Command1_Click()
Form4.Show
Me.Hide
End SubPrivate Sub Command2_Click()
Form5.Show
Me.Hide
-
7/29/2019 se mannual
38/58
38
End Sub
Private Sub Command3_Click()
Form6.ShowMe.Hide
End Sub
Private Sub Command4_Click()
Me.HideForm7.Show
End Sub
Private Sub Command5_Click()
End
End Sub
FORM 4:
Private Sub Command1_Click()
Do While Not Data1.Recordset.EOFIf Form2.Text2.Text = Data1.Recordset(1) Then
Data1.Recordset.Edit
Data1.Recordset(2) = Data1.Recordset(2) + Val(Text1.Text)
Data1.Recordset(4) = Data1.Recordset(2)Data1.Recordset(5) = Format(Now, "dd-mm-yyyy")
Data1.Recordset(6) = "deposit"
Data1.Recordset.UpdateMsgBox ("ur account be succesfully added...")
Me.HideForm3.Show
End If
Data1.Recordset.MoveNext
LoopEnd Sub
Private Sub Command2_Click()
Me.Hide
Form3.ShowEnd Sub
Private Sub Form_Load()
-
7/29/2019 se mannual
39/58
39
Set db = DBEngine.OpenDatabase("F:\MY PROJECT\bank project\bank.mdb")
Set rs = db.OpenRecordset("atm1")
End Sub
Form 5
Dim db As Database
Dim rs As Recordset
Private Sub Command1_Click()
Data1.Recordset.MoveFirstDo While Not Data1.Recordset.EOF
If Form2.Text2.Text = Data1.Recordset(1) Then
Data1.Recordset.EditData1.Recordset(2) = Data1.Recordset(2) - Text1.Text
Data1.Recordset(4) = Data1.Recordset(2)
Data1.Recordset(5) = Format(Now, "dd-mm-yyyy")Data1.Recordset(6) = "withdraw"
Data1.Recordset.Update
MsgBox ("ur account should be updated")Text1.Text = " "
Me.Hide
Form3.Show
End IfData1.Recordset.MoveNext
Loop
End SubPrivate Sub Command2_Click()
Form3.Show
Me.HideEnd Sub
Private Sub Form_Load()
Set db = DBEngine.OpenDatabase("F:\MY PROJECT\bank project\bank.mdb")
-
7/29/2019 se mannual
40/58
40
Set rs = db.OpenRecordset("atm1")
End Sub
Form 6
Dim db As DatabaseDim rs As Recordset
Private Sub Command1_Click()Data1.Recordset.MoveFirstDo While Not Data1.Recordset.EOF
If (Form2.Text1.Text = Data1.Recordset(0) And Form2.Text2.Text =
Data1.Recordset(1)) ThenText1.Text = Data1.Recordset(3)
Text2.Text = Data1.Recordset(0)
Text3.Text = Data1.Recordset(4)Command1.Value = False
End If
Data1.Recordset.MoveNext
LoopEnd Sub
Private Sub Command2_Click()
Me.HideForm3.Show
End Sub
Private Sub Form_Load()Set db = DBEngine.OpenDatabase("F:\MY PROJECT\bank project\bank.mdb")
Set rs = db.OpenRecordset("atm1")
End Sub
-
7/29/2019 se mannual
41/58
41
Form 7
Dim db As DatabaseDim rs As Recordset
Dim a As Date
Private Sub Command1_Click()rs.MoveFirst
Do While Not rs.EOF
If Form2.Text2.Text = rs(1) Then
a = rs("date") Text1.Text = " the account " + rs(3) + " of the account holder Mr/Mrs/Ms." + rs(0)
+ " have the balance in their account the sum of rupees " + rs(4)Text1.Text = Form2.Text1.Text + "S the last transaction was " + rs("operation") +
" done on " + Format(a, "dd-mm-yyyy")
Text1.Locked = True
GoTo xElse
rs.MoveNext
End If
Loopx:
End Sub
Private Sub Command2_Click()End
End Sub
Private Sub Form_Load()Set db = DBEngine.OpenDatabase("F:\MY PROJECT\bank project\bank.mdb")
Set rs = db.OpenRecordset("atm1")
End Sub
-
7/29/2019 se mannual
42/58
42
BACK END DESIGN:
OUTPUT SCREEN:
-
7/29/2019 se mannual
43/58
43
CONCLUSIONThus the system is developed using object oriented programming
approach with the help of CASE tools.
EX.NO: ONLINE SHOPPING SYSTEMDATE:
-
7/29/2019 se mannual
44/58
44
AIM:
To create Online Shopping System for manipulation of shoppingoperation by using VB.
SYSTEM REQUIREMENTS:
FRONT END: VISUAL BASIC
BACK END: MS ACCESS
CLASS DIAGRAM
USECASE DIAGRAM
COLLABORATION DIAGRAM
SEQUENCE DIAGRAM
-
7/29/2019 se mannual
45/58
45
FORM DESIGN:
SOURCE CODE:FRONT END (VB 6.0)
START PROGRAMS MICROSOFT VISUAL STUDIO 6.0
MICROSOFT VISUAL BASIC 6.0 OPEN STANDARD EXE
FORM 1:
OUTPUT SCREEN:
-
7/29/2019 se mannual
46/58
46
CONCLUSIONThus the system is developed using object oriented programming
approach with the help of CASE tools.
EX.NO: ONLINE VOTING SYSTEMDATE:
-
7/29/2019 se mannual
47/58
47
AIM:
To create Online Voting System for manipulation of polling operationby using VB.
SYSTEM REQUIREMENTS:
FRONT END: VISUAL BASIC
BACK END: MS ACCESS
CLASS DIAGRAM
USECASE DIAGRAM
-
7/29/2019 se mannual
48/58
48
COLLABORATION DIAGRAM
-
7/29/2019 se mannual
49/58
49
-
7/29/2019 se mannual
50/58
50
SEQUENCE DIAGRAM
-
7/29/2019 se mannual
51/58
51
FORM DESIGN:
SOURCE CODE:
FRONT END (VB 6.0)
START PROGRAMS MICROSOFT VISUAL STUDIO 6.0
MICROSOFT VISUAL BASIC 6.0 OPEN STANDARD EXE
MAIN FORMDim db As DatabaseDim rs As Recordset
Private Sub Command1_Click()
If Text1.Text = rs(0) And Text2.Text = rs(1) ThenForm2.Show
Else
a = MsgBox("PLEASE FILL ALL THE REQDETAILS", vbExclamation, "WARNING")End If
End Sub
Private Sub Command2_Click()End
End Sub
Private Sub Command3_Click()
Form3.Show
End Sub
Private Sub Command4_Click()
Form4.Show
End Sub
-
7/29/2019 se mannual
52/58
52
Private Sub Form_Load()
Set db = DBEngine.OpenDatabase("F:\MY PROJECT\ONLINE VOTING\cricket.mdb")Set rs = db.OpenRecordset("entry")
End Sub
FORM 2
Dim db As DatabaseDim rs As Recordset
Private Sub Command1_Click()Dim f As Integer
If Option1.Value Then
f = 1
ElseIf Option2.Value Thenf = 2
ElseIf Option3.Value Then
f = 3ElseIf Option4.Value Then
f = 4
End IfSelect Case (f)
Case 1:
rs.Editrs("sachin") = Val(rs("sachin")) + 1
-
7/29/2019 se mannual
53/58
53
rs.Update
Case 2:
rs.Editrs("dhoni") = Val(rs("dhoni")) + 1
rs.Update
Case 3:
rs.Editrs("shewag") = Val(rs("shewag")) + 1
rs.Update
Case 4:rs.Edit
rs("dravid") = Val(rs("dravid")) + 1
rs.UpdateEnd Select
MsgBox ("THANX 4 VOTING!")
Me.HideForm1.Show
End Sub
Private Sub Command2_Click()Me.Hide
Form1.Show
End Sub
Private Sub Form_Load()
Set db = DBEngine.OpenDatabase("F:\MY PROJECT\ONLINE VOTING\cricket.mdb")Set rs = db.OpenRecordset("voting")
End Sub
FORM 3
Dim db As Database
-
7/29/2019 se mannual
54/58
54
Dim rs As Recordset
Private Sub Command1_Click()End
End Sub
Private Sub Form_Load()
Set db = DBEngine.OpenDatabase("F:\MY PROJECT\ONLINE VOTING\cricket.mdb")
Set rs = db.OpenRecordset("voting")sachin.Text = Val(rs("sachin"))
dhoni.Text = Val(rs("dhoni"))
shewag.Text = Val(rs("shewag"))dravid.Text = Val(rs("dravid"))
If (Val(rs("sachin")) > Val(rs("dhoni")) And Val(rs("sachin")) > Val(rs("shewag")) And
Val(rs("sachin")) > Val(rs("dravid"))) ThenText5.Text = Val(rs("sachin"))
Label6.Caption = sachin.NameElseIf (Val(rs("sachin")) < Val(rs("dhoni")) And Val(rs("dhoni")) > Val(rs("shewag")) And
Val(rs("dhoni")) > Val(rs("dravid"))) ThenText5.Text = Val(rs("dhoni"))
Label6.Caption = dhoni.Name
ElseIf (Val(rs("dravid")) > Val(rs("dhoni")) And Val(rs("dravid")) > Val(rs("shewag")) AndVal(rs("sachin")) < Val(rs("dravid"))) Then
Text5.Text = Val(rs("dravid"))
Label6.Caption = dravid.NameElse
Text5.Text = Val(rs("shewag"))
Label6.Caption = shewag.NameEnd IfEnd Sub
FORM 4
-
7/29/2019 se mannual
55/58
55
Dim db As DatabaseDim rs As Recordset
Private Sub Command1_Click()
If Val(Text3.Text) < 18 Thena = MsgBox("not enough age")
Form1.Show
Elsers.AddNew
rs(0) = Text1.Text
rs(1) = Text2.Text
rs(2) = Val(Text3.Text)rs.Update
a = MsgBox("table updated")
End IfEnd Sub
Private Sub Form_Load()
Set db = DBEngine.OpenDatabase("F:\MY PROJECT\ONLINE VOTING\cricket.mdb")Set rs = db.OpenRecordset("entry")
End Sub
BACK END DESIGN:
-
7/29/2019 se mannual
56/58
56
OUTPUT SCREEN:
-
7/29/2019 se mannual
57/58
57
-
7/29/2019 se mannual
58/58
58
CONCLUSIONThus the system is developed using object oriented programming
approach with the help of CASE tools.
top related