Академический Документы
Профессиональный Документы
Культура Документы
1. INTRODUCTION
This project is being made for CHATE COACHING CLASSES [Borivali branch], a
renowned classes which provides coaching to students of standard 8th to S.Y.J.C.
The entire data of the faculty as well as of the enrolled students was being written and
managed manually. But as this caused much incontinence the idea of developing this new
system came up.
The “CHATE COACHING CLASSES” students proved their mettle by hitting headlines
in their respective examinations.
The student here, one of large family and it is in their interest that personal care of each
student is taken. Members of the Staff motivate them into action and no stone is lifting
unturned to bring out the hidden best in each student.
1
Chate Coaching Classes [Borivali Branch]
2.Planning
2.2Anticipated benefits:
The entire system would be stored securely and avoid consequences occurring if
any of the registers or ledgers gets lost.
The required data would be accessed faster and so the new system would be less
time consuming and more work could be done.
The new system would do the calculations related to fees which would surely
reduce the manual errors made related to it.
2.3Context Diagram:
Management
details 0 details
Appointment letter
Course Fee receipt
Faculty Registration Student
attendance System attendance
2
Chate Coaching Classes [Borivali Branch]
Intangible Costs:
Increased student satisfaction.
Increased level of service.
A. Developmental Costs:
Training Rs.3,300
Facilities Rs.2,200
Rs.1,200
Travel/Miscellaneous
Licenses Rs.6,000
Total Rs.37,400
3
Chate Coaching Classes [Borivali Branch]
3.Analysis
4
Chate Coaching Classes [Borivali Branch]
3.1.1 Questionnaires:
3.2 Things:
Things
Incidents ,
Tangible Roles Organisational Sites/
Devices Events or
things played units Locations
Interactions
5
Chate Coaching Classes [Borivali Branch]
Course Course-
Course
Id*
batch
Course
enrolled
Faculty
Faculty
Id*
Student
Student Inquiry
Id*
Faculty
attenda
nce Student
attendance
6
Chate Coaching Classes [Borivali Branch]
7
Chate Coaching Classes [Borivali Branch]
8
Chate Coaching Classes [Borivali Branch]
3
Update Student
student’s
Student Update course details
Course
details
Course Text
enrolled
4
Update
Student’s
Student Update personal details Student
personal
details
9
Chate Coaching Classes [Borivali Branch]
5
Student
Request to update student
Record attendance
attendance details
Student student
attendance
deatils
6
Course details inquiry
Faculty
Faculty Faculty
Appointment
Appointment confirmation
10
Chate Coaching Classes [Borivali Branch]
Faculty
Faculty Update details Update
faculty details
11
Chate Coaching Classes [Borivali Branch]
Student
Student
9 Attendance
Produce
attendance Faculty
Management Attendance report
report
Faculty
Attendance
10
Student
Management Inquiry report Produce
Inquiry report
Course
enrolled
12
Chate Coaching Classes [Borivali Branch]
Attendance details
Admission confirmation
Entry of new student details Student
Course details inquiry 10
Produce
Inquiry details Inquiry report Inquiry report
Offered
course
1
Lookup for
inquiry Faculty
details Inquiry Update
7 details
Update
Faculty
2 details
Student
Student
enrollment
Course 4 Update
enrolled Update personal
Student details
Student
5
Personal
Record
details
student
attendance Student
details Update course
attendance 3 details
Update
Student
Appointment course details
6
confirmation
Faculty
Entry of new Faulty
details appointment Management
9 Attendanc
Faculty Produce e report
8 attendance Attendance
Record Report
faculty
attendance
details
Attendance
details
Faculty
13
Chate Coaching Classes [Borivali Branch]
Student
1.1 1.2
Inquiry RecordStudent
the
Record course for
student which inquiry
information was made
Student
3.1 3.2
Course
enrolled
Update Generate
course details confirmation
Student
2.1 2.3
2.2
Record
course details
14
Chate Coaching Classes [Borivali Branch]
2. Process Student-enrollment:
Get the student details.
If new student then
Generate new student-id
Add the student details to the student data store
Else
Add the new course-enrollment in the data store of course-enrollment and
in student data store.
Collect amount course-fees and make the entry of paid course-fees in the system.
Generate fee-receipt for the paid course-fees.
End Process Student-enrollment.
15
Chate Coaching Classes [Borivali Branch]
6. Process Faculty-appointment:
Get the faculty details.
If new faculty then
Generate new faculty-id.
Add the details to the faculty data store
Else
Add the new enrollment in faculty data store.
16
Chate Coaching Classes [Borivali Branch]
1. Name-description:
A text field containing maximum of 42 characters.
2. Address-description:
A text field containing a maximum of 70 characters.
17
Chate Coaching Classes [Borivali Branch]
3. Unit-Contact no.:
A text field containing only positive nos. of maximum 10 integers.
4. Unit-Birth date:
Positive nos. and some special symbols together in a text field containing maximum of
10 characters.
5. Unit-Fees:
A positive real no. accurate to two decimal places, always in Rs.
6. Unit-Salary:
A positive real no. accurate to two decimal places, always in Rs.
7. Unit-Attendance:
A positive integer.
1. Inquiry=
date
no.
student name
contact no.
about
2. Course Master=
course-id
course-name
course-fees
3. Batch Master=
batch-id
batch name
batch timings
course-id
18
Chate Coaching Classes [Borivali Branch]
4. Course Subject=
course id
subject id
5. Faculty subjects=
Faculty id
course id
{subject id}
6. Subject Master=
subject id
subject name
7. Payment Record=
student id
Mode of payment
Bank name
Cheque no.
Date of payment
Amount Received
Receipt no.
Total amount paid
8. Course enrolled=
student-id
batch -id
9. Student=
id
Date of admission
Roll no.
name
sex
mobile no.
residence no.
course-enrolled
Guardian name
Guardian no.
Address
19
Chate Coaching Classes [Borivali Branch]
11. Faculty=
id
name
date of joining
course name
{subject}
mobile no.
residence no.
address
20
Chate Coaching Classes [Borivali Branch]
4.Design
4.1Automation Boundary:
21
Chate Coaching Classes [Borivali Branch]
Admission confirmation
Entry of new student details
Student Faculty
Course details inquiry attendance details
Update
Inquiry details
details Entry of new
1
details
offered
Lookup for Appointment
course 6
course details confirmation
Faculty
Faculty
inquiry appointment
7
2 Update
Faculty
Student details
enrollment
student
Course
3 enrolled
Update
Student 8
course details Faculty Record
attendance faculty
attendance
details
4
Update
Student
personal
details
9
Produce
5 Attendance
Record Report
Student
Text
student
attendance
attendance
details
10
Produce
Inquiry
report
attendance details
Update personal Student Management Inquiry report
details
Update course details Attendance report
22
Chate Coaching Classes [Borivali Branch]
Student
Student Details
Enrollment Maintainance
Program Program
Student
Student Attendance
Course
Enrolled
Student
Attendance
Maintainance
Program
Faculty
Faculty
Details
Maintainance
Program Faulty
Attendance
Maintainance
Program
Admission
Faulty
Confirmation
Appointment
Program Faculty
Attendance
Offered Produce
Course Attendance
Maintainance
Program
Appointment
Confirmation
Attendance
Report
Inquiry Inquiry report
Program Inquiry
23
Chate Coaching Classes [Borivali Branch]
selection
Get request Admission
System
Student
details
details
confirmation
Admission
inquiry
Details
course
Faculty
details
Lookup
for Faculty
requested Student
appointment Student Faculty Student Faculty
course enrollment
details
report
personal details
personal de
attendance
Student
attendance
faculty details
Student
inquiry
Faculty
Course
Student
Studen
details
Student
Student
faculty
course
details
details
course
info
details
Inquiry
faculty
course
details
ta
confirmation
Appoin tion
confirm
t
Admission
ils
Attendance
Attendance
detail
report
report
tment
s
a
24
Chate Coaching Classes [Borivali Branch]
25
Chate Coaching Classes [Borivali Branch]
26
Chate Coaching Classes [Borivali Branch]
27
Chate Coaching Classes [Borivali Branch]
4.4.1Login Form:
28
Chate Coaching Classes [Borivali Branch]
29
Chate Coaching Classes [Borivali Branch]
30
Chate Coaching Classes [Borivali Branch]
31
Chate Coaching Classes [Borivali Branch]
32
Chate Coaching Classes [Borivali Branch]
33
Chate Coaching Classes [Borivali Branch]
34
Chate Coaching Classes [Borivali Branch]
35
Chate Coaching Classes [Borivali Branch]
36
Chate Coaching Classes [Borivali Branch]
37
Chate Coaching Classes [Borivali Branch]
38
Chate Coaching Classes [Borivali Branch]
39
Chate Coaching Classes [Borivali Branch]
40
Chate Coaching Classes [Borivali Branch]
41
Chate Coaching Classes [Borivali Branch]
42
Chate Coaching Classes [Borivali Branch]
43
Chate Coaching Classes [Borivali Branch]
44
Chate Coaching Classes [Borivali Branch]
45
Chate Coaching Classes [Borivali Branch]
46
Chate Coaching Classes [Borivali Branch]
47
Chate Coaching Classes [Borivali Branch]
48
Chate Coaching Classes [Borivali Branch]
4.4.24.1 Fee-Receipt:
49
Chate Coaching Classes [Borivali Branch]
50
Chate Coaching Classes [Borivali Branch]
51
Chate Coaching Classes [Borivali Branch]
52
Chate Coaching Classes [Borivali Branch]
5. IMPLEMENTATION
5.1Coding:
5.1.1. Module:
Option Explicit
Dim StrSQl As String
Public Conn As ADODB.Connection
Public Function CheckNumBatch(Keyvalue As Integer)
If Keyvalue >= 48 And Keyvalue <= 57 Or Keyvalue = 8 Or Keyvalue = 45 Or Keyvalue
= 58 Then
CheckNumBatch = Keyvalue
Else
CheckNumBatch = 0
End If
End Function
53
Chate Coaching Classes [Borivali Branch]
5.1.2Login Form:
54
Chate Coaching Classes [Borivali Branch]
End Sub
txtname = ""
txtpass = ""
End Sub
Option Explicit
Unload Me
frmMDIForm1.Show
End If
End Sub
55
Chate Coaching Classes [Borivali Branch]
Option Explicit
56
Chate Coaching Classes [Borivali Branch]
57
Chate Coaching Classes [Borivali Branch]
Option Explicit
Dim rs, rsenroll As ADODB.Recordset
Dim list As ListItem
Dim UserMode, M, f, Sex As String
Private Sub fillList()
End Sub
58
Chate Coaching Classes [Borivali Branch]
cboCoursename.SetFocus
DTPickerSD.Value = Date
txtSfname = ""
txtGname = ""
txtGcontactno = ""
txtSa1 = ""
txtScmo1 = ""
txtScres2 = ""
optMale.Value = False
optFemale.Value = False
cboCname.ListIndex = -1
cboBid.ListIndex = -1
cmdSdDelete.Enabled = False
cmdSdUpdate.Enabled = False
cmdsdCancel.Caption = "Cancel"
cmdSdSave.Enabled = True
cmdSdSearch.Enabled = False
cmdPayment.Enabled = False
Enabledfillings
End Sub
cboBid.ListIndex = -1
optMale.Value = False
59
Chate Coaching Classes [Borivali Branch]
optFemale.Value = False
cmdSdAdd.Enabled = True
cmdSdUpdate.Enabled = False
cmdSdDelete.Enabled = False
cmdSdSearch.Enabled = True
cmdPayment.Enabled = True
cmdsdCancel.Enabled = True
cmdSdSave.Enabled = False
End Sub
txtRollNo = ""
txtSid = ""
txtSfname = ""
txtScmo1 = ""
txtScres2 = ""
txtGname = ""
txtGcontactno = ""
cboCname.ListIndex = -1
cboBid.ListIndex = -1
txtSa1 = ""
optMale.Value = False
optFemale.Value = False
End If
cmdsdCancel.Enabled = True
cmdSdAdd.Enabled = False
60
Chate Coaching Classes [Borivali Branch]
cmdSdUpdate.Enabled = False
cmdSdSearch.Enabled = False
cmdPayment.Enabled = False
cmdSdSave.Enabled = False
End Sub
61
Chate Coaching Classes [Borivali Branch]
rsSave("ResidenceNo") = Val(txtScres2)
rsSave("GuardiansName") = txtGname
rsSave("GuardiansNo") = Val(txtGcontactno)
rsSave("Address") = txtSa1
rsSave.Update
DTPickerSD.Value = Date
rsSave.Close
ElseIf UserMode = "UPDATE" Then
sql = "Select * from Student where StudentId=" & Val(txtSid)
Set rsSave = New ADODB.Recordset
rsSave.Open sql, Conn, adOpenKeyset, adLockOptimistic
rsSave("StudentName") = txtSfname
rsSave("DateOfAdmission") = DTPickerSD
rsSave("StudentName") = txtSfname
' rsSave("CourseName") = cboCoursename
'rsSave("BatchId") = cboBatchid
rsSave("Sex") = Sex
rsSave("MobileNo") = txtScmo1
rsSave("ResidenceNo") = txtScres2
rsSave("GuardiansName") = txtGname
rsSave("GuardiansNo") = txtGcontactno
rsSave("Address") = txtSa1
rsSave.Update
DTPickerSD.Value = Date
rsSave.Close
End If
rsSave1("BatchId") = rsSave2("BatchId")
rsSave2.Close
rsSave1.Update
62
Chate Coaching Classes [Borivali Branch]
DTPickerSD.Value = Date
rsSave1.Close
ElseIf UserMode = "UPDATE" Then
sql1 = "Select * from CourseEnrolled where StudentId=" & Val(txtSid)
Set rsSave1 = New ADODB.Recordset
rsSave1.Open sql1, Conn, adOpenKeyset, adLockOptimistic
' rsSave1("CourseName") = cboCname
sql2 = "Select BatchId from BatchMaster where BatchName= '" & Trim(cboBid) & "'"
rsSave1("BatchId") = rsSave2("BatchId")
rsSave2.Close
rsSave1.Update
DTPickerSD.Value = Date
rsSave1.Close
End If
fillList
UserMode = ""
cmdSdAdd.Enabled = True
cmdSdUpdate.Enabled = False
cmdSdDelete.Enabled = False
cmdSdSearch.Enabled = True
cmdPayment.Enabled = True
cmdSdSave.Enabled = False
cmdsdCancel.Caption = "Exit"
cmdsdCancel.Enabled = True
End Sub
End Sub
63
Chate Coaching Classes [Borivali Branch]
'Disabledfillings
cmdSdAdd.Enabled = True
cmdSdUpdate.Enabled = False
cmdSdDelete.Enabled = False
cmdSdSearch.Enabled = True
cmdPayment.Enabled = True
cmdsdCancel.Enabled = True
cmdSdSave.Enabled = False
Set rs = New ADODB.Recordset
rs.Open "select *from Student", Conn, adOpenDynamic, adLockOptimistic
fillList
fillCoursecombo
Set rs = Nothing
DTPickerSD.Value = Date
End Sub
txtSid = lstStudDetails.SelectedItem
txtRollNo = lstStudDetails.SelectedItem.SubItems(2)
'date of admission
txtSfname = lstStudDetails.SelectedItem.SubItems(3)
Sex = lstStudDetails.SelectedItem.SubItems(4)
If Sex = "M" Then
optMale.Value = True
Else
optFemale.Value = True
End If
txtScmo1 = lstStudDetails.SelectedItem.SubItems(5)
txtScres2 = lstStudDetails.SelectedItem.SubItems(6)
txtGname = lstStudDetails.SelectedItem.SubItems(7)
txtGcontactno = lstStudDetails.SelectedItem.SubItems(8)
txtSa1 = lstStudDetails.SelectedItem.SubItems(9)
'DTPickerSD = lstStudDetails.SelectedItem.SubItems(10)
'cboCName = lstStudDetails.SelectedItem.SubItems(11)
' cboBid = lstStudDetails.SelectedItem.SubItems(11)
Set rsenroll = New ADODB.Recordset
'If Not rsenroll.EOF = True Then
rsenroll.Open "select * from CourseEnrolled,BatchMaster,courseMaster where
BatchMaster.CourseId=courseMaster.courseId and
64
Chate Coaching Classes [Borivali Branch]
65
Chate Coaching Classes [Borivali Branch]
sql = "Select * from Student where Rollno='" & Trim(txtRollNo) & "'"
txtScmo1 = rsEDIT.Fields(5)
txtScres2 = rsEDIT.Fields(6)
txtGname = rsEDIT.Fields(7)
txtGcontactno = rsEDIT.Fields(8)
txtSa1 = rsEDIT.Fields(9)
End If
66
Chate Coaching Classes [Borivali Branch]
cboCname = rsenroll.Fields("courseName")
fillBatch (cboCname.ItemData(cboCname.ListIndex))
cboBid = rsenroll.Fields("BatchName")
'rsenroll.Close
End If
Enabledfillings
cmdsdCancel.Enabled = True
cmdsdCancel.Caption = "Cancel"
End Sub
67
Chate Coaching Classes [Borivali Branch]
i=0
sql = "SELECT b.BatchId, b.BatchName " & _
" FROM BatchMaster b, courseMaster c " & _
" WHERE B.CourseId = C.courseId AND " & _
" C.courseid=" & searchval
Set rs = New ADODB.Recordset
rs.Open sql, Conn, adOpenKeyset, adLockOptimistic
While Not rs.EOF
cboBid.AddItem rs.Fields("BatchName"), i
cboBid.ItemData(i) = rs.Fields("BatchId")
i=i+1
rs.MoveNext
Wend
rs.Close
Set rs = Nothing
End Sub
End Sub
Option Explicit
68
Chate Coaching Classes [Borivali Branch]
Dim rs As ADODB.Recordset
Dim rs1 As ADODB.Recordset
Dim list As ListItem
Dim List1 As ListItem
Dim UserMode As String
Private Sub fillList()
'Set rs = New ADODB.Recordset
'Set rs1 = New ADODB.Recordset
'rs.Open "Select * from Student", Conn, adOpenKeyset, adLockOptimistic
'rs1.Open "Select * from PaymentRecord", Conn, adOpenKeyset, adLockOptimistic
lstSStudDetails.ListItems.Clear
While rs.EOF <> True
Set list = lstSStudDetails.ListItems.Add(, , Trim(rs("Student.StudentId") & ""))
69
Chate Coaching Classes [Borivali Branch]
End If
If cboSsBatchName <> "" Then
str2 = str2 & " BatchMaster.BatchName='" & cboSsBatchName & "' and"
End If
'Balance
fillList
Set rs = Nothing
70
Chate Coaching Classes [Borivali Branch]
fillBatchcombo
fillRollNocombo
fillIdcombo
71
Chate Coaching Classes [Borivali Branch]
End Sub
cboSsSid.ListIndex = -1
cboSsRollNo.ListIndex = -1
cboSsBatchName.ListIndex = -1
txtSsSfname = ""
End Sub
Option Explicit
Dim rsenroll As ADODB.Recordset
Dim rs As ADODB.Recordset
Dim List1 As ListItem
Dim UserMode, ModeOfPayment As String
End Sub
End Sub
72
Chate Coaching Classes [Borivali Branch]
DTPickerDate.Value = Date
txtReceiptno = Val(getMaxNo("PaymentRecord", "ReceiptNo")) + 1
txtAmountrec = ""
txtChequeno = ""
txtBankname = ""
optCash.Value = False
optCheque.Value = False
cmdSdSave.Enabled = True
cmdsdCancel.Caption = "Cancel"
cmdsdCancel.Enabled = True
cmdSdUpdate.Enabled = False
cmdSdDelete.Enabled = False
fill
UserMode = "ADD"
End Sub
73
Chate Coaching Classes [Borivali Branch]
txtAmountrec = ""
txtBalance = ""
txtBankname = ""
txtChequeno = ""
txtCourseFees = ""
txtReceiptno = ""
txtRollNo = ""
txtSid = ""
End Sub
Private Sub fillPayList(searchval)
Dim sql As String
Dim totalfee, Coursefee, balfee As Double
totalfee = 0
sql = "Select * from PaymentRecord,Student where
PaymentRecord.StudentId=Student.StudentId and Student.Rollno='" & Trim(searchval)
& "'"
Set rs = New ADODB.Recordset
rs.Open sql, Conn, adOpenKeyset, adLockOptimistic
lstPayment.ListItems.Clear
While rs.EOF <> True
Set List1 = lstPayment.ListItems.Add(, , Trim(rs("Student.StudentId") & ""))
List1.SubItems(1) = Trim(rs("RollNo") & "")
List1.SubItems(2) = Trim(rs("ModeOfPayment") & "")
List1.SubItems(3) = Trim(rs("BankName") & "")
List1.SubItems(4) = Trim(rs("ChequeNo") & "")
List1.SubItems(5) = Trim(rs("DateOfPayment") & "")
List1.SubItems(6) = Trim(rs("AmountReceived") & "")
List1.SubItems(7) = Trim(rs("ReceiptNo") & "")
List1.SubItems(8) = Trim(rs("TotalAmtPaid") & "")
totalfee = totalfee + rs("AmountReceived")
rs.MoveNext
Wend
Set rsenroll = New ADODB.Recordset
rsenroll.Open "select * from CourseEnrolled,BatchMaster,courseMaster where
BatchMaster.CourseId=courseMaster.courseId and
CourseEnrolled.BatchId=BatchMaster.BatchId and CourseEnrolled.StudentId=" &
Mid(searchval, 3, Len(searchval)), Conn, adOpenDynamic, adLockOptimistic
Coursefee = rsenroll.Fields("courseFees")
rsenroll.Close
txtBalance = Coursefee - totalfee
txtCourseFees = Coursefee
txtTotalRec = totalfee
'sql = "Select * from CouStudent where PaymentRecord.StudentId=Student.StudentId
and Student.Rollno='" & Trim(searchval) & "'"
'Set rs = New ADODB.Recordset
'rs.Open sql, Conn, adOpenKeyset, adLockOptimistic
74
Chate Coaching Classes [Borivali Branch]
End Sub
Exit Sub
End If
cmdSdUpdate.Enabled = False
cmdsdCancel.Enabled = False
End Sub
75
Chate Coaching Classes [Borivali Branch]
Set rs = Nothing
End If
End Sub
Private Sub DTPickerDate_KeyPress(KeyAscii As Integer)
KeyAscii = CheckNum(KeyAscii)
End Sub
fillRollNocombo
Set rs = Nothing
DTPickerDate.Value = Date
cmdSdAdd.Enabled = False
cmdReceipt.Enabled = False
cmdSdUpdate.Enabled = False
cmdSdSave.Enabled = False
cmdsdCancel.Enabled = True
cmdSdDelete.Enabled = False
End Sub
76
Chate Coaching Classes [Borivali Branch]
ModeOfPayment = lstPayment.SelectedItem.SubItems(2)
If ModeOfPayment = "Cash" Then
optCash.Value = True
Else
optCheque.Value = True
End If
txtBankname = lstPayment.SelectedItem.SubItems(3)
txtChequeno = lstPayment.SelectedItem.SubItems(4)
' DateOfPayment = lstPayment.SelectedItem.SubItems(5)
txtAmountrec = lstPayment.SelectedItem.SubItems(6)
txtReceiptno = lstPayment.SelectedItem.SubItems(7)
' TotalAmtPaid = lstPayment.SelectedItem.SubItems(8)
cmdSdUpdate.Enabled = True
cmdSdDelete.Enabled = True
cmdSdAdd.Enabled = False
cmdReceipt.Enabled = True
cmdsdCancel.Caption = "Cancel"
cmdsdCancel.Enabled = True
End If
End Sub
Private Sub optCash_Click()
If optCash.Value = True Then
ModeOfPayment = "Cash"
End If
77
Chate Coaching Classes [Borivali Branch]
End Sub
Private Sub txtAmountrec_KeyPress(KeyAscii As Integer)
KeyAscii = CheckNum(KeyAscii)
End Sub
End Sub
End Sub
Private Sub cmdSdSave_Click()
If txtAmountrec = "" Then
78
Chate Coaching Classes [Borivali Branch]
MsgBox "Enter Fees Being Received.", vbOKOnly, "Chate Coaching Classes "
Exit Sub
txtAmountrec.SetFocus
End If
'If txtTotalRec > txtCoursefees Then
If txtAmountrec > txtBalance Then
MsgBox "Extra Fees is Being Taken.", vbOKOnly, "Chate Coaching Classes "
Exit Sub
cboSrn.SetFocus
End If
Dim rsSave1 As ADODB.Recordset
Dim sql1 As String
79
Chate Coaching Classes [Borivali Branch]
rsSave1.Close
End If
cmdSdDelete.Enabled = True
cmdSdAdd.Enabled = True
UserMode = ""
Call fillPayList(txtRollNo)
cmdSdAdd.Enabled = True
cmdReceipt.Enabled = False
cmdSdUpdate.Enabled = False
cmdSdSave.Enabled = False
cmdsdCancel.Enabled = True
cmdSdDelete.Enabled = False
txtAmountrec = ""
txtBalance = ""
txtBankname = ""
txtChequeno = ""
txtCourseFees = ""
txtReceiptno = ""
txtRollNo = ""
txtSid = ""
End Sub
txtAmountrec.Enabled = True
txtBankname.Enabled = True
txtChequeno.Enabled = True
End Sub
Option Explicit
80
Chate Coaching Classes [Borivali Branch]
txtAmt = ""
txtTotalCourseFees = ""
txtRBankname = ""
txtRChequeno = ""
txtRCoursefees = ""
txtRollNo = ""
txtRReceiptno = ""
txtRSname = ""
txtCName = ""
txtRBatchid = ""
txtSid = ""
End Sub
End Sub
81
Chate Coaching Classes [Borivali Branch]
End Sub
' sql = "Select * from PaymentRecord where StudentId=" & Val(txtSid) & ""
82
Chate Coaching Classes [Borivali Branch]
txtAmt = rsEDIT.Fields(5)
txtRReceiptno = rsEDIT.Fields(6)
'TotalAmtPaid = rsEDIT.Fields(7)
'txtRSname = rsEDIT1.Fields(8)
sql = "select CourseName,BatchName,courseFees from courseMaster,BatchMaster,
CourseEnrolled where CourseEnrolled.BatchId=BatchMaster.BatchId and
BatchMaster.CourseId=courseMaster.CourseId and CourseEnrolled.StudentId=" & txtSid
rsEDIT.Close
Set rsEDIT = New ADODB.Recordset
rsEDIT.Open sql, Conn, adOpenKeyset, adLockOptimistic
If Not rsEDIT.EOF Then
txtCName = rsEDIT.Fields(0)
txtRBatchid = rsEDIT.Fields(1)
txtTotalCourseFees = rsEDIT.Fields(2)
End If
rsEDIT.Close
sql4 = "Select StudentName from Student where StudentId=" & Val(txtSid) & ""
End If
txtAmt.Enabled = True
optCash.Enabled = True
optCheque.Enabled = True
txtCName.Enabled = True
txtRBankname.Enabled = True
txtRBatchid.Enabled = True
txtRChequeno.Enabled = True
txtRReceiptno.Enabled = True
txtRSname.Enabled = True
txtTotalCourseFees.Enabled = True
End Sub
83
Chate Coaching Classes [Borivali Branch]
KeyAscii = CheckNum(KeyAscii)
End Sub
End Sub
Option Explicit
Dim rs As ADODB.Recordset
Dim list As ListItem
Dim UserMode As String
84
Chate Coaching Classes [Borivali Branch]
End Sub
cmdCancel.Caption = "Exit"
cmdFdAdd.Enabled = True
cmdFdUpdate.Enabled = False
cmdFdDelete.Enabled = False
cmdfSearch.Enabled = True
cmdCancel.Enabled = True
cmdFdSave.Enabled = False
txtFacid = ""
txtFn = ""
cboFdCoursename.ListIndex = -1
cboFdSub1.ListIndex = -1
cboFdSub2.ListIndex = -1
txtFmobno = ""
txtFResNo = ""
txtFaddress1 = ""
End Sub
85
Chate Coaching Classes [Borivali Branch]
lstFacultydetails.Enabled = False
UserMode = "ADD"
DTPickerFD.Value = Date
txtFacid = Val(getMaxNo("Faculty", "FacultyId")) + 1
txtFn = ""
cboFdCoursename.ListIndex = -1
cboFdSub1.ListIndex = -1
cboFdSub2.ListIndex = -1
txtFmobno = ""
txtFResNo = ""
txtFaddress1 = ""
End Sub
cmdFdAdd.Enabled = True
cmdFdUpdate.Enabled = False
cmdFdDelete.Enabled = False
cmdfSearch.Enabled = True
cmdFdSave.Enabled = False
cmdCancel.Caption = "Cancel"
cmdCancel.Enabled = True
End Sub
86
Chate Coaching Classes [Borivali Branch]
MsgBox "Please Enter Faculty's Name.", vbOKOnly, "Chate Coaching Classes "
Exit Sub
txtFn.SetFocus
End If
If cboFdCoursename = "" Then
MsgBox "Please Enter Course Name.", vbOKOnly, "Chate Coaching Classes "
Exit Sub
cboFdCoursename.SetFocus
End If
If cboFdSub1 = "" And cboFdSub2 = "" Then
MsgBox "Please Enter Subject Name.", vbOKOnly, "Chate Coaching Classes "
Exit Sub
End If
If txtFmobno = "" And txtFResNo = "" Then
MsgBox "Please Enter Faculty's Number.", vbOKOnly, "Chate Coaching Classes "
Exit Sub
End If
If txtFaddress1 = "" Then
MsgBox "Please Enter Faculty's Address.", vbOKOnly, "Chate Coaching Classes "
Exit Sub
txtFaddress1.SetFocus
End If
Dim rsSave As ADODB.Recordset
Dim sql As String
If UserMode = "ADD" Then
rsSave("FacultyId") = txtFacid
rsSave("FacultyName") = txtFn
rsSave("CourseName") = cboFdCoursename
rsSave("SubjectName1") = cboFdSub1
rsSave("SubjectName2") = cboFdSub2
rsSave("MobileNo") = Val(txtFmobno)
rsSave("ResidenceNo") = Val(txtFResNo)
rsSave("Address") = txtFaddress1
rsSave("DateOfJoining") = DTPickerFD
rsSave.Update
DTPickerFD.Value = Date
rsSave.Close
87
Chate Coaching Classes [Borivali Branch]
88
Chate Coaching Classes [Borivali Branch]
cmdFdUpdate.Enabled = False
cmdFdDelete.Enabled = False
cmdfSearch.Enabled = True
cmdCancel.Enabled = True
cmdFdSave.Enabled = False
'DTPickerFD.Value = Date
End Sub
Private Sub fillcombo()
cboFdCoursename = lstFacultydetails.SelectedItem.SubItems(2)
If Not lstFacultydetails.SelectedItem.SubItems(3) = "" Then
cboFdSub1 = lstFacultydetails.SelectedItem.SubItems(3)
End If
If Not lstFacultydetails.SelectedItem.SubItems(4) = "" Then
89
Chate Coaching Classes [Borivali Branch]
cboFdSub2 = lstFacultydetails.SelectedItem.SubItems(4)
End If
txtFmobno = lstFacultydetails.SelectedItem.SubItems(5)
txtFResNo = lstFacultydetails.SelectedItem.SubItems(6)
txtFaddress1 = lstFacultydetails.SelectedItem.SubItems(7)
DTPickerFD = lstFacultydetails.SelectedItem.SubItems(8)
cmdFdAdd.Enabled = False
cmdFdUpdate.Enabled = True
cmdFdDelete.Enabled = True
cmdfSearch.Enabled = False
cmdFdSave.Enabled = False
cmdCancel.Caption = "Cancel"
cmdCancel.Enabled = True
EnabledC
End If
End Sub
Private Sub txtFacid_KeyPress(KeyAscii As Integer)
KeyAscii = CheckNum(KeyAscii)
End Sub
Private Sub txtFcontno_KeyPress(KeyAscii As Integer)
KeyAscii = CheckNum(KeyAscii)
End Sub
sql = "Select * from Faculty where FacultyId=" & Val(txtFacid) & ""
90
Chate Coaching Classes [Borivali Branch]
End If
txtFmobno = rsEDIT.Fields(6)
txtFResNo = rsEDIT.Fields(7)
txtFaddress1 = rsEDIT.Fields(8)
End If
txtFn.Enabled = True
cboFdCoursename.Enabled = True
cboFdSub1.Enabled = True
cboFdSub2.Enabled = True
txtFmobno.Enabled = True
txtFResNo.Enabled = True
txtFaddress1.Enabled = True
cmdCancel.Enabled = True
cmdCancel.Caption = "Cancel"
End Sub
91
Chate Coaching Classes [Borivali Branch]
Option Explicit
Dim rs As ADODB.Recordset
Dim list As ListItem
Dim UserMode As String
Private Sub fillList()
'Set rs = New ADODB.Recordset
'rs.Open "Select * from Faculty", Conn, adOpenKeyset, adLockOptimistic
lstSFacultydetails.ListItems.Clear
While rs.EOF <> True
Set list = lstSFacultydetails.ListItems.Add(, , Trim(rs("FacultyId") & ""))
list.SubItems(1) = Trim(rs("FacultyName") & "")
list.SubItems(2) = Trim(rs("CourseName") & "")
list.SubItems(3) = Trim(rs("SubjectName1") & "")
list.SubItems(4) = Trim(rs("SubjectName2") & "")
list.SubItems(5) = Trim(rs("DateOfJoining") & "")
rs.MoveNext
Wend
End Sub
92
Chate Coaching Classes [Borivali Branch]
End Sub
93
Chate Coaching Classes [Borivali Branch]
frmFacultydetails.SetFocus
If cboFaScid <> "" Then
frmFacultydetails.txtFacid = lstSFacultydetails.SelectedItem
frmFacultydetails.txtFacid.SetFocus
End If
End Sub
DTPickerSFD.Value = Date
End Sub
94
Chate Coaching Classes [Borivali Branch]
End Sub
cboFaScid.ListIndex = -1
cboSFn.ListIndex = -1
cboCName.ListIndex = -1
cboSSub1.ListIndex = -1
cboSSub2.ListIndex = -1
End Sub
Private Sub fillNamecombo()
95
Chate Coaching Classes [Borivali Branch]
sql = "Select * from Faculty where FacultyId=" & Val(txtAppFaId) & ""
96
Chate Coaching Classes [Borivali Branch]
End Sub
txtAppFaId = ""
txtAppFname = ""
txtAppCoursename = ""
txtAppSub1 = ""
txtAppSub2 = ""
End Sub
97
Chate Coaching Classes [Borivali Branch]
txtCoursename.SetFocus
End Sub
98
Chate Coaching Classes [Borivali Branch]
If vbYes = MsgBox("Are you sure you want to delete this record?", vbYesNo +
vbQuestion, "CHATE COACHING CLASSES") Then
cmdCancel.Enabled = False
cmdOcAdd.Enabled = True
cmdOcDelete.Enabled = False
cmdOcSave.Enabled = False
cmdOcUpdate.Enabled = True
cmdBatch.Enabled = True
End Sub
99
Chate Coaching Classes [Borivali Branch]
sql = "Select * from subjectsMaster where subjectName='" & lstOC.list(i) & "'"
Set rsSave = New ADODB.Recordset
rsSave.Open sql, Conn, adOpenKeyset, adLockOptimistic
subid = rsSave.Fields(0)
rsSave.Close
Set rsSave = New ADODB.Recordset
sql = "Select * from Coursesubject"
rsSave.Open sql, Conn, adOpenKeyset, adLockOptimistic
rsSave.AddNew
rsSave("CourseId") = txtCourseid
rsSave("SubjectId") = subid
rsSave.Update
rsSave.Close
Next
100
Chate Coaching Classes [Borivali Branch]
sql = "Select * from subjectsMaster where subjectName='" & lstOC.list(i) & "'"
Set rsSave = New ADODB.Recordset
rsSave.Open sql, Conn, adOpenKeyset, adLockOptimistic
subid = rsSave.Fields(0)
rsSave.Close
Set rsSave = New ADODB.Recordset
sql = "Select * from Coursesubject"
rsSave.Open sql, Conn, adOpenKeyset, adLockOptimistic
rsSave.AddNew
rsSave("CourseId") = txtCourseid
rsSave("SubjectId") = subid
rsSave.Update
rsSave.Close
Next
End If
cmdOcAdd.Enabled = True
cmdOcUpdate.Enabled = False
cmdOcDelete.Enabled = False
cmdOcSave.Enabled = False
cmdCancel.Caption = "Exit"
cmdCancel.Enabled = True
cmdBatch.Enabled = True
lstOC.Clear
txtCoursefees = ""
txtCoursename = ""
cboSub.ListIndex = -1
txtCourseid = ""
UserMode = ""
fillCourselist
End Sub
101
Chate Coaching Classes [Borivali Branch]
cmdOcAdd.Enabled = True
cmdOcUpdate.Enabled = False
cmdOcDelete.Enabled = False
cmdOcSave.Enabled = False
cmdCancel.Enabled = True
102
Chate Coaching Classes [Borivali Branch]
cmdBatch.Enabled = True
cmdSubAdd.Enabled = False
cmdSubdel.Enabled = False
End Sub
103
Chate Coaching Classes [Borivali Branch]
104
Chate Coaching Classes [Borivali Branch]
Option Explicit
Dim rs As ADODB.Recordset
Dim list As ListItem
Dim UserMode As String
Private Sub fillList()
105
Chate Coaching Classes [Borivali Branch]
txtBatchName = ""
txtTimings = ""
cmdOcDelete.Enabled = False
cmdOcUpdate.Enabled = False
cmdOcSave.Enabled = True
cmdCancel.Caption = "Cancel"
cmdCancel.Enabled = True
lstOffcourse.Enabled = False
EnabledC
End Sub
106
Chate Coaching Classes [Borivali Branch]
End Sub
107
Chate Coaching Classes [Borivali Branch]
Exit Sub
End If
If txtTimings = "" Then
MsgBox "Please Enter The Batch Timings.", vbOKOnly, "Chate Coaching Classes "
Exit Sub
End If
108
Chate Coaching Classes [Borivali Branch]
Option Explicit
Dim rs As ADODB.Recordset
Dim list As ListItem
Dim List1 As ListItem
Dim UserMode, Status, P, A As String
Private Sub fillList()
Set rs = New ADODB.Recordset
rs.Open "Select * from StudentAttendance", Conn, adOpenKeyset, adLockOptimistic
lstStudattDetails.ListItems.Clear
While rs.EOF <> True
Set list = lstStudattDetails.ListItems.Add(, , Trim(rs("RollNo") & ""))
list.SubItems(1) = Trim(rs("BatchId") & "")
109
Chate Coaching Classes [Borivali Branch]
For i = 0 To lstStudattDetails.ListItems.Count - 1
110
Chate Coaching Classes [Borivali Branch]
UserMode = ""
End Sub
111
Chate Coaching Classes [Borivali Branch]
End Sub
rs.MoveNext
Wend
End Sub
112
Chate Coaching Classes [Borivali Branch]
113
Chate Coaching Classes [Borivali Branch]
114
Chate Coaching Classes [Borivali Branch]
rs.MoveNext
Wend
End Sub
Option Explicit
Dim rs, rsattd As ADODB.Recordset
Dim UserMode, Status, P, A As String
Dim list As ListItem
115
Chate Coaching Classes [Borivali Branch]
For i = 0 To lstFacultyAttenddetails.ListItems.Count - 1
116
Chate Coaching Classes [Borivali Branch]
117
Chate Coaching Classes [Borivali Branch]
Option Explicit
Dim List1 As ListItem
Dim rs As New ADODB.Recordset
Dim rsatt As New ADODB.Recordset
End Sub
118
Chate Coaching Classes [Borivali Branch]
'DTPickerSAT.Value = Date
End Sub
Private Sub fillFacName()
Option Explicit
Dim rs As ADODB.Recordset
119
Chate Coaching Classes [Borivali Branch]
txtIname.Enabled = True
txtIcontno.Enabled = True
txtCourseId.Enabled = True
cmdICancel.Enabled = True
cmdICancel.Caption = "Cancel"
cmdISave.Enabled = True
txtIname.SetFocus
End Sub
120
Chate Coaching Classes [Borivali Branch]
Exit Sub
txtIname.SetFocus
End If
Dim rsSave As ADODB.Recordset
Dim sql As String
If UserMode = "ADD" Then
rsSave("InquiryNo") = txtInqno
rsSave("StudentName") = txtIname
rsSave("StudentContactNo") = Val(txtIcontno)
rsSave("CourseId") = Val(txtCourseId)
rsSave("Date") = DTPickerI
rsSave.Update
' DTPickerI.Value = Date
rsSave.Close
txtInqno = ""
txtIname = ""
txtIcontno = ""
txtCourseId = ""
txtIname.Enabled = False
txtIcontno.Enabled = False
txtCourseId.Enabled = False
cmdICancel.Caption = "Exit"
cmdISave.Enabled = False
End If
UserMode = ""
End Sub
Set rs = Nothing
DTPickerI.Value = Date
cmdIAdd.Enabled = True
cmdICancel.Enabled = True
cmdISave.Enabled = False
121
Chate Coaching Classes [Borivali Branch]
End Sub
Option Explicit
122
Chate Coaching Classes [Borivali Branch]
End Sub
Option Explicit
End Sub
Option Explicit
123
Chate Coaching Classes [Borivali Branch]
cboCbn.AddItem (rs.Fields("BatchName"))
rs.MoveNext
Wend
End Sub
Option Explicit
Dim rsatt As ADODB.Recordset
Dim rs As ADODB.Recordset
End Sub
Private Sub fillFacName()
Dim rs As ADODB.Recordset
Set rs = New ADODB.Recordset
rs.Open "select * from Faculty", Conn, adOpenKeyset, adLockBatchOptimistic
While rs.EOF <> True
cboFid.AddItem (rs.Fields("FacultyId"))
rs.MoveNext
Wend
End Sub
124
Chate Coaching Classes [Borivali Branch]
Option Explicit
Private Sub Command1_Click()
deDB.conInquiry (cboMonth)
DataReport2.Show
Unload deDB
End Sub
125
Chate Coaching Classes [Borivali Branch]
REFERENCES
126