Вы находитесь на странице: 1из 34

1. INTRODUCTION The world is witnessing a dramatic change in the computer and informatio n technology sectors.

There is a never before increase in the need for computeri zed system in the organization. Almost all of once human dominated areas have be en taken over by the computer .So to maintain a proper computerized network prop er software and hardware are needed. There are many softwares specially designed for this purpose, out of whic h Visual basic stands number one due its user friendliness. Any user finds easy to work with visual basic than any other software. To develop a user friendly and secure computerized system I have selecte d Ms Visual Basic as Front-End and Ms Access as Back-End.

1.2 SYSTEM STUDY The project entitled Cyber cafe Management System is done by using the software Visual Basic as Front End and Ms Access as Back End. This Project has the following Modules 1) Form: This forms keeps track of the billing table this form is responsible for the var ious user information like the time for which the user gets the login and the am ount that he paid for it. It also keeps track of the user name and starting time this is the base table that is going to be used further. 2) Create user form : This form is used to get the detail data of the user who used the system Adminis trator is the main actor in this system he do the various job the brief detail i s given as : 3) Entry form: The administrator does the entry of the various machines by name and the code no . And at the same time the starting date is also added to the database. He can a lso extract the list of the different machines Billing for the whole day or the whole month or the whole year. This form extracts the data from the data base. 4) Exit : By clicking the exit the control again go back to the main user form. 2. ANALYSIS OF THE PROBLEM 2.1 SYSTEM ANALYSIS Analysis is a detailed study of various operations performed by a system and their relationship within and outside the system. One aspect of analysis is defining the boundaries of the system and determining whether a candidate syste m should consider other related system.

During analysis data is collected on the available files, decision points and tr ansaction handled by the present system. 2.1.1 EXISTING SYSTEM At present all the activities in the transactions are handled manually . Handling the outstanding system makes the process more complex when the volume of data becomes large, as a process extends in size and function. No matter how many clerks are employed a stage becomes impossible to systemize such a large a mount of information. It is an upgrading in the class of information processing technology. DRAWBACKS OF EXISTING SYSTEM Physical volume of data is very large. The delay in information search and retrrieval. Problems in updating and backup. Damage of papers containing the information. Problems of compilation of data in various orders to achieve the required inform ation. Considerable time taken for the report generation. The manual system is not suff icient to hold all the information that is necessary. So the company is in need for new computerized system in robust manner.

2.1.2 PROPOSED SYSTEM All the drawbacks involved in the manual system can easily be solved by the introduction of the computerized system. The system is capable of keepi ng track of bulk amount of data. All the data and accounts can be easily maintai ned. The ease and quickness with the information can be searched and retrieved i s an advantage of this system. Time updating, reliability of the data and flexib ility of getting output in any desired way are another advantage of the system. BENEFITS OF PROPOSED SYSTEM nything System is extremely user friendly. Online help screens are provided for the user. List of values is provided wherever necessary so that no one needs to remember a regarding the data entry. Necessary validation messages are given to avoid data entry errors. Backup facilities are provided with security of data. The programs are developed in structured manner.

2.1.3 FEASIBLITY STUDY

Technical feasibility Before going deep into the system analysis, it is important to m ake sure whether the project is feasible. There are three steps to be considered in feasibility analysis. They are 1. Technical Feasibility 2. 3. Economic Feasibility Operational Feasibility

OPERATIONAL FEASIBILITY Operational feasibility deals with if the system is developed, wi ll it be useful for the organization. Since it is connected in the Local Area Net work, it is easy for anyone to operate on the system from any part of the organi zation. And if we need, any details about the entities. Those can be viewed by c licking the search buttons. ECONOMICAL FEASIBILITY Studying about money spent on this project and whether it is rea lly worth. The organizational point of view of this project is, How much profit t hat they can earn from the projects? money incurred in the project development is not very high and so this project is economically feasible. TECHNICAL FEASIBILITY Studying what are all the technical needs of the system and whet her they are affordable to the project. This project needs VB 6.0 as front-end M s Access as a backend which are already available in the Organization. 2.2ANALYSIS TOOLS 2.2.1 DATA FLOW DIAGRAM

2.2.2 E-R Diagram

2.3 HARDWARE AND SOFTWARE CONFIGURATION 2.3.1 HARDWARE REQUIREMENTS Monitor Processor : Samsung 56V : PENTIUM IV 2.66 GHz

RAM Hard disk Floppy CD-Drive Keyboard Mouse Printer : :

: : 1.44MB : : :

256 MB 80GB

LG 52X Samsung Multimedia 110 keys Logitech Optical Scroll Mouse

HP LaserJet1020

2.3.2 SOFTWARE REQUIREMENTS

OPERATING SYSTEM FRONT-END BACK-END

MS WINDOWS 2000 : : MS-VISUAL BASIC 6.0 MS-ACCESS 2000

3. SYSTEM DESIGN The first step in the system design is to design the input and output wi thin predefined guidelines. In input design user originated inputs are converted to a computer- based format. It also includes determining the record media, met hod of input, speed of capture, and entry into the system. In output design the emphasis is on producing a hard copy of the information requested, or displaying the output on a CRT monitor screen in a predefined format 3.1 INPUT DESIGN In information systems the input data are entered according to the forma t, which is already defined. Inaccurate input data are the most common cause of errors in data entry. These can be controlled by proper input design. Input design is a process of conversion user organized inputs to a compu ter base format input data are controlled and organized into groups of similar d ata. The goal of designing input data is to make data entry as easy, logical & f ree from errors as possible in visual basic input design is made through forms.

3.2 OUTPUT DESIGN Computer output is the most vital and direct source of information to th e user. A clear-cut output design improves the system relationships with the use r and helps in decision-making. A major form of output is a hard copy from the p

