Gas Agency Management System
January 25, 2017 | Author: Manish Sharma | Category: N/A
Short Description
Download Gas Agency Management System...
Description
Karuna Yadav PGDCA-IIIrd Sem. Roll No.-
CERTIFICATE This is to certify that the project report entitled, “Gas Agency Management
System” submitted by Ms. Karuna Yadav, for the partial fulfillment of the requirements of Post Graduate Diploma in Computer Applications (P.G.D.C.A.) embodies the work done by her during semester III of this course under due supervision of the supervisior from this college.
Date :
( Internal Supervisor ) Dept. of Computer Science A.N.D.C. University of Delhi Delhi-110018
Principal A.N.D.C. University of Delhi Delhi-110019
Karuna Yadav Roll No.
( Institute supervisor ) Sri Guru Singh Sabha Institute of Information Technology. Jangpura Ext., New Delhi
( HOD ) Dept. of Computer Science A.N.D.C. University of Delhi Delhi-110018
Acknowledgement This project is being the Ist live project made by me in the duration of this course (PGDCA) is an unforgettable experience. I would like to thank all of them who were associated with me in making this project a success. I would like to thank Mr. R. K. Sharma and Ms. Sonia Sodhi of SGSS-IIT, Jangpura Ext., New Delhi, who helped me in completion of this project. They had to answer all queries and an unconditional support that provided me without which it would have been impossible to do this project I heartily thank my faculty Ms.Sharanjeet Kaur and Preeti Marwah who gave me the hope and inspiration to go ahead with this project. I would like to thank my friends for their innovative ideas & views and for that timely assistance which they provided during the course of this project. I would also like to thank my parents for their blessing and assistance they provided to me during the course of this project; And last but not the least I would like to thank almighty god for what ever he provided me and made this project a success.
Karuna Yadav PGDCA-IIIrd Sem. Roll No.-
Table of Content 1. Introduction About Company About Project
2. Objective 3. Data Structure 4.
Hardware/Software Specification
5.
Context Free Diagram
6.
DFDs
7.
Structure of the program
8.
Program Listing/Coding
9.
Output/Report Generation
10.
Validation Checks
11.
Screen Shots
12.
Working of the Project/User Manual
13.
Conclusion
About Company
Sri Guru Singh Sabha Institute of Information Technology (SGSS-IIT) is an Associate institute of Guru Nanak Dev University, Amritsar "GNDU is a 35 Years old UGC approved Government University" under the management of Sri Guru Singh Sabha (Regd.) Gurdwara Jangpura Extension. At the institute, it is our goal to enable under graduate and graduate to possess a strong theoretical, practical and experimental foundation in the basic discipline of IT and Management. The Institute has been paying special attention to the development of student in professional values of fairness, objectively, comparison, commitment and super coordination. They are turned to the needs and demands of business and industry not only through the state of art inputs but also through carefully designed co-curricular programmes like leadership and personality development programme. The institute is proud to have unstinted support of Sri Guru Singh Sabha (Regd.) Gurdwara Jangpura Extn., Which is the parent body, the Advisory Committee consisting of eminent leaders from academics, busines, industry, government and professionals who guide and help SGSS-IIT in the best interest of the participants and for achieving the objective of the Institute.
The institute is establised to provide higher education to the weaker section of society and it is a voluntary effort and is being run on "No Profit" motive. SGSS has always felt very strongly that in view of its mission and goals, it is in crucial position to play a significant role in providing education to young men and women. The Main objective of the institute are: • • •
•
To provide the best possible professional education to ambitious young students. To give them an exposure to prevailing best environment in India and abroad. To develop a professinal min-set reflecting a secure self-image, creativeness, leadership, high commitment, sensitive and dynamic role so as to imbibe appropriate technology and mangement styles for practice of management. To develop expertise to face the emerging competitive situtation in India and abroad.
The Institute seeks to groom students to combine the use to technical skills with the understanding of the socio-cultural system to emerge as leaders in their fields and make significant contribution through excellent mangement in all sectors of the society.
About Project
The Gas Agencies and the number of gas users are seems to increasing day by day. The transactions like booking gas, releasing gas, keeping records of all customers, stock maintaining etc. when being processed manually take up a lot of time and thus add to the problems of the management. And thus to keep track of the transactions of the gas agency, a software package seems to be best way as it will speed up the work time and lessen up the complexities of the management. In simple language the project provides such user friendliness and easy understandability that even a novice user will find it easy to use the package and grasp its essence.
Objective
Objective of this software is to computerize the manual system of a Gas Agency, so that all the transactions become fast and easy. It replaces all the paper work. It works according to the need and lowers the work load of user.
Data Structure Five tables have been used in this project to store data:
1. tblConsumer : Keeps record of consumer. • • • • • • • •
ConsumerNo Name Address Pin Phone DoC Cylinders CylinderType
: : : : : : : :
Unique code allotted to every consumer. Name of the consumer. Address of the consumer. Pin code of the location. Phone no. of the consumer. Date of connection. No. of cylinders consumer have. Type of cylinder – Domestic/Commercial
2. tblConsumerTrans : Keeps record of gas booking and release. • • • • • •
Slno ConsumerNo DateofBooking DateofRelease IsReleased Remarks
: : : : : :
Serial no. Unique code allotted to every consumer. Date of gas booking. Date of releasing the gas to consumer. Flag variable containing value yes or no. Any remarks for the booking.
3. tblPrice : Keeps record of cylinder price. • •
CylinderType Price
: :
Type of cylinder – Domestic/Consumer Price of the cylinder.
4. tblStock : Keeps record of Stock. • • • •
CurrCommercial CurrDomestic DefectsCommercial DefectsDomestic
: : : :
Current stock for commercial cylinders Current stock for domestic cylinders Stock for defective commercial cylinders Stock for defective domestic cylinders
5. tblStockTrans : Keeps record Stock arrival. • • •
DoA Domestic Commercial
: : :
Date of stock arrival. No. of Domestic cylinders added in stock No. of Commercial cylinder added in stock
Hardware/Software Specifications
Hardware Requirements There are very few hardware requirements of this Gas Agency Management System (GAMS), let’s take a glimpse on these requirements
Machine Requirements These machine requirements are to obtain the best output of this project i. ii. iii. iv.
A Computer with at least Pentium III requirements and Printer port Graphic card with minimum 24 bit True/High colors Minimum 128 MB RAM A Printer (colored or black and white)
Software Requirements These Software requirements should be fulfilled or say these software should be installed on the computer to obtain the best output of this project
i. ii. iii. iv.
Visual Basic 6.0 Windows Platform (Windows 9X, ME, 2000, XP) Microsoft Office (With MS-Access) Printer Driver or Software
There are many points on the basis of which I decided to use Visual Basic for the development of this project, what are these points lets take a glimpse on to that
Context Free Diagram
Getting Consumer Details
Booking Status Report
Gas Agency System Getting Stock Details
Current Stock Report
DFDs
First Level DFD Details of Consumer
Stock Transaction File
1
Processing & calculating current Stock Display current stock status 2
Updating Stock master file.
Temporary storage of File
3
Getting Current stock status
Updated Stock Master File
Third Level DFD Booking details 1
Validating Consumer No. and date of booking
Formatted booking status report
Consumer Transaction File Temporary storage of File 2
Updating Consumer Master file
3
Booking Status & release Details
Updated Consumer Transaction File
4
Updating Consumer Transaction file
Updated Consumer Master File
Gas Release Details
5
Updated Consumer Master File
Updating Consumer Master file
6
Updated Stock Master File
Updating Stock master file
3
Validating Consumer No. and date of Release
Structure of the Program FORMS IN THE PROJECT: • • • • • •
frmAddConsumer frmAddStock frmBooking frmChangePassword FrmDaily frmDelConsumer
• frmMain • frmMenu • frmModConsumer • frmMonthly • • • • •
frmPriceEntry frmPrintBill frmRelease frmViewConsumer frmViewStock
: : : : : :
To add new consumer records in the file. To add new stock of cylinders in the file. To book gas to the consumer. To change password for the project. To display daily booking report. To delete the existing record of the
:
consumer. It is the first form displayed in the
:
starting, asks for the password to enter. This form displays the menu and calls all
: :
other forms. To modify consumer record. To display monthly booking status
: : : : :
report. To add/change price of the cylinder. To print bill for the released gas. To release the booked gas. To display record of consumer. To display current status of the stock.
Coding frmAddConsumer Private Sub cmdExit_Click() Unload Me End Sub Private Sub cmdSave_Click() If Me.txtConsumerNo.Text = "" Then MsgBox "Please input Consumer No." Me.txtConsumerNo.SetFocus Exit Sub End If If Not IsNumeric(Me.txtConsumerNo.Text) Then MsgBox "Please input Numeric value." Me.txtConsumerNo.SetFocus Exit Sub End If Dim rsDuplicate As New ADODB.Recordset rsDuplicate.Open "select ConsumerNo from tblConsumer where ConsumerNo=" & Me.txtConsumerNo.Text, con, adOpenDynamic If Not rsDuplicate.EOF Then MsgBox "Consumer No. already exists." Me.txtConsumerNo.SetFocus Exit Sub End If rsDuplicate.Close Set rsDuplicate = Nothing If Me.txtDoC.Text = "" Then MsgBox "Please input Date of Connection." Me.txtDoC.SetFocus Exit Sub End If If Not IsDate(Me.txtDoC.Text) Then
MsgBox "Please input valid Date." Me.txtDoC.SetFocus Exit Sub End If If Me.txtName.Text = "" Then MsgBox "Please input Name" Me.txtName.SetFocus Exit Sub End If If Me.txtAddress1.Text = "" Then MsgBox "Please input Address." Me.txtAddress1.SetFocus Exit Sub End If If Me.txtCylinders.Text = "" Then MsgBox "Please input No. of Cylinders." Me.txtCylinders.SetFocus Exit Sub End If If Not IsNumeric(Me.txtCylinders.Text) Then MsgBox "Please input Numeric value." Me.txtCylinders.SetFocus Exit Sub End If If Me.txtCylinders.Text < 0 Or Me.txtCylinders.Text > 2 Then MsgBox "Please input between 0..2" Me.txtCylinders.SetFocus Exit Sub End If If Me.opDomestic.Value = True Then ctype = "D" Else ctype = "C" End If con.Execute "insert into tblConsumer(ConsumerNo,Name,Address1,Address2,Address3,Pin,Phone, DoC,Cylinders,CylinderType) values(" & Me.txtConsumerNo.Text & ",'" & Me.txtName.Text & "','" & Me.txtAddress1.Text & "','" & Me.txtAddress2.Text & "','" & Me.txtAddress3.Text & "','" &
Me.txtPin.Text & "','" & Me.txtPhone.Text & "','" & Me.txtDoC.Text & "'," & Me.txtCylinders.Text & ",'" & ctype & "')" MsgBox "Record Saved." End Sub Private Sub Form_Load() Me.txtDoC.Text = Date End Sub
frmAddStock Private Sub cmdExit_Click() Unload Me End Sub Private Sub cmdNew_Click() If Me.cmdNew.Caption = "New Stock" Then Me.cmdNew.Caption = "Update" Me.txtArrival.Enabled = True Me.txtRecCommercial.Enabled = True Me.txtRecDomestic.Enabled = True Me.txtDefCommercial.Enabled = True Me.txtDefDomestic.Enabled = True Me.txtArrival.Text = Date Me.txtRecCommercial.Text = "0" Me.txtRecDomestic.Text = "0" Dim rsfill As New ADODB.Recordset rsfill.Open "select * from tblStock", con, adOpenDynamic If rsfill.EOF Then Me.txtOldCommercial.Text = "0" Me.txtOldDomestic.Text = "0" Me.txtCurrCommercial.Text = "0" Me.txtCurrDomestic.Text = "0" Me.txtDefCommercial.Text = "0" Me.txtDefDomestic.Text = "0" Else
Me.txtOldCommercial.Text = rsfill("CurrCommercial") Me.txtOldDomestic.Text = rsfill("CurrDomestic") Me.txtCurrCommercial.Text = rsfill("CurrCommercial") Me.txtCurrDomestic.Text = rsfill("CurrDomestic") Me.txtDefCommercial.Text = rsfill("DefectsCommercial") Me.txtDefDomestic.Text = rsfill("DefectsDomestic") End If rsfill.Close Set rsfill = Nothing Me.txtArrival.SetFocus Else If Me.txtArrival.Text = "" Then MsgBox "Please input Arrival Date" Me.txtArrival.SetFocus Exit Sub End If If Not IsDate(Me.txtArrival.Text) Then MsgBox "Please input valid Date" Me.txtArrival.SetFocus Exit Sub End If If Me.txtRecCommercial.Text = "" Then MsgBox "Please input Required Field" Me.txtRecCommercial.SetFocus Exit Sub End If If Not IsNumeric(Me.txtRecCommercial.Text) Then MsgBox "Please input numeric data" Me.txtRecCommercial.SetFocus Exit Sub End If If Me.txtRecDomestic.Text = "" Then MsgBox "Please input Required Field" Me.txtRecDomestic.SetFocus Exit Sub End If If Not IsNumeric(Me.txtRecDomestic.Text) Then MsgBox "Please input numeric data" Me.txtRecDomestic.SetFocus Exit Sub
End If If Me.txtDefCommercial.Text = "" Then MsgBox "Please input Required Field" Me.txtDefCommercial.SetFocus Exit Sub End If If Not IsNumeric(Me.txtDefCommercial.Text) Then MsgBox "Please input numeric data" Me.txtDefCommercial.SetFocus Exit Sub End If If Me.txtDefDomestic.Text = "" Then MsgBox "Please input Required Field" Me.txtDefDomestic.SetFocus Exit Sub End If If Not IsNumeric(Me.txtDefDomestic.Text) Then MsgBox "Please input numeric data" Me.txtDefDomestic.SetFocus Exit Sub End If con.Execute "delete from tblStock" con.Execute "insert into tblStock(CurrCommercial,CurrDomestic,DefectsCommercial,DefectsDomes tic) values(" & Me.txtCurrCommercial.Text & "," & Me.txtCurrDomestic.Text & "," & Me.txtDefCommercial.Text & "," & Me.txtDefDomestic.Text & ")" con.Execute "insert into tblStockTrans(DoA,Commercial,Domestic) values('" & Me.txtArrival.Text & "'," & Me.txtRecCommercial.Text & "," & Me.txtRecDomestic.Text & ")" MsgBox "Record Saved" Me.txtArrival.Text = "" Me.txtRecCommercial.Text = "" Me.txtRecDomestic.Text = "" Me.txtDefCommercial.Text = "" Me.txtDefDomestic.Text = "" Me.txtArrival.Enabled = False Me.txtRecCommercial.Enabled = False Me.txtRecDomestic.Enabled = False Me.txtDefCommercial.Enabled = False Me.txtDefDomestic.Enabled = False
Me.cmdNew.Caption = "New Stock" End If End Sub Private Sub Form_Load() Me.txtArrival.Enabled = False Me.txtRecCommercial.Enabled = False Me.txtRecDomestic.Enabled = False Me.txtDefCommercial.Enabled = False Me.txtDefDomestic.Enabled = False End Sub Private Sub txtRecCommercial_Change() Me.txtCurrCommercial.Text = Val(Me.txtRecCommercial.Text) + Val(Me.txtOldCommercial.Text) End Sub Private Sub txtRecDomestic_Change() Me.txtCurrDomestic.Text = Val(Me.txtRecDomestic.Text) + Val(Me.txtOldDomestic.Text) End Sub
frmBooking Dim ctype As String Private Sub cmbConsumerNo_Click() Me.txtLSlno.Text = "" Me.txtLType.Text = "" Me.txtLDoB.Text = "" Me.txtLReleased.Text = "" Me.txtLDoR.Text = "" Me.txtLRemarks.Text = "" Dim rsfill As New ADODB.Recordset rsfill.Open "select * from tblConsumer where ConsumerNo = " & Me.cmbConsumerNo.Text, con, adOpenDynamic If Not rsfill.EOF Then Me.txtName.Text = rsfill("Name") Me.txtAddress1.Text = rsfill("Address1") Me.txtAddress2.Text = rsfill("Address2") Me.txtAddress3.Text = rsfill("Address3") Me.txtPin.Text = rsfill("Pin") Me.txtPhone.Text = rsfill("Phone") Me.txtCylinders.Text = rsfill("Cylinders") If UCase(rsfill("CylinderType")) = "D" Then ctype = "Domestic" Else ctype = "Commercial" End If End If rsfill.Close Me.cmdBook.Enabled = False Me.lblStatus.Caption = "" Dim rsStock As New ADODB.Recordset rsStock.Open "select * from tblStock", con, adOpenDynamic If rsStock.EOF Then Me.cmdBook.Enabled = False Me.lblStatus.Caption = "Cannot book Gas. Stock Not Available"
Exit Sub Else If (ctype = "Domestic" And rsStock("CurrDomestic")
View more...
Comments