mgms - copy

123
SHERWOOD COLLEGE OF ENGINEERING RESEARCH AND TECHNOLOGY LUCKNOW  COMPUTER SCIENCE AND ENGINEERING DEPARTMENT B.Tech (III Year) SUMMER TRAINING PROJECT REPORT ON MOBILE GALLERY MANAGEMENT SYSTEM (MGMS) Submitted to HCL Submitted By:

Upload: rahul-dewakar

Post on 08-Apr-2018

225 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 1/123

SHERWOOD COLLEGE OF ENGINEERINGRESEARCH AND TECHNOLOGY

LUCKNOW

COMPUTER SCIENCE AND ENGINEERING DEPARTMENTB.Tech (III Year)

SUMMER TRAINING PROJECT

REPORTON

MOBILE GALLERY MANAGEMENT SYSTEM(MGMS)

Submitted to HCL

Submitted By:

Page 2: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 2/123

Report on MGMS

Rahul Dewakar B.Tech Computer ScienceIIIrd Year

CONTENTS

1. Abstract2. Introduction

2.1 About Project2.2 Justification2.3 Scope

3. System Study3.1 Existing System3.2 Proposed System

3.3 Feasibility Study3.3.1 Operational Feasibility3.3.2 Economical Feasibility3.3.3 Technical Feasibility

4. System Design4.1 Database Design4.2 I/O Screen Layouts4.3 Report Layout

5. System Testing

5.1 Preparation of Test Data5.2 Testing6. System Implementation7. Conclusion

7.1 Advantages7.2 Limitations7.3 Further Scope

8. Research Methodology8.1 Hardware Requirement8.2 Software Requirement

9. References

Rahul Dewakar Page 2

Page 3: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 3/123

Report on MGMS

1. ABSTRACT

In our Windows Based, on “MOBILE GALLERY MANAGEMENT SYSTEM”, we have tried to show

how the Data/information in Mobile Gallery is managed. This is just an overview of management in

Mobile Gallery. Customer is provided with different services like booking, booking can be advance

booking or current booking. If the customer wants he/she can cancel his/her advance booking. Enquiry

about any customer can be made either by customer id or customer name. Enquiry about room can also

be made.

We have used VB.Net for developing this Project and SQL-Server Database is used as a back-end for

all data/information processing. Operating system is Windows 98/2000/XP. Project is feasible since it

fulfills the requirements that any software needs to be operationally, economically and technically

feasible. This environment administers all aspects of program execution.

After going through the existing system, problem was identified and the scope of development was

finalized.

Rahul Dewakar Page 3

Page 4: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 4/123

Page 5: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 5/123

Report on MGMS

records automatically save, restore and stock information into the MGMS database. It is a windows

application specifically to maintain and manage their customer account and inventory controlling of

available stock. It is a fully automated customer account and inventory controlling of compact disk,

analyzing, sorting, storing, tracking and maintain of customer account of any number of requirement.

The project has Scope in MGMS since the routine activities of managing departments become easy.

3) SYSTEM STUDY:

3.1) Existing System:

The existing system is various MGMS running in various Mobile Gallery, which are using SQL-Server

as back-end. The existing system has the problem that information about the Items(Handset, Sim, Top-

Up, Recharge-Coupon) is not updated at the time when the item is being vacated. The information is

updated after a particular time period.

3.2) Proposed System:

The system proposed by our project is using SQL-server as back-end since it is pure relational database.

The proposed system will solve the problem of updating of all items information of existing system.

3.3) FEASIBILITY The objective of feasibility study is to determine whether or not the proposed system is feasible. Thefeasibility is determined in terms of three aspects. These are:-

3.3.1) Technical Feasibility:

In this, one has to test whether the system can be developed using existing technology or not. We haveused VB.Net as front-end and SQL-Server as back-end. It is evident that necessary hardware andsoftware are available for development and implementation of proposed system.

Rahul Dewakar Page 5

Page 6: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 6/123

Report on MGMS

3.3.2) Operational Feasibility:

The Mobile Gallery are already using various software for managing their information and since it isacceptable by both Mobile Gallery administration as well as employee, it is proven to be operationally

feasible.

3.3.3) Economical Feasibility:

As a part of this, the costs and benefits associated with the proposed system are compared and the

project is economically feasible only if tangible and intangible benefits outweigh the cost. The cost for

proposed MGMS is outweighing the cost and efforts involved in maintaining the registers, books, files

and generation of various reports. The system also reduces the administrative and technical staff to do

various jobs that single software can do. So, this system is economically feasible.

Rahul Dewakar Page 6

Page 7: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 7/123

Report on MGMS

4) SYSTEM DESIGN

4.1) Database Design

Our database consists of various tables. The tables designed in the database are shown below, with the

field name and data type and short description for each field.

(1). COMPANY MASTER TABLE

FIELD NAME DATA TYPE DESCRIPTION

COMP_CODE INTEGER ID NO OF THECOMPANY

COMP_NAME VARCHAR PRIMARY KEY GIVENTO NAME OF THECOMPANY

(2). MODEL MASTER

FIELD NAME DATA TYPE DESCRIPTION

MODELCODE INTEGER PRIMARY KEY,UNIQUEID GIVEN TO MODEL

MODELNO VARCHAR NUMBER OF MODEL

MODELREMARK VARCHAR REMARK/SPECIAL TOMODEL

Rahul Dewakar Page 7

Page 8: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 8/123

Report on MGMS

(3). SIM, TOP-UP, RECHARGE-COUPON MASTER TABLE

FIELD NAME DATA TYPE DESCRIPTION

PRD_CODE INTEGER PRIMARY KEY,UNIQUEID GIVEN TOMASTER(SIM,TOP-UP,RECHARGE-COUPON)

PRD_TYPE VARCHAR TYPE OF PRODUCTSUCH AS :-(SIM,TOP-UP,RECHARGE-COUPON)

PRD_CMPNAME VARCHAR NAME OF COMPANY

PRD_NAME VARCHAR NAME OF PRODUCT(LIFE TIME, MUSKANPACK, FAMILY PACK)

PRD_RS INTEGER RUPEES OF PRODUCT

PRD_VALUE INTEGER TALK VALUE OF THEPRODUCT

PRD_TTIME VARCHAR TALK TIME OF THEPRODUCT

PRD_REMARK VARCHAR SPECIAL FOR PRODUCTS

Rahul Dewakar Page 8

Page 9: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 9/123

Report on MGMS

(4). COMPANY DETAIL TABLE

FIELD NAME DATA TYPE DESCRIPTION

CMPCODE INTEGER PRIMARY KEY,UNIQUEID GIVEN TO COMPANY

CMPNAME VARCHAR NAME OF THECOMPANY

CMPSHOPNAME VARCHAR OFFICE’S NAME

CMPEMAIL VARCHAR E-MAIL ADDRESS OFCOMPANY

CMPFAX INTEGER FAX NO. OF COMPANY

CMPPHONE INTEGER BASIC NO. OF THEOFFICE

CMPMOBILE INTEGER PHONE NO. OF THEOFFICE

CMPDATE DATETIMEENTRY DATE OF THECOMPANY

CMPCITY VARCHAR CITY NAME

CMPSTATE VARCHAR STATE NAME

CMPZIPCODE INTEGER ZIPCODE NO.

CMPADDRESS VARCHAR FULL ADDRESS OF THECOMPANY OFFICE

Rahul Dewakar Page 9

Page 10: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 10/123

Report on MGMS

(5). EMPLOYEE DETAIL TABLE

FIELD NAME DATA TYPE DESCRIPTION

EMP_CODE INTEGER PRIMARY KEY,UNIQUE IDGIVEN TO EMPLOYEE

EMP_NAME VARCHAR NAME FOR EMPLOYEE

EMP_DATE DATETIME JOINING DATE OF THEEMPLOYEE

EMP_FNAME VARCHAR FATHER’S NAME OF THEEMPLOYEE

EMP_DOB DATETIME DATE OF BIRTH FOR EMPLOYEE

EMP_MS VARCHAR MATIRIAL STATUS OFEMPLOYEE

EMP_SEX VARCHAR SEX OF EMPLOYEE

EMP-CAT VARCHAR CATEGORY OF THEEMPLOYEE

EMP_SAL INTEGER SALARY OF EMPLOYEE

EMP_PHONE INTEGER PHONE NO OF EMPLOYEEEMP_MOB INTEGER MOBILE NO OF THE

EMPLOYEEEMP_FAX INTEGER FAX NO. OF EMPLOYEE

EMP_EMAIL VARCHAR E-MAIL ADDRESS OF THEEMPLOYEE

EMP_CCITY VARCHAR NAME OF THE CURRENTCITY

EMP_CSTATE VARCHAR NAME OF THE CURRENTSTATE

EMP_CZIP INTEGER CURRENT ZIPCODE OF THEAREA

EMP_CADD VARCHAR FULL CURRENT ADDRESS

OF THE EMPLOYEEEMP_PCITY VARCHAR PARMANENT CITY’S NAMEEMP_PSTATE VARCHAR PARMANENT STATE’S

NAMEEMP_PZIP INTEGER ZIPCODE OF THE

PARMANENT ADDRESSEMP_PADD VARCHAR FULL PARMANENT

ADDRESS OF THE

Rahul Dewakar Page 10

Page 11: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 11/123

Report on MGMS

EMPLOYEE

(6) . PARTY DETAIL TABLEFIELD NAME DATA TYPE DESCRIPTION

PARTY_CODE INTEGER PRIMARY KEY,UNIQUEID GIVEN TO PARTY

PARTY_NAME VARCHAR NAME OF THE PARTY

PARTY_JDATE DATETIME JOINING DATE OF THEPARTY

PARTY_PHONE INTEGER PHONE NO. OF THEPARTY

PARTY_MOBILE INTEGER MOBILE NO. OF THEPARTY

PARTY_FAX INTEGER FAX NO. OF THE PARTY

PARTY_ZIP INTEGER ZIPCODE OF THEPARTY

PARTY_EMAIL VARCHAR E-MAIL ADDRESS FOR PARTY

PARTY_CITY VARCHAR CITY NAME OF PARTY

PARTY_STATE VARCHAR STATE NAME OF PARTY

PARTY_ADD VARCHAR FULL ADDRESS OF THEPARTY

Rahul Dewakar Page 11

Page 12: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 12/123

Report on MGMS

(7). SUPPLIER DETAIL TABLE

FIELD NAME DATA TYPE DESCRIPTION

SUP_CODEINTEGER PRIMARY KEY,UNIQUE

ID GIVEN TO SUPPLIER

SUP_NAMEVARCHAR NAME OF THE

SUPPLIER

SUP_PHONEINTEGER PHONE NO. OF THE SUP

SUP_MOBILE

INTEGER MOBILE NO. OF THE

SUPPLIER

SUP_FAXINTEGER FAX NO. OF THE

SUPPLIER

SUP_ZIPINTEGER ZIPCODE OF THE

SUPPLIER

SUP_EMAILVARCHAR E-MAIL ADDRESS FOR

SUPPLIER

SUP_CITYVARCHAR CITY NAME OF SUP

SUP_STATEVARCHAR STATE NAME OF

SUPPLIER

SUP_ADDVARCHAR FULL ADDRESS OF THE

SUPPLIER

Rahul Dewakar Page 12

Page 13: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 13/123

Report on MGMS

(8). PURCHASE TABLE

FIELD NAME DATA TYPE DESCRIPTION

BILL_NO INTEGER PRIMARY KEY,UNIQUEID GIVEN TOPURCHASE BILL NO

PROD_DATEDATETIME PURCHASING DATE

PROD_TYPEVARCHAR NAME OF THE

PRODUCT’S TYPE

PROD_CMPNAME

VARCHAR NAME OF COMPANY

PROD_NAMEVARCHAR NAME OF PRODUCT

PARTY_NAMEVARCHAR NAME OF PARTY

PROD_RSINTEGER RUPEES OF THE

PRODUCT

PROD_QTY INTEGER QUANTITY OF THEPRODUCT

PROD_STOTALINTEGER SUB TOTAL OF

PRODUCT

PROD_TAXINTEGER VAT(%) OF PRODUCT

PROD_GTOTALINTEGER GRAND TOTAL OF THE

PRODUCT

Rahul Dewakar Page 13

Page 14: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 14/123

Report on MGMS

(9). SALE TABLE

FIELD NAME DATA TYPE DESCRIPTION

BILL_NO INTEGER PRIMARY KEY,UNIQUEID GIVEN TOPURCHASE BILL NO

PROD_DATEDATETIME PURCHASING DATE

PROD_TYPEVARCHAR NAME OF THE

PRODUCT’S TYPE

PROD_CMPNAMEVARCHAR NAME OF COMPANY

PROD_NAMEVARCHAR NAME OF PRODUCT

PARTY_NAMEVARCHAR NAME OF PARTY

PROD_RSINTEGER RUPEES OF THE

PRODUCT

PROD_QTY

INTEGER QUANTITY OF THE

PRODUCT

PROD_STOTALINTEGER SUB TOTAL OF

PRODUCT

PROD_TAXINTEGER VAT(%) OF PRODUCT

PROD_GTOTALINTEGER GRAND TOTAL OF THE

PRODUCT

Rahul Dewakar Page 14

Page 15: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 15/123

Report on MGMS

10). IME NO TABLE

FIELD NAME DATA TYPE DESCRIPTION

BILL_NOINTEGER BILL NO OF IME NO.

IME_NOINTEGER PRIMARY KEY,UNIQUE

ID GIVEN TOPURCHASE /SALE IME

NO

Rahul Dewakar Page 15

Page 16: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 16/123

Report on MGMS

DIAGRAM DESIGN

1. PASSWORD FORM

Rahul Dewakar Page 16

Page 17: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 17/123

Report on MGMS

1. MDI FORM

Rahul Dewakar Page 17

Page 18: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 18/123

Report on MGMS

1. COMPANY MASTER FORM

Rahul Dewakar Page 18

Page 19: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 19/123

Report on MGMS

2. MODEL MASTER FORM

Rahul Dewakar Page 19

Page 20: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 20/123

Report on MGMS

3. COMPANY MASTER FORM

Rahul Dewakar Page 20

Page 21: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 21/123

Report on MGMS

4. COMPANY ENTRY FORM

Rahul Dewakar Page 21

Page 22: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 22/123

Report on MGMS

5. COMPANY DETAIL FORM

Rahul Dewakar Page 22

Page 23: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 23/123

Report on MGMS

6. EMPLOYEE ENTRY FORM

Rahul Dewakar Page 23

Page 24: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 24/123

Report on MGMS

7. EMPLOYEE DETAIL FORM

Rahul Dewakar Page 24

Page 25: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 25/123

Report on MGMS

8. INFORMATION FORM

Rahul Dewakar Page 25

Page 26: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 26/123

Report on MGMS

9. IME RECORD FORM

Rahul Dewakar Page 26

Page 27: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 27/123

Page 28: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 28/123

Report on MGMS

11 . PARTY DETAIL FORM

Rahul Dewakar Page 28

Page 29: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 29/123

Report on MGMS

12. PARTY ENTRY FORM

Rahul Dewakar Page 29

Page 30: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 30/123

Report on MGMS

13. PURCHASE FORM

Rahul Dewakar Page 30

Page 31: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 31/123

Report on MGMS

14. SALE FORM

Rahul Dewakar Page 31

Page 32: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 32/123

Report on MGMS

15. SALE DETAIL FORM

Rahul Dewakar Page 32

Page 33: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 33/123

Report on MGMS

16. STOCK DETAIL FORM

Rahul Dewakar Page 33

Page 34: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 34/123

Report on MGMS

17. SUPPLIES DETAIL FORM

Rahul Dewakar Page 34

Page 35: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 35/123

Report on MGMS

18. SUPPLIES ENTRY FORM

Rahul Dewakar Page 35

Page 36: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 36/123

Report on MGMS