rinter. The printout should be designed around the output requirements of the us er. In addition to deciding on the output devices, the system analyst should per form the editing of the file printout. The task of output preparation is critica l, requiring skill and ability to align user requirements with the capacities of the system in operation. The output of the project is done in such a way that one can view unaltered valu es of all the records through the forms on the monitor. Navigation is also provi ded such that one can transverse from one record to another. Another method is a lso provided which will enable the user to view the current record entered diffe rent forms as reports and take a printout of the currently typed record. An application is successful only when it can produce efficient reports. The rep orts generated must be useful to management and future reference. For the user a nd management, reports provide a source of information. Reports also provide a p ermanent hard copy of transactions occurred. Careful consideration has to be giv en in designing as it helps in decision making. Reports show the monthly and yearly details of the organization. The reports are very essential to obtain a well-structured project. .

3.3 SOFTWARE SPECIFICATION

ABOUT THE SOFTWARE Microsoft Visual Basic 6.0 Visual basic is the fastest and easiest way to create applications f or Microsoft windows. Visual basic provides complete set of tools to simplify ra pid application development both for experience professional and new windows pro grammers. In the same Visual part refers to the method used to create the graphical user interface (GUI). Visual basic provides pre-built objects that can be used t o form the GUI. The BASIC part refers to the BASIC language and its syntax of st atements retained by visual basic. Features of visual basic Multiple windows on a screen are possible. Access to clipboard and to the information in the most other windows application Running at a same time is possible. It provides dynamic data exchange. It provides object linking and embedding. It was client-server concept .So any FOXPRO, DBASE, ACCESS, ORACLE DATABASE can be connected.

Basic Features Intelligence A new feature that Microsoft calls intelligence enables the system to re act in real time during encoding. There are five basic intelligence features: 1) Quick Info 2) Complete word 3) Data Tips 4) List members 5) List constant 1. Quick info is a feature that presents syntax of the procedure, which is being typed, in a loop like window. 2. Complete word is a feature that automatically completes the word, which is ty ped in real time. 3. Data tips are very useful feature that simply shows the value of the variable in yellow tip format at run time. 4. List members are the feature is used to simply list the entire properties or methods available to given object. 5. List content is a feature that works the same as the list members feature, exc ept that with these feature available constant values for given property is list ed.

Other Features Break Point can be toggled simply with a mouse click. Bookmarks can be placed fo r quick location. Properties in the property window can be manipulated or even by Category. An interesting feature is block statement and uncomments. With a click of a mouse mmented. button, all highlighted code will be commented or unco

Designing and formatting can easily be applied to one or more controls

3.3.2 MS Access (Back-End) A database is a collection of information related to a particular subject or pur pose such as tracking customer orders or maintaining a music collection. If our database is not stored on a computer or only parts of it are we may be tracking information from a variety of sources. Using Microsoft access we can manage all our information from a single database file. Within the file, divide our data using online forms. We can find and retri eve just the data we want using queries. To store data create one table to for each type of information we track . To bring the data from multiple table together queries, form or report we defi ne relationship between the tables. To find and retrieve just the data that needs conditions we specify including da ta from multiple tables create a query. A query can also be updated or deleted m ultiple records at the same time, and perform build-in or custom calculations on our data. A table is a collection of data of about a specific topic such as produc ts or suppliers or employees. Using a separate table for each topic means we sto re that data only once, which makes our database more efficient and reduces data -entry errors. Tables organize data into columns called fields and rows called r ecords. FEATURES Microsoft Access offers some significant performance improvements. Improved wizards that sense relationship and automatically create relationship.. Lightweight forms and reports. Improved compiled-state management data. Active x control speed.

4. Testing and Maintenance SYSTEM TESTING System Testing is the process of checking the developed system in workin g according to the original objectives and requirements. Initially the system sh ould be tested experimentally with the test data so as to ensure that software i s working according to the specification, and the way the user expect if to work . When it is found to be working in the right manner then the actual data is fed and the whole system is tested to check its performance. It is also important t hat system correctly identifies the errors.

UNIT TESTING This type of testing deals with the testing of different modules of the software. It checks for any errors in each of these modules in the software. INTEGRATION TESTING During this phase of testing all the modules in the software are combine d or integrated together and they are tested for the overall performance of the system. ACCEPTANCE TESTING This phase of testing deals with the acceptance part of the system soft ware. It checks for the proper functioning of all the given validations (i.e.) r ules.

CONTROL STRUCTURE TESTING The basic path testing technique is one of the numbers of technique for control structure testing. These broaden testing coverage and improve the qualit y of white box testing. Control Structure Testing performs the following. Condition testing Data flow testing Loop testing Simple testing Nested loops WHITE BOX TESTING White box testing is a test case design method that uses the control str ucture of the procedure design to derive test cases. In the testing approach of testing tests are made with the complete knowledge ab out internal working of the transportation system. Test can be conducted to all internal operations of the transportation system. BLACK BOX TESTING In this testing approach to testing test case are prepared with the know ledge about the functions that the transportation system is designed to perform. This approach saves time and energy. Mainly this test concentrates the logical methods of the entire system. The attributes both white box testing and black box testing can be combined to p rovide an approach that validates the software interface and selectivity ensures that the internal working of the software and correct.

5. APPENDIX 5.1 TABLES Sno 1 2 3 4 5 6 7 8 9 Fieldname Datatype VoucherNo Number Name Text PermanentAddress Text PhoneNo Text Nationality Text EMailId Text ArrivalDate Date/Time DepartureDate Date/Time NoOfDaysStayed Number Size Constraint Description Primary Voucher Number Name Of TheCustomer Permanent Address Phone Number Nationality E-MailId Arrival Date Departure Date Number Of Days Stayed

TABLENAME: CUSTOMER DETAILS

