Garment Export1
Transcript of Garment Export1
-
8/19/2019 Garment Export1
1/92
SYNOPSIS
SYNOPSIS
-
8/19/2019 Garment Export1
2/92
The main objective of Garment Export Management System is to give the details
of transaction.
This project is to maintain the Garments and also its activities.
It includes the Customer Master Item Master Supplier Master etc! This includes the
"urchase Entry #orm and Sales Entry #orm for the products.
This also includes the stoc$ maintenance of the product and it
Includes the reorder %uantity of the products. It includes the account maintenance for
regular customers &ho are purchasing the Garments regularly. It has the "urchase return
and sales return as for the product is to get returned from the company and the customer
to the company.
This includes the follo&ing information such as'
Customer Master
Item Master
Supplier Master
(arn Master
"urchase
)rder Entry
Item *elivery
Invoice
This module includes the Customer Master Item Master Supplier Master "urchase
Master )rder +eceiving Master )rder "rocessing Master )rder *elivery Master. In the
transaction Master "urchase etc!
The next master is transaction master. This includes the "urchase invoice.
This gives you the details about invoice that &as given by the supplier.
The detailed reports are generated for the project under various
heads in the order of Customer Master Item Master Supplier Master "urchase )rder
Entry Item *elivery.
,
-
8/19/2019 Garment Export1
3/92
CONTEN
TS
-
-
8/19/2019 Garment Export1
4/92
CONTENTS
CE+TI#ICTEC/0)12E*GEME0T
S(0)"SIS
C3"TE+ TIT2E "age 0o
4 Introduction
4.4"roject overvie& 4-
4.,)bjective of the "roject 45
4.-+evie& of the Existing System 46
, +e%uirements nalysis
,.4"roposed System 47
,., System +e%uirements 48 ,.- Soft&are 9ustification ,:
,.5Cost estimating and scheduling ,4
- *esign and *evelopment "rocess
-.4 *esign process
-.4.4 Module "rocess ,5 -.4., *atabase *esign ,;
-.4.- Input *esign -:
-.4.5 )bjective of Input design -< -.4.6 )utput design -;
-., *ata #lo& *esign 5-
5 Testing and implementation
5.4 System testing 5<
5., System Implementation 5; 5.,.4 Implementation "rocedure 58
5.,., Sample Coding 64
5.,.- )perational *ocument
-
8/19/2019 Garment Export1
5/92
=ibliography
-
8/19/2019 Garment Export1
6/92
CHAPTER
-1
-
8/19/2019 Garment Export1
7/92
INTRODUCTI
ON
GARMENT EXPORT MANAGEMENT SYSTEM
4.4 "+)9ECT )>E+>IE1
This project is done &ith >=.0ET as front end ? S@2 Server ,::: as
=ac$end in the 1indo&sA B" platform. The main theme of this project Garment Export
Management SystemD is to automate the process of the day to day activities in the
Garment &hich is already been a manual system.
This project is divided into several modules coded automatically. The
Coded modules are integrated further to accomplish the objective that is the automation
process.
7
-
8/19/2019 Garment Export1
8/92
1.2 OBJECTIVE OF THE PROJECT
The main objective of computeriation in any field is to ma$e menAs job
easier. The ability of the computer is to compute store and retrieve the data %uic$ly and
effectively. It is as effective tool to solve the dra&bac$s of manual entry and their
computation.
Garment Export Management system'
4. The system gives information about the Exporting Customers of the Garment
industry.
,. The System should provide easy retrieval and input data.
-. 2et us $no& the "urchase details and Supplier *etails of materials &ithout any
time.
5. "rovides the information about the +eceiving )rders from the customer.
6. 2et us calculate the value of the order easily.
-
8/19/2019 Garment Export1
9/92
1.3 REVIEW OF THE EXISTING SYSTEM
The existing System is not computeried and it is done manually. 3ere all the
details are stored in separate files. There fore the storage and retrieval of data becomes
very tedious and re%uires lot of time and human effort. Fpdating the data cannot be made
easily. +etrieval of Sales and purchase details are very hard. *ebugging of errors is very
difficult.
1hile retrieving the data or updating the data the &hole procedure has to be
remembered in the current system. There fore &e have to s&itch on to a ne& system that
is advantageous and easier than this current system. There is no security for the data.
*ra& bac$s'
• Since the existing system is manual there are changes of committing
fre%uent errors.
• Many staffs have to be appointed for this process.
• In case of preparing any reports the end user has to go through every file.
• The maintenance of documents in separate registers is very difficult to
handle.
8
-
8/19/2019 Garment Export1
10/92
• There are changes of misusing the system.
• 1astage of time and money due to manual system.
4:
-
8/19/2019 Garment Export1
11/92
CHAPTER
– 2
2.1 PROFILE OF THE PROPOSED PROJECT
PROPOSED SYSTEM
ll the above limitation &as removed. The proposed system is capable of helping
the management to $no& the customers and also helps to $no& &hat type of customers is
to get intended to get &hat type of "roducts.
The proposed system satisfies its benefits by the &ay in &hich it functions and
satisfies the end user according their needs. The computer can be operating at high speed
store and retrieve large volume of data very %uic$ly. The proposed system is a system
using visual Studio .0ET as front End and S@2 Server ,::: as =ac$ End tool under
1indo&s B".
• Effective Management
44
-
8/19/2019 Garment Export1
12/92
• Calculating the need of Exporter and the customer
• Instant verification of reports and stoc$s
• Error #ree and menu driven interface
•Saves lot of time.
4,
-
8/19/2019 Garment Export1
13/92
SYSTEM
REQUIREMENTS
2.2 SYSTEM REQUIREMENTS
,.,.4 3ard&are Configuration
"rocessor ' "- Intel 4.: G3
C"F Type ' TB
+M ' 4,; M=
Cache Memory ' ,6< /=
3ard *is$ ' ,5: G=
#loppy *is$ ' 4.55 M=
Mouse ' )ptical Mouse
/eyboard ' Standard /eyboard
4-
-
8/19/2019 Garment Export1
14/92
Monitor ' 46AA Color Monitor
"rinter ' 2aser "rinter
,.,., Soft&are Configuration
)perating System ' 1indo&s B"
#ront End ' >isual Studio .0ET
=ac$ End ' S@2 Server ,:::
+eports ' Crystal +eport
2.3. SOFTWARE JUSTIFICATION
The program is &or$ing in the &indo&s environment. In the &indo&s
environment
The user uses a $eyboard and mouse to ma$e selection.
1e can clic$ the buttons to enter the text and to the lists.
The user has the major control over the program flo&
Fser might run several programs at once.
>isual Studio basic is an idea programming language for developing professional
application for Microsoft &indo&s. It has a lot of builtin components Graphical user
interface for creating po&erful applications. >isual Studio is user friendly. #aster
application development. >isual Studio uses open database connectivity HS@2 to
45
-
8/19/2019 Garment Export1
15/92
provide access to oracle and other database. >isual Studio supports multiple document
interface HS@2 format.
ll version of visual Studio is po&erful even the smallest version. The free
control creation edition re%uires around 4:M= of hard dis$ space every fast 5;< or
"entium and at least 4,;M= of +M.
full installation of the most po&erful version at visual basic it re%uires more
than 4::M= of hard dis$ space.
2.4 COST ESTIMATION AND SCHEDULING
The time scheduled to complete this project is about - months.
1e have to use >=.0ET as front end and S%l Server,::: as bac$end on 1indo&s
B" "latform.
The cost is calculated on hourly basis i.e. hours per day.
Man po&er J -,K6 J 4
-
8/19/2019 Garment Export1
16/92
-
8/19/2019 Garment Export1
17/92
1. YARN DETAILS
(+0 *ETI2S
(I* 0umeric
(arnItemI* Integer
(arnItem0ame >archar
(arnItem*esc >archar
(arnItem+ate >archar
47
-
8/19/2019 Garment Export1
18/92
2. SUPPLIER DETAILS
SF""2IE+ *ETI2S
SLI* Integer
SL0ame >archar
dd >archar
City >archar
"incode >archar
"hone >archar
EMail >archar
3. ITEM DETAILS
ITEM *ETI2S
ItemLId Integer
ItemL0ame >archar
ItemLdesc >archar
+ate Integer
4;
-
8/19/2019 Garment Export1
19/92
4. CUSTOMER DETAILS
CFST)ME+ *ETI2S
CustLId Integer
CustL0ame >archar
ddress >archar
City >archar
"incode >archar
"hone no >archar
Email >archar
5. PURCHASE
"F+C3SE
"urchaseI* Integer
"urchase*ate *ateTime
SupplierI* Integer
(arnItemI* Integer
@uantity Integer
. ORDER ENTRY
)+*E+ E0T+(
)rder0o Integer
48
-
8/19/2019 Garment Export1
20/92
)rder*ate *ateTime
CustomerI* Integer
ItemI* Integer
@uantity Integer
!. INVOICE
I0>)ICE
=ill0o Integer
=ill*ate *ateTime
CustomerI* Integer
ItemI* Integer
@uantity Integer
". ITEM DELIVERY
ITEM *E2I>E+(
*elivery *ate *ateTime
,:
-
8/19/2019 Garment Export1
21/92
ItemI* Integer
>ehicle >archar
+emar$s >archar
3.1.2 DATABASE DESIGN
The proposed system stores the information that is made as tables in
ccess database. Each table in this access can be named as a field or a column. The table also
contains records that can be described as a set of fields. ll the records are the same set of fields
&ith different information.
Each table contains $ey filed that establish relationship in an access
database. It sho&s ho& the records are stored. There are primary $ey fields are used to uni%uely
identify a record in a table. There are fields that contain primary $ey from another table called
foreign $eys.
,4
-
8/19/2019 Garment Export1
22/92
,,
-
8/19/2019 Garment Export1
23/92
INPUT
SCREENS
3.1.3 INPUT SCREENS
ll system need data as input and the major thrust in the area for the analyst is the
business of first getting data from the environment and then putting it into a format
suitable for the computers. The basic concepts carries that the data goes through t&o
stages before it actually becomes input for the systems. #irst it is captures form the
external environment and then it is put in to a source document. 0ext it is fed in to the
computer during the data entry session and is validate before being converted into a
machine readable format.
,-
-
8/19/2019 Garment Export1
24/92
GARMENT MANAGEMENT SYSTEM
LOGIN PAGE
,5
-
8/19/2019 Garment Export1
25/92
HOME PAGE
,6
-
8/19/2019 Garment Export1
26/92
SUPPLIER MASTER
,
-
8/19/2019 Garment Export1
27/92
ITEM MASTER
,7
-
8/19/2019 Garment Export1
28/92
PURCHASE
,;
-
8/19/2019 Garment Export1
29/92
INVOICE
,8
-
8/19/2019 Garment Export1
30/92
ORDER ENTRY
-:
-
8/19/2019 Garment Export1
31/92
ITEM DELIVERY
-4
-
8/19/2019 Garment Export1
32/92
3.1.3 O#$%&'()%* +, (-/' 0%*(-
-,
-
8/19/2019 Garment Export1
33/92
Input design consists of developing specification and procedure for data preparation.
*ata entry can be achieved by introducing the computers to rent data from a &ritten or
printed document or it can occur by having people to enter data into the system. Input design
focuses on the follo&ing objectives'
The highest possible level of accuracy
To ensure that the &ay to input data is understood and is acceptable by the user.
Several activities have to be carried out as the part of the overall input process.
They include some of the follo&ing'
*ata recording Hdata collection
*ata transcription Hdata transfer to I" form
*ata conversion Hconverting the input data into computer acceptable form
*ata verification Hchec$ing the input data by program &hen it is entered in to the soft&are
*ata correction Hcorrects the errors that are found in any of he earlier stages.
The various data that are needed for the system are accepted through various forms and only
valid data are stored in table. 3ence the forms are designed in such a &ay that the data is
chec$ed for validity at the point of data entry itself. The integrity and consistency of data is
ta$en care by the language employed.
The input screen should be designed in such a &ay that it is extremely user #riendly and
aimed at ma$ing the user at is full comfort &hile ma$ing entries.
--
-
8/19/2019 Garment Export1
34/92
OUTPUT
SCREENS
-5
-
8/19/2019 Garment Export1
35/92
3.1.4 OUTPUT SCREEN
Computer output is the most important direct source of information to the user
efficient intelligent output design &ill improve the user friendliness and help the use
in %uic$ decisionma$ing &hen the designed one has tooN
Identify the specific output that is needed.
Select methods for presenting the information.
Create document report or other format that.
Contain the information produced by the system.
-6
-
8/19/2019 Garment Export1
36/92
DATA REPORTS
CUSTOMER REPORT
-
-
8/19/2019 Garment Export1
37/92
ORDER REPORT
-7
-
8/19/2019 Garment Export1
38/92
PURCHASE REPORT
-;
-
8/19/2019 Garment Export1
39/92
INVOICE REPORT
-8
-
8/19/2019 Garment Export1
40/92
CHAPTER-5
5:
-
8/19/2019 Garment Export1
41/92
54
-
8/19/2019 Garment Export1
42/92
SYSTEM ESTING AND
IMPLEMENTATION
TESTING AND IMPLEMENTATION
4.1. SYSTEM TESTING
Testing is a process of executing a program &ith of intent of finding an error. good test case is one that has a high probability of finding an as yet undiscovered error.
successful test is that one uncovers a yet undiscovered error. The tests should be planned long
before testing begins.
The testing techni%ues are'
Fnit testing
Integration Testing
>alidation TestingFser acceptance Testing
UNIT TESTING
Fnit testing focuses verification effort on the smallest unit of soft&are design module.
These set of tests are performed prior to the integration of the soft&are modules into larger
system.
In unit testing module interface is tested to ensure that the information properly follo&s
into and out of the program unit under test. The local data structure is examined to ensure that
data stored temporarily maintain its integrity during all steps in all algorithm execution.
=oundary conditions are tested to ensure that the module operates properly at the
boundary established to limit or restrict processing. ll independent paths through the control
5,
-
8/19/2019 Garment Export1
43/92
structure are exercised to ensure all the statements in a module have been executed at least once.
nd finally all error O handling paths are tested. Test cases &e should be designed to uncover
errors due to erroneous computations incorrect comparison or improper control flo&.
INTEGRATION TESTING
Integration testing is systematic techni%ue for constructing the program structure
&hile constructing test to uncover error associated &ith interfacing the objective is to ta$e unit
tested modules and build a program structure that has being dedicated by design. There are t&o
methods of integration.
Top do&n integration
=ottom do&n integration
Top do&n integration is an incremental approach to construct the
program structure. Modules are integrated by moving do&n&ards through the control hierarchy
beginning &ith the main control module. Module subordinates to the main control are
incorporated into the structure in either depth first or a breadth first manner.
=ottom up integration testing beings construction and testing &ith
atomic modules. =ecause modules are integrated from the bottom up processing re%uired for the
module subordinate to a given level is al&ays available unit testing is integrated into main
module is then integrate
VALIDATION TESTING
t the end of the integration testing this soft&are is completely
assembled as a pac$age interfacing errors have been uncovered and corrected and finalN series of
soft&are testvalidation testing may being. >alidation succeeds &hen the soft&are function in
manner that can be reasonably expected by the customer.
5-
-
8/19/2019 Garment Export1
44/92
Soft&are validations are achieved through a series of blac$ box tests
that demonstrate conformity &ith re%uirements. test plan outlines the classes of tests to be
conducted and a test procedure defines specific test cases that &ill be used in an attempt to
uncover errors in conformity &ith re%uirements are achieved documentation is correct and
human engineered and other re%uirement are met.
fter each validation test cases have been conducted one of t&o
possible condition exists.
The functions of performance characteristics confirm to specifications
are accepted.
deviation fro specification is uncovered and deficiency list is created.
USER ACCEPTANCE TESTING
Fser acceptance testing involves planning and execution of
functional test. "erformance test and stress test in order to demonstrate that the implemented
system satisfies its re%uirements. It is not unusual for t&o sets of acceptance to be run those
developed by %uality assistance group and those developed by customers. In additional to
functional and performance test stress are performed to determine the limitation of the system.
#or example a computer might be tested to determine the effect of simultaneous arrival of
numerous high priorities interrupts.
4.2 SYSTEM IMPLEMENTATION
This project &hich aims at computeried the cyber cafP administration needs
to be implemented in a &ay that is errors free and totally efficient. Implementation is the stage
&hich is very important in a lifecycle of the ne& or revised system design into an operational one.
55
-
8/19/2019 Garment Export1
45/92
This is the final stage of the project &here the theoretical design is turned into the &or$ing
design.
The system implementation phase consists of the follo&ing steps.
• Creating files of the system &ith actual data
• Errors can be identified
• Ma$ing necessary changes to the system to finds out errors.
• Training of user personal.
Even after the system implementation re%uirements of the user may change in the future. 3ence
ht soft&are is designed and developed flexibly. So that it can be subjected to the future changes
also. The system has been tested &ith simple data changes are made as per the user re%uirements
and run in parallel &ith existing system to find out the discrepancies. The user has also been
appraised ho& to run the system in training period.
4.2.1 IMPLEMENTATION PROCEDURE
Implementation is the stage in the project &here the theoretical design is
turned into &or$ing system. System implementation is the process of ma$ing the ne&ly designed
system fully operational. If the implementation stage is not carefully planned and controlled it
can cause chaos. The implementation stage involves careful planning investigation of the current
system and the constraints on implementation and design of the soft&are system.
Implementation is he $ey stage in achieving a successful ne& system as it involves a lot of
upheaval in ht user department. This is carefully planned and controlled. The t&o major tas$s of
preparing for implementation are education and training of users and testing of the system.
The main stages of implementation are'
• Implementation planning
• Change
• mendment procedure
56
-
8/19/2019 Garment Export1
46/92
• System audit
5
-
8/19/2019 Garment Export1
47/92
SOURCE
CODE
C/*'+% D%'(*
Imports System.DataImports System.Data.SqlClientImports System.Data.SqlImports Microsoft.VisualBasic
Public Class CustomerMaster Public scon As New SqlConnection(ser!er".#ui$"sa#pw$"#initialcatalo%"&armentMana%ementSystem' Dim a$t As New SqlDataA$apter Dim scm$ As SqlComman$
Public $s As New DataSet Dim $t As Dataable Dim $r As Data)ow Dim $rr As SqlData)ea$er
Pri!ate Sub CustomerMaster*+oa$(ByVal sen$er AsSystem.,b-ect ByVal e As System./!entAr%s' 0an$lesMyBase.+oa$ t1tCustomerID./nable$ " 2alse
2illData&ri$('
57
-
8/19/2019 Garment Export1
48/92
auto%enerateI$(' /n$ Sub
Pri!ate Sub a$$*but*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lesa$$*but.Clic3 If +en(t1tCustomerID.e1t' " 4 ,r +en(t1tcustomerName.e1t' " 4 5en Ms%Bo1(C5ec3 /mpty Data' /lse
Dim Strin%Insert As Strin% Strin%Insert " insert into
CustomerMaster !alues( 6 Val(t1tCustomerID.e1t' 67 6 t1tcustomerName.e1t 6 77 6
t1tA$$ress.e1t 6 77 6 t1tCity.e1t 6 77 6t1tPinco$e.e1t 6 77 6 t1tP5oneNo.e1t 6 77 6t1t/mail.e1t 6 7' If scon.State " ConnectionState.,pen5en scon.Close(' ry scon.,pen(' scm$ " New SqlComman$(Strin%Insert
scon' scm$./1ecuteNon8uery('
Ms%Bo1(Customer Master InformationA$$e$9' clear(' 2illData&ri$(' Catc5 e1 As /1ception Ms%Bo1(e1.Messa%e('' /n$ ry scm$.Cancel('
scon.Close(' /n$ If /n$ Sub
Pri!ate Sub e1it*but*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lese1it*but.Clic3 Me.Close('
5;
-
8/19/2019 Garment Export1
49/92
/n$ Sub
Pri!ate Sub up$ate*but*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lesup$ate*but.Clic3 Dim strin%:p$ate As Strin% strin%:p$ate " up$ate CustomerMaster setCustomerName " 7 6 t1tcustomerName.e1t 67A$$ress"7 6 t1tA$$ress.e1t 6 7Pinco$e"7 6t1tPinco$e.e1t 6 7P5oneNo"7 6 t1tP5oneNo.e1t 67/mail"7 6 t1t/mail.e1t 6 7 ;0/)/ CustomerID
" 6 Val(t1tCustomerID.e1t' 6 If scon.State " ConnectionState.,pen 5en
scon.Close(' ry scon.,pen(' scm$ " New SqlComman$(strin%:p$atescon' scm$./1ecuteNon8uery(' Ms%Bo1(Customer Master Information:p$ate$9'
clear(' 2illData&ri$('
Catc5 e1 As /1ception Ms%Bo1(e1.Messa%e('' /n$ ry scm$.Cancel(' scon.Close(' /n$ Sub
Pri!ate Sub $elete*but*Clic3(ByVal sen$er As
System.,b-ect ByVal e As System./!entAr%s' 0an$les$elete*but.Clic3 Dim strin%Delete As Strin% strin%Delete " $elete from CustomerMasterw5ere CustomerID" 6 Val(t1tCustomerID.e1t' 6 If scon.State " ConnectionState.,pen 5en scon.Close(' ry
58
-
8/19/2019 Garment Export1
50/92
scon.,pen(' scm$ " New SqlComman$(strin%Delete
scon' scm$./1ecuteNon8uery(' Ms%Bo1(Customer Master InformationDelete$9' clear(' 2illData&ri$(' Catc5 e1 As /1ception Ms%Bo1(e1.Messa%e('' /n$ ry scm$.Cancel('
scon.Close(' /n$ Sub
Pri!ate Sub clear(' t1tCustomerID.e1t " t1tcustomerName.e1t " t1tA$$ress.e1t " t1tCity.e1t " t1tPinco$e.e1t " t1tP5oneNo.e1t "
t1t/mail.e1t " auto%enerateI$('
but*a$$/nable(' /n$ Sub
Public Sub 2illData&ri$(' ry a$t " New SqlDataA$apter(selectCustomerIDCustomerNameA$$ressCityPinco$eP5oneNo/mail from CustomerMaster or$er by CustomerID$esc scon' $s " New DataSet(' a$t.2ill($s CustomerMaster' $%ri$CustomerMaster.DataSource "$s.ables(CustomerMaster'.DefaultView
Catc5 e1 As /1ception Ms%Bo1(e1.Messa%e('' /n$ ry /n$ Sub
6:
-
8/19/2019 Garment Export1
51/92
Public Sub auto%enerateI$(' ry
Dim selectcm$ As New SqlComman$(selectma1(CustomerID' from CustomerMaster scon' but*a$$/nable(' If selectcm$.Connection.State " < 5en selectcm$.Connection.Close(' selectcm$.Connection.,pen(' If Not IsDBNull(selectcm$./1ecuteScalar' 5en t1tCustomerID.e1t "selectcm$./1ecuteScalar = <
/lse
t1tCustomerID.e1t "
-
8/19/2019 Garment Export1
52/92
frmsup.S5ow(' /n$ Sub
Pri!ate Sub +in3lbl*item*+in3Clic3e$(ByVal sen$er As System.,b-ect ByVal e As System.;in$ows.2orms.+in3+abel+in3Clic3e$/!entAr%s'0an$les +in3lbl*item.+in3Clic3e$ Dim frmitem As New ItemMaster Me.0i$e(' frmitem.S5ow('
/n$ Sub
Pri!ate Sub +in3lbl*pur*+in3Clic3e$(ByVal
sen$er As System.,b-ect ByVal e As System.;in$ows.2orms.+in3+abel+in3Clic3e$/!entAr%s'0an$les +in3lbl*pur.+in3Clic3e$ Dim frmpur As New Purc5ase Me.0i$e(' frmpur.S5ow(' /n$ Sub
Pri!ate Sub +in3+abel
-
8/19/2019 Garment Export1
53/92
Pri!ate Sub but*clear*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$les
but*clear.Clic3 clear(' /n$ Sub
Pri!ate Sub $%ri$CustomerMaster*CellMouseClic3(ByVal sen$er As ,b-ect ByVal e As System.;in$ows.2orms.Data&ri$ViewCellMouse/!entAr%s' 0an$les $%ri$CustomerMaster.CellMouseClic3 Dim - As Inte%er
Dim i As Inte%er but*a$$Disable('
i "$%ri$CustomerMaster.CurrentCell.ColumnIn$e1 - " $%ri$CustomerMaster.Current)ow.In$e1 If i " 4 5en If - ?" 4 5en t1tCustomerID.e1t "$s.ables(CustomerMaster'.)ows(-'.Item(4' t1tcustomerName.e1t "
$s.ables(CustomerMaster'.)ows(-'.Item(
-
8/19/2019 Garment Export1
54/92
/n$ Class
Invoice
Imports System.DataImports System.Data.SqlClientImports System.Data.SqlImports Microsoft.VisualBasicPublic Class In!oice Public scon As New SqlConnection(ser!er".#ui$"sa#pw$"#initialcatalo%"&armentMana%ementSystem'
Dim a$t As New SqlDataA$apter Dim scm$ As SqlComman$
Public $s As New DataSet Dim $t As New Dataable Dim $r As Data)ow Dim $rr As SqlData)ea$er Pri!ate Sub In!oice*+oa$(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lesMyBase.+oa$ cboCustomerIDCall('
cboItemIDCall(' 2illData&ri$('
clear(' /n$ Sub Pri!ate Sub cboCustomerIDCall(' Dim strin%Select As Strin% strin%Select " select CIDCustomerID fromCustomerMaster scm$ " New SqlComman$(strin%Select scon' a$t " New SqlDataA$apter(scm$' ry a$t.2ill($t'
If $t.)ows.Count ? 4 5en cboCustomerID.DisplayMember "CustomerID cboCustomerID.ValueMember " CID
65
-
8/19/2019 Garment Export1
55/92
cboCustomerID.DataSource " $t /n$ If
Catc5 e1 As /1ception Ms%Bo1(/rr.Description' /n$ ry scm$.Cancel(' scon.Close(' /n$ Sub
Pri!ate Sub cboCustomerID*Selecte$In$e1C5an%e$(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$les
cboCustomerID.Selecte$In$e1C5an%e$ Dim selectName As Strin%
selectName " select CustomerName fromCustomerMaster w5ere CID " 6Val(cboCustomerID.Selecte$Value' 6 If scon.State " ConnectionState.,pen 5en scon.Close(' ry scon.,pen(' scm$ " New SqlComman$(selectName scon'
$rr " scm$./1ecute)ea$er(' ;5ile ($rr.)ea$'
lbl*Display.e1t " $rr.&etStrin%(4' /n$ ;5ile cboItemID.2ocus(' Catc5 e1 As /1ception Ms%Bo1(e1.Messa%e' /n$ ry
scon.Close('
/n$ Sub Pri!ate Sub cboItemIDCall(' Dim $t< As New Dataable Dim strin%Select As Strin% strin%Select " select IIDItemID fromItemMaster scm$ " New SqlComman$(strin%Select scon' a$t " New SqlDataA$apter(scm$'
66
-
8/19/2019 Garment Export1
56/92
ry a$t.2ill($t
-
8/19/2019 Garment Export1
57/92
$tBillDate.e1t " cboCustomerID.Selecte$e1t "
lbl*Display.e1t " cboItemID.e1t " t1tItemName.e1t " t1tItem)ate.e1t " t1t8uantity.e1t " t1tAmount.e1t " auto%enerateI$(' but*a$$/nable(' /n$ Sub Public Sub 2illData&ri$('
ry a$t " New SqlDataA$apter(select
I.BillNoI.BillDateC.CustomerIDC.CustomerNameI.ItemIDI.ItemNameI.Item)ateI.8uantityI.Amountfrom In!oice ICustomerMaster CItemMaster I w5ereI.CID"C.CID an$ I.IID"I.IID scon' $s " New DataSet(' a$t.2ill($s In!oiceDetails' $%In!oice.DataSource "$s.ables(In!oiceDetails'.DefaultView
Catc5 e1 As /1ception Ms%Bo1(e1.Messa%e(''
/n$ ry /n$ Sub Public Sub auto%enerateI$(' ry Dim selectcm$ As New SqlComman$(selectma1(BillNo' from In!oice scon' but*a$$/nable(' If selectcm$.Connection.State " < 5en
selectcm$.Connection.Close(' selectcm$.Connection.,pen(' If Not IsDBNull(selectcm$./1ecuteScalar' 5en t1tBillNo.e1t "selectcm$./1ecuteScalar = <
/lse
67
-
8/19/2019 Garment Export1
58/92
t1tBillNo.e1t "
-
8/19/2019 Garment Export1
59/92
scm$.Cancel(' scon.Close('
/n$ If /n$ Sub
Pri!ate Sub $%In!oice*CellMouseClic3(ByVal
sen$er As ,b-ect ByVal e As System.;in$ows.2orms.Data&ri$ViewCellMouse/!entAr%s' 0an$les $%In!oice.CellMouseClic3 Dim - As Inte%er Dim i As Inte%er but*a$$Disable(' i " $%In!oice.CurrentCell.ColumnIn$e1
- " $%In!oice.Current)ow.In$e1 If i " 4 5en If - ?" 4 5en
t1tBillNo.e1t "$s.ables(In!oiceDetails'.)ows(-'.Item(4' $tBillDate.e1t "$s.ables(In!oiceDetails'.)ows(-'.Item(
-
8/19/2019 Garment Export1
60/92
/n$ Sub
Pri!ate Sub t1t8uantity*+ost2ocus(ByVal sen$er
As ,b-ect ByVal e As System./!entAr%s' 0an$les
t1t8uantity.+ost2ocus t1tAmount.e1t " Val(t1tItem)ate.e1t' FVal(t1t8uantity.e1t' /n$ Sub
Pri!ate Sub up$ate*but*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lesup$ate*but.Clic3 Dim strin%:p$ate As Strin%
strin%:p$ate " up$ate In!oice set BillDate" 7 6 $tBillDate.Value.Date 6 7CID" 6cboCustomerID.Selecte$Value 6 IID" 6
cboItemID.Selecte$Value 6 8uantity" 6Val(t1t8uantity.e1t' 6 Amount" 6Val(t1tAmount.e1t' 6 ;0/)/ BillNo " 6Val(t1tBillNo.e1t' 6 If scon.State " ConnectionState.,pen 5en scon.Close(' ry
scon.,pen(' scm$ " New SqlComman$(strin%:p$atescon'
scm$./1ecuteNon8uery(' Ms%Bo1(In!oice Details :p$ate$9' clear(' 2illData&ri$(' Catc5 e1 As /1ception Ms%Bo1(e1.Messa%e('' /n$ ry scm$.Cancel(' scon.Close(' /n$ Sub
Pri!ate Sub $elete*but*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$les$elete*but.Clic3
-
8/19/2019 Garment Export1
61/92
Dim strin%Delete As Strin% strin%Delete " $elete from In!oice w5ere
BillNo" 6 Val(t1tBillNo.e1t' 6 If scon.State " ConnectionState.,pen 5en scon.Close(' ry scon.,pen(' scm$ " New SqlComman$(strin%Deletescon' scm$./1ecuteNon8uery(' Ms%Bo1(In!oice Details Delete$9' clear('
2illData&ri$(' Catc5 e1 As /1ception
Ms%Bo1(e1.Messa%e('' /n$ ry scm$.Cancel(' scon.Close(' /n$ Sub
Pri!ate Sub but*clear*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$les
but*clear.Clic3 clear('
/n$ Sub Pri!ate Sub but*a$$/nable(' a$$*but./nable$ " rue up$ate*but./nable$ " 2alse $elete*but./nable$ " 2alse /n$ Sub Pri!ate Sub but*a$$Disable(' a$$*but./nable$ " 2alse
up$ate*but./nable$ " rue $elete*but./nable$ " rue /n$ Sub
Pri!ate Sub e1it*but*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lese1it*but.Clic3 Me.Close('
-
8/19/2019 Garment Export1
62/92
/n$ Sub/n$ Class
Item *elivery
Imports System.DataImports System.Data.SqlClientImports System.Data.SqlImports Microsoft.VisualBasicPublic Class ItemDeli!ery Public scon As New SqlConnection(ser!er".#ui$"sa#pw$"#initialcatalo%"&armentMana%ementSystem'
Dim a$t As New SqlDataA$apter Dim scm$ As SqlComman$
Public $s As New DataSet Dim $t As New Dataable Dim $r As Data)ow Dim $rr As SqlData)ea$er
Pri!ate Sub ItemDeli!ery*+oa$(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lesMyBase.+oa$
cboItemNameCall(' 2illData&ri$('
clear(' /n$ Sub Pri!ate Sub clear(' $tDate.e1t " cboItemName.Selecte$e1t " ItemI$.e1t " cboVe5icle.e1t " )emar3s.e1t " $tDate.2ocus(' but*a$$/nable('
/n$ Sub Public Sub 2illData&ri$(' ry
-
8/19/2019 Garment Export1
63/92
a$t " New SqlDataA$apter(selectID.Deli!eryDateI.ItemNameI.ItemIDID.Ve5icleID
.)emar3s from ItemDeli!ery IDItemMaster I w5ereID.IID"I.IID scon' $s " New DataSet(' a$t.2ill($s ItemDeli!eryDetails' $%ItemDeli!ery.DataSource "$s.ables(ItemDeli!eryDetails'.DefaultView Catc5 e1 As /1ception Ms%Bo1(e1.Messa%e('' /n$ ry /n$ Sub
Pri!ate Sub a$$*but*Clic3(ByVal sen$er As
System.,b-ect ByVal e As System./!entAr%s' 0an$lesa$$*but.Clic3 If +en(cboItemName.e1t' " 4 5en Ms%Bo1(C5ec3 /mpty Data' /lse
Dim Strin%Insert As Strin% Strin%Insert " insert into
ItemDeli!ery(Deli!eryDateIIDVe5icle)emar3s'!alues(7 6 $tDate.Value.Date 6 7 6
cboItemName.Selecte$Value 6 7 6 cboVe5icle.e1t6 77 6 )emar3s.e1t 6 7' If scon.State " ConnectionState.,pen5en scon.Close(' ry scon.,pen(' scm$ " New SqlComman$(Strin%Insertscon'
scm$./1ecuteNon8uery(' Ms%Bo1(Item Deli!ery DetailsA$$e$9' clear(' 2illData&ri$(' Catc5 e1 As /1ception Ms%Bo1(e1.Messa%e('' /n$ ry
-
8/19/2019 Garment Export1
64/92
scm$.Cancel(' scon.Close('
/n$ If /n$ Sub Pri!ate Sub cboItemNameCall(' Dim strin%Select As Strin% strin%Select " select IIDItemName fromItemMaster
scm$ " New SqlComman$(strin%Select scon' a$t " New SqlDataA$apter(scm$'
ry a$t.2ill($t'
If $t.)ows.Count ? 4 5en cboItemName.DisplayMember "ItemName cboItemName.ValueMember " IID cboItemName.DataSource " $t /n$ If Catc5 e1 As /1ception Ms%Bo1(/rr.Description'
/n$ ry scm$.Cancel('
scon.Close(' /n$ Sub
Pri!ate Sub cboItemName*Selecte$In$e1C5an%e$(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lescboItemName.Selecte$In$e1C5an%e$ Dim selectName As Strin%
selectName " select ItemID from ItemMasterw5ere IID " 6 Val(cboItemName.Selecte$Value' 6 If scon.State " ConnectionState.,pen 5en scon.Close(' ry scon.,pen(' scm$ " New SqlComman$(selectName scon' $rr " scm$./1ecute)ea$er('
-
8/19/2019 Garment Export1
65/92
;5ile ($rr.)ea$' ItemI$.e1t " $rr.&etValue(4'
/n$ ;5ile cboVe5icle.2ocus(' Catc5 e1 As /1ception Ms%Bo1(e1.Messa%e' /n$ ry scon.Close(' /n$ Sub Pri!ate Sub but*a$$/nable(' a$$*but./nable$ " rue up$ate*but./nable$ " 2alse
$elete*but./nable$ " 2alse /n$ Sub
Pri!ate Sub but*a$$Disable(' a$$*but./nable$ " 2alse up$ate*but./nable$ " rue $elete*but./nable$ " rue /n$ Sub
Pri!ate Sub $%ItemDeli!ery*CellMouseClic3(ByVal
sen$er As ,b-ect ByVal e As System.;in$ows.2orms.Data&ri$ViewCellMouse/!entAr%s
' 0an$les $%ItemDeli!ery.CellMouseClic3 Dim - As Inte%er Dim i As Inte%er
but*a$$Disable(' i " $%ItemDeli!ery.CurrentCell.ColumnIn$e1 - " $%ItemDeli!ery.Current)ow.In$e1 If i " 4 5en If - ?" 4 5en $tDate.e1t "$s.ables(ItemDeli!eryDetails'.)ows(-'.Item(4' cboItemName.e1t "$s.ables(ItemDeli!eryDetails'.)ows(-'.Item(
-
8/19/2019 Garment Export1
66/92
)emar3s.e1t "$s.ables(ItemDeli!eryDetails'.)ows(-'.Item('
$tDate.2ocus(' /lse Ms%Bo1(No )ecor$' /n$ If /n$ If but*a$$Disable(' /n$ Sub
Pri!ate Sub but*clear*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$les
but*clear.Clic3 clear('
/n$ Sub
Pri!ate Sub up$ate*but*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lesup$ate*but.Clic3 Dim strin%:p$ate As Strin% strin%:p$ate " up$ate ItemDeli!ery setIID" 6 cboItemName.Selecte$Value 6 Ve5icle"7 6
cboVe5icle.e1t 6 7)emar3s"7 6 )emar3s.e1t 6 7w5ere Deli!eryDate " 7 6 $tDate.Value.Date 6 7
If scon.State " ConnectionState.,pen 5en scon.Close(' ry scon.,pen(' scm$ " New SqlComman$(strin%:p$atescon' scm$./1ecuteNon8uery(' Ms%Bo1(Item Deli!ery Details
:p$ate$9' clear(' 2illData&ri$(' Catc5 e1 As /1ception Ms%Bo1(e1.Messa%e('' /n$ ry scm$.Cancel(' scon.Close('
-
8/19/2019 Garment Export1
67/92
/n$ Sub
Pri!ate Sub e1it*but*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lese1it*but.Clic3 Me.Close(' /n$ Sub
Pri!ate Sub $elete*but*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$les$elete*but.Clic3 Dim strin%Delete As Strin%
strin%Delete " $elete from ItemDeli!eryw5ere Deli!eryDate"7 6 $tDate.e1t 6 7
If scon.State " ConnectionState.,pen 5en scon.Close(' ry scon.,pen(' scm$ " New SqlComman$(strin%Deletescon' scm$./1ecuteNon8uery(' Ms%Bo1(,r$er /ntry Details Delete$9'
clear(' 2illData&ri$('
Catc5 e1 As /1ception Ms%Bo1(e1.Messa%e('' /n$ ry scm$.Cancel(' scon.Close(' /n$ Sub
Pri!ate Sub +in3lbl*supp*+in3Clic3e$(ByVal
sen$er As System.,b-ect ByVal e As System.;in$ows.2orms.+in3+abel+in3Clic3e$/!entAr%s'0an$les +in3lbl*supp.+in3Clic3e$ Dim frmsup As New SupplierMaster Me.0i$e(' frmsup.S5ow(' /n$ Sub
-
8/19/2019 Garment Export1
68/92
Pri!ate Sub +in3lbl*item*+in3Clic3e$(ByVal sen$er As System.,b-ect ByVal e As
System.;in$ows.2orms.+in3+abel+in3Clic3e$/!entAr%s'0an$les +in3lbl*item.+in3Clic3e$ Dim frmitem As New ItemMaster Me.0i$e(' frmitem.S5ow(' /n$ Sub
Pri!ate Sub +in3lbl*pur*+in3Clic3e$(ByVal sen$er As System.,b-ect ByVal e As System.;in$ows.2orms.+in3+abel+in3Clic3e$/!entAr%s'
0an$les +in3lbl*pur.+in3Clic3e$ Dim frmpur As New Purc5ase
Me.0i$e(' frmpur.S5ow(' /n$ Sub
Pri!ate Sub +in3+abel
-
8/19/2019 Garment Export1
69/92
Dim a$t As New SqlDataA$apter Dim scm$ As SqlComman$
Public $s As New DataSet Dim $t As New Dataable Dim $r As Data)ow Dim $rr As SqlData)ea$er Pri!ate Sub ,r$er/ntry*+oa$(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lesMyBase.+oa$ cboCustomerNameCall(' cboItemNameCall(' 2illData&ri$('
clear(' /n$ Sub
Pri!ate Sub cboCustomerNameCall(' Dim strin%Select As Strin% strin%Select " select CIDCustomerNamefrom CustomerMaster scm$ " New SqlComman$(strin%Select scon' a$t " New SqlDataA$apter(scm$' ry a$t.2ill($t'
If $t.)ows.Count ? 4 5en cboCustomerName.DisplayMember "
Customername cboCustomerName.ValueMember " CID cboCustomerName.DataSource " $t /n$ If Catc5 e1 As /1ception Ms%Bo1(/rr.Description' /n$ ry scm$.Cancel('
scon.Close(' /n$ Sub
Pri!ate Sub cboCustomerName*Selecte$In$e1C5an%e$(ByVal sen$erAs System.,b-ect ByVal e As System./!entAr%s'0an$les cboCustomerName.Selecte$In$e1C5an%e$ Dim selectName As Strin%
-
8/19/2019 Garment Export1
70/92
selectName " select CustomerID fromCustomerMaster w5ere CID " 6
Val(cboCustomerName.Selecte$Value' 6 If scon.State " ConnectionState.,pen 5en scon.Close(' ry scon.,pen(' scm$ " New SqlComman$(selectName scon' $rr " scm$./1ecute)ea$er(' ;5ile ($rr.)ea$' ID.e1t " $rr.&etValue(4' /n$ ;5ile
cboItemname.2ocus(' Catc5 e1 As /1ception
Ms%Bo1(e1.Messa%e' /n$ ry
scon.Close(' /n$ Sub Pri!ate Sub cboItemNameCall(' Dim strin%Select As Strin% strin%Select " select IIDItemName from
ItemMaster Dim $t< As New Dataable
scm$ " New SqlComman$(strin%Select scon' a$t " New SqlDataA$apter(scm$' cboItemName.Items.Clear(' ry a$t.2ill($t
-
8/19/2019 Garment Export1
71/92
/n$ Sub
Pri!ate Sub
cboItemName*Selecte$In$e1C5an%e$(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lescboItemName.Selecte$In$e1C5an%e$ Dim selectName As Strin% selectName " select ItemIDItem)ate fromItemMaster w5ere IID " 6Val(cboItemName.Selecte$Value' 6 If scon.State " ConnectionState.,pen 5en scon.Close('
ry scon.,pen(' scm$ " New SqlComman$(selectName scon'
$rr " scm$./1ecute)ea$er(' ;5ile ($rr.)ea$' ItemI$.e1t " $rr.&etValue(4' Item)ate.e1t " $rr.&etDouble(
-
8/19/2019 Garment Export1
72/92
ry a$t " New SqlDataA$apter(select
,.,r$erNo,.,r$erDateC.CustomerNameC.CustomerIDI.ItemNameI.ItemIDI.Item)ate,.8uantity from,r$er/ntry ,CustomerMaster CItemMaster I w5ere,.CID"C.CID an$ ,.IID"I.IID scon' $s " New DataSet(' a$t.2ill($s ,r$erDetails' $%,r$er/ntry.DataSource "$s.ables(,r$erDetails'.DefaultView Catc5 e1 As /1ception Ms%Bo1(e1.Messa%e(''
/n$ ry /n$ Sub
Public Sub auto%enerateI$(' ry Dim selectcm$ As New SqlComman$(selectma1(,r$erNo' from ,r$er/ntry scon' but*a$$/nable(' If selectcm$.Connection.State " < 5en selectcm$.Connection.Close(' selectcm$.Connection.,pen('
If Not IsDBNull(selectcm$./1ecuteScalar' 5en
t1t,r$erNo.e1t "selectcm$./1ecuteScalar = <
/lse t1t,r$erNo.e1t "
-
8/19/2019 Garment Export1
73/92
$elete*but./nable$ " 2alse /n$ Sub
Pri!ate Sub but*a$$Disable(' a$$*but./nable$ " 2alse up$ate*but./nable$ " rue $elete*but./nable$ " rue /n$ Sub
Pri!ate Sub a$$*but*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lesa$$*but.Clic3 If +en(t1t,r$erNo.e1t' " 4 ,r
+en(cboCustomerName.e1t' " 4 5en Ms%Bo1(C5ec3 /mpty Data'
/lse
Dim Strin%Insert As Strin% Strin%Insert " insert into,r$er/ntry(,r$erNo,r$erDateCIDIID8uantity'!alues( 6 Val(t1t,r$erNo.e1t' 6 7 6$t,r$erDate.Value.Date 6 7 6cboCustomerName.Selecte$Value 6 6
cboItemName.Selecte$Value 6 6Val(t1t8uantity.e1t' 6 '
If scon.State " ConnectionState.,pen5en scon.Close(' ry scon.,pen(' scm$ " New SqlComman$(Strin%Insertscon' scm$./1ecuteNon8uery(' Ms%Bo1(,r$er /ntry Details
A$$e$9' clear(' 2illData&ri$(' Catc5 e1 As /1ception Ms%Bo1(e1.Messa%e('' /n$ ry scm$.Cancel(' scon.Close('
7-
-
8/19/2019 Garment Export1
74/92
/n$ If /n$ Sub
Pri!ate Sub up$ate*but*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lesup$ate*but.Clic3 Dim strin%:p$ate As Strin% strin%:p$ate " up$ate ,r$er/ntry set,r$erDate " 7 6 $t,r$erDate.Value.Date 6 7CID" 6 cboCustomerName.Selecte$Value 6 IID" 6cboItemName.Selecte$Value 6 8uantity" 6Val(t1t8uantity.e1t' 6 ;0/)/ ,r$erNo " 6
Val(t1t,r$erNo.e1t' 6 If scon.State " ConnectionState.,pen 5en
scon.Close(' ry scon.,pen(' scm$ " New SqlComman$(strin%:p$atescon' scm$./1ecuteNon8uery(' Ms%Bo1(,r$er /ntry Details :p$ate$9' clear('
2illData&ri$(' Catc5 e1 As /1ception
Ms%Bo1(e1.Messa%e('' /n$ ry scm$.Cancel(' scon.Close(' /n$ Sub
Pri!ate Sub $%,r$er/ntry*CellMouseClic3(ByVal sen$er As ,b-ect ByVal e As
System.;in$ows.2orms.Data&ri$ViewCellMouse/!entAr%s' 0an$les $%,r$er/ntry.CellMouseClic3 Dim - As Inte%er Dim i As Inte%er but*a$$Disable(' i " $%,r$er/ntry.CurrentCell.ColumnIn$e1 - " $%,r$er/ntry.Current)ow.In$e1 If i " 4 5en
75
-
8/19/2019 Garment Export1
75/92
If - ?" 4 5en t1t,r$erNo.e1t "
$s.ables(,r$erDetails'.)ows(-'.Item(4' $t,r$erDate.e1t "$s.ables(,r$erDetails'.)ows(-'.Item(
-
8/19/2019 Garment Export1
76/92
2illData&ri$(' Catc5 e1 As /1ception
Ms%Bo1(e1.Messa%e('' /n$ ry scm$.Cancel(' scon.Close(' /n$ Sub
Pri!ate Sub e1it*but*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lese1it*but.Clic3 Me.Close('
/n$ Sub
Pri!ate Sub but*clear*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lesbut*clear.Clic3 clear(' /n$ Sub
Pri!ate Sub +in3lbl*supp*+in3Clic3e$(ByVal sen$er As System.,b-ect ByVal e As
System.;in$ows.2orms.+in3+abel+in3Clic3e$/!entAr%s'0an$les +in3lbl*supp.+in3Clic3e$
Dim frmsup As New SupplierMaster Me.0i$e(' frmsup.S5ow(' /n$ Sub
Pri!ate Sub +in3lbl*item*+in3Clic3e$(ByVal sen$er As System.,b-ect ByVal e As System.;in$ows.2orms.+in3+abel+in3Clic3e$/!entAr%s'
0an$les +in3lbl*item.+in3Clic3e$ Dim frmitem As New ItemMaster Me.0i$e(' frmitem.S5ow('
/n$ Sub
7
-
8/19/2019 Garment Export1
77/92
Pri!ate Sub +in3lbl*pur*+in3Clic3e$(ByVal sen$er As System.,b-ect ByVal e As
System.;in$ows.2orms.+in3+abel+in3Clic3e$/!entAr%s'0an$les +in3lbl*pur.+in3Clic3e$ Dim frmpur As New Purc5ase Me.0i$e(' frmpur.S5ow(' /n$ Sub
Pri!ate Sub +in3+abel
-
8/19/2019 Garment Export1
78/92
cboGarnItemIDCall(' 2illData&ri$('
clear(' /n$ Sub
Pri!ate Sub a$$*but*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lesa$$*but.Clic3 If +en(t1tPurc5aseID.e1t' " 4 ,r +en(cboSupplierID.e1t' " 4 5en Ms%Bo1(C5ec3 /mpty Data' /lse
Dim Strin%Insert As Strin%
Strin%Insert " insert intoPurc5ase(Purc5aseIDPurc5aseDateSIDGID8uantity'!alues( 6 Val(t1tPurc5aseID.e1t' 6 7 6Purc5aseDate.Value.Date 6 7 6cboSupplierID.Selecte$Value 6 6cboGarnItemID.Selecte$Value 6 6t1t8uantity.e1t 6 ' If scon.State " ConnectionState.,pen
5en scon.Close(' ry
scon.,pen(' scm$ " New SqlComman$(Strin%Insertscon' scm$./1ecuteNon8uery(' Ms%Bo1(Purc5ase Details A$$e$9' clear(' 2illData&ri$(' Catc5 e1 As /1ception
Ms%Bo1(e1.Messa%e('' /n$ ry scm$.Cancel(' scon.Close(' /n$ If /n$ Sub
7;
-
8/19/2019 Garment Export1
79/92
Pri!ate Sub e1it*but*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$les
e1it*but.Clic3 Me.Close(' /n$ Sub
Pri!ate Sub up$ate*but*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lesup$ate*but.Clic3 Dim strin%:p$ate As Strin% strin%:p$ate " up$ate Purc5ase setPurc5aseDate " 7 6 Purc5aseDate.Value.Date 6
7SID" 6 cboSupplierID.Selecte$Value 6 GID" 6cboGarnItemID.Selecte$Value 6 8uantity" 6
Val(t1t8uantity.e1t' 6 ;0/)/ Purc5aseID " 6Val(t1tPurc5aseID.e1t' 6 If scon.State " ConnectionState.,pen 5en scon.Close(' ry scon.,pen(' scm$ " New SqlComman$(strin%:p$atescon'
scm$./1ecuteNon8uery(' Ms%Bo1(Purc5ase Details :p$ate$9'
clear(' 2illData&ri$(' Catc5 e1 As /1ception Ms%Bo1(e1.Messa%e('' /n$ ry scm$.Cancel(' scon.Close(' /n$ Sub
Pri!ate Sub $elete*but*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$les$elete*but.Clic3 Dim strin%Delete As Strin% strin%Delete " $elete from Purc5ase w5erePurc5aseID" 6 Val(t1tPurc5aseID.e1t' 6
78
-
8/19/2019 Garment Export1
80/92
If scon.State " ConnectionState.,pen 5en scon.Close('
ry scon.,pen(' scm$ " New SqlComman$(strin%Deletescon' scm$./1ecuteNon8uery(' Ms%Bo1(Purc5ase Details Delete$9' clear(' 2illData&ri$(' Catc5 e1 As /1ception Ms%Bo1(e1.Messa%e(''
/n$ ry scm$.Cancel('
scon.Close(' /n$ Sub
Pri!ate Sub but*clear*Clic3(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lesbut*clear.Clic3 clear(' /n$ Sub
Pri!ate Sub clear(' t1tPurc5aseID.e1t "
Purc5aseDate.e1t " cboSupplierID.Selecte$e1t " lbl*Display.e1t " cboGarnItemID.e1t " t1tGarnItemName.e1t " t1tGarnItem)ate.e1t " t1t8uantity.e1t " t1tAmount.e1t "
auto%enerateI$(' but*a$$/nable(' /n$ Sub Public Sub 2illData&ri$(' ry a$t " New SqlDataA$apter(selectP.Purc5aseIDP.Purc5aseDateS.SupplierIDS.SupplierNameG.GarnItemIDG.GarnItemNameG.GarnItem)ateP.8
;:
-
8/19/2019 Garment Export1
81/92
uantity from purc5ase Psuppliermaster SyarnmasterG w5ere P.SID"S.SID an$ P.GID"G.GID scon'
$s " New DataSet(' a$t.2ill($s Purc5ase' $%ri$Purc5ase.DataSource "$s.ables(Purc5ase'.DefaultView Catc5 e1 As /1ception Ms%Bo1(e1.Messa%e('' /n$ ry /n$ Sub Public Sub auto%enerateI$(' ry
Dim selectcm$ As New SqlComman$(selectma1(Purc5aseID' from Purc5ase scon'
but*a$$/nable(' If selectcm$.Connection.State " < 5en selectcm$.Connection.Close(' selectcm$.Connection.,pen(' If Not IsDBNull(selectcm$./1ecuteScalar' 5en t1tPurc5aseID.e1t "selectcm$./1ecuteScalar = <
/lse
t1tPurc5aseID.e1t "
-
8/19/2019 Garment Export1
82/92
up$ate*but./nable$ " rue $elete*but./nable$ " rue
/n$ Sub Pri!ate Sub cboSupplierIDCall(' Dim strin%Select As Strin% strin%Select " select SIDSupplierID fromSupplierMaster scm$ " New SqlComman$(strin%Select scon' a$t " New SqlDataA$apter(scm$' ry a$t.2ill($t' If $t.)ows.Count ? 4 5en
cboSupplierID.DisplayMember "SupplierID
cboSupplierID.ValueMember " SID cboSupplierID.DataSource " $t /n$ If Catc5 e1 As /1ception Ms%Bo1(/rr.Description' /n$ ry scm$.Cancel(' scon.Close('
/n$ Sub
Pri!ate Sub cboGarnItemIDCall(' Dim $t< As New Dataable Dim strin%Select As Strin% strin%Select " select GIDGarnItemID fromGarnMaster scm$ " New SqlComman$(strin%Select scon' a$t " New SqlDataA$apter(scm$'
ry a$t.2ill($t
-
8/19/2019 Garment Export1
83/92
Catc5 e1 As /1ception Ms%Bo1(/rr.Description'
/n$ ry scm$.Cancel(' scon.Close(' /n$ Sub
Pri!ate Sub t1t8uantity*+ost2ocus(ByVal sen$erAs ,b-ect ByVal e As System./!entAr%s' 0an$les t1t8uantity.+ost2ocus
t1tAmount.e1t " Val(t1tGarnItem)ate.e1t'F Val(t1t8uantity.e1t'
/n$ Sub
Pri!ate Sub cboSupplierID*Selecte$In$e1C5an%e$(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lescboSupplierID.Selecte$In$e1C5an%e$ Dim selectName As Strin%
selectName " select SupplierName fromSupplierMaster w5ere SID " 6
Val(cboSupplierID.Selecte$Value' 6 If scon.State " ConnectionState.,pen 5en scon.Close(' ry scon.,pen(' scm$ " New SqlComman$(selectName scon' $rr " scm$./1ecute)ea$er(' ;5ile ($rr.)ea$'
lbl*Display.e1t " $rr.&etStrin%(4' /n$ ;5ile cboGarnItemID.2ocus(' Catc5 e1 As /1ception Ms%Bo1(e1.Messa%e' /n$ ry t1tGarnItemName.2ocus(' scon.Close('
;-
-
8/19/2019 Garment Export1
84/92
/n$ Sub
Pri!ate Sub cboGarnItemID*Selecte$In$e1C5an%e$(ByVal sen$er As System.,b-ect ByVal e As System./!entAr%s' 0an$lescboGarnItemID.Selecte$In$e1C5an%e$ Dim selectName As Strin% selectName " selectGarnItemNameGarnItem)ate from GarnMaster w5ere GID" 6 Val(cboGarnItemID.Selecte$Value' 6 If scon.State " ConnectionState.,pen 5en scon.Close('
ry scon.,pen('
scm$ " New SqlComman$(selectName scon' $rr " scm$./1ecute)ea$er(' ;5ile ($rr.)ea$' t1tGarnItemName.e1t "$rr.&etStrin%(4' t1tGarnItem)ate.e1t "$rr.&etDouble(
-
8/19/2019 Garment Export1
85/92
t1tPurc5aseID.e1t "$s.ables(Purc5ase'.)ows(-'.Item(4'
Purc5aseDate.e1t "$s.ables(Purc5ase'.)ows(-'.Item(
-
8/19/2019 Garment Export1
86/92
0e& user &ill be provided a form t be filled by the user &hich as$s the
name and pass&ord.
If the details are valid user &ill be &ith main screen from &hich user can
navigate to other forms.
4.3 SYSTEM MAINTAENANCE
Soft&are &ill undoubtedly undergo change after it is delivered to the customer.
Changes &ill occur due to change in business processes and soft&are must be adapted to
accommodate changes in its external environment or because th customer re%uires functional or
performance enhancement.
Soft&are maintenance reapplies each of the preceding life cycle steps to an
existing program rather than a ne& one. It is often difficult for the customer to state all
re%uirements explicitly. The classic life cycle re%uires this and has difficulty accommodating the
natural uncertainty that exists at the beginning of any soft&are. Types of change encountered
during the maintenance phase are'
CORRECTION8
Even &ith the best %uality assurance activities it is li$ely that the end user &ill
uncover defects in the soft&are. Corrective maintenance changes the soft&are to correct defects.
ADAPTATION8
vertime the original environment for &hich the soft&are &as developed is li$ely
to change. daptive maintenance results in modification to the soft&are to accommodate changes
in its original functions.
;
-
8/19/2019 Garment Export1
87/92
CHAPTER-5
;7
-
8/19/2019 Garment Export1
88/92
;;
-
8/19/2019 Garment Export1
89/92
CONCLUSIO
NCONCLUSION
The project entitled G+ME0T M0GEME0T S(STEMD developed using
>isual .net and S@2 Server ,::: satisfies the re%uirements of the Management of the Garment
Management System.
The proposed system is more users friendly and enables the business to function
as on independent system. It also builds security featured by providing various rights and
privilege for accessing the data. It can replace the existing system of the computer to ensure
completeness consistency feasibility and effectiveness.
The system has been tested and implemented by giving the test data no
programming s$ill is re%uired are system to handle the system. The features of this system are
system security data security and reliability. This system is flexible and can emodified &hen
needed.
#inally &ith a lot of care this is developed. So the user finds it easy to operate in
a user friendly environment but still there is some there is some scope to enhance the
performance of the application in future.
;8
-
8/19/2019 Garment Export1
90/92
8:
-
8/19/2019 Garment Export1
91/92
BIBLIOGRAPHY
BIBLIOGRAPHY
4. 0)E2 9E+/E' >ISF2 =SIC
-
8/19/2019 Garment Export1
92/92