19. MODEL REPORT

Rahul Dewakar Page 36

Page 37: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 37/123

Page 38: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 38/123

Report on MGMS

20. PURCHASING REPORT

Rahul Dewakar Page 38

Page 39: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 39/123

Report on MGMS

5.2) CODE DESIGN

Rahul Dewakar Page 39

Page 40: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 40/123

Report on MGMS

PASSWORD FORM

Public Class PASSWORD_FORM

Private Sub BTN_OK_Click( ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles BTN_OK.Click If TXT_PASSWORD.Text = "" Then

MsgBox( "PLZ ENTER PASSWORD" ) Else If CMB_USER.Text = "MGMS" And TXT_PASSWORD.Text = "123"Then

MDI.Show() Me.Hide() Else

MsgBox( "INCORRECT PASSWORD" )TXT_PASSWORD.Text = ""

End If End If End Sub

Private Sub BTN_CANCEL_Click( ByVal sender As System.Object, ByVale As System.EventArgs) Handles BTN_CANCEL.Click End End SubEnd Class

MDI FORM

Public Class MDI Dim A As Integer = 1

Rahul Dewakar Page 40

Page 41: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 41/123

Report on MGMS

Private Sub MasterModel_Click( ByVal sender As System.Object, ByVale As System.EventArgs) Handles Mastermodel.Click Dim MDL As New Model_Masterl

MDL.MdiParent = MeMDL.Show()

End Sub

Private Sub Master_STR_Click( ByVal sender As System.Object, ByVale As System.EventArgs) Handles Master_STR.Click Dim MDL As New Mstr__STR

MDL.MdiParent = MeMDL.Show()

End Sub

Private Sub MasterOtherProduct_Click( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) Dim MDL As New imedetail

MDL.MdiParent = MeMDL.Show()

End Sub

Private Sub CompanyEntry_Click( ByVal sender As System.Object,ByVal e As System.EventArgs) HandlesCompanyEntryToolStripMenuItem.Click Dim MDL As New Company_entry

MDL.MdiParent = MeMDL.Show()

End Sub

Private Sub EmployeeEntry_Click( ByVal sender As System.Object,ByVal e As System.EventArgs) HandlesEmployeeEntryToolStripMenuItem.Click Dim MDL As New Employee_entry

MDL.MdiParent = MeMDL.Show()

End Sub

Private Sub PartyEntry_Click( ByVal sender As System.Object, ByVale As System.EventArgs) Handles PartyEntryToolStripMenuItem.Click Dim MDL As New PartyEntry_frm

MDL.MdiParent = MeMDL.Show()

End Sub

Private Sub ModelReportMenu_Click( ByVal sender As System.Object,ByVal e As System.EventArgs) Dim MDL As New ModelReport

Rahul Dewakar Page 41

Page 42: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 42/123

Report on MGMS

MDL.MdiParent = MeMDL.Show()

End Sub

Private Sub Exitproject_Click( ByVal sender As System.Object, ByVal

e As System.EventArgs) Handles Exitproject.Click End End Sub

Private Sub mastercomp_Click( ByVal sender As System.Object, ByVale As System.EventArgs) Handles cmdcompany.Click Dim MDL As New Company_Master

MDL.MdiParent = MeMDL.Show()

End Sub

Private Sub InformationForm_Click( ByVal sender As System.Object,ByVal e As System.EventArgs) Handles InformFormMenu.Click Dim MDL As New Infromationfrm

MDL.MdiParent = MeMDL.Show()

End Sub

Private Sub ModelMenu_Click( ByVal sender As System.Object, ByVale As System.EventArgs) Handles ModelGridMenu.Click Dim MDL As New modeldatagrid

MDL.MdiParent = MeMDL.Show()

End Sub

Private Sub Company_record_Click( ByVal sender As System.Object,ByVal e As System.EventArgs) Handles Company_record.Click Dim MDL As New Companygrid

MDL.MdiParent = MeMDL.Show()

End Sub

Private Sub src_record_Click( ByVal sender As System.Object, ByVale As System.EventArgs) Handles src_record.Click Dim MDL As New SRT_Record

MDL.MdiParent = MeMDL.Show()

End Sub

Private Sub Party_Record_Click( ByVal sender As System.Object,ByVal e As System.EventArgs) Handles Party_Record.Click Dim MDL As New Partyrecord

Rahul Dewakar Page 42

Page 43: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 43/123

Report on MGMS

MDL.MdiParent = MeMDL.Show()

End Sub

Private Sub Employee_Record_Click( ByVal sender As System.Object,

ByVal e As System.EventArgs) Handles Employee_Record.Click Dim MDL As New Emp_recordMDL.MdiParent = MeMDL.Show()

End Sub

Private Sub PurchaseMenu_Click( ByVal sender As System.Object,ByVal e As System.EventArgs)

End Sub

Private Sub SaleFormToolStripMenuItem_Click( ByVal sender AsSystem.Object, ByVal e As System.EventArgs)

End Sub

Private Sub ImeTableMenu_Click( ByVal sender As System.Object,ByVal e As System.EventArgs) Handles ImeTableMenu.Click Dim MDL As New imedetail

MDL.MdiParent = MeMDL.Show()

End Sub

Private Sub StockRecordMenu_Click( ByVal sender As System.Object,ByVal e As System.EventArgs) Handles StockRecordMenu.Click Dim MDL As New FRM_STOCK

MDL.MdiParent = MeMDL.Show()

End Sub

Private Sub suppliermenu_Click( ByVal sender As System.Object,ByVal e As System.EventArgs) Handles suppliermenu.Click Dim MDL As New Supplier_Entry

MDL.MdiParent = MeMDL.Show()

End Sub

Private Sub Supplrecord_Click( ByVal sender As System.Object, ByVale As System.EventArgs) Handles supplierrecord.Click Dim MDL As New Supplier_Record

MDL.MdiParent = Me

Rahul Dewakar Page 43

Page 44: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 44/123

Report on MGMS

MDL.Show() End Sub

Private Sub Modereport_Click( ByVal sender As System.Object, ByVale As System.EventArgs) Handles Modereport.Click

Dim cmnobj As New commonfunction Dim dts1 As New Modeldataset Dim rpt As New mastermodelReport1

If cmnobj.con.State = ConnectionState.Closed Thencmnobj.con.Open()

End Ifcmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandText = "select * from mastermodel"cmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.adp.Fill(dts1.Tables( "mastermodel" ))rpt.SetDataSource(dts1.Tables( "mastermodel" ))ModelReport.CrystalReportViewer1.ReportSource = rpt

End Sub

Private Sub purFormMenu_Click( ByVal sender As System.Object, ByVale As System.EventArgs) Handles purFormMenu.Click Dim MDL As New Purcharse_Frm

MDL.MdiParent = MeMDL.Show()

End Sub

Private Sub SaleForm_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles saleform.Click Dim MDL As New Sale

MDL.MdiParent = MeMDL.Show()

End Sub

Private Sub imereports_Click( ByVal sender As System.Object, ByVale As System.EventArgs) Handles imereports.Click

Dim crstl As New CrystalReport1 Dim cmnobj As New commonfunction Dim dts1 As New Modeldataset

If cmnobj.con.State = ConnectionState.Closed Thencmnobj.con.Open()

Rahul Dewakar Page 44

Page 45: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 45/123

Report on MGMS

End Ifcmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandText = "select bill_no,ime_no from

ime_table"cmnobj.adp.SelectCommand = cmnobj.cmd

cmnobj.adp.Fill(dts1.Tables( "ime_table" ))crstl.SetDataSource(dts1.Tables( "ime_table" ))ModelReport.CrystalReportViewer1.ReportSource = crstl

ModelReport.Show() End Sub

Private Sub purreports_Click( ByVal sender As System.Object, ByVale As System.EventArgs) Handles purreports.Click Dim crstl As New CrystalReport1 Dim cmnobj As New commonfunction Dim dts1 As New Modeldataset

If cmnobj.con.State = ConnectionState.Closed Thencmnobj.con.Open()

End Ifcmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandText = "select * from pur"cmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.adp.Fill(dts1.Tables( "pur" ))crstl.SetDataSource(dts1.Tables( "pur" ))ModelReport.CrystalReportViewer1.ReportSource = crstlModelReport.Show()

End SubEnd Class

COMMON FUNCTION CLASS

Imports System.DataImports System.Data.SqlClientImports CrystalDecisions

Rahul Dewakar Page 45

Page 46: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 46/123

Page 47: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 47/123

Page 48: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 48/123

Page 49: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 49/123

Report on MGMS

Exit Sub End If

Trycmnobj.cmd.Connection = cmnobj.con

cmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.InsertCommand = cmnobj.cmdcmnobj.cmd.CommandText = "mstcompany 'S'," &

Convert.ToInt32(txtcmpcode.Text) & ", '" & txtcmpname.Text & "'"cmnobj.cmd.ExecuteNonQuery()MessageBox.Show( "Successful Saved" , "Saved Dialog" ,

MessageBoxButtons.OK, MessageBoxIcon.None)cmnobj.textblank( Me.GroupBox2)

Catch ex As ExceptionMessageBox.Show( "Error : 001234 'Record is Exists" ,

"Duplicate" , MessageBoxButtons.OK, MessageBoxIcon.Stop)txtcmpcode.Text = ""txtcmpcode.Focus()

End Try End If End Sub

Private Sub comapanyreport_Click( ByVal sender As System.Object,ByVal e As System.EventArgs) Handles Mstcmp_report.Click

companyreport.ShowDialog() End Sub

Private Sub Company_Master_KeyDown( ByVal sender As Object , ByVale As System.Windows.Forms.KeyEventArgs) Handles Me.KeyDown

cmnobj.keydown(sender, e, Me) End Sub

Private Sub txtcmpcode_KeyPress( ByVal sender As System.Object,ByVal e As System.Windows.Forms.KeyPressEventArgs) Handlestxtcmpcode.KeyPress

cmnobj.numericvalue(sender, e) End Sub

Private Sub txtcmpname_KeyPress( ByVal sender As System.Object,ByVal e As System.Windows.Forms.KeyPressEventArgs) Handlestxtcmpname.KeyPress

cmnobj.convertuppercase(sender) End Sub

Private Sub Company_Master_Load( ByVal sender As System.Object,ByVal e As System.EventArgs) Handles MyBase .Load

cmnobj.cmd.CommandText = "mstcompany 'A'"

Rahul Dewakar Page 49

Page 50: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 50/123

Report on MGMS

cmnobj.cmd.CommandType = CommandType.Textcmnobj.cmd.Connection = cmnobj.concmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.adp.Fill(mydt)

If (mydt.Rows.Count > 0) Then

show_data(0) End If End Sub Private Sub show_data( ByVal record As Integer )

txtcmpcode.Text =mydt.Rows(record).Item( "comp_code" ).ToString()

txtcmpname.Text =mydt.Rows(record).Item( "comp_name" ).ToString() End Sub

Private Sub cmdnext_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles cmdnext.Click If (rowrecord < mydt.Rows.Count - 1) Then

rowrecord += 1show_data(rowrecord)

End If End Sub

Private Sub cmdprev_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles cmdprev.Click If (rowrecord > 0) Then

rowrecord -= 1show_data(rowrecord)

End If End Sub

Private Sub cmdfirst_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles cmdfirst.Click

rowrecord = 0show_data(rowrecord)

End Sub

Private Sub cmdlast_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles cmdlast.Click

rowrecord = mydt.Rows.Count - 1show_data(rowrecord)

End Sub

Private Sub cmdblank_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles cmdblank.Click

cmnobj.textblank( Me.GroupBox2)updatedata = False

Rahul Dewakar Page 50

Page 51: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 51/123

Page 52: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 52/123

Report on MGMS

End If End Sub

Private Sub comp_grid_CellEnter( ByVal sender As System.Object,ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles

comp_grid.CellEnterr = e.RowIndexc = e.ColumnIndex

End Sub

Private Sub DeleteMenu_Click( ByVal sender As System.Object, ByVale As System.EventArgs) Handles DeleteMenu.Click If Not (comp_grid.Rows(r).Cells( "comp_name" ).Value.ToString()= "" ) Then If MessageBox.Show( "Are you want to Delete the Record" ,"Delete Record" , MessageBoxButtons.YesNo) =Windows.Forms.DialogResult.Yes Then

cmnobj.myconnection()cmnobj.cmd.Parameters.Clear()cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.cmd.CommandText = "mstcompany 'D', " &

comp_grid.Rows(r).Cells(0).Value.ToString() & ""cmnobj.adp.DeleteCommand = cmnobj.cmdcmnobj.cmd.ExecuteNonQuery()

End Ifrefreshgrid()

End If End Sub

Private Sub refreshgrid()cmnobj.myconnection()cmnobj.cmd.Parameters.Clear()cmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"dtable = cmnobj.getdatatable( "mstcompany" )comp_grid.DataSource = dtable

End Sub

End Class

SIM, TOP-UP, RECHARGE COUPON MASTER FORM

Rahul Dewakar Page 52

Page 53: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 53/123

Report on MGMS

Public Class Mstr__STR Dim cmnobj As New commonfunction Public Shared updatedata As Boolean = False

Private Sub Button1_Click( ByVal sender As System.Object, ByVal e

As System.EventArgs) Handles Button1.Clickcmnobj.textblank( Me.GroupBox2)cmdsave.Text = "Save"updatedata = False

End Sub

Private Sub Master__SIM_TOPUP_RECHARGE__Load( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) Handles MyBase .Load

cmbprod_type.SelectedIndex = 0 If cmnobj.con.State = ConnectionState.Closed Then

cmnobj.con.Open() End If

'............. combo fill ..........cmnobj.cmd.CommandText = "mstcompany"cmnobj.cmd.CommandType = CommandType.StoredProcedurecmnobj.cmd.Connection = cmnobj.concmnobj.adp.SelectCommand = cmnobj.cmd

cmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"cmnobj.adp.Fill(cmnobj.dtset, "mastercompany" )cmbcomp_name.DataSource = cmnobj.dtset.Tables( "mastercompany" )cmbcomp_name.ValueMember =

cmnobj.dtset.Tables( "mastercompany" ).Columns(0).ToString()cmbcomp_name.DisplayMember =

cmnobj.dtset.Tables( "mastercompany" ).Columns( "comp_name" ).ToString()

End Sub

Private Sub txtprod_code_KeyPress( ByVal sender As System.Object,ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles _

txtprod_code.KeyPress, txtprod_rs.KeyPress,txtprod_tvalue.KeyPress

cmnobj.numericvalue(sender, e) End Sub

Private Sub txtprod_name_KeyPress( ByVal sender As System.Object,ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles _

txtprod_name.KeyPress, txtprod_name.KeyPress,txtprod_ttime.KeyPress, txtprod_remark.KeyPress

cmnobj.convertuppercase(sender)

Rahul Dewakar Page 53

Page 54: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 54/123

Report on MGMS

End Sub

Private Sub Master__SIM_TOPUP_RECHARGE__KeyDown( ByVal sender AsSystem.Object, ByVal e As System.Windows.Forms.KeyEventArgs) HandlesMyBase .KeyDown

cmnobj.keydown(sender, e, Me) End Sub

Private Sub Mob_save_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles cmdsave.Click If updatedata = True Then

cmnobj.myconnection() If txtprod_code.Text = "" Then

MessageBox.Show( "Fill Up The Company Code" , "BlankRecord" , MessageBoxButtons.OK, MessageBoxIcon.Information) Exit Sub End If

Trycmnobj.cmd.Parameters.Clear()cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.InsertCommand = cmnobj.cmdcmnobj.cmd.CommandText = "masterstr 'U'," &

Convert.ToInt32(txtprod_code.Text) & ", '" & cmbprod_type.Text & "','"& cmbcomp_name.Text & "','" & txtprod_name.Text & "'," &Convert.ToInt32(txtprod_rs.Text) & "," &Convert.ToInt32(txtprod_tvalue.Text) & ",'" & txtprod_ttime.Text &"','" & txtprod_remark.Text & "'"

cmnobj.cmd.ExecuteNonQuery()MessageBox.Show( "Successful Updated" , "Saved Dialog" ,

MessageBoxButtons.OK, MessageBoxIcon.None)cmnobj.textblank( Me.GroupBox2)

Catch ex As ExceptionMessageBox.Show( "Error : 001234 'Record is Exists" ,

"Duplicate" , MessageBoxButtons.OK, MessageBoxIcon.Stop)txtprod_code.Text = ""txtprod_code.Focus()

End Tryupdatedata = Falsecmdsave.Text = "Save"

Else

cmnobj.myconnection() If txtprod_code.Text = "" Then

MessageBox.Show( "Fill Up The Company Code" , "BlankRecord" , MessageBoxButtons.OK, MessageBoxIcon.Information)

Rahul Dewakar Page 54

Page 55: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 55/123

Page 56: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 56/123

Report on MGMS

Private Sub SRT_Record_Load( ByVal sender As System.Object, ByVale As System.EventArgs) Handles MyBase .Load If cmnobj.con.State = ConnectionState.Closed Then

cmnobj.con.Open()

End If

'............. To fill up DataGrid..and S.No..........Fillup_grid()strgrid.Columns.Add( "Srno" , "Sr. No." )strgrid.DataSource = dtablefillup_sno()

'............ To Heading .........strgrid.Columns( "prd_code" ).HeaderText = "ID"strgrid.Columns( "prd_type" ).HeaderText = "PRODUCT TYPE"strgrid.Columns( "prd_cmpname" ).HeaderText = "COMPANY NAME"strgrid.Columns( "prd_name" ).HeaderText = "PRODUCT NAME"strgrid.Columns( "prd_rs" ).HeaderText = "RS"strgrid.Columns( "prd_tvalue" ).HeaderText = "TALK VALUE"strgrid.Columns( "prd_ttime" ).HeaderText = "TALK TIME"strgrid.Columns( "prd_remark" ).HeaderText = "REMARK"

' ....................... To Setting ColumnWidth .............

strgrid.Columns( "prd_name" ).Width = 150strgrid.Columns( "prd_cmpname" ).Width = 150strgrid.Columns( "prd_type" ).Width = 120strgrid.Columns( "prd_code" ).Width = 70strgrid.Columns( "prd_remark" ).Width = 200

End Sub

Private Sub ExitMenu_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles ExitMenu.Click Me.Dispose() End Sub

Private Sub strgrid_CellClick( ByVal sender As System.Object, ByVale As System.Windows.Forms.DataGridViewCellEventArgs) Handlesstrgrid.CellClick

r = e.RowIndex End Sub

Private Sub EditMenu_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles EditMenu.Click

Rahul Dewakar Page 56

Page 57: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 57/123

Report on MGMS

If Not (strgrid.Rows(r).Cells( "prd_code" ).Value.ToString() ="" ) Then

cmnobj.cmd.Parameters.Clear()Mstr__STR.txtprod_code.Text =

strgrid.Rows(r).Cells( "prd_code" ).Value.ToString()

Mstr__STR.cmbprod_type.Text =strgrid.Rows(r).Cells( "prd_type" ).Value.ToString()Mstr__STR.cmbcomp_name.Text =

strgrid.Rows(r).Cells( "prd_cmpname" ).Value.ToString()Mstr__STR.txtprod_name.Text =

strgrid.Rows(r).Cells( "prd_name" ).Value.ToString()Mstr__STR.txtprod_rs.Text =

strgrid.Rows(r).Cells( "prd_rs" ).Value.ToString()Mstr__STR.txtprod_tvalue.Text =

strgrid.Rows(r).Cells( "prd_tvalue" ).Value.ToString()Mstr__STR.txtprod_ttime.Text =

strgrid.Rows(r).Cells( "prd_ttime" ).Value.ToString()Mstr__STR.txtprod_remark.Text =

strgrid.Rows(r).Cells( "prd_remark" ).Value.ToString()Mstr__STR.updatedata = True

Me.Dispose()Mstr__STR.Show()Mstr__STR.cmdsave.Text = "Update"

ElseMessageBox.Show( "Information : Record is Blank" , "Check

the Record" , MessageBoxButtons.OK, MessageBoxIcon.Information) End If End Sub

Private Sub DeleteMenu_Click( ByVal sender As System.Object, ByVale As System.EventArgs) Handles DeleteMenu.Click If Not (strgrid.Rows(r).Cells( "prd_code" ).Value.ToString() ="" ) Then If MessageBox.Show( "Are you want to Delete the Record" ,"Delete Record" , MessageBoxButtons.YesNo) =Windows.Forms.DialogResult.Yes Then

cmnobj.myconnection()cmnobj.cmd.Parameters.Clear()cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.cmd.CommandText = "masterstr 'D', " &

strgrid.Rows(r).Cells( "prd_code" ).Value.ToString() & ""cmnobj.adp.DeleteCommand = cmnobj.cmdcmnobj.cmd.ExecuteNonQuery()

End IfFillup_grid()strgrid.DataSource = dtable

Rahul Dewakar Page 57

Page 58: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 58/123

Report on MGMS

fillup_sno() End If End Sub

Private Sub fillup_sno()

Dim i As Integer For i = 0 To dtable.Rows.Count - 1strgrid.Rows(i).Cells( "Srno" ).Value = i + 1

Next End Sub

Private Sub Fillup_grid()cmnobj.myconnection()cmnobj.cmd.Parameters.Clear()cmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"dtable = cmnobj.getdatatable( "masterstr" )

End Sub

Private Sub BTN_ALL_CheckedChanged( ByVal sender As System.Object,ByVal e As System.EventArgs) Handles BTN_ALL.CheckedChanged

Fillup_grid()strgrid.DataSource = dtablefillup_sno()

End Sub

Private Sub BTN_SIM_CheckedChanged( ByVal sender As System.Object,ByVal e As System.EventArgs) Handles BTN_SIM.CheckedChanged

cmnobj.myconnection()dtable.Clear()

Dim qty As Stringcmnobj.cmd.Parameters.Clear()qty = "find_type '" & BTN_SIM.Text & "'"cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandText = qtycmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.adp.Fill(dtable)strgrid.DataSource = dtable

fillup_sno() End Sub

Private Sub BTN_TOPUP_CheckedChanged( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) HandlesBTN_TOPUP.CheckedChanged

cmnobj.myconnection()dtable.Clear()

Rahul Dewakar Page 58

Page 59: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 59/123

Report on MGMS

Dim qty As Stringcmnobj.cmd.Parameters.Clear()qty = "find_type '" & BTN_TOPUP.Text & "'"cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandText = qty

cmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.adp.Fill(dtable)strgrid.DataSource = dtablefillup_sno()

End Sub

Private Sub BTN_RECHANGE_CheckedChanged( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) HandlesBTN_RECHANGE.CheckedChanged

cmnobj.myconnection()dtable.Clear()

Dim qty As Stringcmnobj.cmd.Parameters.Clear()qty = "find_type '" & BTN_RECHANGE.Text & "'"cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandText = qtycmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.adp.Fill(dtable)strgrid.DataSource = dtablefillup_sno()

End SubEnd Class

MODEL MASTER FORM

Public Class Model_Masterl Dim cmnobj As New commonfunction Dim dtset As New DataSet Public Shared updatedata As Boolean = False

Private Sub Master_model_Load( ByVal sender As System.Object, ByVale As System.EventArgs) Handles MyBase .Load If cmnobj.con.State = ConnectionState.Closed Then

cmnobj.con.Open() End If

Rahul Dewakar Page 59

Page 60: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 60/123

Page 61: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 61/123

Report on MGMS

cmdsave.Text = "Save" End Sub

Private Sub cmdsave_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles cmdsave.Click

cmnobj.myconnection() If updatedata = True Then If txtmodel_code.Text = "" Then

MessageBox.Show( "Fill Up The Company Code" , "BlankRecord" , MessageBoxButtons.OK, MessageBoxIcon.Information) Exit Sub End If

Trycmnobj.cmd.Parameters.Clear()cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.InsertCommand = cmnobj.cmdcmnobj.cmd.CommandText = "proceduremodel 'U'," &

Convert.ToInt32(txtmodel_code.Text) & ",'" & cmbcomp_name.Text & "','" & txtmodel_no.Text & "', '" & txtmodel_remark.Text & "'"

cmnobj.cmd.ExecuteNonQuery()MessageBox.Show( "Successful Updated" , "Saved Dialog" ,

MessageBoxButtons.OK, MessageBoxIcon.None)cmnobj.textblank( Me.GroupBox1)updatedata = Falsecmdsave.Text = "Save"

Catch ex As ExceptionMessageBox.Show( "Error : 001234 'Record is Exists" ,

"Duplicate" , MessageBoxButtons.OK, MessageBoxIcon.Stop)txtmodel_code.Text = ""txtmodel_code.Focus()

End Try Else

If txtmodel_code.Text = "" ThenMessageBox.Show( "Fill Up The Company Code" , "Blank

Record" , MessageBoxButtons.OK, MessageBoxIcon.Information) Exit Sub End If

Trycmnobj.cmd.Parameters.Clear()cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.InsertCommand = cmnobj.cmd

Rahul Dewakar Page 61

Page 62: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 62/123

Report on MGMS

cmnobj.cmd.CommandText = "proceduremodel 'S'," &Convert.ToInt32(txtmodel_code.Text) & ",'" & cmbcomp_name.Text & "','" & txtmodel_no.Text & "','" & txtmodel_remark.Text & "'"

cmnobj.cmd.ExecuteNonQuery()MessageBox.Show( "Successful Saved" , "Saved Dialog" ,

MessageBoxButtons.OK, MessageBoxIcon.None)cmnobj.textblank( Me.GroupBox1) Catch ex As Exception

MessageBox.Show( "Error : 001234 'Record is Exists" ,"Duplicate" , MessageBoxButtons.OK, MessageBoxIcon.Stop)

txtmodel_code.Text = ""txtmodel_code.Focus()

End Try End If End SubEnd Class

MODEL RECORD FORM

Public Class modeldatagrid Dim cmnobj As New commonfunction Dim dtable As New DataTable 'Dim dt As New DataSet Dim r As Integer Private Sub modeldatagrid_Load( ByVal sender As System.Object,ByVal e As System.EventArgs) Handles MyBase .Load

If cmnobj.con.State = ConnectionState.Closed Thencmnobj.con.Open()

End If

'....... To fill up DataGrid and S.NO. .............fillgrid()modelgrid.Columns.Add( "Srno" , "SR. NO." )modelgrid.DataSource = dtablefill_sno()

'------------- To fill up Combobox -----------------

cmnobj.cmd.Parameters.Clear()cmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"cmnobj.cmd.CommandText = "mstcompany"cmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.adp.Fill(cmnobj.dtset, "mastermodel" )cmbcomp_name.DataSource = cmnobj.dtset.Tables( "mastermodel" )

Rahul Dewakar Page 62

Page 63: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 63/123

Report on MGMS

cmbcomp_name.ValueMember =cmnobj.dtset.Tables( "mastermodel" ).Columns( "comp_code" ).ToString()

cmbcomp_name.DisplayMember =cmnobj.dtset.Tables( "mastermodel" ).Columns( "comp_name" ).ToString()

'....... To Heading -and Column Width--------------------modelgrid.Columns( "modelcode" ).HeaderText = "ID"modelgrid.Columns( "modelcmpname" ).HeaderText = "COMPANY NAME"modelgrid.Columns( "modelno" ).HeaderText = "MODEL NO"modelgrid.Columns( "modelremark" ).HeaderText = "REMARK"

modelgrid.Columns( "srno" ).Width = 70modelgrid.Columns( "modelcmpname" ).Width = 120modelgrid.Columns( "modelremark" ).Width = 200Allrecords.Checked = True

End Sub

Private Sub fillgrid()cmnobj.cmd.Parameters.Clear()cmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"dtable = cmnobj.getdatatable( "proceduremodel" )

End Sub

Private Sub fill_sno() Dim i As Integer For i = 0 To dtable.Rows.Count - 1

modelgrid.Rows(i).Cells( "Srno" ).Value = i + 1 Next End Sub

Private Sub cmbcomp_name_SelectedIndexChanged( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) Handlescmbcomp_name.SelectedIndexChanged '-------------- To Combo Model fill up According to Companyname -------------

cmnobj.cmd.Parameters.Clear()cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.cmd.CommandText = "select modelno from mastermodel

where modelcmpname = '" & cmbcomp_name.Text & "'"cmnobj.adp.SelectCommand = cmnobj.cmd

Trycmnobj.dtset.Tables( "models" ).Clear()

Catch ex As Exception End Try

Rahul Dewakar Page 63

Page 64: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 64/123

Report on MGMS

cmnobj.adp.Fill(cmnobj.dtset, "models" )cmbmodel_no.DataSource = cmnobj.dtset.Tables( "models" )cmbmodel_no.DisplayMember =

cmnobj.dtset.Tables( "models" ).Columns( "modelno" ).ToString()

'------------ Grid fill particular company -------------------companyfillup() End Sub

Private Sub companyfillup() If Radio_comp.Checked = True Then

cmnobj.myconnection()dtable.Clear()

Dim qty As Stringcmnobj.cmd.Parameters.Clear()qty = "search_company '" & cmbcomp_name.Text & "'"cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandText = qtycmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.adp.Fill(dtable)modelgrid.DataSource = dtablefill_sno()

End If End Sub

Private Sub modelgrid_CellClick( ByVal sender As System.Object,ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handlesmodelgrid.CellClick

r = e.RowIndex End Sub

Private Sub EditMenu_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles EditMenu.Click If Not (modelgrid.Rows(r).Cells( "modelcode" ).Value.ToString()= "" ) Then

Model_Masterl.txtmodel_code.Text =modelgrid.Rows(r).Cells( "modelcode" ).Value.ToString()

Model_Masterl.cmbcomp_name.Text =modelgrid.Rows(r).Cells( "modelcmpname" ).Value.ToString()

Model_Masterl.txtmodel_no.Text =modelgrid.Rows(r).Cells( "modelno" ).Value.ToString()

Model_Masterl.txtmodel_remark.Text =modelgrid.Rows(r).Cells( "modelremark" ).Value.ToString() Me.Dispose()

Model_Masterl.Show()

Rahul Dewakar Page 64

Page 65: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 65/123

Report on MGMS

Model_Masterl.updatedata = TrueModel_Masterl.cmdsave.Text = "Update"

ElseMessageBox.Show( "Information : Record is Blank" , "Check

the Record" , MessageBoxButtons.OK, MessageBoxIcon.Information)

End If End Sub

Private Sub DeleteMenu_Click( ByVal sender As System.Object, ByVale As System.EventArgs) Handles DeleteMenu.Click If Not (modelgrid.Rows(r).Cells( "modelcode" ).Value.ToString()= "" ) Then If MessageBox.Show( "Are you want to Delete the Record" ,"Delete Record" , MessageBoxButtons.YesNo) =Windows.Forms.DialogResult.Yes Then

cmnobj.myconnection()cmnobj.cmd.Parameters.Clear()cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.cmd.CommandText = "proceduremodel 'D', " &

modelgrid.Rows(r).Cells( "modelcode" ).Value.ToString() & ""cmnobj.adp.DeleteCommand = cmnobj.cmdcmnobj.cmd.ExecuteNonQuery()

End If End If

If Allrecords.Checked = True ThenAllrecords_CheckedChanged(sender, e)

ElseIf Radio_comp.Checked = True Thencompanyfillup()

End If End Sub

Private Sub Allrecords_CheckedChanged( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) HandlesAllrecords.CheckedChanged If Allrecords.Checked = True Then

cmbcomp_name.Enabled = Falsecmbmodel_no.Enabled = Falsefillgrid()modelgrid.DataSource = dtablefill_sno()

Elsecmbcomp_name.Enabled = Truecmbmodel_no.Enabled = True

End If

Rahul Dewakar Page 65

Page 66: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 66/123

Report on MGMS

End Sub

Private Sub Radiomodel_CheckedChanged( ByVal sender AsSystem.Object, ByVal e As System.EventArgs)

Try cmnobj.myconnection()dtable.Clear()

Dim qty As Stringcmnobj.cmd.Parameters.Clear()qty = "search_model '" & cmbmodel_no.Text & "'"cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandText = qtycmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.adp.Fill(dtable)modelgrid.DataSource = dtable

Catch ex As Exception End Try End Sub

Private Sub Radio_comp_CheckedChanged( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) HandlesRadio_comp.CheckedChanged

companyfillup() End SubEnd Class

COMPANY ENTRY FORM

Public Class Company_entry Dim cmnobj As New commonfunction

Public Shared updatedata As Boolean = False

Private Sub blank_Click( ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Button1.Click

cmnobj.textblank( Me.GroupBox1)updatedata = Falsecmdsave.Text = "Save"

End Sub

Rahul Dewakar Page 66

Page 67: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 67/123

Report on MGMS

Private Sub save_Click( ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles cmdsave.Click

cmnobj.myconnection()

If updatedata = True Then If txtcomp_code.Text = "" ThenMessageBox.Show( "Fill Up The Company Code" , "Blank

Record" , MessageBoxButtons.OK, MessageBoxIcon.Information) Exit Sub End If

'Trycmnobj.cmd.Parameters.Clear()cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.InsertCommand = cmnobj.cmdcmnobj.cmd.CommandText = "compentry 'U'," &

txtcomp_code.Text & ",'" & cmdcomp_name.Text & "','" &txtcomp_sname.Text & "','" & txtcomp_email.Text & "'," &txtcomp_fax.Text & "," & txtcomp_phone.Text & "," & txtcomp_mob.Text& ",'" & dtpcomp_dob.Text & "','" & txtcomp_city.Text & "', '" &txtcomp_state.Text & "'," & txtcomp_zip.Text & ",'" &txtcomp_address.Text & "'"

cmnobj.cmd.ExecuteNonQuery()MessageBox.Show( "Successful Updated" , "Saved Dialog" ,

MessageBoxButtons.OK, MessageBoxIcon.None)cmnobj.textblank( Me.GroupBox1)

Catch ex As ExceptionMessageBox.Show( "Error : 001234 'Record is Exists" ,

"Duplicate" , MessageBoxButtons.OK, MessageBoxIcon.Stop)txtcomp_code.Text = ""txtcomp_code.Focus()

End Trycmdsave.Text = "Save"

Else If txtcomp_code.Text = "" Then

MessageBox.Show( "Fill Up The Company Code" , "BlankRecord" , MessageBoxButtons.OK, MessageBoxIcon.Information) Exit Sub End If

Trycmnobj.cmd.Parameters.Clear()cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.InsertCommand = cmnobj.cmd

Rahul Dewakar Page 67

Page 68: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 68/123

Report on MGMS

cmnobj.cmd.CommandText = "compentry 'S'," &txtcomp_code.Text & ",'" & cmdcomp_name.Text & "','" &txtcomp_sname.Text & "','" & txtcomp_email.Text & "'," &txtcomp_fax.Text & "," & txtcomp_phone.Text & "," & txtcomp_mob.Text& ",'" & dtpcomp_dob.Text & "','" & txtcomp_city.Text & "', '" &

txtcomp_state.Text & "'," & txtcomp_zip.Text & ",'" &txtcomp_address.Text & "'"cmnobj.cmd.ExecuteNonQuery()MessageBox.Show( "Successful Saved" , "Saved Dialog" ,

MessageBoxButtons.OK, MessageBoxIcon.None)cmnobj.textblank( Me.GroupBox1)

Catch ex As ExceptionMessageBox.Show( "Error : 001234 'Record is Exists" ,

"Duplicate" , MessageBoxButtons.OK, MessageBoxIcon.Stop)txtcomp_code.Text = ""txtcomp_code.Focus()

End Try End If End Sub

Private Sub Mob_exit_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles Mob_exit.Click Me.Dispose() End Sub

Private Sub TextBox_KeyPress( ByVal sender As System.Object, ByVale As System.Windows.Forms.KeyPressEventArgs) Handles _

txtcomp_sname.KeyPress, txtcomp_email.KeyPress,txtcomp_city.KeyPress, txtcomp_state.KeyPress,txtcomp_address.KeyPress

cmnobj.convertuppercase(sender) End Sub

Private Sub TextBoxs_KeyPress( ByVal sender As System.Object, ByVale As System.Windows.Forms.KeyPressEventArgs) Handles _

txtcomp_code.KeyPress, txtcomp_fax.KeyPress,txtcomp_phone.KeyPress, txtcomp_mob.KeyPress, txtcomp_zip.KeyPress

cmnobj.numericvalue(sender, e) End Sub

Private Sub Company_entry_KeyDown( ByVal sender As System.Object,ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase .KeyDown

cmnobj.keydown(sender, e, Me) End Sub

Private Sub cmd_Del_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles cmd_Del.Click

Rahul Dewakar Page 68

Page 69: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 69/123

Report on MGMS

Dim qry As String Dim n As Integer

cmnobj.myconnection()

Try

n = InputBox( "Enter The Model Code" , "To Delete" , , 300,300)txtcomp_code.Text = nqry = ( "findouts " & Convert.ToInt32(txtcomp_code.Text) &

" " )cmnobj.fillrecord(qry, "companyentry" )

Catch ex As Exception End Try

If txtcomp_code.Text = "" ThenMessageBox.Show( "Fill Up The Company Code" , "Blank

Record" , MessageBoxButtons.OK, MessageBoxIcon.Information) Exit Sub End If

If (cmnobj.dtset.Tables( "companyentry" ).Rows.Count > 0) Thencmnobj.cmd.Parameters.Clear()cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandText = "compentry 'D', " &

Convert.ToInt32(txtcomp_code.Text) & ""cmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.DeleteCommand = cmnobj.cmdcmnobj.cmd.ExecuteNonQuery()MsgBox( "Successful Delete" )cmnobj.textblank( Me.GroupBox1)txtcomp_code.Focus()

ElseMessageBox.Show( "Record is not Found" , "Again Search" ,

MessageBoxButtons.OK, MessageBoxIcon.Error)txtcomp_code.Text = ""txtcomp_code.Focus()

End If End Sub

Private Sub Mob_find_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles Mob_find.Click Dim qry As String Dim n As Integer

cmnobj.myconnection()

Try

Rahul Dewakar Page 69

Page 70: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 70/123

Report on MGMS

n = InputBox( "Enter The Model Code" , "Find" , , 300, 300)txtcomp_code.Text = nqry = ( "findouts " & Convert.ToInt32(txtcomp_code.Text) &

" " )cmnobj.fillrecord(qry, "companyentry" )

Catch ex As Exception End Try

If txtcomp_code.Text = "" ThenMessageBox.Show( "Fill Up The Company Code" , "Blank

Record" , MessageBoxButtons.OK, MessageBoxIcon.Information) Exit Sub End If

If (cmnobj.dtset.Tables( "companyentry" ).Rows.Count > 0) Thentxtcomp_code.Text =

cmnobj.dtset.Tables( "companyentry" ).Rows(0).Item( "cmpcode" ).ToString()cmdcomp_name.Text =

cmnobj.dtset.Tables( "companyentry" ).Rows(0).Item( "cmpname" ).ToString()txtcomp_sname.Text =

cmnobj.dtset.Tables( "companyentry" ).Rows(0).Item( "cmpshopname" ).ToString()

txtcomp_email.Text =cmnobj.dtset.Tables( "companyentry" ).Rows(0).Item( "cmpemail" ).ToString()

txtcomp_fax.Text =cmnobj.dtset.Tables( "companyentry" ).Rows(0).Item( "cmpfax" ).ToString()

txtcomp_phone.Text =cmnobj.dtset.Tables( "companyentry" ).Rows(0).Item( "cmpphone" ).ToString()

txtcomp_mob.Text =cmnobj.dtset.Tables( "companyentry" ).Rows(0).Item( "cmpmobile" ).ToString()

dtpcomp_dob.Value =cmnobj.dtset.Tables( "companyentry" ).Rows(0).Item( "cmpdate" ).ToString()

txtcomp_city.Text =cmnobj.dtset.Tables( "companyentry" ).Rows(0).Item( "cmpcity" ).ToString()

txtcomp_state.Text =cmnobj.dtset.Tables( "companyentry" ).Rows(0).Item( "cmpstate" ).ToString()

txtcomp_zip.Text =cmnobj.dtset.Tables( "companyentry" ).Rows(0).Item( "cmpzipcode" ).ToString()

txtcomp_address.Text =cmnobj.dtset.Tables( "companyentry" ).Rows(0).Item( "cmpaddress" ).ToString()

cmdsave.Text = "Update"

Rahul Dewakar Page 70

Page 71: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 71/123

Report on MGMS

ElseMsgBox( "Record Is Not found" )cmnobj.textblank( Me.GroupBox1)

End If End Sub

Private Sub Company_entry_Load( ByVal sender As System.Object,ByVal e As System.EventArgs) Handles MyBase .Load

' .........To Fill Up Combo.................cmnobj.myconnection()cmnobj.cmd.CommandText = "mstcompany"cmnobj.cmd.CommandType = CommandType.StoredProcedurecmnobj.cmd.Connection = cmnobj.concmnobj.adp.SelectCommand = cmnobj.cmd

cmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"cmnobj.adp.Fill(cmnobj.dtset, "company" )cmdcomp_name.DataSource = cmnobj.dtset.Tables( "company" )cmdcomp_name.ValueMember =

cmnobj.dtset.Tables( "company" ).Columns( "comp_code" ).ToString()cmdcomp_name.DisplayMember =

cmnobj.dtset.Tables( "company" ).Columns( "comp_name" ).ToString()

End Sub

Private Sub Mob_edit_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles Mob_report.Click

Companygrid.Show() End SubEnd Class

COMPANY DETAIL FORM

Public Class Companygrid Dim cmnobj As New commonfunction Dim dtable As New DataTable Dim r, c As Integer

Private Sub Companygrid_Load( ByVal sender As System.Object, ByVale As System.EventArgs) Handles MyBase .Load

cmnobj.myconnection()

Rahul Dewakar Page 71

Page 72: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 72/123

Report on MGMS

'................ To fill up DataGrid and S.No.............fillgrid()cmpgrid.Columns.Add( "Srno" , "Sr. No." )cmpgrid.DataSource = dtablefillsno()

'............. To add in combobox .................cmnobj.cmd.Parameters.Clear()cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandText = "compentry"cmnobj.cmd.CommandType = CommandType.StoredProcedurecmnobj.adp.SelectCommand = cmnobj.cmd

Trycmnobj.cmd.Parameters.Clear()

Catch ex As Exception End Try

cmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"cmnobj.adp.Fill(cmnobj.dtset, "comp" )cmbcomp_name.DataSource = cmnobj.dtset.Tables( "comp" )cmbcomp_name.DisplayMember =

cmnobj.dtset.Tables( "comp" ).Columns( "cmpname" ).ToString()

'.................. TO SET HEADING ................

cmpgrid.Columns( "cmpcode" ).HeaderText = "ID"cmpgrid.Columns( "cmpname" ).HeaderText = "COMPANY NAME"cmpgrid.Columns( "cmpshopname" ).HeaderText = "SHOP NAME"cmpgrid.Columns( "cmpemail" ).HeaderText = "E-MAIL ADDRESS"cmpgrid.Columns( "cmpfax" ).HeaderText = "FAX NO."cmpgrid.Columns( "cmpphone" ).HeaderText = "PHONE NO."cmpgrid.Columns( "cmpmobile" ).HeaderText = "MOBILE NO."cmpgrid.Columns( "cmpdate" ).HeaderText = "JOIN DATE"cmpgrid.Columns( "cmpcity" ).HeaderText = "CITY"cmpgrid.Columns( "cmpstate" ).HeaderText = "STATE"cmpgrid.Columns( "cmpzipcode" ).HeaderText = "ZIPCODE"cmpgrid.Columns( "cmpaddress" ).HeaderText = "COMPANY ADDRESS"

'.............. TO SET COLUMN WIDTH .....................

cmpgrid.Columns( "CMPCODE").Width = 70cmpgrid.Columns( "cmpname" ).Width = 120cmpgrid.Columns( "cmpshopname" ).Width = 150cmpgrid.Columns( "cmpemail" ).Width = 150cmpgrid.Columns( "cmpaddress" ).Width = 200

End Sub

Rahul Dewakar Page 72

Page 73: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 73/123

Report on MGMS

Private Sub cmpgrid_CellClick( ByVal sender As System.Object, ByVale As System.Windows.Forms.DataGridViewCellEventArgs) Handlescmpgrid.CellClick

r = e.RowIndexc = e.ColumnIndex

End Sub

Private Sub DeleteMenu_Click( ByVal sender As System.Object, ByVale As System.EventArgs) Handles deleteMenu.Click If Not (cmpgrid.Rows(r).Cells( "cmpcode" ).Value.ToString() ="" ) Then If MessageBox.Show( "Are you want to Delete the Record" ,"Delete Record" , MessageBoxButtons.YesNo) =Windows.Forms.DialogResult.Yes Then

cmnobj.myconnection()cmnobj.cmd.Parameters.Clear()cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.cmd.CommandText = "compentry 'D', " &

cmpgrid.Rows(r).Cells( "cmpcode" ).Value.ToString() & ""cmnobj.adp.DeleteCommand = cmnobj.cmdcmnobj.cmd.ExecuteNonQuery()

End If End If End Sub

Private Sub EditMenu_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles EditMenu.Click If Not (cmpgrid.Rows(r).Cells( "cmpcode" ).Value.ToString() ="" ) Then

Company_entry.txtcomp_code.Text =cmpgrid.Rows(r).Cells( "cmpcode" ).Value.ToString()

Company_entry.txtcomp_sname.Text =cmpgrid.Rows(r).Cells( "cmpshopname" ).Value.ToString()

Company_entry.cmdcomp_name.Text =cmpgrid.Rows(r).Cells( "cmpname" ).Value.ToString()

Company_entry.txtcomp_email.Text =cmpgrid.Rows(r).Cells( "cmpemail" ).Value.ToString()

Company_entry.txtcomp_fax.Text =cmpgrid.Rows(r).Cells( "cmpfax" ).Value.ToString()

Company_entry.txtcomp_mob.Text =cmpgrid.Rows(r).Cells( "cmpmobile" ).Value.ToString()

Company_entry.txtcomp_phone.Text =cmpgrid.Rows(r).Cells( "cmpphone" ).Value.ToString()

Company_entry.dtpcomp_dob.Value =cmpgrid.Rows(r).Cells( "cmpdate" ).Value.ToString()

Rahul Dewakar Page 73

Page 74: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 74/123

Report on MGMS

Company_entry.txtcomp_city.Text =cmpgrid.Rows(r).Cells( "cmpcity" ).Value.ToString()

Company_entry.txtcomp_state.Text =cmpgrid.Rows(r).Cells( "cmpstate" ).Value.ToString()

Company_entry.txtcomp_zip.Text =

cmpgrid.Rows(r).Cells( "cmpzipcode" ).Value.ToString()Company_entry.txtcomp_address.Text =cmpgrid.Rows(r).Cells( "cmpaddress" ).Value.ToString()

Company_entry.updatedata = True Me.Close()

Company_entry.Show()Company_entry.cmdsave.Text = "Update"

ElseMessageBox.Show( "Information : Record is Blank" , "Check

the Record" , MessageBoxButtons.OK, MessageBoxIcon.Information) End If End Sub

Private Sub fillgrid()cmnobj.cmd.Parameters.Clear()cmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"dtable = cmnobj.getdatatable( "compentry" )

End Sub

Private Sub fillsno() Dim i As Integer For i = 0 To dtable.Rows.Count - 1

cmpgrid.Rows(i).Cells( "Srno" ).Value = i + 1 Next End Sub

Private Sub ExitMenu_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles ExitMenu.Click Me.Close() End Sub

Private Sub cmbcomp_name_SelectedIndexChanged( ByVal sender AsSystem.Object, ByVal e As System.EventArgs)

Rd_particular_Checked(sender, e) End Sub

Private Sub rd_all_CheckedChanged( ByVal sender As System.Object,ByVal e As System.EventArgs)

End Sub

Rahul Dewakar Page 74

Page 75: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 75/123

Report on MGMS

Private Sub txtbillno_TextChanged( ByVal sender As System.Object,ByVal e As System.EventArgs) Handles txtbillno.TextChanged

dtable.Clear()

cmnobj.cmd.Parameters.Clear() Dim qry As Stringqry = "find_id '" & txtbillno.Text & "%'"cmnobj.cmd.CommandText = qrycmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.adp.Fill(dtable)cmpgrid.DataSource = dtable

End Sub

Private Sub Rd_particular_Checked( ByVal sender As System.Object,ByVal e As System.EventArgs) Handles Rd_particular.CheckedChanged If Rd_particular.Checked = True Then

cmbcomp_name.Enabled = Truecmnobj.myconnection()dtable.Clear()

Dim qty As Stringcmnobj.cmd.Parameters.Clear()qty = "find_company '" & cmbcomp_name.Text & "'"cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandText = qtycmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.adp.Fill(dtable)cmpgrid.DataSource = dtablefillsno()

End If End Sub

Private Sub cmbcomp_name_SelectedIndexChanged_1( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) Handlescmbcomp_name.SelectedIndexChanged

cmnobj.myconnection()dtable.Clear()

Dim qty As Stringcmnobj.cmd.Parameters.Clear()qty = "find_company '" & cmbcomp_name.Text & "'"cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandText = qtycmnobj.cmd.CommandType = CommandType.Text

Rahul Dewakar Page 75

Page 76: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 76/123

Report on MGMS

cmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.adp.Fill(dtable)cmpgrid.DataSource = dtablefillsno()

End Sub

End Class

EMPLOYEE ENTRY FORM

Public Class Employee_entry

Dim cmnobj As New commonfunction Public Shared updatedata As Boolean = False Dim dt As New DataTable

Private Sub Button1_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles Button1.Click

cmnobj.textblank( Me.GroupBox1)cmdsave.Text = "Save"updatedata = False

End Sub

Private Sub txtemp_KeyPress( ByVal sender As System.Object, ByVale As System.Windows.Forms.KeyPressEventArgs) Handles _txtemp_code.KeyPress, txtemp_phone.KeyPress,

txtemp_mob.KeyPress, txtemp_czip.KeyPress, txtemp_pzip.KeyPress,txtemp_fax.KeyPress, txtemp_sal.KeyPress

cmnobj.numericvalue(sender, e) End Sub

Private Sub txtemp_name_KeyPress( ByVal sender As System.Object,ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles _

txtemp_name.KeyPress, txtemp_name.KeyPress,txtemp_fname.KeyPress, txtemp_fax.KeyPress, txtemp_mail.KeyPress,txtemp_ccity.KeyPress, _

txtemp_cstate.KeyPress, txtemp_cadd.KeyPress,txtemp_pcity.KeyPress, txtemp_pstate.KeyPress, txtemp_padd.KeyPress

cmnobj.convertuppercase(sender) End Sub

Private Sub Employee_entry_Load( ByVal sender As System.Object,ByVal e As System.EventArgs) Handles MyBase .Load

Rahul Dewakar Page 76

Page 77: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 77/123

Report on MGMS

cmnobj.myconnection()Cmbemp_ST.SelectedIndex = 0cmbemp_cat.SelectedIndex = 0cmbemp_sex.SelectedIndex = 0

End Sub

Private Sub Employee_entry_KeyDown( ByVal sender As System.Object,ByVal e As System.Windows.Forms.KeyEventArgs) Handles MyBase .KeyDown

cmnobj.keydown(sender, e, Me) End Sub

Private Sub cmdsave_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles cmdsave.Click

cmnobj.myconnection() If updatedata = True Then If txtemp_code.Text = "" Then

MessageBox.Show( "Fill Up The Company Code" , "BlankRecord" , MessageBoxButtons.OK, MessageBoxIcon.Information) Exit Sub End If

Trycmnobj.cmd.Parameters.Clear()cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.InsertCommand = cmnobj.cmdcmnobj.cmd.CommandText = "empentry 'U'," &

Convert.ToInt32(txtemp_code.Text) & ",'" & txtemp_name.Text & "','" &txtemp_jdate.Value & "','" & txtemp_fname.Text & "','" &txtemp_dob.Value & "','" & Cmbemp_ST.Text & "','" & cmbemp_sex.Text &"','" & cmbemp_cat.Text & "'," & txtemp_sal.Text & "," &txtemp_phone.Text & ", " & txtemp_mob.Text & "," & txtemp_fax.Text &",'" & txtemp_mail.Text & "','" & txtemp_ccity.Text & "','" &txtemp_cstate.Text & "'," & txtemp_czip.Text & ",'" &txtemp_cadd.Text & "','" & txtemp_pcity.Text & "','" &txtemp_pstate.Text & "'," & txtemp_pzip.Text & ",'" &txtemp_padd.Text & "'"

cmnobj.cmd.ExecuteNonQuery()MessageBox.Show( "Successful Updated" , "Saved Dialog" ,

MessageBoxButtons.OK, MessageBoxIcon.None)cmnobj.textblank( Me.GroupBox1)updatedata = Falsecmdsave.Text = "Save"

Catch ex As ExceptionMessageBox.Show( "Error : 001234 'Record is Exists" ,

"Duplicate" , MessageBoxButtons.OK, MessageBoxIcon.Stop)txtemp_code.Text = ""

Rahul Dewakar Page 77

Page 78: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 78/123

Report on MGMS

txtemp_code.Focus() End Try

Else

cmnobj.myconnection() If txtemp_code.Text = "" ThenMessageBox.Show( "Fill Up The Company Code" , "Blank

Record" , MessageBoxButtons.OK, MessageBoxIcon.Information) Exit Sub End If

Trycmnobj.cmd.Parameters.Clear()cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.InsertCommand = cmnobj.cmdcmnobj.cmd.CommandText = "empentry 'S'," &

Convert.ToInt32(txtemp_code.Text) & ",'" & txtemp_name.Text & "','" &txtemp_jdate.Value & "','" & txtemp_fname.Text & "','" &txtemp_dob.Value & "','" & Cmbemp_ST.Text & "','" & cmbemp_sex.Text &"','" & cmbemp_cat.Text & "'," & txtemp_sal.Text & "," &txtemp_phone.Text & ", " & txtemp_mob.Text & "," & txtemp_fax.Text &",'" & txtemp_mail.Text & "','" & txtemp_ccity.Text & "','" &txtemp_cstate.Text & "'," & txtemp_czip.Text & ",'" &txtemp_cadd.Text & "','" & txtemp_pcity.Text & "','" &txtemp_pstate.Text & "'," & txtemp_pzip.Text & ",'" &txtemp_padd.Text & "'"

cmnobj.cmd.ExecuteNonQuery()MessageBox.Show( "Successful Saved" , "Saved Dialog" ,

MessageBoxButtons.OK, MessageBoxIcon.None)cmnobj.textblank( Me.GroupBox1)

Catch ex As ExceptionMessageBox.Show( "Error : 001234 'Record is Exists" ,

"Duplicate" , MessageBoxButtons.OK, MessageBoxIcon.Stop)txtemp_code.Text = ""txtemp_code.Focus()

End Try End If End Sub

Private Sub cmdreport_Click( ByVal sender As System.Object, ByVale As System.EventArgs) Handles cmdreport.Click

Emp_record.Show() End SubEnd Class

Rahul Dewakar Page 78

Page 79: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 79/123

Page 80: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 80/123

Page 81: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 81/123

Report on MGMS

empgrid.Columns( "emp_phone" ).Width = 100empgrid.Columns( "emp_mob" ).Width = 100empgrid.Columns( "emp_fax" ).Width = 100empgrid.Columns( "emp_email" ).Width = 200empgrid.Columns( "emp_ccity" ).Width = 100

empgrid.Columns( "emp_cstate" ).Width = 100empgrid.Columns( "emp_czip" ).Width = 100empgrid.Columns( "emp_cadd" ).Width = 200empgrid.Columns( "emp_pcity" ).Width = 100empgrid.Columns( "emp_pstate" ).Width = 100empgrid.Columns( "emp_pzip" ).Width = 100empgrid.Columns( "emp_padd" ).Width = 200

End Sub

Private Sub empgrid_CellClick( ByVal sender As Object , ByVal e AsSystem.Windows.Forms.DataGridViewCellEventArgs) Handlesempgrid.CellClick

r = e.RowIndex End Sub

Private Sub ExitMenu_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles ExitMenu.Click Me.Dispose() End Sub

Private Sub EditMenu_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles EditMenu.Click If Not (empgrid.Rows(r).Cells( "emp_code" ).Value.ToString() ="" ) Then

Employee_entry.txtemp_code.Text =empgrid.Rows(r).Cells( "emp_code" ).Value.ToString()

Employee_entry.txtemp_name.Text =empgrid.Rows(r).Cells( "emp_name" ).Value.ToString()

Employee_entry.txtemp_jdate.Text =empgrid.Rows(r).Cells( "emp_date" ).Value.ToString()

Employee_entry.txtemp_fname.Text =empgrid.Rows(r).Cells( "emp_fname" ).Value.ToString()

Employee_entry.txtemp_dob.Text =empgrid.Rows(r).Cells( "emp_dob" ).Value.ToString()

Employee_entry.Cmbemp_ST.Text =empgrid.Rows(r).Cells( "emp_ms" ).Value.ToString()

Employee_entry.cmbemp_sex.Text =empgrid.Rows(r).Cells( "emp_sex" ).Value.ToString()

Employee_entry.cmbemp_cat.Text =empgrid.Rows(r).Cells( "emp_cat" ).Value.ToString()

Rahul Dewakar Page 81

Page 82: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 82/123

Report on MGMS

Employee_entry.txtemp_sal.Text =empgrid.Rows(r).Cells( "emp_sal" ).Value.ToString()

Employee_entry.txtemp_phone.Text =empgrid.Rows(r).Cells( "emp_phone" ).Value.ToString()

Employee_entry.txtemp_mob.Text =

empgrid.Rows(r).Cells( "emp_mob" ).Value.ToString()Employee_entry.txtemp_fax.Text =empgrid.Rows(r).Cells( "emp_fax" ).Value.ToString()

Employee_entry.txtemp_mail.Text =empgrid.Rows(r).Cells( "emp_email" ).Value.ToString()

Employee_entry.txtemp_ccity.Text =empgrid.Rows(r).Cells( "emp_ccity" ).Value.ToString()

Employee_entry.txtemp_cstate.Text =empgrid.Rows(r).Cells( "emp_cstate" ).Value.ToString()

Employee_entry.txtemp_czip.Text =empgrid.Rows(r).Cells( "emp_czip" ).Value.ToString()

Employee_entry.txtemp_cadd.Text =empgrid.Rows(r).Cells( "emp_cadd" ).Value.ToString()

Employee_entry.txtemp_pcity.Text =empgrid.Rows(r).Cells( "emp_pcity" ).Value.ToString()

Employee_entry.txtemp_pstate.Text =empgrid.Rows(r).Cells( "emp_pstate" ).Value.ToString()

Employee_entry.txtemp_pzip.Text =empgrid.Rows(r).Cells( "emp_pzip" ).Value.ToString()

Employee_entry.txtemp_padd.Text =empgrid.Rows(r).Cells( "emp_padd" ).Value.ToString() Me.Close()

Employee_entry.Show()Employee_entry.updatedata = TrueEmployee_entry.cmdsave.Text = "Update"

ElseMessageBox.Show( "Information : Record is Blank" , "Check

the Record" , MessageBoxButtons.OK, MessageBoxIcon.Information) End If End Sub

Private Sub DeleteMenu_Click( ByVal sender As System.Object, ByVale As System.EventArgs) Handles DeleteMenu.Click If Not (empgrid.Rows(r).Cells( "emp_code" ).Value.ToString() ="" ) Then If MessageBox.Show( "Are you want to Delete the Record" ,"Delete Record" , MessageBoxButtons.YesNo) =Windows.Forms.DialogResult.Yes Then

cmnobj.myconnection()cmnobj.cmd.Parameters.Clear()cmnobj.cmd.Connection = cmnobj.con

Rahul Dewakar Page 82

Page 83: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 83/123

Report on MGMS

cmnobj.cmd.CommandType = CommandType.Textcmnobj.cmd.CommandText = "empentry 'D', " &

empgrid.Rows(r).Cells( "emp_code" ).Value.ToString() & ""cmnobj.adp.DeleteCommand = cmnobj.cmdcmnobj.cmd.ExecuteNonQuery()

End Ifcmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"dtable = cmnobj.getdatatable( "empentry" )empgrid.DataSource = dtable

End If

End Sub

Private Sub rd_all_CheckedChanged( ByVal sender As System.Object,ByVal e As System.EventArgs) Handles rd_all.CheckedChanged

cmnobj.myconnection() If rd_all.Checked = True Then

cmbcomp_name.Enabled = Falsecmnobj.myconnection()cmnobj.dtset.Clear()fillgrid()empgrid.DataSource = dtablefillsno()

End Ifcmnobj.con.Close()

End Sub

Private Sub Rd_particular_CheckedChanged( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) HandlesRd_particular.CheckedChanged Try

cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandText = "empentry"cmnobj.cmd.CommandType = CommandType.StoredProcedurecmnobj.adp.SelectCommand = cmnobj.cmd

Trycmnobj.cmd.Parameters.Clear()

Catch ex As Exception End Try

cmnobj.dtset.Clear()cmnobj.cmd.Parameters.Clear()cmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"

Rahul Dewakar Page 83

Page 84: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 84/123

Page 85: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 85/123

Report on MGMS

Private Sub txtparty_code_KeyPress( ByVal sender As System.Object,ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles _

txtparty_code.KeyPress, txtparty_fax.KeyPress,txtparty_mob.KeyPress, txtparty_phone.KeyPress, txtparty_zip.KeyPress

cmnobj.numericvalue(sender, e)

End Sub

Private Sub txtparty_name_KeyPress( ByVal sender As System.Object,ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles _

txtparty_name.KeyPress, txtparty_address.KeyPress,txtparty_city.KeyPress, txtparty_email.KeyPress,txtparty_state.KeyPress

cmnobj.convertuppercase(sender) End Sub

Private Sub Button3_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles Button3.Click Me.Dispose() End Sub

Private Sub cmdsave_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles cmdsave.Click If updatedata = True Then If cmnobj.con.State = ConnectionState.Closed Then

cmnobj.con.Open() End If If txtparty_code.Text = "" Then

MessageBox.Show( "Fill Up The Company Code" , "BlankRecord" , MessageBoxButtons.OK, MessageBoxIcon.Information) Exit Sub End If

Trycmnobj.cmd.Parameters.Clear()cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.InsertCommand = cmnobj.cmdcmnobj.cmd.CommandText = "partyentry 'U'," &

Convert.ToInt32(txtparty_code.Text) & ",'" & txtparty_name.Text &"','" & dtpparty_date.Value & "'," &Convert.ToInt32(txtparty_phone.Text) & "," &Convert.ToInt32(txtparty_mob.Text) & "," &Convert.ToInt32(txtparty_fax.Text) & "," &Convert.ToInt32(txtparty_zip.Text) & ",'" & txtparty_email.Text &"','" & txtparty_city.Text & "','" & txtparty_state.Text & "', '" &txtparty_address.Text & "'"

cmnobj.cmd.ExecuteNonQuery()

Rahul Dewakar Page 85

Page 86: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 86/123

Report on MGMS

MessageBox.Show( "Successful Updated" , "UpdateDialog" , MessageBoxButtons.OK, MessageBoxIcon.None)

cmnobj.textblank( Me.GroupBox1)updatedata = Falsecmdsave.Text = "Save"

Catch ex As ExceptionMessageBox.Show( "Error : 001234 'Record is Exists" ,"Duplicate" , MessageBoxButtons.OK, MessageBoxIcon.Stop)

txtparty_code.Text = ""txtparty_code.Focus()

End Try

Else

If cmnobj.con.State = ConnectionState.Closed Thencmnobj.con.Open()

End If If txtparty_code.Text = "" Then

MessageBox.Show( "Fill Up The Company Code" , "BlankRecord" , MessageBoxButtons.OK, MessageBoxIcon.Information) Exit Sub End If

Trycmnobj.cmd.Parameters.Clear()cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.InsertCommand = cmnobj.cmdcmnobj.cmd.CommandText = "partyentry 'S'," &

Convert.ToInt32(txtparty_code.Text) & ",'" & txtparty_name.Text &"','" & dtpparty_date.Value & "'," &Convert.ToInt32(txtparty_phone.Text) & "," &Convert.ToInt32(txtparty_mob.Text) & "," &Convert.ToInt32(txtparty_fax.Text) & "," &Convert.ToInt32(txtparty_zip.Text) & ",'" & txtparty_email.Text &"','" & txtparty_city.Text & "','" & txtparty_state.Text & "', '" &txtparty_address.Text & "'"

cmnobj.cmd.ExecuteNonQuery()MessageBox.Show( "Successful Saved" , "Saved Dialog" ,

MessageBoxButtons.OK, MessageBoxIcon.None)cmnobj.textblank( Me.GroupBox1)

Catch ex As ExceptionMessageBox.Show( "Error : 001234 'Record is Exists" ,

"Duplicate" , MessageBoxButtons.OK, MessageBoxIcon.Stop)txtparty_code.Text = ""txtparty_code.Focus()

End Try

Rahul Dewakar Page 86

Page 87: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 87/123

Page 88: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 88/123

Report on MGMS

PartyEntry_frm.txtparty_mob.Text =partygrid.Rows(r).Cells( "party_mobile" ).Value.ToString()

PartyEntry_frm.txtparty_fax.Text =partygrid.Rows(r).Cells( "party_fax" ).Value.ToString()

PartyEntry_frm.txtparty_zip.Text =

partygrid.Rows(r).Cells( "party_zip" ).Value.ToString()PartyEntry_frm.txtparty_email.Text =partygrid.Rows(r).Cells( "party_email" ).Value.ToString()

PartyEntry_frm.txtparty_city.Text =partygrid.Rows(r).Cells( "party_city" ).Value.ToString()

PartyEntry_frm.txtparty_state.Text =partygrid.Rows(r).Cells( "party_state" ).Value.ToString()

PartyEntry_frm.txtparty_address.Text =partygrid.Rows(r).Cells( "party_add" ).Value.ToString() Me.Dispose()

PartyEntry_frm.Show()PartyEntry_frm.cmdsave.Text = "Update"PartyEntry_frm.updatedata = True

ElseMessageBox.Show( "Information : Record is Blank" , "Check

the Record" , MessageBoxButtons.OK, MessageBoxIcon.Information) End If End Sub

Private Sub partygrid_CellClick( ByVal sender As Object , ByVal e AsSystem.Windows.Forms.DataGridViewCellEventArgs) Handlespartygrid.CellClick

r = e.RowIndex End Sub

Private Sub fillup_sno() Dim i As Integer For i = 0 To dtable.Rows.Count - 1

partygrid.Rows(i).Cells( "Srno" ).Value = i + 1 Next End Sub

Private Sub fillupgrid()cmnobj.cmd.Parameters.Clear()cmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"dtable = cmnobj.getdatatable( "partyentry" )

End Sub

Private Sub Partyrecord_Load( ByVal sender As System.Object, ByVale As System.EventArgs) Handles MyBase .Load

Rahul Dewakar Page 88

Page 89: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 89/123

Report on MGMS

'................ To fill up DataGrid and S.NO..............fillupgrid()partygrid.Columns.Add( "Srno" , "Sr. No." )partygrid.DataSource = dtablefillup_sno()

rd_allparty.Checked = True

'............. To add in combobox .................cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandText = "partyentry"cmnobj.cmd.CommandType = CommandType.StoredProcedurecmnobj.adp.SelectCommand = cmnobj.cmd

Trycmnobj.cmd.Parameters.Clear()

Catch ex As Exception End Try

cmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"cmnobj.adp.Fill(cmnobj.dtset, "comp" )cmbcomp_name.DataSource = cmnobj.dtset.Tables( "comp" )cmbcomp_name.DisplayMember =

cmnobj.dtset.Tables( "comp" ).Columns( "party_name" ).ToString()

'....................... To Heading ...............partygrid.Columns( "party_code" ).HeaderText = "ID"partygrid.Columns( "party_name" ).HeaderText = "PARTY NAME"partygrid.Columns( "party_jdate" ).HeaderText = "DATE"partygrid.Columns( "party_phone" ).HeaderText = "PHONE NO."partygrid.Columns( "party_mobile" ).HeaderText = "MOBILE NO."partygrid.Columns( "party_fax" ).HeaderText = "FAX NO."partygrid.Columns( "party_zip" ).HeaderText = "ZIPCODE"partygrid.Columns( "party_email" ).HeaderText = "E-MAIL ADDRESS"partygrid.Columns( "party_city" ).HeaderText = "CITY"partygrid.Columns( "party_state" ).HeaderText = "STATE"partygrid.Columns( "party_add" ).HeaderText = "COMPANY ADDRESS"

'.............. TO SET COLUMN WIDTH .....................partygrid.Columns( "party_name" ).Width = 200partygrid.Columns( "party_email" ).Width = 200partygrid.Columns( "party_add" ).Width = 200

End Sub

Private Sub DeleteMenu_Click( ByVal sender As System.Object, ByVale As System.EventArgs) Handles DeleteMenu.Click If Not(partygrid.Rows(r).Cells( "party_code" ).Value.ToString() = "" ) Then

Rahul Dewakar Page 89

Page 90: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 90/123

Report on MGMS

If MessageBox.Show( "Are you want to Delete the Record" ,"Delete Record" , MessageBoxButtons.YesNo) =Windows.Forms.DialogResult.Yes Then

cmnobj.myconnection()cmnobj.cmd.Parameters.Clear()

cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.cmd.CommandText = "partyentry 'D', " &

partygrid.Rows(r).Cells( "party_code" ).Value.ToString() & ""cmnobj.adp.DeleteCommand = cmnobj.cmdcmnobj.cmd.ExecuteNonQuery()

End Ifcmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"dtable = cmnobj.getdatatable( "partyentry" )partygrid.DataSource = dtable

End Iffillupgrid()partygrid.DataSource = dtablefillup_sno()

End Sub

Private Sub rd_allparty_CheckedChanged( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) Handlesrd_allparty.CheckedChanged

cmbcomp_name.Enabled = Falsefillupgrid()partygrid.DataSource = dtablefillup_sno()

End Sub

Private Sub rd_particular_CheckedChanged( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) Handlesrd_particular.CheckedChanged If rd_particular.Checked = True Then

cmbcomp_name.Enabled = Truecmnobj.myconnection()dtable.Clear()

Dim qty As Stringcmnobj.cmd.Parameters.Clear()qty = "find_party '" & cmbcomp_name.Text & "'"cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandText = qtycmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.adp.Fill(dtable)partygrid.DataSource = dtable

Rahul Dewakar Page 90

Page 91: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 91/123

Report on MGMS

fillup_sno() End If End Sub

Private Sub cmbcomp_name_SelectedIndexChanged( ByVal sender As

System.Object, ByVal e As System.EventArgs) Handlescmbcomp_name.SelectedIndexChangedrd_particular_CheckedChanged(sender, e)

End SubEnd Class

SUPPLIER ENTRY FORM

Public Class Supplier_Entry Dim cmnobj As New commonfunction Public Shared updatedata As Boolean = False

Private Sub Button3_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles Button3.Click Me.Dispose() End Sub

Private Sub cmdblank_Click( ByVal sender As System.Object, ByVal e

As System.EventArgs) Handles cmdblank.Clickcmnobj.textblank( Me.GroupBox1) End Sub

Private Sub cmdsave_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles cmdsave.Click If updatedata = True Then If cmnobj.con.State = ConnectionState.Closed Then

cmnobj.con.Open() End If If txtparty_code.Text = "" Then

MessageBox.Show( "Fill Up The Company Code" , "BlankRecord" , MessageBoxButtons.OK, MessageBoxIcon.Information) Exit Sub End If

Trycmnobj.cmd.Parameters.Clear()cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Text

Rahul Dewakar Page 91

Page 92: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 92/123

Report on MGMS

cmnobj.adp.InsertCommand = cmnobj.cmdcmnobj.cmd.CommandText = "supentry 'U'," &

Convert.ToInt32(txtparty_code.Text) & ",'" & txtparty_name.Text & "',"& Convert.ToInt32(txtparty_phone.Text) & "," &Convert.ToInt32(txtparty_mob.Text) & "," &

Convert.ToInt32(txtparty_fax.Text) & "," &Convert.ToInt32(txtparty_zip.Text) & ",'" & txtparty_email.Text &"','" & txtparty_city.Text & "','" & txtparty_state.Text & "', '" &txtparty_address.Text & "'"

cmnobj.cmd.ExecuteNonQuery()MessageBox.Show( "Successful Updated" , "Update

Dialog" , MessageBoxButtons.OK, MessageBoxIcon.None)cmnobj.textblank( Me.GroupBox1)updatedata = Falsecmdsave.Text = "Save"

Catch ex As ExceptionMessageBox.Show( "Error : 001234 'Record is Exists" ,

"Duplicate" , MessageBoxButtons.OK, MessageBoxIcon.Stop)txtparty_code.Text = ""txtparty_code.Focus()

End Try

Else

If cmnobj.con.State = ConnectionState.Closed Thencmnobj.con.Open()

End If If txtparty_code.Text = "" Then

MessageBox.Show( "Fill Up The Company Code" , "BlankRecord" , MessageBoxButtons.OK, MessageBoxIcon.Information) Exit Sub End If

Trycmnobj.cmd.Parameters.Clear()cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.InsertCommand = cmnobj.cmdcmnobj.cmd.CommandText = "supentry 'S'," &

Convert.ToInt32(txtparty_code.Text) & ",'" & txtparty_name.Text & "',"& txtparty_phone.Text & "," & txtparty_mob.Text & "," &txtparty_fax.Text & "," & txtparty_zip.Text & ",'" &txtparty_email.Text & "','" & txtparty_city.Text & "','" &txtparty_state.Text & "', '" & txtparty_address.Text & "'"

cmnobj.cmd.ExecuteNonQuery()MessageBox.Show( "Successful Saved" , "Saved Dialog" ,

MessageBoxButtons.OK, MessageBoxIcon.None)

Rahul Dewakar Page 92

Page 93: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 93/123

Report on MGMS

cmnobj.textblank( Me.GroupBox1) Catch ex As Exception

MessageBox.Show( "Error : 001234 'Record is Exists" ,"Duplicate" , MessageBoxButtons.OK, MessageBoxIcon.Stop)

txtparty_code.Text = ""

txtparty_code.Focus() End Try End If End Sub

End Class

SUPPLIER RECORD FORM

Public Class Supplier_Record Dim cmnobj As New commonfunction Dim dtable As New DataTable Dim r As Integer

Private Sub Supplier_Record_Load( ByVal sender As System.Object,ByVal e As System.EventArgs) Handles MyBase .Load '----------- fill grid and s.no.

fillupgrid()

grdsuplier.Columns.Add( "Srno" , "Sr. No." )grdsuplier.DataSource = dtablefillup_sno()

'....................... To Heading ...............grdsuplier.Columns( "sup_code" ).HeaderText = "ID"grdsuplier.Columns( "sup_name" ).HeaderText = "SUPPLIER NAME"grdsuplier.Columns( "sup_phone" ).HeaderText = "PHONE NO."grdsuplier.Columns( "sup_mobile" ).HeaderText = "MOBILE NO."grdsuplier.Columns( "sup_fax" ).HeaderText = "FAX NO."grdsuplier.Columns( "sup_zip" ).HeaderText = "ZIPCODE"grdsuplier.Columns( "sup_email" ).HeaderText = "E-MAIL"grdsuplier.Columns( "sup_city" ).HeaderText = "CITY"grdsuplier.Columns( "sup_state" ).HeaderText = "STATE"grdsuplier.Columns( "sup_add" ).HeaderText = "ADDRESS"grdsuplier.Columns( "SUP_name" ).Width = 150

End Sub

Private Sub fillup_sno()

Rahul Dewakar Page 93

Page 94: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 94/123

Report on MGMS

Dim i As Integer For i = 0 To dtable.Rows.Count - 1

grdsuplier.Rows(i).Cells( "Srno" ).Value = i + 1 Next End Sub

Private Sub fillupgrid()cmnobj.cmd.Parameters.Clear()cmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"dtable = cmnobj.getdatatable( "supentry" )

End Sub

Private Sub Exits_Click( ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Exits.Click Me.Dispose() End Sub

Private Sub Edit_Click( ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Edit.Click If Not (grdsuplier.Rows(r).Cells( "sup_code" ).Value.ToString()= "" ) Then

Supplier_Entry.txtparty_code.Text =grdsuplier.Rows(r).Cells( "sup_code" ).Value.ToString()

Supplier_Entry.txtparty_name.Text =grdsuplier.Rows(r).Cells( "sup_name" ).Value.ToString()

Supplier_Entry.txtparty_phone.Text =grdsuplier.Rows(r).Cells( "sup_phone" ).Value.ToString()

Supplier_Entry.txtparty_mob.Text =grdsuplier.Rows(r).Cells( "sup_mobile" ).Value.ToString()

Supplier_Entry.txtparty_fax.Text =grdsuplier.Rows(r).Cells( "sup_fax" ).Value.ToString()

Supplier_Entry.txtparty_zip.Text =grdsuplier.Rows(r).Cells( "sup_zip" ).Value.ToString()

Supplier_Entry.txtparty_email.Text =grdsuplier.Rows(r).Cells( "sup_email" ).Value.ToString()

Supplier_Entry.txtparty_city.Text =grdsuplier.Rows(r).Cells( "sup_city" ).Value.ToString()

Supplier_Entry.txtparty_state.Text =grdsuplier.Rows(r).Cells( "sup_state" ).Value.ToString()

Supplier_Entry.txtparty_address.Text =grdsuplier.Rows(r).Cells( "sup_add" ).Value.ToString() Me.Dispose()

Supplier_Entry.Show()Supplier_Entry.cmdsave.Text = "Update"Supplier_Entry.updatedata = True

Else

Rahul Dewakar Page 94

Page 95: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 95/123

Report on MGMS

MessageBox.Show( "Information : Record is Blank" , "Checkthe Record" , MessageBoxButtons.OK, MessageBoxIcon.Information) End If End Sub

Private Sub grdsuplier_CellContentClick( ByVal sender AsSystem.Object, ByVal e AsSystem.Windows.Forms.DataGridViewCellEventArgs) Handlesgrdsuplier.CellContentClick

r = e.RowIndex End Sub

Private Sub Delete_Click( ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles Delete.Click If Not (grdsuplier.Rows(r).Cells( "sup_code" ).Value.ToString()= "" ) Then If MessageBox.Show( "Are you want to Delete the Record" ,"Delete Record" , MessageBoxButtons.YesNo) =Windows.Forms.DialogResult.Yes Then

cmnobj.myconnection()cmnobj.cmd.Parameters.Clear()cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.cmd.CommandText = "supentry 'D', " &

grdsuplier.Rows(r).Cells( "sup_code" ).Value.ToString() & ""cmnobj.adp.DeleteCommand = cmnobj.cmdcmnobj.cmd.ExecuteNonQuery()

End Ifcmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"dtable = cmnobj.getdatatable( "supentry" )grdsuplier.DataSource = dtable

End Iffillupgrid()grdsuplier.DataSource = dtablefillup_sno()

End Sub

Private Sub txtsup_TextChanged( ByVal sender As System.Object,ByVal e As System.EventArgs) Handles txtsup_find.TextChanged

dtable.Clear()cmnobj.cmd.Parameters.Clear()

Dim qry As Stringqry = "find_sup '" & txtsup_find.Text & "%'"cmnobj.cmd.CommandText = qrycmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Text

Rahul Dewakar Page 95

Page 96: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 96/123

Report on MGMS

cmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.adp.Fill(dtable)grdsuplier.DataSource = dtable

End SubEnd Class

INFORMATION FORM

Public Class Infromationfrm Dim cmnobj As New commonfunction Private Sub Stock_Form_Load( ByVal sender As System.Object, ByVale As System.EventArgs) Handles MyBase .Load If cmnobj.con.State = ConnectionState.Closed Then

cmnobj.con.Open() End If

cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandText = "mstcompany"cmnobj.cmd.CommandType = CommandType.StoredProcedurecmnobj.adp.SelectCommand = cmnobj.cmd

cmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"cmnobj.adp.Fill(cmnobj.dtset, "company" )cmbcomp_name.DataSource = cmnobj.dtset.Tables( "company" )cmbcomp_name.DisplayMember =

cmnobj.dtset.Tables( "company" ).Columns( "comp_name" ).ToString()

Rahul Dewakar Page 96

Page 97: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 97/123

Report on MGMS

End Sub

Private Sub cmbcomp_name_SelectedIndexChanged( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) Handlescmbcomp_name.SelectedIndexChanged

cmnobj.myconnection()cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.cmd.CommandText = "select modelno from mastermodel

where modelcmpname = '" & cmbcomp_name.Text & "'"cmnobj.adp.SelectCommand = cmnobj.cmd

Trycmnobj.dtset.Tables( "models" ).Clear()

Catch ex As Exception End Try

cmnobj.adp.Fill(cmnobj.dtset, "models" )modeldisplay.DataSource = cmnobj.dtset.Tables( "models" )modeldisplay.DisplayMember =

cmnobj.dtset.Tables( "models" ).Columns( "modelno" ).ToString() End Sub

Private Sub modeldisplay_SelectedIndexChanged( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) Handlesmodeldisplay.SelectedIndexChanged Try

cmnobj.cmd.Parameters.Clear()cmnobj.cmd.CommandText = "pur_search '" &

cmbcomp_name.Text & "','" &modeldisplay.Items(modeldisplay.SelectedIndex).ToString() & "'"

cmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.adp.Fill(cmnobj.dtset, "pur_search" )

If (cmnobj.dtset.Tables( "pur_search" ).Rows.Count > 0) ThenTextBox1.Text =

cmnobj.dtset.Tables( "pur_search" ).Rows(0).Item(0) End If Catch ex As Exception End Try

End Sub

End Class

Rahul Dewakar Page 97

Page 98: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 98/123

Report on MGMS

PURCHASE FORM

Public Class Purcharse_Frm Dim cmnobj As New commonfunction Dim A, B, C As Integer

Private Sub Purcharse_Frm_Load( ByVal sender As System.Object,ByVal e As System.EventArgs) Handles MyBase .Load

cmnobj.myconnection()

----------------- To Auto Generate --------------cmnobj.cmd.Connection = cmnobj.con

cmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.cmd.CommandText = "imetable 'I'"

Dim dt As New DataTablecmnobj.adp.Fill(dt)

Trytxtbill_no.Text =

Convert.ToInt32(dt.Rows(0).Item( "bill_no" )) + 1 Catch ex As Exception

txtbill_no.Text = 1 End Try

.................To Add Party Name .............cmnobj.cmd.Parameters.Clear()cmnobj.myconnection()cmnobj.cmd.CommandText = "partyentry"cmnobj.cmd.CommandType = CommandType.StoredProcedurecmnobj.cmd.Connection = cmnobj.concmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"cmnobj.adp.Fill(cmnobj.dtset, "tempoprary" )cmbparty_name.DataSource = cmnobj.dtset.Tables( "tempoprary" )cmbparty_name.ValueMember =

cmnobj.dtset.Tables( "tempoprary" ).Columns(0).ToString()cmbparty_name.DisplayMember =

cmnobj.dtset.Tables( "tempoprary" ).Columns( "party_name" ).ToString()

.................To Add company Name .............cmnobj.cmd.Parameters.Clear()cmnobj.myconnection()

Rahul Dewakar Page 98

Page 99: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 99/123

Report on MGMS

cmnobj.cmd.CommandText = "mstcompany"cmnobj.cmd.CommandType = CommandType.StoredProcedurecmnobj.cmd.Connection = cmnobj.concmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)

cmnobj.cmd.Parameters( "@common" ).Value = "A"cmnobj.adp.Fill(cmnobj.dtset, "comp_name" )cmbcomp_name.DataSource = cmnobj.dtset.Tables( "comp_name" )cmbcomp_name.ValueMember =

cmnobj.dtset.Tables( "tempoprary" ).Columns( "comp_code" ).ToString()cmbcomp_name.DisplayMember =

cmnobj.dtset.Tables( "comp_name" ).Columns( "comp_name" ).ToString()

.................To Add Item Name .............cmnobj.cmd.Parameters.Clear()cmnobj.myconnection()cmnobj.cmd.CommandText = "proceduremodel"cmnobj.cmd.CommandType = CommandType.StoredProcedurecmnobj.cmd.Connection = cmnobj.concmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"cmnobj.adp.Fill(cmnobj.dtset, "tempoprary1" )cmbitem_name.DataSource = cmnobj.dtset.Tables( "tempoprary1" )cmbcomp_name.ValueMember =

cmnobj.dtset.Tables( "tempoprary" ).Columns( "modelcode" ).ToString()cmbitem_name.DisplayMember =

cmnobj.dtset.Tables( "tempoprary1" ).Columns( "modelno" ).ToString()----------------

cmnobj.cmd.Parameters.Clear()cmnobj.myconnection()cmnobj.cmd.CommandText = "masterstr"cmnobj.cmd.CommandType = CommandType.StoredProcedurecmnobj.cmd.Connection = cmnobj.concmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"cmnobj.adp.Fill(cmnobj.dtset, "tempoprary2" )cmbitem_name.DataSource = cmnobj.dtset.Tables( "tempoprary2" )cmbcomp_name.ValueMember =

cmnobj.dtset.Tables( "tempoprary" ).Columns( "modelcode" ).ToString()cmbitem_name.DisplayMember =

cmnobj.dtset.Tables( "tempoprary2" ).Columns( "prd_name" ).ToString()

End Sub

Rahul Dewakar Page 99

Page 100: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 100/123

Page 101: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 101/123

Report on MGMS

cmnobj.cmd.CommandText = " imetable 'S'," &Convert.ToInt32(txtbill_no.Text) & ",'" &grdime.Rows(i).Cells(0).Value.ToString() & "'"

cmnobj.cmd.ExecuteNonQuery() Next

Catch ex As ExceptionMessageBox.Show( "Error : 001234 'Record is Exists" ,

"Duplicate" , MessageBoxButtons.OK, MessageBoxIcon.Stop)txtcmpcode.Text = ""txtcmpcode.Focus()

End Try

End Sub

Private Sub Mob_exit_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles Mob_exit.Click Me.Dispose() End Sub

Private Sub Button1_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles Button1.Click

cmnobj.textblank( Me.GroupBox1)TXT_TAX.Text = ""txt_stotal.Text = ""txt_gtotal.Text = ""

End Sub

Private Sub cmbcomp_name_SelectedIndexChanged( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) Handlescmbcomp_name.SelectedIndexChanged If cmnobj.con.State = ConnectionState.Closed Then

cmnobj.con.Open() End If

cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.cmd.CommandText = "select modelno from mastermodel

where modelcmpname = '" & cmbcomp_name.Text & "'"cmnobj.adp.SelectCommand = cmnobj.cmd

Trycmnobj.dtset.Tables( "models" ).Clear()

Catch ex As Exception End Try

Rahul Dewakar Page 101

Page 102: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 102/123

Report on MGMS

cmnobj.adp.Fill(cmnobj.dtset, "models" )cmbitem_name.DataSource = cmnobj.dtset.Tables( "models" )cmbitem_name.DisplayMember =

cmnobj.dtset.Tables( "models" ).Columns( "modelno" ).ToString() End Sub

Private Sub txtbill_no_KeyDown( ByVal sender As System.Object,ByVal e As System.Windows.Forms.KeyEventArgs) Handlestxtbill_no.KeyDown

If e.KeyCode = Keys.Enter Thencmnobj.cmd.Parameters.Clear()cmnobj.cmd.CommandText = "purcs 'A'," &

Convert.ToInt32(txtbill_no.Text)cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.adp.Fill(cmnobj.dtset, "dtpurcs" )txtquantity.Text =

cmnobj.dtset.Tables( "dtpurcs" ).Rows(0).Item( "prod_qty" ).ToString()cmbitem_type.Text =

cmnobj.dtset.Tables( "dtpurcs" ).Rows(0).Item( "prod_type" ).ToString()cmbcomp_name.Text =

cmnobj.dtset.Tables( "dtpurcs" ).Rows(0).Item( "prod_cmpname" ).ToString()cmbitem_name.Text =

cmnobj.dtset.Tables( "dtpurcs" ).Rows(0).Item( "prod_name" ).ToString()cmbparty_name.Text =

cmnobj.dtset.Tables( "dtpurcs" ).Rows(0).Item( "party_name" ).ToString()txtrs.Text =

cmnobj.dtset.Tables( "dtpurcs" ).Rows(0).Item( "prod_rs" ).ToString()TXT_TAX.Text =

cmnobj.dtset.Tables( "dtpurcs" ).Rows(0).Item( "prod_tax" ).ToString()txt_stotal.Text =

cmnobj.dtset.Tables( "dtpurcs" ).Rows(0).Item( "prod_stotal" ).ToString()txt_gtotal.Text =

cmnobj.dtset.Tables( "dtpurcs" ).Rows(0).Item( "prod_gtotal" ).ToString()

cmnobj.cmd.Parameters.Clear()cmnobj.cmd.CommandText = "sp_ime_table " &

Convert.ToInt32(txtbill_no.Text)cmnobj.cmd.Connection = cmnobj.concmnobj.cmd.CommandType = CommandType.Textcmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.adp.Fill(cmnobj.dtset, "dtime" )grdime.Columns.Clear()grdime.DataSource = cmnobj.dtset.Tables( "dtime" )grdime.Columns( "bill_no" ).Visible = False

Rahul Dewakar Page 102

Page 103: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 103/123

Report on MGMS

End If End Sub

Private Sub txtbill_no_KeyPress( ByVal sender As System.Object,

ByVal e As System.Windows.Forms.KeyPressEventArgs) Handles _txtbill_no.KeyPress, txt_gtotal.KeyPress, txt_stotal.KeyPress,TXT_TAX.KeyPress, txtquantity.KeyPress, txtrs.KeyPress

cmnobj.numericvalue(sender, e)

End Sub

Private Sub grdime_KeyPress( ByVal sender As System.Object, ByVale As System.Windows.Forms.KeyPressEventArgs) Handles grdime.KeyPress

cmnobj.convertuppercase(sender) End Sub

Private Sub grdime_CellContentClick( ByVal sender AsSystem.Object, ByVal e AsSystem.Windows.Forms.DataGridViewCellEventArgs) Handlesgrdime.CellContentClick

End Sub

Private Sub txtquantity_TextChanged( ByVal sender AsSystem.Object, ByVal e As System.EventArgs) Handlestxtquantity.TextChanged

txt_stotal.Text = Val(txtrs.Text) * Val(txtquantity.Text)txt_gtotal.Text = Val(txtrs.Text) * Val(txtquantity.Text)

End Sub

Private Sub TXT_TAX_TextChanged( ByVal sender As System.Object,ByVal e As System.EventArgs) Handles TXT_TAX.TextChanged Dim a, b, c As Integer

txt_gtotal.Text += Val(txt_stotal.Text) * Val(TXT_TAX.Text) /100 End SubEnd Class

SALE FORM

Rahul Dewakar Page 103

Page 104: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 104/123

Report on MGMS

Public Class Sale Dim cmnobj As New commonfunction

Private Sub Sale_Load( ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles MyBase .Load

'.................To Add Supplier's Name .............cmnobj.cmd.Parameters.Clear()cmnobj.myconnection()cmnobj.cmd.CommandText = "supentry"cmnobj.cmd.CommandType = CommandType.StoredProcedurecmnobj.cmd.Connection = cmnobj.concmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"cmnobj.adp.Fill(cmnobj.dtset, "tempoprary" )cmbparty_name.DataSource = cmnobj.dtset.Tables( "tempoprary" )

cmbparty_name.DisplayMember = cmnobj.dtset.Tables( "tempoprary" ).Columns( "sup_name" ).ToString()

'----------------- to add Company in combocmnobj.cmd.Parameters.Clear()cmnobj.myconnection()cmnobj.cmd.CommandText = "mstcompany"cmnobj.cmd.CommandType = CommandType.StoredProcedurecmnobj.cmd.Connection = cmnobj.concmnobj.adp.SelectCommand = cmnobj.cmdcmnobj.cmd.Parameters.Add( "@common" , SqlDbType.VarChar, 1)cmnobj.cmd.Parameters( "@common" ).Value = "A"cmnobj.adp.Fill(cmnobj.dtset, "supname" )cmbcomp_name.DataSource = cmnobj.dtset.Tables( "supname" )cmbcomp_name.DisplayMember = cmnobj.dtset.Tables

( "supname" ).Columns( "comp_name" ).ToString() End Sub

Private Sub txtbill_no_KeyPress( ByVal sender As System.Object,ByVal e As System.Windows.Forms.KeyPressEventArgs) Handlestxtbill_no.KeyPress, txtquantity.KeyPress, txtrs.KeyPress,txt_gtotal.KeyPress, txt_tax.KeyPress

cmnobj.numericvalue(sender, e) End Sub

Private Sub blank_Click( ByVal sender As System.Object, ByVal e AsSystem.EventArgs) Handles cmdblank.Click

cmnobj.textblank( Me.GroupBox1) End Sub

Rahul Dewakar Page 104

Page 105: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 105/123

Report on MGMS

Private Sub cmdexit_Click( ByVal sender As System.Object, ByVal eAs System.EventArgs) Handles cmdexit.Click Me.Dispose() End SubEnd Class

SQL DATABASE CODING

Rahul Dewakar Page 105

Page 106: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 106/123

Report on MGMS

(1). COMPANY MASTER STORE PROCEDURE

use mgmscreate table mastercompany(comp_code int, comp_name varchar(20)primary key)insert into mastercompany VALUES(111,'NOKIA')select * from mastercompany

Create procedure mstcompany@common varchar(1),@compid int=0,@compname varchar(20)=''asif @common ='S'

begininsert into mastercompany(comp_code, comp_name) values(@compid,@compname)endelse if @common='A'

beginselect * from mastercompanyendelse if @common='C'

beginselect comp_name from mastercompanyend

else if @common='U' beginupdate mastercompany set comp_name = @compname,comp_code=@compid where comp_name =@compnameend

else if @common='D' begindelete from mastercompany where comp_code=@compidend

(2). MODEL MASTER STORE PROCEDURE

create database MGMS

Rahul Dewakar Page 106

Page 107: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 107/123

Report on MGMS

use mgmscreate table mastermodel(modelcode int primary key, modelcmpname varchar(20),modelnovarchar(20),modelremark varchar(50))

create procedure proceduremodel

@common varchar(1),@mdlcode int=0,@mdlcmpname varchar(20)='',@mdlno varchar(20)='',@mdlremark varchar(50)=''as

if @common='S' begininsert into mastermodel(modelcode,modelcmpname,modelno,modelremark) values(@mdlcode,@mdlcmpname,@mdlno,@mdlremark)

endelse if @common='A' beginselect modelcode,modelcmpname,modelno,modelremark from mastermodelendelse if @common ='D'

begindelete from mastermodel where modelcode = @mdlcodeendelse if @common='U'

begin

update mastermodel set modelcode =@mdlcode, modelcmpname=@mdlcmpname,modelno=@mdlno,modelremark=@mdlremark where modelcode =@mdlcodeend

create procedure findout@indexcode int=0asselect * from mastermodel where modelcode = @indexcode

create procedure finds@models varchar(15)=''

asselect * from mastermodel where modelno =@models

create procedure search_company@comp varchar(20)=''asselect * from mastermodel where modelcmpname =@comp

Rahul Dewakar Page 107

Page 108: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 108/123

Report on MGMS

create procedure search_model@comp varchar(20)=''asselect * from mastermodel where modelno =@comp

(3). SIM, TOP-UP, RECHARGE COUPON MASTER STOREPROCEDURE

use mgmscreate table master_str(prd_code int, prd_type varchar(20),prd_cmpname varchar(30),prd_namevarchar(30),prd_rs int,prd_tvalue int,prd_ttime varchar(20),prd_remark varchar(80))insert into master_str values(1,'sim','airtel','lifetime',999,300, 'three month','limit time')select * from master_str

alter procedure masterstr @common varchar(1)='',@prdcode int=0,@prdtype varchar(20)='',@prdcmpname varchar(30)='',@prdname varchar(30)='',@prdrs int=0,@prdtvalue int=0,@prdttime varchar(20)='',@prdremark varchar(80)=''as

if @common='A' beginselect * from master_str end

else if @common='S' begininsert into master_str (prd_code,prd_type,prd_cmpname,prd_name,prd_rs,prd_tvalue, prd_ttime,

prd_remark) values(@prdcode,@prdtype,@prdcmpname,@prdname,@prdrs,@prdtvalue,@prdttime,@prdremark)end

else if @common='U' beginupdate master_str set

prd_code=@prdcode,prd_type=@prdtype,prd_cmpname=@prdcmpname,prd_name=@prdname,prd_rs=@prdrs,prd_tvalue=@prdtvalue,prd_ttime=@prdttime,prd_remark=@prdremark where

prd_code=@prdcode

Rahul Dewakar Page 108

Page 109: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 109/123

Report on MGMS

end

else if @common='D' begindelete from master_str where prd_code=@prdcode

end

create procedure find_type@party varchar(20)=''asselect * from master_str where prd_type=@party

(4). COMPANY ENTRY STORE PROCEDURE

use mgmscreate table companyentry(cmpcode int primary key, cmpname varchar(30),cmpshopnamevarchar(50),cmpemail varchar(50),cmpfax int, cmpphone int, cmpmobile int,cmpdate datetime, cmpcityvarchar(15), cmpstate varchar(15),cmpzipcode int , cmpaddress varchar(100))insert into companyentry values (788,'hutch','J-Mobile','Yahoo.com',2343443,3245434,3453434,'12/12/2005','jodhpur','rajasthan',3453453,'BishnoiDharamShala')update companyentry set cmpname ='BSNL' where cmpcode=323select * from companyentry

alter procedure compentry@common varchar(1)='',@compcode int=0,@compname varchar(30)='',@compshopname varchar(50)='',@compemail varchar(50)='',@compfax int=0,@compphone int=0,@compmobile int=0,@compdate datetime='',@compcity varchar(15)='',@compstate varchar(15)='',@compzipcode int=0,@compaddress varchar(100)=''as

if @common='A' beginselect * from companyentryendelse if @common='S'

Rahul Dewakar Page 109

Page 110: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 110/123

Report on MGMS

begininsert into companyentry(cmpcode,cmpname,cmpshopname,cmpemail,cmpfax,cmpphone,cmpmobile,cmpdate,cmpcity,cmpstate,cmpzipcode,cmpaddress) values(@compcode,@compname,@compshopname,@compemail,@compfax,@compphone,@compmobile,@compdate,@compcity,@compstate,@compzipcode,@compaddress)

endelse if @common='U'

beginupdate companyentry setcmpcode=@compcode,cmpname=@compname,cmpshopname=@compshopname,cmpemail=@compemail,cmpfax=@compfax,cmpphone=@compphone,cmpmobile=@compmobile,cmpdate=@compdate,cmpcity=@compcity,cmpstate=@compstate,cmpzipcode=@compzipcode,cmpaddress=@compaddresswhere cmpcode=@compcodeendelse if @common='D'

begin

delete from companyentry where cmpcode=@compcodeendelse if @common ='Z'

beginselect cmpname from companyentry where cmpname=@compnameend

create procedure findouts@indexno int=0as

select * from companyentry where cmpcode =@indexno

create procedure find_company@company varchar(20)=''asselect * from companyentry where cmpname=@company

(5). EMPLOYEE ENTRY STORE PROCEDURE

Rahul Dewakar Page 110

Page 111: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 111/123

Page 112: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 112/123

Report on MGMS

@empfname,@empdob, @empms, @empsex,@empcat,@empsal,@empphone, @empmob,@empfax,@empemail, @empccity,@empcstate,@empczip,@empcadd,@emppcity,@emppstate, @emppzip,@emppadd)endelse if @common='U'

beginupdate emp_entry set emp_code=@empcode,emp_name=@empname,emp_date=@empdate,emp_fname=@empfname,emp_dob=@empdob,emp_ms=@empms,emp_sex=@empsex,emp_cat=@em

pcat,emp_sal=@empsal,emp_phone=@empphone,emp_mob=@empmob,emp_fax=@empfax,emp_email=@empemail,emp_ccity=@empccity,emp_cstate=@empcstate,emp_czip=@empczip,emp_cadd=@em

pcadd,emp_pcity=@emppcity,emp_pstate=@emppstate,emp_pzip=@emppzip,emp_padd=@emppaddwhere emp_code=@empcodeendelse if @common='D'

begindelete from emp_entry where emp_code=@empcode

end

create procedure find_emp_comp@emp_id varchar(20)=''asselect * from emp_entry where emp_code=@emp_id

(6). IME TABLE STORE PROCEDURE

use mgmscreate table ime_table(bill_no int, ime_no varchar primary key)

alter procedure imetable@common varchar(1)='',@billno int=0,@imeno varchar(50)=''

as

if @common='A' beginselect * from ime_tableendelse if @common='S'

Rahul Dewakar Page 112

Page 113: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 113/123

Report on MGMS

begininsert into ime_table(bill_no,ime_no) values(@billno,@imeno)endelse if @common='I'

beginselect max(bill_no) from ime_tableend

create procedure search_ime@imeno nvarchar(25) = ''asselect* from ime_table where ime_no like @imeno

create procedure search_billno@billno nvarchar(20) = ''asselect* from ime_table where bill_no like @billno

create procedure find_id@idno nvarchar(20)=''asselect * from companyentry where cmpcode like @idno

create procedure find_sup@pname nvarchar(20)=''asselect * from sup_entry where sup_code like @pname

(7). PARTY ENTRY STORE PROCEDURE

use mgmscreate table party_entry(party_code int, party_name varchar(50),party_jdate datetime,

party_phone int,party_mobile int,party_fax int,party_zip int, party_email varchar(100), party_city varchar(20),party_state varchar(20),party_add varchar(100))

alter procedure partyentry

Rahul Dewakar Page 113

Page 114: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 114/123

Report on MGMS

@common varchar(1)='',@partycode int =0,@partyname varchar(50)='',@partyjdate datetime='',

@partyphone int=0,@partymobile int=0,@partyfax int=0,@partyzip int=0,@partyemail varchar(100)='',@partycity varchar(20)='',@partystate varchar(20)='',@partyadd varchar(100)=''as

if @common='A' beginselect * from party_entryendelse if @common='S'

begininsert into

party_entry(party_code,party_name,party_jdate,party_phone,party_mobile,party_fax,party_zip,party_email,party_city,party_state,party_add)values (@partycode,@partyname,

@partyjdate,@partyphone,@partymobile,@partyfax,@partyzip,@partyemail,@partycity,@partystate,@partyadd)endelse if @common ='U'

beginupdate party_entry set

party_code=@partycode,party_name=@partyname,party_jdate=@partyjdate,party_phone=@partyphone,party_mobile=@partymobile,party_fax=@partyfax,party_zip=@partyzi

p,party_email=@partyemail,party_city=@partycity,party_state=@partystate,party_add=@partyadd where party_code=@partycodeendelse if @common='D'

begindelete from party_entry where party_code=@partycodeend

create procedure find_party

Rahul Dewakar Page 114

Page 115: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 115/123

Report on MGMS

@party varchar(50)=''asselect * from party_entry where party_name=@party

(8). SUPPLIER ENTRY STORE PROCEDURE

use mgmscreate table Sup_entry(sup_code int, sup_name varchar(50),sup_phone int,sup_mobileint,sup_fax int,sup_zip int, sup_email varchar(100),sup_city varchar(20),sup_statevarchar(20),sup_add varchar(100))

alter procedure supentry@common varchar(1)='',@supcode int =0,@supname varchar(50)='',@supphone int=0,@supmobile int=0,@supfax int=0,@supzip int=0,

@supemail varchar(100)='',@supcity varchar(20)='',@supstate varchar(20)='',@supadd varchar(100)=''as

if @common='A' beginselect * from sup_entryend

else if @common='S' begininsert intosup_entry(sup_code,sup_name,sup_phone,sup_mobile,sup_fax,sup_zip,sup_email,sup_ci

Rahul Dewakar Page 115

Page 116: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 116/123

Report on MGMS

ty,sup_state,sup_add)values(@supcode,@supname,@supphone,@supmobile,@supfax,@supzip,@supemail,@supcity,@supstate,@supadd)end

else if @common='D' begindelete from sup_entry where sup_code=@supcodeendelse if @common='U'

beginupdate sup_entry set sup_code=@supcode,sup_name=@supname, sup_phone =@supphone,sup_mobile=@supmobile,sup_fax=@supfax,sup_zip=@supzip,sup_email=@supemail,sup_city=@supcity,sup_state=@supstate,sup_add=@supadd wheresup_code=@supcodeend

(9). PURCHASE PROCEDURE

use mgmscreate table pur(bill_no int primary key ,prod_date datetime, prod_type varchar (20),prod_cmpname varchar(20),prod_name varchar(20),party_name varchar(50),prod_rsint, prod_qty int,prod_stotal int, prod_tax int, prod_gtotal int)

alter procedure purcs@common varchar(1)='',@billno int=0,@proddate datetime ='',@prodtype varchar(20)='',@prodcmpname varchar(20)='',@prodname varchar(20)='',@partyname varchar(50)='',@prodrs int=0,@prodqty int=0,@prodstotal int =0,@prodtax int=0,@prodgtotal int =0as

Rahul Dewakar Page 116

Page 117: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 117/123

Report on MGMS

if @common='A' beginselect * from pur end

if @common='S' begininsert into

pur(bill_no,prod_date,prod_type,prod_cmpname,prod_name,party_name,prod_rs,prod_qty,prod_stotal,prod_tax,prod_gtotal) values(@billno,@proddate,@prodtype,@prodcmpname,@prodname,@partyname,@prodrs,@prodqty,@prodstotal,@prodtax,@

prodgtotal)endif @common='U'

beginupdate pur set bill_no=@billno,prod_date=@proddate , prod_type=@prodtype ,

prod_cmpname=@prodcmpname,prod_name=@prodname,party_name=@partyname,prod_rs=@prodrs,prod_qty=@prodqty,prod_stotal=@prodstotal,prod_tax=@prodtax,prod_gtotal=@prodgtotal where bill_no=@billnoend

Rahul Dewakar Page 117

Page 118: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 118/123

Report on MGMS

5) SYSTEM TESTING

5.1) Preparation of Test Data :

Test data has been prepared for each and every module and for every process. Test data for whole

integrated system is also prepared and system has been tested for different errors.

5.2) Testing:

Software testing is a critical element of quality assurance and represents the ultimate review of

specification, design plus coding. Following is a testing strategy as laid out for testing of “hotelmanagement system”.

Testing configuration :

Testing was done in various phases. A “Bottom Up” testing methodology was followed where all

modules tested before proceeding to integrating them as a whole.

Testing was done in following phases:

1. Unit Testing

2. Feature Testing

3. System Testing

Unit testing:

Unit testing is a white box testing. The goal is to verify a unit of design i.e. module. Unit testing is done

to ensure 100% codes coverage and all modules are tested exhaustively. After this phase the code isfrozen so that further testing is executed without changing the code. Unit test cases are written for each

module before commencement of coding are carried out in parallel with development. These cases are

designed to cover instance such as module interface, local data structure, boundary condition and basic

Rahul Dewakar Page 118

Page 119: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 119/123

Report on MGMS

error handling path through this control structure.We designed different modules for different purposes.

We tested each modules and its each method individually for its proper functionality.

Feature Testing:

The basic objective of this testing is to test whether the module confirms according to the feature

requirements and specifications. Module Testing is Black Box in nature and aims to test the complete

functionality of module including the basic error handling. We tested different modules successfully.

System Performance Testing:

Performance testing is design to test the run time performance of software within the context of anIntegrated system. Performance testing occurs through out all steps in the testing process. Performancetests are sometimes coupled with stress testing and often require both hardware and softwareinstrumentation

6) SYSTEM IMPLEMENTATION

Following installations are required for implementing this project:

Windows operating system 2000/xp.

VB.NET.

SQL Server.

After installing the above requirements the system can be implemented in any Mobile Gallery. The user

does not require any special training. There is no need specialization in any language. The user requires

only basic knowledge of computers.

Rahul Dewakar Page 119

Page 120: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 120/123

Report on MGMS

7) CONCLUSION

7.1) Advantages:

The “MOBILE GALLERY MANAGEMENT SYSTEM” is advantageous to both user and thedeveloper. It is advantageous for user since managing the data/information has become easy. It is

advantageous for developer since developer can make it more attractive and easy by adding various

modules.

7.2) Limitations:

Since we just want to know how the data/information in Mobile Gallery is managed, we have includedfew modules in our project.

So, our project has limited in following areas:

• Printing Report is not completed

• Linux/Unix does not support.

Rahul Dewakar Page 120

Page 121: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 121/123

Report on MGMS

7.3) Further Scope:

In spite of our rigorous effort we had not been able to assimilate all the features of an ideal Mobile

Gallery, since we have not included every area, which comes in “MGMS”, the project can be further

enhanced to include the following modules.

8. RESEARCH METHODOLOGY

TOOLS/PLATFORM, HARDWARE & SOFTWARE REQUIRMENT

TOOLS /PLATFORM & SOFTWARE

The Following Are Software Requirement For Project:

Front end : Microsoft VB.net

Operating System : Window 2000/XP

RDBMS : SQL Server 2000/MS-Access

HARDWARE

The Following Fare Minimum Hardware Requirement for Project.

Computer : Intel or Compatible Pentium 1.66 GHz

or Higher

Rahul Dewakar Page 121

Page 122: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 122/123

Page 123: MGMS - Copy

8/7/2019 MGMS - Copy

http://slidepdf.com/reader/full/mgms-copy 123/123

Report on MGMS