TABLENAME: EMPLOYEE DETAILS Sno 1 2 3 4 5 6 7 8 9 10 11 12 13 14 Fieldname Datatype EID Number EName Text Address Text Qualification Text Designation Text DOJ Date/Time DepName Text PhoneNo Text Specialization Text SOP Currency YIncrement Currency HRA Currency DA Currency PF Currency Size Constraint Description Employee Id Employee Name Address Qualification Designation Date of Joining Department Name Phone Number Place Scale Of Pay Yearly Increment Allowance DA Provident Fund

TABLENAME: MASTER DETAILS Sno 1 2 3 4 5 6 7 8 9 Fieldname CustomerName System No InTime Text Out Time TotalTime TotalRs Text Signature Date Text PRRate Text Datatype Text Text Text Text Text Size In Time Out Time Total Time Total Rs Signature Date PR Rate Constraint Customer Name System Number Description

10 11 12

NOPR Currency ScanAmt Currency Total Currency

NO Pr Scan Amount Total

TABLENAME: CUSTOMER DETAILS Sno 1 2 3 Fieldname CustomerName System Number LogInTime Datatype Text Text Text Size Constraint Customer Name System Number Log In Time Description

5.2 FORMS

1. WELCOME FORM

2. MDI FORM

3.

ADD CUSTOMER DETAILS FORM

4.

PAYMENT FORM

5.

PAYMENT RECEIVE DETAILS

6.

CALENDER DETAILS

5.3 REPORTS 1. SHOW ALL RECORD DETAILS

5.4 CODINGS 1. ABOUT FORM:

Private Declare Function sndplaysound Lib "Winmm.dll" Alias "sndPlaySoundA" (ByV al lpszsoundName As String, ByVal uflags As Long) As Long Dim Dim Dim Dim str As String b As Integer i As Integer PI, Radius, Radians As Double

Private Sub Timer1_Timer() Me.Caption = Left(str, i) i = i + 1 If i = b + 1 Then Timer1.Interval = 3000 i = 0 End If End Sub Option Explicit Dim Dim Dim Dim

Private Sub Form_Load() PI = 3.14159265358979 Radius = 1680 str = "Cyber Master... By Vicky! vic_Xcali_ky@yahoo.com" b = Len(str) i = 1 End Sub

k As Integer text As String Text2 As String a As String

Dim Dim Dim Dim

str As String b As Integer i As Integer PI, Radius, Radians As Double

Private Sub Form_Click() sndplaysound (App.Path & "\1.wav"), 1 Main.Show Unload Me End Sub Private Sub Form_KeyPress(KeyAscii As Integer) If KeyAscii = 27 Then sndplaysound (App.Path & "\1.wav"), 1 Main.Show Unload Me End If End Sub Private Sub Form_Load() PREVENTS FROM MORE THAN ONE INSTANCE RUNNING If App.PrevInstance = True Then End >>>>>>>>>>>>>>>>>>>>> k = 0 text = "Programmer Writer" & vbCrLf & " from India " & vbCrLf & "Cyber Master(Ve rsion 1.0)!" & vbCrLf & "Perfect Cyber Cafe Manager Programme Specially designed for Cyber Cafe s" & vbCrLf & " Vote me on" Text2 = "Browsing Centre Management System" SetWindowPos Me.hwnd, -1, Me.Left / 15, _ Me.Top / 15, Me.Width / 15, _ Me.Height / 15, &H10 Or &H40

PI = 3.14159265358979 Radius = 1680 str = "Cyber Master (Version 1.0)" b = Len(str) i = 1 End Sub Private Sub Form_Unload(Cancel As Integer) sndplaysound (App.Path & "\1.wav"), 1 Main.Show End Sub Private Sub Label1_Click() Unload Me End Sub Private Sub Label2_Click()

Unload Me End Sub Private Sub Timer1_Timer() Me.Caption = left(str, i) i = i + 1 If i = b + 1 Then Timer1.Interval = 3000 i = 0 End If End Sub Private Sub Timer2_Timer() k = k + 1 a = Mid(text, k, 1) Label1.Caption = Label1.Caption + a If k >= Len(text) Then Timer2.Enabled = False Timer3.Enabled = True a = "" k = 0 End If End Sub Private Sub Timer3_Timer() k = k + 1 a = Mid(Text2, k, 1) Label2.Caption = Label2.Caption + a If k > Len(Text2) Then Timer3.Enabled = False Timer4.Enabled = True End If End Sub

2. CALENDER DETAILS Private Declare Function sndplaysound Lib "Winmm.dll" Alias "sndPlaySoundA" (ByV al lpszsoundName As String, ByVal uflags As Long) As Long Private Sub Form_Unload(Cancel As Integer) sndplaysound (App.Path & "\1.wav"), 1 Main.Show End Sub Private Sub MonthView1_MouseMove(Button As Integer, Shift As Integer, x As Singl e, y As Single) MonthView1.ToolTipText = Time & Date End Sub

3. HEAD DETAILS Private Declare Function sndplaysound Lib "Winmm.dll" Alias "sndPlaySoundA" (ByV al lpszsoundName As String, ByVal uflags As Long) As Long

Private Sub MDIForm_Unload(Cancel As Integer) sndplaysound (App.Path & "\1.wav"), 1 End Sub Private Sub mnuabout_Click() sndplaysound (App.Path & "\Click.wav"), 1 About.Show Main.Hide End Sub Private Sub mnucas_Click() On Error GoTo ErrHandler Me.Arrange vbCascade Exit Sub ErrHandler: Dim ErrNum, ErrDesc, ErrSource ErrNum = Err.Number ErrDesc = Err.Description ErrSource = Err.Source MsgBox "Error# = " & ErrNum & vbCrLf & "Description = " & ErrDesc & vbCrLf & "Source = " & ErrSource, vbCritical + vbOKOnly, "Program Error!" Err.Clear Exit Sub End Sub Private Sub mnuexit_Click() sndplaysound (App.Path & "\1.wav"), 1 End End Sub

