Record for Case Tools Lab Anna University

download Record for Case Tools Lab Anna University

of 121

Transcript of Record for Case Tools Lab Anna University

  • 7/22/2019 Record for Case Tools Lab Anna University

    1/121

    STUDENT MARK ANALYSIS SYSTEM

    AIM:To create a UML diagram for MARK ANALYSIS system.

    ACTORS:1. Student

    2. Staff USE CASES:1. Number of subject2. Marks3. Total4. Grade5. Average

    PROBLEM STATEMENT:Student marks analyzing system has to be developed for analyzing the marks obtained by the

    students who scored in Semester Examination

    The System should provide the following functionalities

    1. The System obtains the following information (No of Subjects, Marks, Total, Percentage, Grade,Marks obtained in each subject and No of students in each section) from the faculty and generatesreport.2. The total, average and grade of each student should be calculated and ranked based on total and passin all the subject appeared. If a student fails in at least in one subject then he/she should be given rank.3. The Final report should display the top 3 persons in each subject along with rank, percentage, Class,Pass/Fail Status for each student. The report should also contain information about no of students

    passed, failed, list of students who got more than 60% in each subject and overall list of students whogot >=60% and so on.

    USE CASE DIAGRAM:

    Draw and drop the actors and use case from browser window into the diagram window. Associate the use cases and actors.

    Staff Student

    No of Subjects

    Marks

    Total

    Percentage

    Grade

  • 7/22/2019 Record for Case Tools Lab Anna University

    2/121

    CLASS DIAGRAM:

    ACTIVITY DIAGRAM: The activity diagram describes the sequencing of activities, with support for both

    conditional and parallel behavior. The various controls are placed into the diagram window to create activity diagram.

    Staff No.of SubjectsMarksTotalPercentageGradeReg.no

    Display()GetMarks()FindTotal()FindAVG()

    AsignGrade()

    StudentsNameReg.No

    CollegeCode

    Display Result()

  • 7/22/2019 Record for Case Tools Lab Anna University

    3/121

    SEQUENCE DIAGRAM: Create a new package from the database and name it as a sequence diagram. From the toolbar, select the required tools and make corresponding connections.

    COLLABORATION DIAGRAM: Press f5 on the sequence diagram the collaboration diagram is obtained. Save the diagram.

    Staff Marks Find Total &Average

    Assume Grade Student

    1. No of Subjects

    2. Read Marks

    3. Find total & Avg

    4. Find Grade

    5. Store

    6. Store Marks

  • 7/22/2019 Record for Case Tools Lab Anna University

    4/121

    COMPONENT DIAGRAM:

    DEPLOYMENT DIAGRAM:

    DEVELOPING PROCESS

    OPEN SYSTEM:

  • 7/22/2019 Record for Case Tools Lab Anna University

    5/121

    CALENDER:

    MASTER UPDATE:

  • 7/22/2019 Record for Case Tools Lab Anna University

    6/121

    HELPING:

    UPDATE AND SEARCH:

    SCORCE CODE:

    Private Sub Form_Load()Call txt0Check24.Value = 1'************Text23.Text = Val(Text7.Text) + Val(Text8.Text) + Val(Text9.Text) + Val(Text10.Text) _ + Val(Text11.Text) + Val(Text12.Text) + Val(Text13.Text) + Val(Text14.Text) + Val(Text15.Text) +Val(Text16.Text)Text22.Enabled = FalseText23.Enabled = False'*************Check18.Value = 1Check19.Enabled = 0Check1.Value = 1Check3.Value = 1

  • 7/22/2019 Record for Case Tools Lab Anna University

    7/121

    Check5.Value = 1Check6.Value = 1Option1.Value = TrueData3.Visible = FalseText17.Visible = FalseText18.Visible = FalseText19.Visible = FalseLabel40.Visible = FalseLabel41.Visible = FalseLabel42.Visible = FalseList4.AddItem "By Name"List4.AddItem "By Address"List4.AddItem "By Roll no"List4.AddItem "By Phone"List4.AddItem "By Class 10 marks"List4.AddItem "By Class 12 marks"List4.AddItem "By Semester 1 marks"List4.AddItem "By Semester 2 marks"List4.AddItem "By Semester 3 marks"List4.AddItem "By Semester 4 marks"List4.AddItem "By Semester 5 marks"List4.AddItem "By Semester 6 marks"List4.AddItem "By Semester 7 marks"List4.AddItem "By Semester 8 marks"List4.AddItem "By Sex"'-------List4.AddItem "By Date of Birth"List4.AddItem "By Email"List4.AddItem "By Semester total"List4.AddItem "By overall total"Data1.Visible = FalseData2.Visible = FalseCommand3.Enabled = 0Command4.Enabled = 0Command10.Enabled = 0Command7.Enabled = 0Command8.Enabled = 0List1.AddItem "M"List1.AddItem "F"'Adodc1.Visible = False'Text4.Text = Form2.Combo1.List(Form2.Combo1.ListIndex)'Text5.Text = Form2.Combo2.List(Form2.Combo2.ListIndex)'=========Private Sub SSTab1_Click(PreviousTab As Integer)Data1.RefreshData2.RefreshEnd Sub

    Private Sub Text1_Change()x = Len(Text1.Text)For i = 1 To xIf UCase(Mid(Text1.Text, i, 1)) >= "A" And UCase(Mid(Text1.Text, i, 1))

  • 7/22/2019 Record for Case Tools Lab Anna University

    8/121

    ElseMsgBox "Enter only character"Text1.Text = ""End If

    NextEnd Sub

    Private Sub Text10_Change()If IsNumeric(Text10.Text) = False And Len(Text10.Text) >= 1 ThenMsgBox "Enter only number"Text10.Text = ""End If Text22.Text = Val(Text9.Text) + Val(Text10.Text) _ + Val(Text11.Text) + Val(Text12.Text) + Val(Text13.Text) + Val(Text14.Text) + Val(Text15.Text) +Val(Text16.Text)End Sub

    Private Sub Text11_Change()If IsNumeric(Text11.Text) = False And Len(Text11.Text) >= 1 ThenMsgBox "Enter only number"Text11.Text = ""End If Text22.Text = Val(Text9.Text) + Val(Text10.Text) _ + Val(Text11.Text) + Val(Text12.Text) + Val(Text13.Text) + Val(Text14.Text) + Val(Text15.Text) +Val(Text16.Text)End Sub

    ElseIf List4.Text = "By Roll no" Thenx = Len(Text17.Text)For i = 1 To xIf UCase(Mid(Text17.Text, i, 1)) >= 0 And UCase(Mid(Text17.Text, i, 1)) = 1 ThenMsgBox "Enter only numbers"Text17.Text = ""End If End If End Sub

    Private Sub Text18_Change()If List4.Text = "By Date of Birth" Theny = Len(Text18.Text)For i = 1 To yIf (UCase(Mid(Text18.Text, i, 1)) >= 0 And UCase(Mid(Text18.Text, i, 1))

  • 7/22/2019 Record for Case Tools Lab Anna University

    9/121

    End If Next'-----ElseIf List4.Text = "By Roll no" Thenx = Len(Text18.Text)For i = 1 To xIf UCase(Mid(Text18.Text, i, 1)) >= 0 And UCase(Mid(Text18.Text, i, 1)) = 1 ThenMsgBox "Enter only numbers"Text18.Text = ""End If End If End Sub

    Private Sub Text21_Change()x = Len(Text21.Text)For i = 1 To xIf UCase(Mid(Text21.Text, i, 1)) >= 0 And UCase(Mid(Text21.Text, i, 1)) = "A" And UCase(Mid(Text21.Text, i, 1))

  • 7/22/2019 Record for Case Tools Lab Anna University

    10/121

    MsgBox "Enter only 6/7 digit NUMBER"Text3.Text = ""End If

    NextElseMsgBox "Cannot exceed 7 digit"Text3.Text = ""End If End Sub

    SOFTWARE TESTING

    OPEN SYSTEM:

    ADD AND MODIFY:

  • 7/22/2019 Record for Case Tools Lab Anna University

    11/121

    CHANGE THE PASSWORD:

    MASTER UPDATE:

  • 7/22/2019 Record for Case Tools Lab Anna University

    12/121

    CALCULATER AND CALLENDER:

    CONCLUSIONThus the system is developed using object oriented programming approach with the help of CASE

    tools.

  • 7/22/2019 Record for Case Tools Lab Anna University

    13/121

    QUIZ SYSTEM

    AIM:To create a uml diagram for QUIZ application.

    ACTORS:1. Interviewer

    2. Participant3. Scorer

    USE CASES: 1. Number of teams2. Team name3. Number of participants4. Rules5. Rounds6. Question and Answers7. Time8. Marks9. Results10. Prize

    PROBLEM STATEMENT:

    Online Quiz System has to be developed for conducting Preliminary stage of a quiz.The System developed should contain the following features:

    1. The number of participants, Teams, team Name and Rounds are bound to follow Rules.2. The duration for quiz is determined. Where the Scorer will have to take care of them.3. The number of questions should be 40 chosen randomly from the database in 3 different areas namely i)Technical ii) logical reasoning and iii) General Knowledge.4. The questions should be of objective type with multiple options. For each correct answer the

    participant will receive 1 Point and for wrong answer, the participant will be out of the quiz competition.5. At the end of the quiz the users score along with information whether he has been selected or not has to

    be displayed.6. Once a Student has answered a question, he cant change the answer later.

    DEPLOYMENT DIAGRAM:

  • 7/22/2019 Record for Case Tools Lab Anna University

    14/121

    USE CASE DIAGRAM: Draw and drop the actors and use case from browser window into the diagram window. Associate the use cases and actors.

    COMPONENT DIAGRAM:

    CLASS DIAGRAM:

    Interviewer

    Rules

    No of Teams Team Name No of Participant No of Rounds

    Particiapnt

    Prize

    Questions

    Answer

    MarksScorer

    Result

  • 7/22/2019 Record for Case Tools Lab Anna University

    15/121

    ACTIVITY DIAGRAM: The activity diagram describes the sequencing of activities, with support for both

    conditional and parallel behavior. The various controls are placed into the diagram window to create activity diagram.

    Describe no of teams, no of participant, noof rounds, and team name

    Enter Round

    Ask Questions

    Get Answer

    Check Answer

    Ass ign Marks

    Check End of Round

    Declare Result

    Award the Prize

    If Not Correct

    If Correct

    If Yes

    No

  • 7/22/2019 Record for Case Tools Lab Anna University

    16/121

    SEQUENCE DIAGRAM:

    Create a new package from the database and name it as a sequence diagram. From the toolbar, select the required tools and make corresponding connections.

    COLLABORATION DIAGRAM: Press f5 on the sequence diagram the coloration diagram is obtained.

    Interviewer Participant Marks Rounds Winner

    1. Ask Question

    2.Answer the Question

    3. If Answer is Correct provide Mark

    4. If Not Correct Ask Next Question

    5. If Check End of Round

    6.If Yes Announce Winner

    7. If No Ask Next Question

  • 7/22/2019 Record for Case Tools Lab Anna University

    17/121

    FORM DESIGN:LOG IN PAGE:

    QUESTION:

  • 7/22/2019 Record for Case Tools Lab Anna University

    18/121

    PASSWORD CHANGING:

    UPDATE:

    SOURCE CODE: Private Sub mnuAbout_Click()frmAbout.Show (1)End Sub

  • 7/22/2019 Record for Case Tools Lab Anna University

    19/121

    Private Sub mnuCourse_Click()frmCourse.Show (1)End Sub

    Private Sub mnuDuplicateSQuestions_Click()frmDuplicateSQuestions.Show 1End Sub

    Private Sub mnuExit_Click()EndEnd SubPrivate Sub mnuFaculty_Click()frmFaculty.Show (1)End SubPrivate Sub mnuPassword_Click()frmUtilityChangePassword.Show (1)End SubPrivate Sub mnuQuiz_Click()frmQuizForm.Show (1)End SubPrivate Sub mnuQuizForm_Click()frmAllQuizForms.Show (1)End Sub

    Private Sub mnuDuplicateQuizForm_Click()FrmCopyQuizForm.Show (1)End Sub

    Private Sub mnuRunQuizServer_Click()frmQuizServerRun.Show (1)End Sub

    Private Sub mnuStudent_Click()frmStudent.Show (1)End Sub

    Private Sub mnuUtilitiescreateBAckup_Click()MyAppID = Shell(D:\Academic Head\quizserver\backup.bat)AppActivate MyAppIDMsgBox Backup has just been created!End Sub

    Private Sub mnuUtilitiesUseBackup_Click()MyAppID = Shell(D:\Academic Head\quizserver\usebak.bat)AppActivate MyAppIDMsgBox Backup has just been used! But please check the DOS window first.End Sub

    Private Sub mnuViewCourse_Click()frmAllCourses.Show (1)End SubPrivate Sub mnuViewFaculty_Click()

  • 7/22/2019 Record for Case Tools Lab Anna University

    20/121

    frmAllFacultyMembers.Show (1)End Sub

    Private Sub mnuViewQuestions_Click()strCnQu = DSN=DSNSample;server=server;uid=sa;pwd=touch;database=OnlynQuizSet strCn1Qu = New ADODB.ConnectionstrCn1Qu.Open strCnQuCall Initialization_QuestionfrmViewQuizForm.Show (1)End Sub

    Private Sub mnuViewFacultyEnglishViolators_Click()frmViewFAcultyViolators.Show (1)End Sub

    Private Sub mnuViewQuizResults_Click()strCnQ = DSN=DSNSample;server=server;uid=sa;pwd=touch;database=OnlynQuizSet strCn1Q = New ADODB.ConnectionstrCn1Q.Open strCnQCall Initialization_Quiz

    strCnLimit = DSN=DSNSample;server=server;uid=sa;pwd=touch;database=OnlynQuizSet strCn1Limit = New ADODB.ConnectionstrCn1Limit.Open strCnLimitCall Initialization_LimitfrmQuizResults.Show (1)End Sub

    Private Sub mnuViewStudentEnglishViolators_Click()frmViewStudentViolators.Show (1)End Sub

    Private Sub mnuViolatorsFaculty_Click()frmFacultyViolations.Show (1)End Sub

    Private Sub mnuViolatorsStudents_Click()frmStudentViolations.Show (1)End Sub

    Private Sub Timer1_Timer()Label4.Caption = Date & & TimeEnd Sub

    Private Sub txtPassword_Change()If txtuserName.Text And txtPassword.Text Then

    Command1.Enabled = TrueEnd If End Sub

    Private Sub txtUserName_Change()If txtuserName.Text And txtPassword.Text Then

    Command1.Enabled = True

  • 7/22/2019 Record for Case Tools Lab Anna University

    21/121

    End If End Sub

    End SubPrivate Sub List_allcourses_Click()txtFiremode.Text = List_AllCourses.TextEnd Sub

    Dim TargetNum As StringDim AddZero As StringcmdCreate.Enabled = TrueReDim ArrQuestions(Val(ComboTotalItems.Text), 8)RecordCtr = RecordCtr + 1TargetNum = Left(txtFireMode1.Text, 2)With rsQuestion

    .MoveFirst

    .Find compositenumquestion= & Trim(ComboQuizForm.Text) & While Not .EOF

    If Left(TargetNum, 1) = 0 ThenTargetNum = Right(TargetNum, 1)

    End If If !itemnumber = TargetNum Then

    VarRow = VarRow + 1VarListCtr = VarListCtr + 1If Len(Trim(VarListCtr)) = 1 Then

    AddZero = 0ElseAddZero =

    End If If VarRow < Val(ComboTotalItems.Text) ThenVarRow = VarRow + 1List2.AddItem AddZero & VarListCtr & Space(3 Len(VarListCtr)) & | & _

    !question & Space(250 Len(!question)) & | & _ !Option1 & Space(50 Len(!Option1)) & | & _ !Option2 & Space(50 Len(!Option2)) & | & _ !Option3 & Space(50 Len(!Option3)) & | & _ !Option4 & Space(50 Len(!Option4)) & | & _ !Option5 & Space(50 Len(!Option5)) & | & _ !correctanswer & Space(50 Len(!correctanswer))ArrQuestions(VarRow, 1) = VarListCtr ArrQuestions(VarRow, 2) = !questionArrQuestions(VarRow, 3) = !Option1ArrQuestions(VarRow, 4) = !Option2ArrQuestions(VarRow, 5) = !Option3ArrQuestions(VarRow, 6) = !Option4ArrQuestions(VarRow, 7) = !Option5ArrQuestions(VarRow, 8) = !correctanswer Else

    MsgBox You have specified only & Val(ComboTotalItems.Text) & questions for thequizform!, vbExclamation

    End If .MoveNext

    .Find compositenumquestion= & Trim(ComboQuizForm.Text) &

  • 7/22/2019 Record for Case Tools Lab Anna University

    22/121

    WendEnd WithList1.SetFocuscmdCopy.Enabled = FalseEnd Sub

    SOFTWARE TESTING:LOGIN PAGE:

    QUESTION:

  • 7/22/2019 Record for Case Tools Lab Anna University

    23/121

    PASSWORD CHANGING:

    CONCLUSIONThus the system is developed using object oriented programming approach with the help of CASE

    tools.

  • 7/22/2019 Record for Case Tools Lab Anna University

    24/121

    ONLINE TICKET RESERVATION

    AIM:To create a UML diagram for ONLINE TICKET RESERVATION system.

    ACTORS:1. Passenger 2. System

    USE CASES:1. Enter the web site2. Choose the destination3. List of trains4. User details5. Choose the train6. Number of seats7. Credit card number 8. Ticket status9. Confirmation

    10. Exit

    PROBLEM STATEMENT:Online ticket reservation system has to be developed for railway department.

    The System developed should contain following features

    1. The System should provide information about arrival and departure of trains along withinformation about stations through which it passes.

    2. Search about train passing through stations can be obtained either by means of train no, trainname or specifying the source and destination stations.

    3. While displaying information about train, it has to provide following informationsa) Stations through which train passes along with arrival and departure time.

    b) Availability of seats in different classes along with waiting list and RAC information.

    3. While reserving ticket online the system obtain following informations from the user

    a) Passenger name, Sex, Age, Address T.Authority no for tatkal reservation b) Credit Card No, Bank Name

    c) Class through passenger is going to travel i.e First class or Second class or ACd) Train no and Train name, Date of Journey and number of tickets to be booked.

    4. Based on the availability of tickets the ticket has to be issued. The ticked issued should containthe following informations PNR NO, Train No, Date, K.M., no of adults and children, Ticket

    No, Class, Ticket No, Coach, Seat/Berth, Sex, Age, T.Authority, Concession, Reservation fee,Total Cash, Train Name, Departure time.

    6. Before issuing ticket the amount from customer account has to be transferred to railway account.7. Cancellation of booked tickets should be available

  • 7/22/2019 Record for Case Tools Lab Anna University

    25/121

    USE CASE DIAGRAM: Draw and drop the actors and use case from browser window into the diagram window. Associate the use cases and actors.

    CLASS DIAGRAM:

    Passenger

    Enter the Web Site

    Exit

    Select t he Destination

    List of Trains

    Select t he Train

    User Details

    No of Seats

    Ticket Status

    Credit Card No

    Confirmation

    System

    DBTrain NameTrain NoSourceDestination

    ArrTimeDepTimeClassFareDistance

    Getcustomerdetails()gettraveldetails()confirmation()reservetic ket()display()Process()

    Customer Customer NameDOBSex

    AddressPhone

    Givedet()availability()getconfirm()reserve()givecreditcardno()getticket()

    Computer isavailableticketno

    maintaindb()updatedb()reservetic ket()deliverticket ()

  • 7/22/2019 Record for Case Tools Lab Anna University

    26/121

    ACTIVITY DIAGRAM:

    The activity diagram describes the sequencing of activities, with support for bothconditional and parallel behavior.

    The various controls are placed into the diagram window to create activity diagram.

    COLLABORATION DIAGRAM:

    Press f5 on the sequence diagram the coloration diagram is obtained.

    Login WebSite

    Select theDestination

    Select the TrainNo & No of Seats

    Try Later Create Customer

    Details

    Credit CardNumber

    Confirmation

    Exit

    Is AvailableNo

    Yes

  • 7/22/2019 Record for Case Tools Lab Anna University

    27/121

    SEQUENCE DIAGRAM: Create a new package from the database and name it as a sequence diagram. From the toolbar, select the required tools and make corresponding connections.

    COMPONENT DIAGRAM:

    Passenger System DB

    1. Login Web Site

    2. Select the Destination

    3. List of Trains

    4. Give User Details

    5. Give Train No & No...

    6. Credit Card No

    7. Give Status

    8. Reserve Ticket

    9.Confirmation

    10. Issue Ticket

    DB

    Store &Update

    Computer

  • 7/22/2019 Record for Case Tools Lab Anna University

    28/121

    DEPLOYMENT DIAGRAM:

    FORM DESIGN:

  • 7/22/2019 Record for Case Tools Lab Anna University

    29/121

  • 7/22/2019 Record for Case Tools Lab Anna University

    30/121

    SOURCE CODE:Private Sub Command1_Click()Form2.HideForm1.ShowEnd SubPrivate Sub DET_Click()Form2.HideForm6.Show

    rs.MoveFirstDo While (Not rs.EOF)If (UCase(Combo1.Text) = rs.Fields("tname")) Then

    Form6.Text1.Text = rs.Fields("tno")Form6.Text2.Text = rs.Fields("from")Form6.Text3.Text = rs.Fields("to")Form6.Text4.Text = rs.Fields("fcf")Form6.Text5.Text = rs.Fields("scf")Form6.Text6.Text = rs.Fields("tcf")Form6.Text7.Text = rs.Fields("fsa")Form6.Text8.Text = rs.Fields("ssa")

    Form6.Text9.Text = rs.Fields("tsa")Form6.Text10.Text = rs.Fields("time")Exit Do

    End If rs.MoveNextLoopEnd Sub

    Private Sub Form_Load()Form2.WindowState = 2dt.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Ramesh\RRS.mdb;Persist Security

    Info=False"

  • 7/22/2019 Record for Case Tools Lab Anna University

    31/121

    rs.Open "TRAIN", dt, adOpenDynamic, adLockOptimisticrs.MoveFirstDo While (Not rs.EOF)

    Combo1.AddItem rs.Fields("TNAME")rs.MoveNextLoopText1.Text = ""Check.Visible = FalseDET.Visible = Falsec = 0End Sub

    Private Sub Text1_KeyPress(KeyAscii As Integer)If KeyAscii = 13 Then

    Check.Visible = TrueDET.Visible = FalseCheck.SetFocus

    End SubFORM2:Private Sub Command1_Click(Index As Integer)Select Case Index

    Case 0clearint

    Case 1clearintMe.Hide

    End SelectEnd Sub

    Private Sub clearint()For i = 0 To 11

    Text1(i) = "" Next iText1(0).SetFocusEnd Sub

    FORM3:Dim i As Integer Private Sub Command1_Click(Index As Integer)Select Case Index

    Case 0If ch = 1 Then

    t(0).AddNewFor i = 0 To 11

    t(0)(i) = Text1(i) Next it(0).UpdateMsgBox "One Record Added"Command1(2).SetFocus

    ElseIf ch = 2 Thent(0).UpdateMsgBox "One Record Updated"Command1(2).SetFocus

  • 7/22/2019 Record for Case Tools Lab Anna University

    32/121

    ElseIf ch = 3 ThenclearintMe.Hide

    End If Case 1

    clearintCase 2

    clearintMe.Hide

    End SelectEnd Sub

    FORM4:Private Sub Form_Load()connectintSet t(0) = db.OpenRecordset("perdet")Set t(1) = db.OpenRecordset("loan")End Sub

    Private Sub Text1_LostFocus(Index As Integer)Select Case Index

    Case 0If Text1(0) "" ThenIf t(0).RecordCount 0 Then t(0).MoveFirst

    Do While Not t(0).EOFIf Text1(0) = t(0)(0) Then

    Text1(1) = t(0)(1) j = 1Exit Do

    End If t(0).MoveNext

    LoopIf j = 0 Then

    MsgBox "This Employee Number Doesn't exists"Text1(0) = ""Text1(0).SetFocus

    End If End If

    End SelectEnd Sub

  • 7/22/2019 Record for Case Tools Lab Anna University

    33/121

    SOFTWARE TESTING:

  • 7/22/2019 Record for Case Tools Lab Anna University

    34/121

    CONCLUSION:Thus the system is developed using object oriented programming approach with the help of CASE

    tools.

  • 7/22/2019 Record for Case Tools Lab Anna University

    35/121

    EX.NO: PAYROLL SYSTEMDATE:

    AIM:

    To create a Employee Payroll System for manipulating payroll management by using

    SRS DOCUMENTATION:

    INTRODUCTION:

    Purpose:This document gives detailed functional and non functional requirements for payroll maintained system.

    The purpose of this document is that the requirements mentioned in it should be utilized by softwaredeveloper to implement the system.

    Scope:This system allows the employee record. With the help of the system we are able to maintain the allrecords of the employees in very detail. The system provides a cumulative report at every month end withdetail description.

    Overview:The system provides an easy solution to the user to keep track of student attendance and statistics.

    GENERAL DESCRIPTION: Many companies today are choosing the option of outsourcing portions of their accounting duties

    to a payroll processing system . With the introduction of the computer and high-technologycommunications, now it is easier than ever to hire professionals to handle bookkeeping and other jobswithin the business. And, these professionals may be geographically located anywhere in the world,

    because the Internet allows instant access to people, records, facts, and other vital communications. Choosing the right payroll processing system to meet the individual needs of any given business will beimportant. Companies researching and actively looking for a payroll administrative service will want tofind a service that will be easy to work with and offer the latest technology options. Having access toemployees pay, bonus, and other special income records can be crucial for managers. Businesses mayeven consider choosing a payroll service systems that offers financial advice and one that can analyze

    payroll records.

    User manual:The system should provide HELP option in which how to operate the system should be explained. Alsohard copy of this document should be given to the user in a booklet form.

    FUNCTIONAL REQUIREMENTS:

    Description:The identity of the employees is verified and then entered their details with date and time. The systemshould display the details of the employee along with their name and address.

  • 7/22/2019 Record for Case Tools Lab Anna University

    36/121

    SOFTWARE INTERFACE:Software interface 1: attendance maintenance system.Software interface 2: The employee database should be transmitted to departmental database server.Software interface 3: report generators.

    PERFORMANCE REQUIREMENS:This system should work concurrently on multiple processors between the office hours. The system shouldsupport 50 users.The email should be send within one hour after the office time get over.The system should support taking details attendance of maximum 50 employee per department.

    DESIGN CONSTRAINTS:The system should be designed within 6 months.

    OTHER NON FUNCTIONAL ATTRIBUTES:Security

    The user should provide password and login on to the system. The password can be changed by the user.Reliability:Due to wireless connectivity, reliability cannot be guaranteed.Availability:System should be available during office hours.Maintainability:There should be a facility to add or delete or update details of employees for each month.Reusability:The same system will be used in each month.

    OPERATIONAL SCENARIOS:There will be employee database and employee database with all needed details.

    PRELIMINARY SCHEULE:The system has to be implemented within 6 months.

    DESIGN DIAGRAMS:

    USE CASE DIAGRAM:

    employee details

    Systembasic pay calculation

    lop calculation

    gross salary calculation

    Employee

    net pay calculation

  • 7/22/2019 Record for Case Tools Lab Anna University

    37/121

    CLASS DIAGRAM:

    COLLOBORATION DIAGRAM:

    emp detailsname

    staff nodeptaddressdojpf

    checking()

    basicpayugpg

    calc bp()11

    total pay

    basicpaydarsianame2

    caltp()

    11

    lop

    clbasic paydarsia

    callop()

    11

    grosssalloptp

    calgrsal()11

    net salgross paypf

    calnetpay()111 1 1 1 1 1 1 1 1 1

    employee emp details basicpay

    totalpay

    lop

    grosssal

    netsalsystem

    8: netsal=grosssal if no pf

    1: retrieve emp details 2: basic pay calc based on ug pg

    3: add basic,DA,RSIA

    4: if lop not available gs=tp

    5: calculation of lop if lop available

    6: grosssal= tp-lop

    7: netsal calc by deducting pf if any

    9: update details

    10: intimate the employee

  • 7/22/2019 Record for Case Tools Lab Anna University

    38/121

    SEQUENCE DIAGRAM:

    ACTIVITY DIAGRAM:

    employee emp details basic pay totalpay lop grosssalnetsal system

    retrieve emp details

    basic pay calc based on ug pg

    add basic,DA,RSIA

    if lop not available gs=tp

    calculation of lop if lop available

    grosssal=tp-lop

    netsal calc by deducting pf if any

    netsal=grosssal if no pf

    update details

    intimate the employee

  • 7/22/2019 Record for Case Tools Lab Anna University

    39/121

    IMPLEMENTATION:FORM DESIGN:

  • 7/22/2019 Record for Case Tools Lab Anna University

    40/121

  • 7/22/2019 Record for Case Tools Lab Anna University

    41/121

    SOURCE CODE: FORM 1:

    Dim con As New ADODB.ConnectionDim rs As New ADODB.Recordset

    Private Sub cmdOK_Click()If txtUserName.Text = rs.Fields(0) And txtPassword.Text = rs.Fields(1) ThenMDIForm1.ShowMe.HideEnd If End SubPrivate Sub Command1_Click ()Frame1.Visible = TrueEnd SubPrivate Sub Command2_Click ()rs.AddNewrs.Fields(0) = Text1.Textrs.Fields(1) = Text2.Textrs.UpdateMsgBox SaveFrame1.Visible = FalseEnd SubPrivate Sub Command3_Click ()Form4.ShowMe.HideEnd SubPrivate Sub Form_Activate()Set con = New ADODB.ConnectionSet rs = New ADODB.Recordsetcon.Open Provider=Microsoft.Jet.OLEDB.4.0; Data Source= & App.Path & \pas.mdb;PersistSecurity Info=Falsers.Open pas, con, adOpenDynamic, adLockOptimisticFrame1.Visible = FalseText1.Text = Text2.Text = End Sub

    FORM 2:Private Sub Command1_Click ()

    rs.AddNewrs.Fields(0) = Text1.TextIf Option1 = True And Option2 = False Thenrs.Fields(1) = Option1.CaptionElse

    rs.Fields(1) = Option2.CaptionEnd If

    rs.Fields(2) = Text2.TextText3.Text = rs.Fields(3)rs.Fields(4) = Text4.Textrs.Fields(5) = Text5.Textrs.UpdateMsgBox addedEnd SubPrivate Sub Command2_Click()

  • 7/22/2019 Record for Case Tools Lab Anna University

    42/121

    MDIForm1.ShowEnd SubPrivate Sub Command3_Click()Text1.Text = Text2.Text = Text3.Text = Text4.Text = Text5.Text = End SubPrivate Sub Form_Activate()Set con = New ADODB.ConnectionSet rs = New ADODB.Recordsetcon.Open Provider=Microsoft.Jet.OLEDB.4.0;Data Source= & App.Path & \db2.mdb;PersistSecurity Info=Falsers.Open personal, con, adOpenDynamic, adLockOptimisticMsgBox connection successfullyEnd Sub

    FORM 3: Dim con As New ADODB.ConnectionDim rs As New ADODB.RecordsetPrivate Sub cmdexit_Click()EndEnd SubPrivate Sub Command1_Click()Text2.Text = Text1.Text = Text3.Text = Combo2.Text = Combo1.Text = Combo3.Text = rs.Fields.Refreshrs.UpdateIf (Text2.Text = And Text1.Text = And Text3.Text = And Combo2.Text = AndCombo1.Text = And Combo3.Text = ) ThenMsgBox please search your details and modify your detailsElsers.MoveFirstWhile Not rs.EOFIf Text2.Text = rs.Fields(1) ThenMsgBox ID already existExit SubElsers.MoveNextEnd If

    Wendrs.AddNewrs.Fields(0) = Text1.Textrs.Fields(1) = Text2.Text

    rs.Fields(2) = Text3.Textrs.Fields(3) = Combo1.Textrs.Fields(4) = Combo2.Textrs.Fields(5) = Combo3.Text

  • 7/22/2019 Record for Case Tools Lab Anna University

    43/121

    rs.Fields(6) = Val(Combo3.Text + (Combo3.Text * 12 / 100))rs.UpdateMsgBox addedText2.Text = Text1.Text = Text3.Text = Combo2.Text = Combo1.Text = Combo3.Text = End If End SubEnd SubPrivate Sub Command3_Click()Dim I As Integer I = 1For I = 1 To rs.Fields.CountIf (rs.Fields(1) = Text2.Text) ThenIf (rs.BOF = False) And (rs.EOF = False) ThenWhile Not rs.EOFIf Trim(Ucase(rs.Fields(1))) = Text2.Text ThenText1.Text = rs.Fields(0)Text2.Text = rs.Fields(1)Text3.Text = rs.Fields(2)Combo2.Text = rs.Fields(3)Combo1.Text = rs.Fields(4)Combo3.Text = rs.Fields(5)Exit SubElsers.MoveNextEnd If Wendrs.DeleteMsgBox (Record Deleted)MsgBox (no data deleted)If (rs.BOF = True) And (rs.EOF = True) ThenMsgBox (no data found)End If ElseMsgBox (no data deleted)End If Next iEnd SubPrivate Sub Command6_Click()Command2.Enabled = Trueemployeeid = InputBox(ENTER THE ID)If employeeid = ThenExit SubEnd If rs.MoveFirstWhile Not rs.EOFIf Trim(Ucase(rs.Fields(1))) = Trim(Ucase(employeeid)) ThenText1.Text = rs.Fields(0)Text2.Text = rs.Fields(1)

  • 7/22/2019 Record for Case Tools Lab Anna University

    44/121

    Text3.Text = rs.Fields(2)Combo2.Text = rs.Fields(3)Combo1.Text = rs.Fields(4)Combo3.Text = rs.Fields(5)Exit SubEnd If rs.MoveNextWendMsgBox No such Record, vbCriticalIf rs.BOF = True ThenText1.Text = 1Elsers.MoveLastText1.Text = Val(rs.Fields(0)) + 1End If End SubPrivate Sub Command8_Click()MDIForm1.ShowEnd SubPrivate Sub Form_Activate()Set con = New ADODB.ConnectionSet rs = New ADODB.Recordsetcon.Open Provider=Microsoft.Jet.OLEDB.4.0;Data Source= & App.Path & \db1.mdb;PersistSecurity Info=Falsers.Open employee, con, adOpenDynamic, adLockOptimisticMsgBox connection successfullyText1.SetFocusText2.Text = Text1.Text = Text3.Text = Combo2.Text = Combo1.Text = Combo3.Text = End Sub

  • 7/22/2019 Record for Case Tools Lab Anna University

    45/121

    OUTPUT SCREEN:

  • 7/22/2019 Record for Case Tools Lab Anna University

    46/121

    CONCLUSION:Thus the system is developed using object oriented programming approach with the help of CASE

    tools.

  • 7/22/2019 Record for Case Tools Lab Anna University

    47/121

    COURSE REGISRTRATION SYSTEM

    AIM:To create a UML diagram of COURSE REGISTRATION system.

    ACTORS:

    1. Student2. Staff 3. Registrar 4. Database

    USECASES:

    1. Login id2. Registration form3. Update the grade of student4. Choose the subject5. Choose the courses6. Start registration7. Maintain student profile8. Close registration9. Maintain staff profile

    PROBLEM STATEMENT:

    1. Develop a new student registration system for your college.

    2. The college would like a new client-server system to replace its much older system developed aroundmainframe technology.

    3. The database is an Ingres relational database running on a DEC VAX. And the college has invested inan open SQL interface that allows access to this database from the Unix servers.

    4. The new system will allow students to select four course offerings for the coming semester. Inaddition, each student will indicate two alternative choices in case the student cannot be assigned to a

    primary selection.

    5. Course offerings will have a maximum of twenty students and a minimum of five students. A courseoffering with fewer than five students will be canceled.Students must be able to access the systemduring this time to add or drop courses. Once the registration process is completed for a student, theregistration system sends information to the billing system so the student can be billed for thesemester.

    6. If a course fills up during the actual registration process, the student must be notified of the change before submitting the schedule for processing.

    7. At the end of the semester, the student will be able to access the system to view an electronic reportcard. Since student grades are sensitive information, the system must employ extra security measuresto prevent unauthorized access.

  • 7/22/2019 Record for Case Tools Lab Anna University

    48/121

    USE CASE DIAGRAM:

    Draw and drop the actors and use case from browser window into the diagram window. Associate the use cases and actors.

    CLASS DIAGRAM:

    Student

    Registration Form

    Logi n ID Choos e t he Course Chose t he Subj ec t

    Staff

    Start Registration

    Database

    Maintain Staff Profile

    maintain Student Profile

    Update the Grade

    Registrar

    Close Registration

    DB ClassStuIDStu NameStuADDStuCourseStuMarksStuextraCourseavailableFeestructureDurationDOB

    AddRecord()Edit Record()DisplayRecord()Miscellenous()

    STUDENTIDNAme

    AddressCourseMarksDOB

    Enterdetails()submitform()

    REGFORMISEliegible()Form ID

    Open Form()Check Eligiblity()Register()

    Ass ign ID()

  • 7/22/2019 Record for Case Tools Lab Anna University

    49/121

    ACTIVITY DIAGRAM: The activity diagram describes the sequencing of activities, with support for both

    conditional and parallel behavior. The various controls are placed into the diagram window to create activity diagram.

    COMPONENT DIAGRAM:

    Login ID

    Get RegistrationForm

    Update theGrade

    Select Courses& Subjects

    Display NotEligible

    Not Eligible

    MaintainStudent Profile

    Elgible

    CloseRegistration

    Check Eligibility

    SERVER

    Store &Update

    FrontPanel

  • 7/22/2019 Record for Case Tools Lab Anna University

    50/121

    SEQUENCE DIAGRAM:

    Create a new package from the database and name it as a sequence diagram. From the toolbar, select the required tools and make corresponding connections.

    COLLABORATION DIAGRAM: Press f5 on the sequence diagram the coloration diagram is obtained.

    Staff Database Registrar Databse

    1. Login ID

    2. Get Form

    3. Select Co urse

    4.Select Subject

    5. Submit Form

    6. Check the Form

    7. Maintain Staff Profile

    8. Maintain Student Profile

    9. If Not Eligible Display

    10. Close Registration

  • 7/22/2019 Record for Case Tools Lab Anna University

    51/121

    DEPLOYMENT DIAGRAM:

    FORM DESIGN:HOME PAGE:

  • 7/22/2019 Record for Case Tools Lab Anna University

    52/121

    PRINT:

    PRINT INFORMATION:

  • 7/22/2019 Record for Case Tools Lab Anna University

    53/121

    STUDENT AND MARK DETAILS:

    SOURCE CODE:Private Sub Command6_Click()Form3.Show

    Unload MeEnd Sub

    Private Sub Command8_Click()Adodc1.RefreshEnd Sub

    Private Sub exit_Click()Dim iReply As Integer iReply = MsgBox("Are You Sure ?", vbYesNo + vbQuestion, "Exit")

    If iReply = vbYes Then

    EndEnd If End Sub

    Private Sub Form_Activate()Text16.SetFocusEnd Sub

    Private Sub Form_Load()Adodc1.ConnectionString = ("Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & (App.Path &"\data.mdb"))

    Adodc1.RecordSource = "Select * From data order by matric desc"

  • 7/22/2019 Record for Case Tools Lab Anna University

    54/121

    Set DataGrid1.DataSource = Adodc1DataGrid1.AllowUpdate = FalseSSTab1.Tab = 0End Sub

    Private Sub form1_Click()SSTab1.Tab = 0

    End Sub

    Private Sub home_Click()Form2.ShowUnload MeEnd Sub

    Private Sub Option1_Click()If Option1.Value = True Then

    DataCombo1.Visible = TrueEnd If End Sub

    Private Sub Option2_Click()If Option2.Value = True Then

    DataCombo1.Visible = FalseLabel17.Visible = False

    End If End Sub

    Private Sub print_Click()SSTab1.Tab = 2End Sub

    Private Sub record_Click()SSTab1.Tab = 1

    End Sub

    Private Sub Text1_LostFocus()Text1.Text = UCase(Text1.Text)End Sub

    Private Sub Text10_LostFocus()Text10.Text = (Text10.Text)End Sub

    Private Sub Text11_LostFocus()Text11.Text = (Text11.Text)End Sub

    Private Sub Text12_LostFocus()Text12.Text = (Text12.Text)End Sub

    Private Sub Text13_LostFocus()

  • 7/22/2019 Record for Case Tools Lab Anna University

    55/121

    Text13.Text = (Text13.Text)End Sub

    Private Sub Text14_LostFocus()Text14.Text = (Text14.Text)End Sub

    Private Sub Text16_Change()Text17.Locked = FalseText18.Locked = FalseText19.Locked = FalseAdodc1.Recordset.MoveFirstAdodc1.Recordset.Find "matric like '" & Text16.Text & "'"If Adodc1.Recordset.EOF Then

    Command1.Caption = "&Add"Me.Caption = "Course Registration"Exit Sub

    ElseText1.Text = (Adodc1.Recordset.Fields(4))Text2.Text = (Adodc1.Recordset.Fields(5))Text3.Text = (Adodc1.Recordset.Fields(6))Text4.Text = (Adodc1.Recordset.Fields(7))Text5.Text = (Adodc1.Recordset.Fields(8))Text6.Text = (Adodc1.Recordset.Fields(9))Text7.Text = (Adodc1.Recordset.Fields(10))Text8.Text = (Adodc1.Recordset.Fields(11))Text9.Text = (Adodc1.Recordset.Fields(12))Text10.Text = (Adodc1.Recordset.Fields(13))Text11.Text = (Adodc1.Recordset.Fields(14))Text12.Text = (Adodc1.Recordset.Fields(15))Text13.Text = (Adodc1.Recordset.Fields(16))Text14.Text = (Adodc1.Recordset.Fields(17))Text15.Text = (Adodc1.Recordset.Fields(25))Text17.Text = (Adodc1.Recordset.Fields(1))Text18.Text = (Adodc1.Recordset.Fields(2))Text19.Text = (Adodc1.Recordset.Fields(3))Combo1.Text = (Adodc1.Recordset.Fields(18))Combo2.Text = (Adodc1.Recordset.Fields(19))Combo3.Text = (Adodc1.Recordset.Fields(20))Combo4.Text = (Adodc1.Recordset.Fields(21))Combo5.Text = (Adodc1.Recordset.Fields(22))Combo6.Text = (Adodc1.Recordset.Fields(23))Combo7.Text = (Adodc1.Recordset.Fields(24))Command1.Caption = "&Save"Me.Caption = "Course Registration"Command2.Caption = "Reset"

    End If End Sub

    Private Sub Text16_LostFocus()Text16.Text = (Text16.Text)End Sub

  • 7/22/2019 Record for Case Tools Lab Anna University

    56/121

    Private Sub Text17_LostFocus()Text17.Text = (Text17.Text)End Sub

    Private Sub Text18_LostFocus()Text18.Text = (Text18.Text)End Sub

    Private Sub Text19_LostFocus()Text19.Text = (Text19.Text)End Sub

    Private Sub Text2_LostFocus()Text2.Text = UCase(Text2.Text)End Sub

    Private Sub Command1_Click()form1.ShowUnload MeEnd Sub

    Private Sub Command6_Click() DataCombo1.RefreshDE1.rsCommand1.Filter = ""If Option2.Value = True Then

    DE1.rsCommand1.Filter = ""End If If Option1.Value = True Then

    If DataCombo1.Text = "" ThenMsgBox "Please select a matric number.", vbExclamation, "Course Registration System"

    Exit SubEnd If DE1.rsCommand1.Filter = "matric ='" & (DataCombo1.Text) & "'"

    End If DataReport1.ShowDE1.rsCommand1.CloseEnd Sub

    Private Sub Form_Load()Me.Top = 0Me.Left = 0Option1.Value = TrueCall matric1DataCombo1.RefreshEnd Sub

    Private Sub Option1_Click()If Option1.Value = True Then

    DataCombo1.Visible = TrueEnd If End Sub

  • 7/22/2019 Record for Case Tools Lab Anna University

    57/121

    SOFTWARE TESTING:HOME PAGE:

    COURSE REGISTER:

  • 7/22/2019 Record for Case Tools Lab Anna University

    58/121

    PRINT:

    CONCLUSION:Thus the system is developed using object oriented programming approach with the help of CASE

    tools.

  • 7/22/2019 Record for Case Tools Lab Anna University

    59/121

    EXPERT SYSTEM

    AIM:To Create an Uml Diagram for an EXPERT SYSTEM.

    ACTORS:

    1) User 2) Expert System

    USE CASE:1) Fill Registration Form.2) Login System.3) Fill Query Form.4) Prescribe Medicine.

    PROBLEM STATEMENT:

    An expert System has to be developed for prescribing medicines for given symptoms.The System should contain the following features1. The user has to query the system by giving his name, age group, sex, symptoms, period (how long theuser is having those symptoms). Based on these inputs, the system has to make a comparison with thesymptoms in the database prescribing the medicine for the symptoms.

    2. Only the Registered users can query the system. So there should be registration form and after registration the user has to be given username and password. If the user enters the correct password thenthe system has to redirect to query form.

    3. In the query form, age group should be combo box and list of symptoms should be in the form of list box with options selecting multiple symptoms. While prescribing the medicine for the symptoms,corresponding disease, medicine name and medicine manufacturer name along with price has to bedisplayed.

    USE CASE DIAGRAM:

    user

    Fills Registration form

    Login system

    Fill Query form

    prescribe medicine

    expertsystem

  • 7/22/2019 Record for Case Tools Lab Anna University

    60/121

    CLASS DIAGRAM:

    ACTIVITY DIAGRAM:

    new user

    Issuesuername/password

    Filling thequery form

    Enters theExpert system

    view medicinedetails

    Fill theregistration form

    [ yes ]

    login in thesystem

    [ no ]

    Providesquery form

    Submitting thequery form

    prescribing themedicines

    Symptoms notmatched!!

    check thegiven details

    update in thedatabase

    verify logininformation

    [ login correct ]

    [ username/password ]

    [ login incorrect ]

    compares with thedatabase details

    [ syptoms matched ]

    [ symptoms not matched ]

    databaseexpertsystemuser

  • 7/22/2019 Record for Case Tools Lab Anna University

    61/121

    SEQUENCE DIAGRAM:

    COLLABORATION DIAGRAM:

  • 7/22/2019 Record for Case Tools Lab Anna University

    62/121

    COMPONENT DIAGRAM:

    DEPLOYMENT DIAGRAM:

    Expertsystem

    user

    Fills theRegistration form

    Fills theQuery form

    Prescribesmedicine

    logininterface

    Database

  • 7/22/2019 Record for Case Tools Lab Anna University

    63/121

    FORM DESIGN:

    SOURCE CODE:Dim StartX, StartYDim Titles(40) As StringDim CommonWords(127) As StringDim OAspeech(10) As StringDim OACounter As Integer Dim EventIndex As Integer Dim subWindow As Integer Dim counter As Integer

    Private Sub Form_Click() picAnimate.Visible = False

    End Sub

    Private Sub Form_DragDrop(Source As Control, X As Single, Y As Single)Source.Move X - StartX, Y - StartYIf picInfo.Visible = True Then

    picInfo.Left = picChar.Left - (picInfo.Width / 2) picInfo.Top = picChar.Top - (picInfo.Height + 50)lblGreet.Top = picChar.ToplblGreet.Left = (picChar.Left - lblGreet.Width) + picChar.Width + 50

    End If

  • 7/22/2019 Record for Case Tools Lab Anna University

    64/121

    If picResult.Visible = True Then picResult.Left = picChar.Left - (picResult.Width / 2) picResult.Top = picChar.Top - (picResult.Height + 50)lblGreet.Top = picChar.ToplblGreet.Left = (picChar.Left - lblGreet.Width) + picChar.Width + 50

    End If End Sub

    Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) picEvents(0).Picture = IList.ListImages("admission1").Picture

    picEvents(1).Picture = IList.ListImages("enrolment1").Picture picEvents(2).Picture = IList.ListImages("scholarship1").Picture picEvents(3).Picture = IList.ListImages("general1").Picture picEvents(4).Picture = IList.ListImages("policy1").Picture picEvents(5).Picture = IList.ListImages("guidelines1").Picture

    End Sub

    Private Sub lblSubEvents_Click(Index As Integer)Dim count As Integer

    For count = 0 To 5 picEvents(count).Visible = False

    NexttmrAction.Enabled = True

    picAnimate.Visible = FalsetmrSlide.Enabled = True

    End Sub

    Private Sub lstTitles_DblClick()Dim count As Integer

    For count = 0 To 5 picEvents(count).Visible = False

    Next picAnimate.Visible = FalsetmrSlide.Enabled = TrueSelect Case lstTitles.Text

    Case "Incoming freshmen students"Web.Navigate2 App.Path & "\html\Incoming freshmen students.htm"

    Case "Transferees"Web.Navigate2 App.Path & "\html\Transferees.htm"

    Case "Foreign students"Web.Navigate2 App.Path & "\html\Foreign students.htm"

    Case "Enrolment procedure"Web.Navigate2 App.Path & "\html\Enrolment procedure.htm"

    Case "Student load"Web.Navigate2 App.Path & "\html\Student load.htm"

    Case "Pre-requisites of subjects"Web.Navigate2 App.Path & "\html\Pre-requisites of subjects.htm"

    Case "Adding/Dropping of subjects"Web.Navigate2 App.Path & "\html\Adding_Dropping of subjects.htm"

    Case "Dropping of subjects before midterm"Web.Navigate2 App.Path & "\html\Dropping of subjects before midterm.htm"

    Case "Withdrawal of enrolment"Web.Navigate2 App.Path & "\html\Withdrawal of enrolment.htm"

  • 7/22/2019 Record for Case Tools Lab Anna University

    65/121

    Case "Shifting of course"Web.Navigate2 App.Path & "\html\Shifting of course.htm"

    Case "Discontinuance of studies / Leave of absense"Web.Navigate2 App.Path & "\html\Discontinuance of studies.htm"

    Case "Transfer credential"Web.Navigate2 App.Path & "\html\Transfer credential.htm"

    Case "Scholarship grants"Web.Navigate2 App.Path & "\html\Scholarship grants.htm"

    Case "Honors"Web.Navigate2 App.Path & "\html\Honors.htm"

    Case "Standard of conduct"Web.Navigate2 App.Path & "\html\Standard of conduct.htm"

    Case "Student organizations"Web.Navigate2 App.Path & "\html\Student organizations.htm"

    Case "Student activities"Web.Navigate2 App.Path & "\html\Student activities.htm"

    Case "Rules governing scholastic delinquency"Web.Navigate2 App.Path & "\html\Rules governing scholastic delinquency.htm"

    Case "Administration"Web.Navigate2 App.Path & "\html\Administration.htm"

    End SelectEnd Sub

    Private Sub picEvents_Click(Index As Integer)Dim count As Integer

    For count = 0 To 3lblSubEvents(count).Left = 240

    NextFor count = 4 To 7

    lblSubEvents(count).Left = 3000 Next

    Select Case IndexCase 0

    For count = 0 To 2lblSubEvents(count).Caption = Titles(count)

    NextFor count = 3 To 7

    lblSubEvents(count).Caption = "" NextsubWindow = 4000

    Case 1For count = 0 To 7

    lblSubEvents(count).Caption = Titles(count + 3) NextsubWindow = 7000

    Case 2For count = 0 To 3

    lblSubEvents(count).Caption = Titles(count + 12) NextFor count = 4 To 7

    lblSubEvents(count).Caption = "" Next

  • 7/22/2019 Record for Case Tools Lab Anna University

    66/121

    subWindow = 4000Case 3

    For count = 0 To 7lblSubEvents(count).Caption = Titles(count + 16)

    NextsubWindow = 6000

    End SelectEnd Sub

    Private Sub picEvents_MouseMove(Index As Integer, Button As Integer, Shift As Integer, X As Single, YAs Single)

    Case 0 picEvents(0).Picture = IList.ListImages("admission2").Picture

    Case 1 picEvents(1).Picture = IList.ListImages("enrolment2").Picture

    Case 2 picEvents(2).Picture = IList.ListImages("scholarship2").Picture

    Case 3 picEvents(3).Picture = IList.ListImages("general2").Picture

    End SelectEnd Sub

    SOFTWARE TESTING:

  • 7/22/2019 Record for Case Tools Lab Anna University

    67/121

  • 7/22/2019 Record for Case Tools Lab Anna University

    68/121

    CONCLUSION:Thus the system is developed using object oriented programming approach with the help of CASE

    tools.

  • 7/22/2019 Record for Case Tools Lab Anna University

    69/121

    ATM APPLICATION

    AIM:To create an uml diagram of atm application.

    ACTORS:1. Client2. Administrator

    USECASES: 1. Insert card2. Enter pin no3. Invalid pin4. Type of transaction5. Deposit amount6. Withdrawal amount7. Transaction completed8. Remove the card9. Exit10. Carryout transaction

    PROBLEM STATEMENT:To develop an ATM System for HDFC Bank

    The system developed should contain the following features:1. The Customer has to login into the system using Credit Card or Debit Card number and Pin Number.The system should check for validation.2. The System queries the customer for the type of account either Savings Account or Current Account.After getting the type of account, the system shows the amount left.3. The System then queries the customer for the required amount. The user enters the amount and getsthe money.

    USECASE DIAGRAM:

    Draw and drop the actors and usecase from browser window into the diagram window. Associate the usecases and actors.

    Client

    Insert Card

    Enter PIN

    Type of Transaction

    Remove the Card

    Exit

    Deposit Amount

    Withdraw Amount

    Administrator

    Invalid PIN Approval

    Transaction Complted

  • 7/22/2019 Record for Case Tools Lab Anna University

    70/121

    CLASS DIAGRAM :

    ACTIVITY DIAGRAM: The activity diagram describes the sequencing of activities, with support for both

    conditional and parallel behavior. The various controls are placed into the diagram window to create activity diagram.

    Insert Card

    Enter PIN No

    Check PIN No

    Display Invalid

    Invalid

    Valid

    Che ck Type of Transaction

    Withdrawal Amount

    Withdrawal

    Deposit Amount

    Deposit

    Approval

    TransactionCompleted

    Exit

  • 7/22/2019 Record for Case Tools Lab Anna University

    71/121

    SEQUENCE DIAGRAM: Create a new package from the database and name it as a sequence diagram. From the toolbar, select the required tools and make corresponding connections

    COLLABORATION DIAGRAM: Press f5 on the sequence diagram the coloration diagram is obtained. Save the diagram.

    Client ATM Administrator Bank

    1. Insert Card

    2. Enter PIN No

    3. Send PIN No

    4. Verify PIN No

    5. Validate Message

    6. Get Transaction Type

    7. Get Amount

    8. Send Amount

    9. Update Account

    10. Success

    11. Transaction Completed

  • 7/22/2019 Record for Case Tools Lab Anna University

    72/121

    COMPONENT DIAGRAM:

    DEPLOYMENT DIAGRAM:

    ATMServer

    Update

    FrontPanel

  • 7/22/2019 Record for Case Tools Lab Anna University

    73/121

    FORM DESIGN:

  • 7/22/2019 Record for Case Tools Lab Anna University

    74/121

  • 7/22/2019 Record for Case Tools Lab Anna University

    75/121

    SOURCE CODE:

    Option ExplicitDim strWithAmt As StringDim Response As Integer

    Private Sub cmdCancel_Click()Unload MeMe.HidestrWithAmt = "Do you want to perform another operation?"Response = MsgBox(strWithAmt, vbYesNo + vbInformation, " A.T.M Services... ")If Response = vbYes Then

    frmWel.fraTransaction.Visible = TruefrmWel.fraAcctType.Visible = False

    ElseEndEnd If End Sub

    Private Sub cmdOk_Click()Unload MeMe.HidestrWithAmt = "Do you want to perform another operation?"Response = MsgBox(strWithAmt, vbYesNo + vbInformation, " A.T.M Services... ")If Response = vbYes Then

    frmWel.fraTransaction.Visible = TruefrmWel.fraAcctType.Visible = False

    ElseEndEnd If End Sub

    Private Sub Form_Load()Call CrentRem txtWDate = DateWith rsC

    .Find "AccountNumber =" & ActVariable & ""If .EOF Then

    MsgBox "Account does not Exist! Please contact customer services", vbInformation, "A T MService....."

    ElsePrevBal = rsC.Fields(4)lblCurrentB = FormatCurrency(PrevBal)

    End If End WithEnd Sub

    Private Sub cmdChangPin_Click()With rsCode

    .Find "Scode ='" & txtOldPin & "'"

  • 7/22/2019 Record for Case Tools Lab Anna University

    76/121

    If .EOF ThenMsgBox "Pin Number does not Exist! ", vbInformationtxtOldPin = ""txtNewPin = ""txtConFNewPin = ""txtOldPin.SetFocus

    ElseIf Len(txtNewPin) = Len(txtConFNewPin) And Len(txtNewPin) > 3 And Len(txtConFNewPin)> 3 Then

    txtOldPin.Text = txtNewPin.Text.Fields(0) = txtOldPin.Fields(1) = txtOldPin.Fields(2) = txtConFNewPin.UpdateMsgBox "Pin Has been Successfull changed!", vbInformationUnload MefrmWel.fraTransaction.Visible = True

    ElseMsgBox "Confirm Pin does not march with New Pin", vbInformation

    txtOldPin = ""txtNewPin = ""txtConFNewPin = ""txtOldPin.SetFocus

    End If End With

    End Sub

    Private Sub cmdExit_Click()Unload MefrmWel.fraTransaction.Visible = TrueEnd Sub

    Private Sub Form_Load()Call tblSecretCodeCall OpenDBEnd Sub

    Private Sub cmdSearch_Click()If cmdSearch.Caption = "&View Statement" Then

    ActVariable = txtStAcctNum.TextUnload MeLoad frmWaitfrmWait.ShowfrmWel.fraTransaction.Visible = FalseExit Sub

    ElseIf cmdSearch.Caption = "&Process" ThenActVariable = txtStAcctNumCall CrentWith rsC

    .Find "AccountNumber =" & ActVariable & ""If .EOF Then

    MsgBox "Account does not Exist! Please contact customer services", vbInformation, "A T MService....."

    txtStAcctNum = ""

  • 7/22/2019 Record for Case Tools Lab Anna University

    77/121

    txtStAcctNum.SetFocuscmdSearch.Caption = "&Process"

    ElseUnload MeMe.HideLoad frmWithDfrmWithD.Show vbModal

    End If End WithElse

    ActVariable = txtStAcctNumCall CrentWith rsC

    .Find "AccountNumber =" & ActVariable & ""If .EOF Then

    MsgBox "Account does not Exist! Please contact customer services", vbInformation, "A T MService....."

    txtStAcctNum = ""txtStAcctNum.SetFocuscmdSearch.Caption = "&Inquire"

    ElseUnload MeMe.HidefrmCash.Image1.Visible = FalsefrmCash.cmdOk.Visible = FalseLoad frmCashfrmCash.Show vbModal

    End If End WithEnd If Unload MefrmWel.fraTransaction.Visible = TruefrmWel.fraAcctType.Visible = FalsefrmWel.fraSecretCode.Visible = FalseEnd Sub

    Dim cleardisplay As BooleanDim strMessage As String

    Private Sub cmdAccept_Click()Set rs = New ADODB.Recordset

    With rs.ActiveConnection = con.CursorLocation = adUseClient.CursorType = adOpenKeyset.LockType = adLockOptimistic.Open "tblScode"

    End With

    With rs.Find "Scode ='" & txtDisplay & "'"

  • 7/22/2019 Record for Case Tools Lab Anna University

    78/121

    If .EOF ThenMsgBox "Pin Number is incorrect or does not Exist", vbCritical, "ATM-Pin Error"txtDisplay = "": txtDisplay.SetFocus

    ElsefraTransaction.Visible = TruefraSecretCode.Visible = False

    End If End WithtxtDisplay = ""End Sub

    Private Sub cmdBack_Click()fraTransaction.Visible = FalsefraSecretCode.Visible = TrueEnd Sub

    Private Sub cmdCancel_Click()fraAcctType.Visible = FalsefraTransaction.Visible = TrueEnd Sub

    Private Sub cmdClear_Click()txtDisplay.Text = "": txtDisplay.SetFocusEnd Sub

    Private Sub cmdExit_Click()fraSecretCode.Visible = FalseMsgBox "Thank you for Banking with us, Do have an nice day...", vbInformation, "A T M-SERVICE"EndEnd Sub

    Private Sub cmdOk_Click()With deBankUba

    .conBankUba.Open "PROVIDER=Microsoft.Jet.OLEDB.4.0;Data Source=" + App.Path +"\BankUba.mdb;"

    .rscmdStatement.Open "Select * From DailyTrans where [AccountNumber]='" & txtAcctNo & "'",deBankUba.conBankUba, adOpenDynamic, adLockOptimistic

    rptStatement.Show vbModal.conBankUba.Close

    End WithUnload MeEnd Sub

  • 7/22/2019 Record for Case Tools Lab Anna University

    79/121

    SOFTWARE TESTING:

  • 7/22/2019 Record for Case Tools Lab Anna University

    80/121

    CONCLUSION:Thus the system is developed using object oriented programming approach with the help of CASE

    tools.

  • 7/22/2019 Record for Case Tools Lab Anna University

    81/121

    STOCK MAINTENANCE

    AIM:To create a UML diagram for the stock maintenance system.

    ACTORS:1. Producer

    2. Dealer 3. Retailer .

    USE CASE:1. Purchase2. Company name3. Price4. Item ordered5. Total price6. Sales7. Company Name8. Price of the item9. Item ordered10. Total price

    PROBLEM STATEMENT:

    Inventory system is a real time application used in the merchants day to day systems. This is thedatabase to store transactions that takes place between the manufacturer, dealer and retailer. That includesstock inwards and stock outwards with reference to the dealer. Here we assume ourselves as a dealer and

    proceed with the transaction.

    The manufacturer is the producer of items and it contains the necessary information of the item price. The dealer is the secondary source of an item from the manufacturer by requesting the required itemwith its corresponding company name and the number of item required.

    The dealer is only responsible for the distribution of the item to the retailer in the town/city. Theshopkeeper/retailer is the one who is the main source of selling the items in the market. The customer getsthe item from the shopkeeper and not directly from the manufacturer or dealer.

    Stock is a database used in our system in which records or transactions that takes place betweenmanufacturer, dealer and retailer.

  • 7/22/2019 Record for Case Tools Lab Anna University

    82/121

    USE CASE:

    CLASS DIAGRAM:

    Manufacturer Menu/Item NameCompany nameDate of Item

    AddressContact NoPrice

    Mention an item name()give company name()give manufacturing date()give address()put price()

    Dealer 1Dealer NameDate_item Receivedcontact nono of item orderedNo of Item sold

    Display dealer name()Item Received()Put contact no()get price()no of item required()indicate item sold()

    retailer 1Shop Keeper nameaddresscontact nopriceno of items ordered

    Display Shopkeeper()Display address()Get Contact no()Display price()Indicate item ordered()

  • 7/22/2019 Record for Case Tools Lab Anna University

    83/121

    ACTIVITY DIAGRAM:

    SEQUENCE DIAGRAM:

    Manufacturer Manufacturer Dealer Dealer Retailer Retailer

    1: Display item for sale

    2: Display to Shopkeeper

    3: Company Name and price details

    4: Get price and other details

    5: give price details

    6: Display price

    7: no of item ordered

    8: Ordered items

    9: Delivered items to dealer\

    10: Delivered item to retailer

    11: Check for extra price available

    12: Item sufficient and insufficient

  • 7/22/2019 Record for Case Tools Lab Anna University

    84/121

    COLLABORATION DIAGRAM:

    COMPONENT DIAGRAM:

    Manufacturer

    Dealer

    Retailer

    1: Display item for sale5: give price details

    9: Delivered items to dealer\

    4: Get price and other details8: Ordered items

    2: Display to Shopkeeper 3: Company Name and price details

    7: no of item ordered11: Check for extra price available6: Display price

    10: Delivered item to retailer 12: Item sufficient and insufficient

    Stock Maintanancesystem

    stockinterf ace

    maintains database

    customer

    vendor

    informsorder

    order for material

    finishedgoods

  • 7/22/2019 Record for Case Tools Lab Anna University

    85/121

    DEPLOYMENT DIAGRAM:

    FORM DESIGN:

    `

    Stock System Database

    Customer vendor

  • 7/22/2019 Record for Case Tools Lab Anna University

    86/121

  • 7/22/2019 Record for Case Tools Lab Anna University

    87/121

    SOURCE CODE:FORM 1:Option ExplicitPublic FORM_STATE As BooleanPublic CODE As String'Public rs_user As New Recordset

    Private Sub Command1_Click()If IS_EMPTY(Text1) = True Then Exit SubIf IS_EMPTY(Text2) = True Then Exit SubIf IS_EMPTY(Text2) = True Then Exit Sub

    With rs_xxxIf FORM_STATE = True Then .AddNew

    .Fields(1) = Text1.Text

    .Fields(2) = Text2.Text.Update

    End With'------------------------------'Inform updates'------------------------------If FORM_STATE = True Then

    MsgBox "Adding of new user has been successfull.", vbInformationDim rep As Integer rep = MsgBox("Do you want to add another user?", vbQuestion + vbYesNo)If rep = vbYes Then

    Text1.Text = ""Text2.Text = ""Text3.Text = ""Text1.SetFocusrs_xxx.RequeryFRM_USERS.LOAD_RECORD

    Elsers_xxx.RequeryFRM_USERS.LOAD_RECORDUnload Me

    End If rep = 0

    ElseIf LCase(user_name) = LCase(Text1.Text) Then

    user_name = Text1.TextMAIN.StatusBar1.Panels.Item(3).Text = user_name

    End If MsgBox "Changes in record has been successfully saved.", vbInformation, "CSRS version 1"Dim pos As Long

    pos = rs_xxx.AbsolutePositionrs_xxx.RequeryFRM_USERS.LOAD_RECORDrs_xxx.AbsolutePosition = pos

    FRM_USERS.ListView1.ListItems.Item(pos).EnsureVisible

  • 7/22/2019 Record for Case Tools Lab Anna University

    88/121

    FRM_USERS.ListView1.ListItems.Item(pos).Selected = True

    pos = 0Unload Me

    End If '------------------------------'End-Inform updates'------------------------------End Sub

    Private Sub Command2_Click()Unload Me

    End Sub

    Private Sub Form_Load()If FORM_STATE = False Then

    Text1.Text = rs_xxx.Fields(1)Text2.Text = rs_xxx.Fields(2)Text3.Text = rs_xxx.Fields(2)Me.Label2.Caption = "Edit User"Me.Label1.Caption = "Change your Username and Password"

    End If End Sub

    Private Sub Form_Unload(Cancel As Integer)FRM_USERS.Enabled = True

    End Sub

    FORM2:Private BufferSize As Long'SetFileDateTime Declarations (Yep, all of this!!!)Private Type FILETIME

    dwLowDate As LongdwHighDate As Long

    End Type

    Private Type SYSTEMTIMEwYear As Integer wMonth As Integer wDayOfWeek As Integer wDay As Integer wHour As Integer wMinute As Integer wSecond As Integer wMillisecs As Integer

    End Type

    Private Const OPEN_EXISTING = 3Private Const FILE_SHARE_READ = &H1Private Const FILE_SHARE_WRITE = &H2Private Const GENERIC_WRITE = &H40000000

  • 7/22/2019 Record for Case Tools Lab Anna University

    89/121

    Private Declare Function CreateFile Lib "kernel32" Alias "CreateFileA" (ByVal lpFileName As String,ByVal dwDesiredAccess As Long, ByVal dwShareMode As Long, ByVal lpSecurityAttributes As Long,ByVal dwCreationDisposition As Long, ByVal dwFlagsAndAttributes As Long, ByVal hTemplateFile AsLong) As LongPrivate Declare Function LocalFileTimeToFileTime Lib "kernel32" (lpLocalFileTime As FILETIME,lpFileTime As FILETIME) As LongPrivate Declare Function SetFileTime Lib "kernel32" (ByVal hFile As Long, ByVal MullP As Long,ByVal NullP2 As Long, lpLastWriteTime As FILETIME) As LongPrivate Declare Function SystemTimeToFileTime Lib "kernel32" (lpSystemTime As SYSTEMTIME,lpFileTime As FILETIME) As LongPrivate Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Long) As LongPrivate Sub cmdCopy_Click()On Error GoTo cmdCopy_Click_Error

    Dim i As Integer Dim SRC As StringDim TRG As StringDim b As BooleanDim tDim StyleDim Title As StringDim ResponseDim Msg As StringDim vFileDateTimeDim bStat As Boolean

    Call SetEnabled(False)

    SRC = txtSource.Text 'Set Source File Namei = InStrRev(txtSource.Text, "\") 'Find \FilenameTRG = txtTarget.Text & Mid(txtSource.Text, i) 'Set Target Location and Name

    b = FileExist(txtTarget.Text & Mid(txtSource.Text, i)) 'Does File Already Exist?If b = True Then

    Msg = "The file '" & TRG & "' already exists. Would you like to overwrite it?"Style = vbYesNo + vbCritical + vbDefaultButton2 ' Define buttons.Title = "F I L E E X I S T S" ' Define title.Response = MsgBox(Msg, Style, Title)If Response = vbYes Then ' User chose Yes.

    On Error Resume NextSetAttr TRG, vbNormalKill TRGElse ' User chose No.lblStatus.Caption = "File Copy Aborted!"Call SetEnabled(True)Exit Sub

    End If End If lblStatus.Caption = "Copying: " & Mid(txtSource.Text, i + 1): DoEvents

    b = CopyTheFile(SRC, TRG) 'Call Copy RoutineIf b = False Then 'No Errors

    vFileDateTime = FileDateTime(SRC) 'Get Source file date and time bStat = SetFileDateTime(TRG, vFileDateTime) 'Call routine to set target file Date and TimelblStatus.Caption = "File Copied Successfully!"Else 'Error

  • 7/22/2019 Record for Case Tools Lab Anna University

    90/121

    lblStatus.Caption = "Error Copying: " & Mid(txtSource.Text, i + 1)End If DoEventsIf b = True Then Exit Sub 'No Need to verifyIf FileLen(SRC) < 0 Then Exit SubIf chkVerify.Value = 1 Then

    t = Timer + 1.5 'Add Delay, so they know there weren't any errorsDo While t > Timer

    DoEventsLooplblStatus.Caption = "Verifying: " & Mid(txtSource.Text, i + 1)

    b = ValidateFile(SRC, TRG)If b = True Then 'they're the same

    lblStatus.Caption = "File Copy & Verify Successful!"ElselblStatus.Caption = "File Failed Verification!!!"

    End If End If Call SetEnabled(True)

    Exit SubcmdCopy_Click_Error:MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure" & Chr(13) & Chr(10) &"(cmdCopy_Click) of (frmCopyRoutine.frm).", vbCriticalEnd SubPrivate Sub SetEnabled(b As Boolean)On Error GoTo SetEnabled_Error

    cmdCopy.Enabled = bcmdPath(0).Enabled = bcmdPath(1).Enabled = bchkVerify.Enabled = b

    Exit Sub

    SetEnabled_Error:MsgBox "Error " & Err.Number & " (" & Err.Description & ") in procedure" & Chr(13) & Chr(10) &"(SetEnabled) of (frmCopyRoutine.frm).", vbCriticalEnd Sub

  • 7/22/2019 Record for Case Tools Lab Anna University

    91/121

    SOFTWARE TESTING:

  • 7/22/2019 Record for Case Tools Lab Anna University

    92/121

  • 7/22/2019 Record for Case Tools Lab Anna University

    93/121

    CONCLUSION:Thus the system is developed using object oriented programming approach with the help of CASE

    tools.

  • 7/22/2019 Record for Case Tools Lab Anna University

    94/121

    REAL TIME SCHEDULER

    AIM:To develop an application that implement scheduler for real time application like course

    registration system.SCOPE:

    This can be used to automatically schedule or allocate resource to the system based on the request

    from any user without the human intervention. This application can be used in all places whichimplements resources allocation and scheduling of resource based on requestPROBLEM ANALYSIS:

    The system controller implements any of the scheduling algorithms. Based on the request placed by the user and depending on the resource available, the system controller allocates the resource to theuser. The details of the resource based on the application are stored in the database and updated when theresource are allocated or scheduled.PROJECT PLANNING:

    The database stores the details of the application, the resource based on the application and theavailability. The resource type and the amount are collected and stored in the database. The systemcontroller implements the scheduling algorithm and controls the overall application.

    SOFTWARE REQUIREMENTS: Front end: Visual Basic.Back end: Ms Access.Software: Rational Rose.

    MODULE ANALYSIS: 1. Login

    2. Requesting for course

    3. System controller

    4. Updation.

    DATA DICTIONARY: Name- Student NameZonal name zonal name of the collegeDept Department nameCutoff mark cut off mark secured.

  • 7/22/2019 Record for Case Tools Lab Anna University

    95/121

    USE CASE DIAGRAM:

    CLASS DIAGRAM:

  • 7/22/2019 Record for Case Tools Lab Anna University

    96/121

    ACTIVITY DIAGRAM:

    COLLABORATION DIAGRAM

    administrator

    student

    :

    controller

    1:login :2:enter zone3:enter details5:enter college6: view status 7:enter dept

    4: view college9:issue intimation

    8: update

  • 7/22/2019 Record for Case Tools Lab Anna University

    97/121

    SEQUENCE DIAGRAM:

    student controller admin

    1.login

    2.enter zone

    3.enter details

    4.view college

    5.enter college

    6.view status

    7.enter dept

    8.update

    9.issue intimation

  • 7/22/2019 Record for Case Tools Lab Anna University

    98/121

    FORM DESIGN:

  • 7/22/2019 Record for Case Tools Lab Anna University

    99/121

  • 7/22/2019 Record for Case Tools Lab Anna University

    100/121

    SOURCE CODE:Dim rs As RecordsetDim db As Database

    Private Sub Command1_Click()Frame1.Visible = TrueCommand2.Visible = FalseEnd Sub

    Private Sub Command2_Click()Form2.ShowEnd Sub

    Private Sub Command3_Click()Label14.Caption = ""If Text1.Text = rs.Fields(1) And Text2.Text = rs.Fields(2) ThenForm5.ShowMe.HideElseLabel14.Caption = "Enter valid information!!!"Text1.Text = ""Text2.Text = ""End If End Sub

    Private Sub Command4_Click()MsgBox "First entry only valuable..!!", vbDefaultButton1, "Attention"Me.HideForm4.ShowForm4.Text1.SetFocusEnd Sub

    Private Sub Command5_Click()Form2.ShowMe.HideEnd Sub

    Private Sub Command6_Click()MsgBox "Thanks To you..!!", vbOKOnly, "Meet you later"EndEnd Sub

    Private Sub Form_Load()Set db = OpenDatabase("D:\ex2\m.mdb")Set rs = db.OpenRecordset("login")Frame1.Visible = FalseEnd Sub

    Private Sub Option1_Click()If Option1.Value = True ThenText3.Visible = TrueLabel17.Visible = True

  • 7/22/2019 Record for Case Tools Lab Anna University

    101/121

    End If End Sub

    Private Sub Text3_Change()If Text3.Text = rs.Fields(4) ThenText1.Text = rs.Fields(1)Text2.Text = rs.Fields(2)End If End Sub

    FORM2:Dim ac As RecordsetDim at As RecordsetDim re As RecordsetDim id As RecordsetDim dt As RecordsetDim bl As RecordsetDim vf As RecordsetDim rs As Recordset 'for bloodDim rs1 As Recordset 'for ambDim rs2 As Recordset 'for fireDim un As RecordsetDim db As DatabaseDim pk As DatabaseDim m As Recordset

    Private Sub Combo1_Click()'for bloodrs.MoveFirstWhile Not rs.EOFIf Combo1.Text = rs.Fields(0) ThenText5.Text = rs.Fields(1)End If rs.MoveNextWendEnd Sub

    Private Sub Combo2_Click()'for ambulancers1.MoveFirstWhile Not rs1.EOFIf Combo2.Text = rs1.Fields(0) ThenText6.Text = rs1.Fields(1)End If rs1.MoveNextWendEnd Sub

    Private Sub Combo3_Click()'for firers2.MoveFirstWhile Not rs2.EOFIf Combo3.Text = rs2.Fields(0) Then

  • 7/22/2019 Record for Case Tools Lab Anna University

    102/121

    Text7.Text = rs2.Fields(1)End If rs2.MoveNextWendEnd Sub

    Private Sub Combo4_Click()m.MoveFirstWhile Not m.EOFIf Combo4.Text = m.Fields(0) ThenText8.Text = m.Fields(1)End If m.MoveNextWendEnd Sub

    Private Sub Command1_Click()Form1.ShowMe.HideEnd Sub

    Private Sub Command11_Click()Frame4.Visible = FalseEnd Sub

    Private Sub Command2_Click()Frame1.Visible = TrueFrame2.Visible = FalseFrame3.Visible = FalseOption1.Visible = FalseOption2.Visible = FalseEnd Sub

    Private Sub Command3_Click()Frame1.Visible = FalseFrame2.Visible = FalseFrame3.Visible = FalseOption1.Visible = TrueOption2.Visible = TrueEnd Sub

    Private Sub Command4_Click()Frame3.Visible = FalseEnd Sub

    Private Sub Command5_Click()Frame2.Visible = FalseEnd Sub

    Private Sub Command6_Click()Frame1.Visible = False

  • 7/22/2019 Record for Case Tools Lab Anna University

    103/121

    End Sub

    Private Sub Command7_Click()Frame4.Visible = TrueEnd Sub

    Private Sub Form_Load()Text2.Text = ""Text3.Text = ""Text4.Text = ""Label12.Caption = ""Label14.Caption = ""Set db = OpenDatabase("D:\ex2\m.mdb")Set ac = db.OpenRecordset("aircel")Set pk = OpenDatabase("D:\ex2\a.mdb")Set m = pk.OpenRecordset("a")Set rs = db.OpenRecordset("blood")Set rs1 = db.OpenRecordset("amb")Set rs2 = db.OpenRecordset("fire")Set at = db.OpenRecordset("airtel")Set re = db.OpenRecordset("rel")Set dt = db.OpenRecordset("tata")Set id = db.OpenRecordset("idea")Set vf = db.OpenRecordset("voda")Set bl = db.OpenRecordset("bsnl")Set un = db.OpenRecordset("uni")rs.MoveFirstWhile Not rs.EOFCombo1.AddItem (rs.Fields(0))rs.MoveNextWend'for ambulancers1.MoveFirstWhile Not rs1.EOFCombo2.AddItem (rs1.Fields(0))rs1.MoveNextWend'for firers2.MoveFirstWhile Not rs2.EOFCombo3.AddItem (rs2.Fields(0))rs2.MoveNextWendm.MoveFirstWhile Not m.EOFCombo4.AddItem (m.Fields(0))m.MoveNextWendFrame4.Visible = FalseEnd Sub

  • 7/22/2019 Record for Case Tools Lab Anna University

    104/121

    SOFTWARE TESTING:

  • 7/22/2019 Record for Case Tools Lab Anna University

    105/121

    CONCLUSION:Thus the system is developed using object oriented programming approach with the help of CASE

    tools.

  • 7/22/2019 Record for Case Tools Lab Anna University

    106/121

    REMOTE PROCEDURE CALL

    AIM:To draw a UML diagram for the Remote procedure call

    SCOPE:

    This project is used for accessing the remote file by the server or to satisfy any request made by theclient to the server. Mainly used for transferring file and information from different place.

    PROBLEM ANALYSIS: The server is the store house of resource and information. The client make request to the server.

    The server checks for the availability and satisfies the client with the request.

    PROJECT PLANNING: The server act as the database or the controller. The necessary file and software are placed in the

    server. The client can access the server for using shared resource or accessing remote file.

    SOFTWARE REQUIREMENTS: Front end: Visual Basic.Back end: Ms Access.Software: Rational Rose.

    MODULE ANALYSIS: 1. Login2. Establish connection3. Transfer data4. Terminate connection.

    DATA DICTIONARY:Client- Machine making requestServer machine satisfying requestSocket Used to establish connection and communicate

    ACTORS :1. Client2. Server

    USE CASE:1. Request

    2. Response

    PROBLEM STATEMENTS: This system is used to access the remote computer, the user identifies the location of a procedure

    stores in a remote system. The user request is accepted and the remote procedure is executed. Theresponse will also be executed at the same time when the request command is executed.

  • 7/22/2019 Record for Case Tools Lab Anna University

    107/121

    USE CASE DIAGRAM:

    CLASS DIAGRAM:

    COLLABORATION FOR THE RESPONSE:

    server client

    files Transfer

    1: requistion for the connection

    2: server connected

    3: searching for files

    4: file exist

    5: requistion for transfer the file6: start transfering

    7: files transfered

    8: connection aborted

  • 7/22/2019 Record for Case Tools Lab Anna University

    108/121

    ACTIVITY DIAGRAM FOR REQUEST MODULE:

    DEPLOYMENT DIAGRAM:

    username

    password

    give ur server and IP address

    portnumber

    searchingfor files

    is pwd correct

    is server connected

    is required fileexist

    required filenot found

    no

    transformation of requested files

    yes

    Transformationcompleted

    no

    yes

    no

    yes

    RequestResponse

    uname pwd

    server IP addr

    server port no

    filetransfer

    enableconn...

    IP addr

    port nosearch

    file

    filetransfer

  • 7/22/2019 Record for Case Tools Lab Anna University

    109/121

    ACTIVITY DIAGRAM FOR RESPONSE:

    requisition from clientfor connection

    connectionaccepted

    Is connectionaccepted

    connectionrejected

    no

    searching for the request file

    file notfound

    is file existrequested

    file exist

    requisition from client totransfer the requested file

    is requestaccepted

    requestrejected

    transfering t herequested files to client

    filetransfered

    processcompleted

    yes

    no

    yes

    yes

    no

  • 7/22/2019 Record for Case Tools Lab Anna University

    110/121

    SEQUENCE FOR THE REQUEST:

    COMPONENT DIAGRAM FOR THE RESPONSE:

    clientclient unameuname pwdpwd adminadmin ip addressip address port noport no server server

    1: client interaction with system

    2: uname

    3: pwd

    4: pwd/username is correct

    5: server ip address

    6: server port no

    7: client requesting for source connection

    8: server connected

    server client

    check ipand port no

    datatransfer

    filesearch

  • 7/22/2019 Record for Case Tools Lab Anna University

    111/121

    SEQUENCE FOR THE RESPONSE:

    Component diagram for the request:

    server server clientclient filesfiles Transfer Transfer

    1: requistion for the connection

    2: server connected

    3: searching for files

    4: file exist

    5: requistion for transfer the file

    6: start transfering

    7: files transfered

    8: connection aborted

    client unamepwd

    datatransfer

    IP andport no

    files server

  • 7/22/2019 Record for Case Tools Lab Anna University

    112/121

    COLLABORATION DIAGRAM FOR THE REQUEST :

    FORM DESIGN:

    admin

    client

    uname

    pwd

    ipaddress port no

    server

    2: uname3: pwd

    4: pwd/username is correct

    1: client interaction with system

    5: server ip address

    6: server port no

    7: client requesting for source connection

    8: server connected

  • 7/22/2019 Record for Case Tools Lab Anna University

    113/121

  • 7/22/2019 Record for Case Tools Lab Anna University

    114/121

    SOURCE CODE:

    FORM1:Dim db As Database: Dim recinfo As Recordset: Dim recdetails As RecordsetPrivate Sub cboStudNo_Change()

    On Error GoTo ning

    Set recinfo = db.OpenRecordset("SELECT * FROM Info WHERE ID_No = '" & cboStudNo.Text &"'")

    Set recdetails = db.OpenRecordset("SELECT * FROM Details WHERE ID_No = '" & cboStudNo.Text& "'")

    Data1.RecordSource = "SELECT * FROM Details WHERE ID_No = '" & cboStudNo.Text & "'":Data1.Refresh

    total_ = Data1.Recordset.RecordCount

    For e = 1 To total_ Data1.Recordset.MoveFirsttimeused = Data1.Recordset.Fields(4).Valueaaa = TimeSerial(Hour(aaa), Minute(aaa), Second(aaa)) + TimeSerial(Hour(timeused),

    Minute(timeused), Second(timeused))Data1.Recordset.MoveNext

    Next e

  • 7/22/2019 Record for Case Tools Lab Anna University

    115/121

    lblTotalTime.Caption = Format(aaa, "hh:mm:ss")

    With recinfoIf recinfo.RecordCount 0 Then

    total = recinfo.Fields("TimeRe").Valuelblremaining.Caption = totallblName.Caption = .Fields(1).ValuelblCourse.Caption = .Fields(2).ValuelblYearSec.Caption = .Fields(3).Value

    End If End With

    ning:If Err.Number = 3021 Then

    lblTotalTime.Caption = "00:00:00"End If

    End SubPrivate Sub cmdclose_Click(): Unload Me: End SubPrivate Sub cmdSearch_Click(): frmSearch.Show vbModal: End SubPrivate Sub Command1_Click(): frmreg.Show vbModal: End SubPrivate Sub Form_Activate()

    Set recinfo = db.OpenRecordset("SELECT * FROM Info")With recinfo.MoveLasttotal = .RecordCount.MoveFirst

    For i = 1 To totalIDNo = .Fields("ID_No").ValuecboStudNo.AddItem IDNo.MoveNext

    Next iEnd With

    End Sub

    Private Sub Form_Load()Set db = OpenDatabase(App.Path & "\recorddb.mdb")Data1.DatabaseName = (App.Path & "\recorddb.mdb")

    End Sub

    FORM2:Dim db As Database:Dim rec As Recordset:Dim rsData As RecordsetDim timeover As Recordset: Dim recloggingout As RecordsetPrivate Sub cmdhist_Click()Dim dset As New dtEnvdset.cnn1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;DataSource=" & App.Path & "\recorddb.mdb"Set dtRpt.DataSource = dsetdtRpt.Show

  • 7/22/2019 Record for Case Tools Lab Anna University

    116/121

    'On Error GoTo HELL' dtEnv.cnn1.Open ("Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data Source=" &App.Path & "\recorddb.mdb")'prompt = Trim(InputBox("Please Enter Date to Print", "Print Preview", "00/00/0000"))' If prompt "" Then'dtEnv.Commands(1).CommandType = adCmdText'dtEnv.Commands(1).CommandText = "SELECT * FROM [SKED] where DATE = '" & prompt & "'"'dtEnv.Commands(1).Execute: dtRpt.Show

    ' End If 'HELL:' If Err.Number = "3021" Then' MsgBox "No Record Found....Please try again", , "Unable to print the record error 3021"' End If End SubPrivate Sub Form_Activate()

    Timer1.Enabled = False: Timer2.Enabled = TrueData1.RecordSource = "SELECT * FROM dummyinfo ORDER BY StudName ASC": Data1.RefreshSet db = OpenDatabase(App.Path & "\recorddb.mdb"): Set rec = db.OpenRecordset("Info")

    End SubPrivate Sub Form_Load()

    Data1.DatabaseName = App.Path & "\recorddb.mdb"dtsked.DatabaseName = App.Path & "\recorddb.mdb"dtEnv.cnn1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;Data

    Source=" & App.Path & "\recorddb.mdb"lbldates.Caption = Format(Date, "mm/dd/yyyy")

    End SubPrivate Sub Form_Unload(Cancel As Integer)

    Shell App.Path & "\backup.bat"MsgBox "NETSYS Database Backup, Successful.", vbInformation, "NETSYS"End

    End Sub

    Private Sub LaVolpeButton1_Click()frmsked.Show vbModalEnd Sub

    Private Sub LaVolpeButton2_Click()Dim dset As New dtEnvdset.cnn1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;DataSource=" & App.Path & "\recorddb.mdb"Set dtICard.DataSource = dsetdtICard.ShowEnd Sub

    Private Sub LaVolpeButton3_Click()Dim dset As New dtEnvDim str str = Format(Date, "short date")

    dset.cnn1.ConnectionString = "Provider=Microsoft.Jet.OLEDB.3.51;Persist Security Info=False;DataSource=" & App.Path & "\recorddb.mdb"

    prompt = Trim(InputBox("Please Enter Date to Print", "Print Preview", str))If prompt "" Then

  • 7/22/2019 Record for Case Tools Lab Anna University

    117/121

    dset.Commands(2).CommandType = adCmdTextdset.Commands(2).CommandText = "SELECT * FROM [Details] where Date > '" & prompt & "'"dset.Commands(2).Execute'Set dtrpt1.DataSource = dset'dtrpt1.ShowEnd If End Sub

    Private Sub lblDetails_Click(): frmDetails.Show vbModal: End SubPrivate Sub lblExit_Click()

    With MeX = MsgBox("Are you sure you want to exit?", vbQuestion + vbYesNo, "NETSYS")If X = vbYes Then

    Unload MeElseIf X = vbNo Then

    Exit SubEnd If End With

    End SubPrivate Sub lblLogIn_Click()

    With Me: frmLogIn.Show vbModal: End WithEnd SubPrivate Sub lblLogOut_Click()

    Set timeover = db.OpenRecordset("SELECT * FROM timeOver ")If Data1.Recordset.RecordCount

  • 7/22/2019 Record for Case Tools Lab Anna University

    118/121

    ''UPDATED 08-01-2004 MR. AVELINO'Data1.Recordset.Fields(5).Value = Format(Time, "hh:mm:ss AM/PM")Data1.Recordset.Update

    'time remainingSet rec = db.OpenRecordset("SELECT * FROM Info WHERE ID_No = '" &

    Data1.Recordset.Fields(0).Value & "'")aaa = rec.Fields(4).Valueremain = TimeSerial(Hour(aaa), Minute(aaa), Second(aaa)) - TimeSerial(Hour(consumed),

    Minute(consumed), Second(consumed))Data1.Recordset.EditData1.Recordset.Fields(7).Value = Format(remain, "hh:mm:ss")Data1.Recordset.Update

    '1HRS DURATION' If Format(Data1.Recordset.Fields(6).Value, "hh:mm:ss") > "01:00:00" Then' With frmLogOut' frmLogOut.Show vbModal' Call loggingout' End With' End If 'pang check kung ubos n ang 20 oras ng student.If Data1.Recordset.Fields(7).Value = "00:00:00" Then 'Or Data1.Recordset.Fields(6).Value >

    Data1.Recordset.Fields(7).Value ThenSet rsData = db.OpenRecordset("select * from [Info] where ID_No ='" &

    Data1.Recordset.Fields(0).Value & "'")Set timeover = db.OpenRecordset("timeOver")With timeover

    .AddNew

    .Fields(0).Value = frmMain.Data1.Recordset.Fields(0).Value

    .Fields(1).Value = frmMain.Data1.Recordset.Fields(1).Value

    .Fields(2).Value = frmMain.Data1.Recordset.Fields(2).Value

    .Fields(3).Value = frmMain.Data1.Recordset.Fields(3).Value

    .Fields(4).Value = frmMain.Data1.Recordset.Fields(4).Value

    .Fields(5).Value = frmMain.Data1.Recordset.Fields(5).Value

    .Fields(6).Value = frmMain.Data1.Recordset.Fields(6).Value

    .Fields(7).Value = frmMain.Data1.Recordset.Fields(7).Value

    .UpdateEnd WithMsgBox Data1.Recordset.Fields(1).Value & " has reached 20 hours limit."xxx = Data1.Recordset.Fields(0).ValueSet rec = db.OpenRecordset("SELECT * FROM dummyinfo WHERE ID_No = '" & xxx & "'")

    rec.DeleteData1.Refresh

    With rsData.Edit.Fields(4).Value = "00:00:00".Update

    End WithBeep: Beep

    End If

    Data1.Recordset.MoveNext Next i

    StatusBar1.Panels(2).Text = total & " User(s) is/are currently active."

  • 7/22/2019 Record for Case Tools Lab Anna University

    119/121

    fuck:If Err.Number = 3021 Then

    Timer2.Enabled = False: Timer1.Enabled = TrueEnd If

    gridSizer End Sub

    Private Sub Timer3_Timer()frmMain.Caption = Mid(frmMain.Caption, 2) & Mid(frmMain.Caption, 1, 1)

    End Sub

    Private Sub Timer4_Timer()On Error Resume NextWith dtsked.RecordSource = "Select * From [sked] where Date = '" & Format(Date, "mm/dd/yyyy") & "'order by

    time": .RefreshStatusBar1.Panels(1).Text = .Recordset.RecordCount & " Slot(s) schedule today"

    If .Recordset.Fields(4).Value = Format(Time, "hh:mm:ss AM/PM") ThenStudID = .Recordset.Fields(0)Call AddToDummy01dtsked.Recordset.Delete

    End If End WithEnd Sub

    SOFTWARE TESTING:

  • 7/22/2019 Record for Case Tools Lab Anna University

    120/121

  • 7/22/2019 Record for Case Tools Lab Anna University

    121/121