Private Sub ToolBar_ButtonClick(ByVal Button As MSComctlLib.Button) If Button.Index = 1 Then sndplaysound (App.Path & "\Click.wav"), 1 Main.Show ElseIf Button.Index = 3 Then sndplaysound (App.Path & "\Click.wav"), 1 Main.Hide Record.Show

ElseIf Button.Index = 7 Then sndplaysound (App.Path & "\Click.wav"), 1 Main.Hide About.Show

ElseIf Button.Index = 5 Then sndplaysound (App.Path & "\Click.wav"), 1 Main.Hide Calinder.Show

ElseIf Button.Index = 9 Then sndplaysound (App.Path & "\Click.wav"), 1 Unload Me ElseIf Button.Index = 11 Then sndplaysound (App.Path & "\Click.wav"), 1 Timer.Show Main.Hide End If End Sub Private Sub ToolBar_ButtonMenuClick(ByVal ButtonMenu As MSComctlLib.ButtonMenu) sndplaysound (App.Path & "\click.wav"), 1 If ButtonMenu.Index = 1 Then Middle.Show sndplaysound (App.Path & "\click.wav"), 1 ElseIf ButtonMenu.Index = 2 Then Info.Show sndplaysound (App.Path & "\click.wav"), 1 ElseIf ButtonMenu.Index = 3 Then Unload Me End If End Sub 4. INFO COUNT DETAILS Private Declare Function sndplaysound Lib "Winmm.dll" Alias "sndPlaySoundA" (ByV al lpszsoundName As String, ByVal uflags As Long) As Long Dim dn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim RS1 As New ADODB.Recordset Dim RS1_COUNT As New ADODB.Recordset Dim in_time As Date Dim out_time As Date Dim h As Double Dim m As Double SCORL FORM TITLE Dim x As Integer Dim y As Integer Dim prev As String

Private Sub Command1_KeyPress(Index As Integer, KeyAscii As Integer) If KeyAscii = 27 Then

Unload Me End If End Sub Private Sub Command2_Click(Index As Integer) RS1.Close RS1_COUNT.Close RS1.Open "select * from CURRENT_CUSTOMER WHERE SYSTEM_NO=" & Index + 1 RS1_COUNT.Open "select count(*) from CURRENT_CUSTOMER WHERE SYSTEM_NO=" & Index + 1 If RS1_COUNT.Fields(0).Value = 1 Then Last.SYS_NO = Index + 1

If DatePart("h", in_time) >= 22 Then MsgBox DatePart("h", in_time) If DatePart("h", in_time) = 24 Then If Val(Form3.Text9) <= 15 Then Form3.Text7 = 3.75 ElseIf Val(Form3.Text9) <= 30 Then Form3.Text7 = 7.5 ElseIf Val(Form3.Text9) <= 45 Then Form3.Text7 = 11.25 ElseIf Val(Form3.Text9) <= 60 Then Form3.Text7 = 15 Else

in_time = RS1.Fields(2) .Value

out_time = Now Last.Text1 Last.Text2 Last.Text3 Last.Text4 = = = = RS1.Fields(0).Value RS1.Fields(1).Value RS1.Fields(2).Value out_time

Last.Text9 = Clear Last.Text9 = DateDiff("n", in_time, out_time) m = Val(Last.Text9) Mod 60 h = (Last.Text9) / 60 h = Int(h) Last.Text5.text = Val(h) Last.Text9.text = Val(m)

Form3.Text7 = (Val(Form3.Text9) * 15) / 60 End If Form3.Text7 = Val(Form3.Text7) + (Val(Form3.Text5) * 15) End If

If DatePart("h", in_time) >= 0 Then If DatePart("h", in_time) <= 6 Then If Val(Last.Text9) <= 15 Then Last.Text7 = 3.75 ElseIf Val(Last.Text9) <= 30 Then Last.Text7 = 7.5 ElseIf Val(Last.Text9) <= 45 Then Last.Text7 = 11.25 ElseIf Val(Last.Text9) <= 60 Then Last.Text7 = 15 Else Last.Text7 = (Val(Last.Text9) * 15) / 60 End If Last.Text7 = Val(Last.Text7) + (Val(Last.Text5) * 15)

ElseIf DatePart("h", in_time) <= 23 Then If Val(Last.Text9) <= 15 Then Last.Text7 = 5 ElseIf Val(Last.Text9) <= 30 Then Last.Text7 = 10 ElseIf Val(Last.Text9) <= 45 Then Last.Text7 = 15 ElseIf Val(Last.Text9) <= 60 Then Last.Text7 = 20 Else Last.Text7 = (Val(Last.Text9) * 20) / 60 End If Last.Text7 = Val(Last.Text7) + (Val(Last.Text5) * 20) End If

End If

If Val(Form3.Text9) <= 15 Then Form3.Text7 = 5 ElseIf Val(Form3.Text9) <= 30 Then Form3.Text7 = 10 ElseIf Val(Form3.Text9) <= 45 Then Form3.Text7 = 15 ElseIf Val(Form3.Text9) <= 60 Then Form3.Text7 = 20 Else Form3.Text7 = (Val(Form3.Text9) * 20) / 60 End If Form3.Text7 = Val(Form3.Text7) + (Val(Form3.Text5) * 20)

Unload Me Last.Show vbModal Else MsgBox "There is no Customer on that System...", vbInformation, "No Custome r Found On that System"

End If End Sub

Private Sub Form_Load() dn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\CAFE_DA TABASE.mdb;Persist Security Info=False" rs.Open "select * from CURRENT_CUSTOMER", dn, adOpenDynamic, adLockOptimistic RS1.Open "select * from CURRENT_CUSTOMER", dn, adOpenDynamic, adLockOptimisti c RS1_COUNT.Open "select count(*) from current_customer", dn, adOpenDynamic, ad LockOptimistic While rs.EOF <> True Label1(rs.Fields(1).Value - 1).Caption = rs.Fields(0).Value rs.MoveNext Wend SCORL FORM TITLE FROM HERE prev = "Information & Collect Customers Payment.. " x = Len(prev) y = 1 End Sub Private Sub Form_Unload(Cancel As Integer) sndplaysound (App.Path & "\1.wav"), 1 dn.Close End Sub Private Sub Timer1_Timer() Info.Caption = Mid$(prev, y, x) y = y + 1 If y > x Then y = 1 End If End Sub Private Sub xpButton1_Click(Index As Integer) sndplaysound (App.Path & "\click.wav"), 1 RS1.Close RS1_COUNT.Close RS1.Open "select * from CURRENT_CUSTOMER WHERE SYSTEM_NO=" & Index + 1 RS1_COUNT.Open "select count(*) from CURRENT_CUSTOMER WHERE SYSTEM_NO=" & Index + 1 If RS1_COUNT.Fields(0).Value = 1 Then Last.SYS_NO = Index + 1

in_time = RS1.Fields(2).Value

out_time = Now

Last.Text1 Last.Text2 Last.Text3 Last.Text4

= = = =

RS1.Fields(0).Value RS1.Fields(1).Value RS1.Fields(2).Value out_time

Last.Text9 = Clear Last.Text9 = DateDiff("n", in_time, out_time) m = Val(Last.Text9) Mod 60 h = (Last.Text9) / 60 h = Int(h) Last.Text5.text = Val(h) Last.Text9.text = Val(m)

If DatePart("h", in_time) >= 0 Then If DatePart("h", in_time) <= 6 Then If Val(Last.Text9) <= 15 Then Last.Text7 = 5 ElseIf Val(Last.Text9) <= 30 Then Last.Text7 = 10 ElseIf Val(Last.Text9) <= 45 Then Last.Text7 = 15 ElseIf Val(Last.Text9) <= 60 Then Last.Text7 = 15 Else Last.Text7 = (Val(Last.Text9) * 15) / 60 End If Last.Text7 = Val(Last.Text7) + (Val(Last.Text5) * 15) ElseIf DatePart("h", in_time) <= 23 Then If Val(Last.Text9) <= 15 Then Last.Text7 = 5 ElseIf Val(Last.Text9) <= 30 Then Last.Text7 = 10

If DatePart("h", in_time) >= 22 Then MsgBox DatePart("h", in_time) If DatePart("h", in_time) = 24 Then If Val(Form3.Text9) <= 15 Then Form3.Text7 = 3.75 ElseIf Val(Form3.Text9) <= 30 Then Form3.Text7 = 7.5 ElseIf Val(Form3.Text9) <= 45 Then Form3.Text7 = 11.25 ElseIf Val(Form3.Text9) <= 60 Then Form3.Text7 = 15 Else Form3.Text7 = (Val(Form3.Text9) * 15) / 60 End If Form3.Text7 = Val(Form3.Text7) + (Val(Form3.Text5) * 15) End If

ElseIf Val(Last.Text9) <= 45 Then Last.Text7 = 15 ElseIf Val(Last.Text9) <= 60 Then Last.Text7 = 15 Else Last.Text7 = (Val(Last.Text9) * 15) / 60 End If Last.Text7 = Val(Last.Text7) + (Val(Last.Text5) * 15) End If End If

If Val(Form3.Text9) <= 15 Then Form3.Text7 = 5 ElseIf Val(Form3.Text9) <= 30 Then Form3.Text7 = 10 ElseIf Val(Form3.Text9) <= 45 Then Form3.Text7 = 15 ElseIf Val(Form3.Text9) <= 60 Then Form3.Text7 = 20 Else Form3.Text7 = (Val(Form3.Text9) * 20) / 60 End If Form3.Text7 = Val(Form3.Text7) + (Val(Form3.Text5) * 20)

Unload Me Last.Show vbModal Else MsgBox "There is no Customer on that System...", vbInformation, "Cyber Maste r (Version 1.0)" End If End Sub Private Sub xpButton1_KeyPress(Index As Integer, KeyAscii As Integer) If KeyAscii = 27 Then Unload Me End If End Sub 5. LAST DETAILS Private Declare Function sndplaysound Lib "Winmm.dll" Alias "sndPlaySoundA" (ByV al lpszsoundName As String, ByVal uflags As Long) As Long Dim dn As New ADODB.Connection Dim rs As New ADODB.Recordset Dim RS1 As New ADODB.Recordset Public SYS_NO As String will scorl the form title Dim x As Integer Dim y As Integer Dim prev As String

Private Sub Command1_Click() sndplaysound (App.Path & "\click.wav"), 1 If Len(Text8.text) = 0 Then MsgBox "Please Enter Receiver name", vbInformation, "Enter All the Details.. ." Else rs.AddNew rs.Fields(0).Value = Text1.text rs.Fields(1).Value = Text2.text rs.Fields(2).Value = Text3.text rs.Fields(3).Value = Text4.text rs.Fields(4).Value = Text5.text rs.Fields(5).Value = Text7.text rs.Fields(6).Value = Text8.text rs.Fields(5).Value = txttotal.text rs.Fields(7).Value = tXTDATE.text rs.Fields(8).Value = Txt1.text rs.Fields(9).Value = TxtP.text rs.Fields(10).Value = XpAmount.Caption rs.Fields(11).Value = XpScan.Caption rs.Update RS1.Delete Main.Show Unload Me End If

End Sub Private Sub Command2_Click() sndplaysound (App.Path & "\1.wav"), 1 Unload Me Info.Show vbModal End Sub Private Sub Form_Load() dn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\CAFE_DATA BASE.mdb;Persist Security Info=False" rs.Open "select * from MASTER_TABLE", dn, adOpenDynamic, adLockOptimistic RS1.Open "select * from CURRENT_CUSTOMER WHERE SYSTEM_NO =" & SYS_NO, dn, adOpen Dynamic, adLockOptimistic this will scrole the form title prev = " TOTAL AMOUNT YOU HAVE TO PAY... " x = Len(prev) y = 1 TxtP.text = 0 Txts.text = 0 End Sub Private Sub Form_Unload(Cancel As Integer) sndplaysound (App.Path & "\1.wav"), 1

dn.Close End Sub Private Sub Text6_LostFocus() If Val(Text9) <= 15 Then Text7 = 5 ElseIf Val(Text9) <= 30 Then Text7 = 10 ElseIf Val(Text9) <= 45 Then Text7 = 15 ElseIf Val(Text9) <= 60 Then Text7 = 20 Else Text7 = (Val(Text9) * 20) / 60 End If End Sub

Private Sub Timer1_Timer() Last.Caption = Mid$(prev, y, x) y = y + 1 If y > x Then y = 1 End If End Sub Private Sub Timer2_Timer() On Error GoTo Rani: With ProgCount .Value = .Value + 1 End With Exit Sub Rani: If Err.Number = 380 Then sndplaysound (App.Path & "\click.wav"), 1 Call Doing Text8.Enabled = True Command1.Enabled = True Timer2.Enabled = False End If End Sub Private Sub Timer3_Timer() TXTtIME.text = Time tXTDATE.text = Date End Sub Private Sub Txt1_Change() Txt1.ToolTipText = "The Amount Has been Changed" End Sub Private Sub Txt1_Click() Txt1.Locked = True End Sub Private Sub Txt1_DblClick() Txt1.Locked = False End Sub

Private Sub Txt2_Change() Txt2.ToolTipText = "The Amount Has been Changed" End Sub Private Sub Txt2_Click() Txt2.Locked = True End Sub Private Sub Txt2_DblClick() Txt2.Locked = False End Sub Printer Amt

Private Sub TxtP_Change() On Error GoTo Maria Dim Vicky As Integer Dim Jenny As Integer Vicky = Txt1.text Jenny = TxtP.text XpAmount.Caption = Vicky * Jenny Maria: If Err.Number = 13 Then MsgBox "Please Enter the Number of prints u have taken", vbInformation, "Cyber M aster (Version 1.0)" End If End Sub Scanner Amt

Private Sub Txts_Change() On Error GoTo Vicky Dim Britney As Integer Dim Lopez As Integer Britney = Txt2.text Lopez = Txts.text XpScan.Caption = Britney * Lopez Vicky: If Err.Number = 13 Then MsgBox "Please Enter the Number of Scan s u have taken", vbInformation, "Cyber M aster (Version 1.0)" End If End Sub Private Sub xpButton2_Click() On Error GoTo Vicky Dim i As Integer Dim L As Integer i = Text7.text L = Txt2.text txttotal = i + L Vicky: If Err.Number = 13 Then MsgBox "Please Enter Number or Prints and Scan", vbInformation, "Cyber Master" End If End Sub Private Sub XpCount_Click() Timer2.Enabled = True

ProgCount.Value = 0 End Sub Private Sub Doing() Dim Num1 As Integer Dim Num2 As Integer Dim Num3 As Integer Num1 = Text7.text Num2 = XpAmount.Caption Num3 = XpScan.Caption txttotal = Num1 + Num2 + Num3 End Sub Private Sub XpAmount_Click() Dim Kadie As Integer Dim Aviril As Integer Kadie = Text7.text Aviril = XpAmount.Caption txttotal = Kadie + Aviril End Sub

6. LOADING DETAILS

Private Declare Function sndplaysound Lib "Winmm.dll" Alias "sndPlaySoundA" (ByV al lpszsoundName As String, ByVal uflags As Long) As Long

Private Sub Form_Unload(Cancel As Integer) sndplaysound (App.Path & "\1.wav"), 1 End Sub this will make ur progress bar Run Private Sub Timer1_Timer() On Error GoTo Rani: With PROGLOAD .Value = .Value + 1 End With Exit Sub Rani: If Err.Number = 380 Then sndplaysound (App.Path & "\click.wav"), 1

Private Sub XpScan_Click() Dim Kadie As Integer Dim Aviril As Integer Kadie = Text7.text Aviril = XpAmount.Caption txttotal = Kadie + Aviril End Sub

Unload Me Head.Show vbModal

Main.Show End If End Sub 7. MAIN DETAILS Private Declare Function sndplaysound Lib "Winmm.dll" Alias "sndPlaySoundA" (ByV al lpszsoundName As String, ByVal uflags As Long) As Long scorols Dim x As Dim y As Dim prev form title Integer Integer As String

Private Sub Form_Unload(Cancel As Integer) sndplaysound (App.Path & "\1.wav"), 1 End Sub Private Sub Timer1_Timer() Time1a.Caption = Time Main.Caption = Mid$(prev, y, x) y = y + 1 If y > x Then y = 1 End If End Sub Private Sub Form_Load() prev = " Cyber Master version (1.0) Perfect management software! Sai softwares C reation. " x = Len(prev) y = 1 End Sub Private Sub CmdAdd_Click() sndplaysound (App.Path & "\click.wav"), 1 Middle.Show vbModal Me.Hide End Sub Private Sub CmdEnd_Click() sndplaysound (App.Path & "\1.wav"), 1 Unload Me End Sub Private Sub CmdGet_Click() sndplaysound (App.Path & "\click.wav"), 1 Info.Show vbModal End Sub Private Sub xPABOUT_Click() sndplaysound (App.Path & "\click.wav"), 1 About.Show vbModal Main.Hide End Sub Private Sub xpButton1_Click() Record.Show End Sub

8. CUSTOMER RECORDS AND INFORMATION DETAILS This will play Wave files Private Declare Function sndplaysound Lib "Winmm.dll" Alias "sndPlaySoundA" (ByV al lpszsoundName As String, ByVal uflags As Long) As Long This Connects ur Detabase Dim dn As New ADODB.Connection Dim rs As New ADODB.Recordset will scorl the form title Dim x As Integer Dim y As Integer Dim prev As String Private Sub CmdSave_Click() sndplaysound (App.Path & "\click.wav"), 1 If Len(txtName.text) = 0 Then MsgBox "Please enter the customer name", vbInformation, "Customer name !!!" ElseIf Len(txtsysno.text) = 0 Then MsgBox "Please Assign the system number", vbInformation, "System Number !!!" ElseIf Len(txtnow.text) = 0 Then MsgBox "Please assign the Incoming time", vbInformation, "In_Time !!!" Else rs.AddNew rs.Fields(0).Value = txtName.text rs.Fields(1).Value = txtsysno.text rs.Fields(2).Value = txtnow.text rs.Update Unload Middle End If End Sub Private Sub CmdSave_KeyPress(KeyAscii As Integer) If KeyAscii = 27 Then sndplaysound (App.Path & "\click.wav"), 1 Unload Me End If End Sub Private Sub Cmdtime_Click() sndplaysound (App.Path & "\click.wav"), 1 lbltime.Caption = Time & Date txtnow.text = Time & Date CmdSave.Enabled = True End Sub

Private Sub Cmdtime_KeyPress(KeyAscii As Integer) If KeyAscii = 27 Then sndplaysound (App.Path & "\click.wav"), 1 Unload Me End If End Sub Private Sub Form_Load() dn.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\CAFE_DATA BASE.mdb;Persist Security Info=False" rs.Open "select * from CURRENT_CUSTOMER", dn, adOpenDynamic, adLockOptimistic While rs.EOF <> True Sys1(rs.Fields(1).Value - 1).BackColor = &H808080 Sys1(rs.Fields(1).Value - 1).Enabled = False rs.MoveNext Wend Picture1(0).Visible Picture1(1).Visible Picture1(2).Visible Picture1(3).Visible Picture1(4).Visible Picture1(5).Visible Picture1(6).Visible Picture1(7).Visible Picture1(8).Visible Picture1(9).Visible = = = = = = = = = = False False False False False False False False False False

this will scrole the form title prev = " CUSTOMER RECORD & INFORMATIONS... " x = Len(prev) y = 1 End Sub Private Sub Form_Unload(Cancel As Integer) sndplaysound (App.Path & "\1.wav"), 1 dn.Close Main.Show End Sub Private Sub Sys1_Click(Index As Integer) sndplaysound (App.Path & "\click.wav"), 1 txtsysno.text = Index + 1 If txtsysno.text = 1 Then txtName.text = "Pc 1" Picture1(0).Visible = True Picture1(1).Visible = False Picture1(2).Visible = False Picture1(3).Visible = False Picture1(4).Visible = False Picture1(5).Visible = False

Picture1(6).Visible = False Picture1(7).Visible = False Picture1(8).Visible = False Picture1(9).Visible = False Cmdtime.Enabled = True ElseIf txtsysno.text = 2 Then txtName.text = "Pc 2" Picture1(1).Visible = True Picture1(0).Visible = False Picture1(2).Visible = False Picture1(3).Visible = False Picture1(4).Visible = False Picture1(5).Visible = False Picture1(6).Visible = False Picture1(7).Visible = False Picture1(8).Visible = False Picture1(9).Visible = False Cmdtime.Enabled = True ElseIf txtsysno.text = 3 Then txtName.text = "Pc 3" Picture1(2).Visible = True Picture1(0).Visible = False Picture1(1).Visible = False Picture1(3).Visible = False Picture1(4).Visible = False Picture1(5).Visible = False Picture1(6).Visible = False Picture1(7).Visible = False Picture1(8).Visible = False Picture1(9).Visible = False Cmdtime.Enabled = True ElseIf txtsysno.text = 4 Then txtName.text = "Pc 4" Picture1(3).Visible = True Picture1(0).Visible = False Picture1(1).Visible = False Picture1(2).Visible = False Picture1(4).Visible = False Picture1(5).Visible = False Picture1(6).Visible = False Picture1(7).Visible = False Picture1(8).Visible = False Picture1(9).Visible = False Cmdtime.Enabled = True ElseIf txtsysno.text = 5 Then txtName.text = "Pc 5" Picture1(4).Visible = True Picture1(0).Visible = False Picture1(1).Visible = False Picture1(2).Visible = False Picture1(3).Visible = False Picture1(5).Visible = False Picture1(6).Visible = False Picture1(7).Visible = False Picture1(8).Visible = False Picture1(9).Visible = False

Cmdtime.Enabled = True ElseIf txtsysno.text = 6 Then txtName.text = "Pc 6" Picture1(5).Visible = True Picture1(0).Visible = False Picture1(1).Visible = False Picture1(2).Visible = False Picture1(3).Visible = False Picture1(4).Visible = False Picture1(6).Visible = False Picture1(7).Visible = False Picture1(8).Visible = False Picture1(9).Visible = False Cmdtime.Enabled = True ElseIf txtsysno.text = 7 Then txtName.text = "Pc 7" Picture1(6).Visible = True Picture1(0).Visible = False Picture1(1).Visible = False Picture1(2).Visible = False Picture1(3).Visible = False Picture1(4).Visible = False Picture1(5).Visible = False Picture1(7).Visible = False Picture1(8).Visible = False Picture1(9).Visible = False Cmdtime.Enabled = True ElseIf txtsysno.text = 8 Then txtName.text = "Pc 8" Picture1(7).Visible = True Picture1(0).Visible = False Picture1(1).Visible = False Picture1(2).Visible = False Picture1(3).Visible = False Picture1(4).Visible = False Picture1(5).Visible = False Picture1(6).Visible = False Picture1(8).Visible = False Picture1(9).Visible = False Cmdtime.Enabled = True ElseIf txtsysno.text = 9 Then txtName.text = "Pc 9" Picture1(8).Visible = True Picture1(0).Visible = False Picture1(1).Visible = False Picture1(2).Visible = False Picture1(3).Visible = False Picture1(4).Visible = False Picture1(5).Visible = False Picture1(6).Visible = False Picture1(7).Visible = False Picture1(9).Visible = False Cmdtime.Enabled = True ElseIf txtsysno.text = 10 Then txtName.text = "Pc 10"

Picture1(9).Visible = True Picture1(0).Visible = False Picture1(1).Visible = False Picture1(2).Visible = False Picture1(3).Visible = False Picture1(4).Visible = False Picture1(5).Visible = False Picture1(6).Visible = False Picture1(7).Visible = False Picture1(8).Visible = False Cmdtime.Enabled = True End If End Sub Private Sub Sys1_KeyPress(Index As Integer, KeyAscii As Integer) If KeyAscii = 27 Then sndplaysound (App.Path & "\click.wav"), 1 Unload Me End If End Sub Private Sub Timer1_Timer() Middle.Caption = Mid$(prev, y, x) y = y + 1 If y > x Then y = 1 End If End Sub

Private Sub txtName_KeyPress(KeyAscii As Integer) If KeyAscii = 27 Then sndplaysound (App.Path & "\click.wav"), 1 Unload Me End If End Sub 9. RECORD DETAILS

Option Explicit Private Declare Function sndplaysound Lib "Winmm.dll" Alias "sndPlaySoundA" (ByV al lpszsoundName As String, ByVal uflags As Long) As Long Private Sub Command1_Click() sndplaysound (App.Path & "\Click.wav"), 1 Dim db As New ADODB.Connection Dim rs As New ADODB.Recordset MSFlexGrid1.Visible = False db.Open "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & App.Path & "\CAFE_DATA BASE.mdb;Persist Security Info=False"

rs.Open "SELECT * FROM MASTER_TABLE", db, adOpenStatic, adLockReadOnly rs.MoveFirst MSFlexGrid1.Rows = rs.RecordCount + 1 MSFlexGrid1.Cols = rs.Fields.Count - 1 MSFlexGrid1.Row = 1 MSFlexGrid1.Col = 0 MSFlexGrid1.RowSel = MSFlexGrid1.Rows - 1 MSFlexGrid1.ColSel = MSFlexGrid1.Cols - 1 MSFlexGrid1.Clip = rs.GetString(adClipString, -1, Chr(9), Chr(13), vbNullString) MSFlexGrid1.Row = 1 MSFlexGrid1.Visible = True End Sub

Private Sub Form_Resize() Dim Ctl As Control, CtlCln As New Collection On Error Resume Next For Each Ctl In Controls If Ctl.left < 0 Then CtlCln.Add Ctl Next Add the code to resize the controls: MSFlexGrid1.Move 0 * ScaleWidth, 0 * ScaleHeight, _ 1 * ScaleWidth, 0.9 * ScaleHeight Command1.Move 0.001 * ScaleWidth, 0.9 * ScaleHeight, _ 0.6 * ScaleWidth, 0.1 * ScaleHeight XPCLO.Move 0.6 * ScaleWidth, 0.9 * ScaleHeight, _ 0.4 * ScaleWidth, 0.1 * ScaleHeight NOTE: The Height property can t be changed for the DriveListBox control or for the ComboBox control, whose Style property setting is 0 (Dropdown Combo) or 2 (Dropdown List). See the REFERENCES section for an article that discusses how to resize a ComboBox. For Each Ctl In CtlCln If Ctl.left > 0 Then Ctl.left = Ctl.left - 75000 Next

End Sub Private Sub Form_Unload(Cancel As Integer) sndplaysound (App.Path & "\1.wav"), 1 Main.Show End Sub

Private Sub XPCLO_Click() Unload Me End Sub

6. CONCLUSION In every organization, computerization plays the most important role in

day-to-day activities. The computerization of inventory system is reliable and v ery easy to use. It saves a lot of time and is very efficient. The flexibility o f the program developed is quite high. The use of computerization with my project has very little chance of c ommitting any data entry error since it has enough validation check. The system is flexible and changes can be made without any difficulties. The system is test ed with possible sample data before any valid data is inputted. The system has been developed to do most of the transactions. The manua l system resulted in loss of times as well as errors in transactions that result ed in minor loss. The system has been developed using Visual basic with the help of acces s, the system was able to process and update the database with more ease. It hel ped in developing a total integrated system. The successful completion of the re sulted in Elimination of manual processing. The system is user friendly with GUI and tool tipo help. Fast data processing compared to manual processing. Generation of report.

7.BIBLIOGRAPHY SYSTEM ANALYSIS DESIGN -Elias M.Awad. DATABASE MANAGEMENT SYSTEM -Bipin. C. Desai PROGRAMMING WITH VISUAL BASIC -Mohammed Azam MS ACCESS -D.P Nagpal SOFTWARE ENGINEERING -Roger.S.Pressman

Вам также может понравиться