Computer hardware information system management...
Transcript of Computer hardware information system management...
- 6 AUG 2002
k,"r,
i
I,d
-rl
t:l
ll,
llr
lt:
COMPUTER HARDWARE INFORMATION SYSTEMMANAGBMENT:
A CASE STI]DY OF YONOK COLLEGE
THANOM I(ANTIPAIYYACHAREONz-
aet
flRti 1{,VlU'lr}1,
!10UAqV6EA
u ilt101??t U16t U $mxfl u16t u tJH act..a......4qaa-
A THESIS SUBNIITTED IN PARIIAL TUTILIT{ENT OF THE
REQT]IREMENT FORTHE DEGREE OF MASTER OF SCIENCE
(IECHNOLOGY OF INTORMATION SYSTEM MANAGEMENT)
EACTIIjTY OF GRADUTE STT]DIES
MAHIDOL I]NTVERSITY
G rsBN g7+04-tggs-3
COPYRIGHT CF MAHIDOL TINTVERSITYTH
Tsa? unn
7,0 oLL,L
ffi
Copyright by Mahidol University
Thesis
entitled
tr
t"
?
COMPUTER HARDWARE II\FORMATION SYSTEMMANAGEMENT:
A CASE STTJDY OF YONOK COLLEGE
Candidate
S"t,"""rf $l *hJ^lF,Lect. Suttinant Nantachit, M.S.IMajor-Advisor
LLect. Thanakorn Uan-on, D.Engr.Co-Advisor
LProf Liangchai Limlomwongsg Ph.DDeanFaculty of Graduate Studies
Lect. Thanakorn Uan-o4 D.Engr.ChairMaster of Science Programme inTechnology of Information SystemIManagement
Faculty ofEngineering
Copyright by Mahidol University
,,Thesis
entitled
COMPUTER HARDWARE INFORMATION SYSTEMMANAGEMENT:
A CASE STTJDY OF YONOK COLLEGE
was submitted to the Faculty of Graduate Studies, Mahidol University
for the degree of Master of Science (technology of lnformation System Management)
onMay 24, 2002
9/4i*Jr u^uL\r:Lect. Suttinant Nantachit, M.S.Chair
a
a
Lect. Thanakorn Uan-on, D.Engr.
Member
E*" k.t*ditAsst.Profl Kasem Kulpradiq M.Sc.Member
,/vl'L ' , t ) -\1.n..-*.-
Profl Liangchai Limlomwongse, Ph.DDeanFaculty of Graduate Studies
IMahidol University
Lect. Thanakorn LJan-on, D.Engr.DeanFaculty ofEngineeringMatridol University
Copyright by Mahidol University
ACKNOWLEDGEMENT
I wish to extend my sincere thanls to Lect. Suttinant Natachait my
major advisor and Dr. Thanakorn Uan-on my co-advisors for their guidance and
revision of thesis proposal. My success in this completing this study became a
reality with kind supervision of my advisor.
Special thanks to Lect. Atichart Harnchamchai and Lect. Sumana
Suwanwilai for their guidance.
I would like to thank Nk. Nimit Pootkajurg who have friendly gvine
discussion and important suggestions to my thesis and IT officer's of Mahidol
University for all their advice and support.
pinally, I wish to express my deepest thanks my parents for their love,
patience uoderstanding and support during the period of my study.
Thanom Kanitpanyachmeon
Copyright by Mahidol University
Fac, ofGrad. Studies, Mahidol Univ. Thesis / iv
a
4037636 EGTIA{ : IvIAIOR: TECHNOLOGY OF INFORI\{ATION
KEY WORDS
SYSTEM MANAGEMENT; M.Sc. (TECHNOLOGY OFINFORMATION SYS]EM MANAGEMENT)
: SYSTEM AI{ALYSIS / SYSTEM DESIGN /INFORMATION SYS]EM / DATABASE
THANOM KANITPANYACHAREON: COMPI.ITER HARDWAREINFORIVIATION SYSTEM MANAGEMENT: A CASE STI.JDY OF YONOKCOLLEGE. TIIESIS ADVISORS: SUTIINAI.IT NAI{TACIIIT, M.S.,THANAKORN UAN-ON, D.Engr. I 12 p. ISBN 97 4-04-1895 -3
This research was undertaken for the purpose of creating a database and an
application of computer hardware information system management, which reduces
access time, increases accuracy and maintains consistent data- The case study was
canied out at Yonok college. The information system was designed and developed
using data flow analysis, relational database Mcrosoft Access 97). The
application was created using Microsoft Visual Basic 6.0 and a report was created
using Crystd Report 8.0.
The information system consists of tbree major processes: 1) Data
manipulation: Manipulating relative d, a;2) Transaction processing: Supporting
operation management, i.c. receiving, maintenance and repair; 3) Queries and
Reports processing pre-defined outputs and preplanned printed reports. Users are
divided into 3 levels: database adminisfoators, operators and general use6.
In testing the system, it was seen that the information system can enable
the user to work more conveniently, fhster and more accurately, and it solves the
prohlem of inefficiency in computer hardware management.
Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. Thesis / v
N37636 EGTIA{ : fl rclrisr : ryrnlula6nr:f,nnr::suuf,lidtJrytfl;
en.u.(rnalulatnr: f,nnl::suud'trdurmf,)
Aq6v,dqdavouou nilnilqq1r05r[ : fl 110flR1:5yu:Jd15durmf,qiln50rn0u?'l?lnoiifl uldu
IUUN (COTWTTTUR HARDWARE INORMATION SYSTEM MANAGEMENT: A CASE
STT,IDY OF YONOK COLLEGE). fl ats Rr: uRt rn ?ilqilenuru'n ud: qvr f; riud riu vr6o
M.S., ruln: daudou, D.Engr. rcl uil't.IsBN 924{4-189s-3
o- i - o d i 9, et s r r lo vqtuTiluii 6'oririlurfioafi.rgrudoryn lrau Iil:un:rurl:uqnddriliu:u:JlJfl'r:- I d q I aa a qs ir ya g i
6lulmf,qiln:iln0il1l?r9ro: R:ilf,nul?mulau luun nY?uaor?alflr:rt1n{iioua lililn?lil
gndorunraoondo{fl o{{orya ru:rrd1:durvrf,oonuuuuaufifl urdrue6?'rn:1ufn:uud
{orya (oata flow analysisl, gru{oryarfitdurfluf, (relational database ld uicrosoft Access
gz) a$NltJ:unruiltsslndlould}huntl, Microsoft visual Basic 6.0 unsdgl{iru{t1u
dee,Iil:un:il Grystal Report 8.0
r uurl d'r: durvroqrJn: aiooil?'r^?mo$il:snoild?u6i?uil:unoilufrn s ciau 6o l)
nriffonffislu{oqa: f,nnr:{oryndrg'rrdidorflorlursun 2) Rr:ilruil?n0{n:1uR'rt
r:JfiuuurJas: a#uaqu{1uil?il15qrJn:afnorfiarooflduri nr:iuqilntof nr:quaf,nur
rtau Rl:qioiltllril 3) Rl:dolrnlrluau:lu{rlu: il:sruranl:douolrJuas:lu{lu louldr{r
nrturj.rfrldoonrfl u g :sdufis fruBur:gru{0rya, rffrr#rdilfr ffirru uav fl drtatrJ
- Cuyo I t d a Ir.rd'sornfr "t6fi rnr:moeouruuuud? rsuudl:durnflqrJn:ofinoufr'amoialil'l:o
rieu1ffllft1u6l1r.n5ofir.rruldaro?n r?orf? uavfineruqndsrurndu uaudlul:odxu
udflrguruaurJf,urJErnr:drrfrurrutihlfilrsamfinrurosnr:uiur:qrJn:sinsufiarosfdqrdraaJ,t?ruJu:sf, vt5 R1?rlju rdlfl uodr.:6
Copyright by Mahidol University
CONTENTS
ACKNOWLEDGEMENTS
ABSTRACT (ENGLTSH)
ABSTRACT (rHAr)
LIST OF TABLES
LIST OF FIGI]RES
CHAPTER I INTRODUCTION
Statement ofproblem
Jtstification
Objective
Scope of work
Expected result
CHAPTER TI LITERATI]RE REVIEW
Page
iii
iv
Y
Yiii
q
Material Management and Inventory Control
Management lnformation systems
Database
Data Flow Analysis
Visual Basic
ADO (ActiveX Data Object)
Seagate Crystal Report
Testing Copyright by Mahidol University
vlt
CONTENTS (Continued)
Related Research
CIIAPTERM MATERIALS AI\D METEODS
Methods
Materials
CHAPTER TV RESI]LTS
Current System
Results from System Analysis and Design
Computer Hardware information System Management
for Yonok College
CHAPTER V DISCUSSION
CHAPTER VI CONCLUSION
REFERENCES
APPENDIX A
APPENDIX B
APPEI\DD( C
APPENDD( I)
APPENDIX E
BIOGRAPITY
Page
22
24
24
27
28
28
30
56
59
61
63
65
78
87
107
110
tt2
Copyright by Mahidol University
t
LIST OF TABLES
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Table
Computer
Hardware
IIW_T1pe
HW_Detail
Size
Speed
Brand
Model '
Vendera
Deparhent
Section
Room
Employee
UserRight
ReceiveMaster
ReceiveDetail
Repair
Maintenance
MaintenanceSign
Page
49
49
50
50
la
50
50
50
5l
5l
5t
5l
52
52
52
52
52
53
53
53
564. I Ancestor window objectsCopyright by Mahidol University
tx
LIST OF TABLES (Continued)
Table 4.2 Capability of process
Table 4.3 Privilege of users
Page
57
58
Copyright by Mahidol University
a
I LIST OF FIGI]RES
Figure 2.1 The tbree levels of management
Figure 2.2 MIS subsystems
Figure 2.3 Data, Flow Diagram using Yourdon notation
Figure 2.4 ADO objectmodel
Figure 2.5 Object in ADO
Figure 4.1 Crraphic presentation of current receiving process
Figure 4.2 GrEihtc presentation of maintenance process
Figure 4.3 Graphic presentation of repair process
Figure 4.4 Context dia,ganr of computer hardware information
system management
Figrre 4.5 DFD Level l: Computer hardware information
system management
Figrne 4.6 DFD Level 2: lDatamanipulation
Figure 4.7 DFD Level3: Datamanipulation
Figure 4.8 DFD Level 2: 2 Transaction process
Figure 4.9 DFD Level 3:2.1Receive hardware
Figure 4.10 DFD Level 3:2.2 Maintenance hardware
Figure 4.1I DFD Level 3:2.3 Repair hardware
Figrne 4.12 DFD Level 3:Z. Receive repair hardware
Page
7
8
1,7
18
20
28
29
30
3l
33
34
35
36
37
38
39
3l
Copyright by Mahidol University
x
,
LIST OF FIGURES (Continued)
Figue 4.13 DFD Level 2: 3 Query process
Figure 4.14 DFD Level2: 4 Report generation
Figrre 4.15 First level process description
Figue 4.16 Third level process description
Figure 4.17 Third level process description (continue)
Figure 4.18 Third level process description (continue)
Figure 4.19 Logic summary of procedure
Figure .z0Dabdictionary entries of data flows
Figrne .ZlDatadictionary enties of data flows (continue)
Figure 4.zzDatadictionary entries of data flows (continue)
Figure 4.23 Data sEucture diagram
Figure 4.24 Strucnre chart
Figure B.l Departuent
Figure B.2 Section
Figure B.3 Employee
Figure B.4 Vender
Figrre B.5 Computer
Figure 8.6 Hardware
Figure B.7 HW_Type
Figure B.8 Change password
Page
40
40
4t
42
43
M
45
45
46
47
54
55
77
77
78
78
79
79
80
80Copyright by Mahidol University
r
a
?
LIST OF F'IGURES (Continued)
Figrre B.9 Receive new hardware
Figure B. I 0 Maintenance
Figrue B.1l Repair
Figure 8.12 Manage hardware
Figure B.l3 Manage computer
Figue B.l4 Manage user
Figrre B.l5 Search hardware
Figure 8.16 Select building
Figure B.l7 Select hardware status
Figure B.18 Login
Figure B.19 Preview
Figure E.l Organization chart of Yonok College
xI
Page
8l
8t
82
82
83
83
84
84
85
85
86
lil
Copyright by Mahidol University
t
Fac. Of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inforn. Sys. Manag.) / 1
CHAPTERI
INTRODUCTION
1.1 Statement of problem
Yonok College is private college which received the firnd from USAGE and
Baylor University. We try to allocate this fund effectively, to buy the good machine
and material to serve the studen! faculty member, staffand social, we also allocate the
studying and teaching, we use the computer in the services. We establish Information
Technology Center for supporting every deparhents in the college in the way of
supply and maintenance the computer.
Since of the grourth of organization and the development of technology,
computer are taking more action in the field of teaching and studyrng, so the computer
are not enough for using of students, faculty member, staff and executive level. Then
the college is increasing the budget for buying the computer.
Another function of information technology center is collected the college
information of computer accessories and maintenance all of them. There axe many
computers which are needed the maintenance because of their dsslining. In the past
the information technology center objective is to serve every departrnent in case of
emergency and the staffof this center also have the teaching load so the development
of hardware information system is the last thing which we do.
Now each departuent have a lot of processes of purchasing,
l^.
I
Copyright by Mahidol University
a
t
Thanom Kanitpanyachareon lnfroduction / 2
maintaining and reporting of computer. Same time they also have the
duplication of working, so it make the work late, error and uncomfortable for the later
searching.
1.2 Justifrcation
Computer Hardware Information System Management offers potential to solve
many of the problems faced by the infomration technology. It takes these promises:
l. Reduced mistake and wasting time to searching computer hardware information"
maintenance data. 2. Improved data manipulation capabilrty by using relational
database. 3. Feasibilrty to use, because the Computer Hardware Information System
Management could !s implemented on existed Yonok College's resources.
13 Objective
To design and create database of Computer Hardware Information System
Management for case study of Yonok College
To develop Application of Inventory and Management system
1.4 Scope of work
Computer hardware included computer and computer equipment.
Create database using Microsoft Access 97.
Create application program using Visual Basic 6.0, which has functions
follows:
- Inventory
- Hardware receiving
a
l.
a
Copyright by Mahidol University
,
Fac. Of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 3
- Management
' - Hardware maintenance
- Hardware repair
Develop applicationprogram using features of craphic User Interface (GUr)
Test the system using sample data from departnents of Yonok College
1.5 Expected result
1.5.1 The marn output of this research is Computer Hardware Information
System which will be more effectiveness and be able to support user and center
infomration technolo gy staff.
1.5.2 Users are able to use and maintain the system easily.
l"
Copyright by Mahidol University
a
Thanom Kanitpanyachareon Literature Review / 4
CHAPTER II
LITERATT]RE REYIEW
In this chapter, *Material', 'oComputer" and *Computer Equipmenf, are the
same meaning
2.1 Material Management and Inventory Conhol
Material management is a coordinate firnction responsible for planning and
contolling materials flow. Its objectives are as foltows(4):
o Manimize the use ofthe firm's resources.
o Provide the required level of customer service.
Irwentory managemenr is responsible for planning and contolling inventory
from the raw material stage to the customer. Inventory must be considered at each of
the planning levels and is thus part of production planning, master production
scheduling, and material requirements planning({').
The term Inventory can be used to mean several different things, zuch as (5);
l. The stock on hand of materials at a given time (a tangible asset which can
be seen, measured and counted);
2. An itemized list of all physical assets;
3. (as a verb) to determine the quantity of items on hand;
4. (for financial and accounting records) the value of the stock of goods
owned by an organization at particular time.Copyright by Mahidol University
?
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 5
Material Management Functions and Responsibility
l. Procwement and Purchasing
Purchasing is the 'oprocess of buying", purchasing is solely the
responsibility ofthe purchasing departrrent. Obtaining the right material, in the
right resource, and at the right price are all purchasing firnctions (4).
2. Receiving
Responsibilities of material receiving are checking quantity and quality
of receipt material, which justifr; pruchasing order, storage area selection and
providing tools and people for transfer. The main firnctions are (8).
After Materials have been received, receiving report will generate. The
report has an important supplier data for example, tansport date, decayed
materials, percentage of refumed materials, and so on. In addition, this report is
useful for summarizing purchase order and negotiating of supply agreement in
future (9,10).
3. Supervision and protection
This section has to plan appropriate stor4ge location and method,
provide security, protect materials from damage and lost. These tasks are
convenient for easy and quick material identification (8).
Closed stores system stores materials in closed or conholled area,
which does not allow anyone to go into there except officer. Materials are
distibuted and kept when there are requisition or receip report. The objective
of this system is best material safety. It has strict accounting control,
furthermore receiving record and inventory identification are important
activities (9,10). Copyright by Mahidol University
Thanom Kanipanyachareon Literature Review / 6
4. Distibution
Main responsibilities of distibution are authorization verification;
disEibuting materials follow requisition, checking characteristic of distibuted
materials (8).
5. Inventory control
It sets inventory contol system, which suits for each 6pe of materials
and contols material quantity (8).
since recording and keeping are separated, sometimes the quantity of
on hand material may not equal to the quantity of material balance on report.
So, it should check the quantity of material in period which has 3 methods as
follows; Fixed Annual Inventory, continuous Inventory and Low-point
lnventory (9,10).
6. Record and report
It has to record of receipq distribution, contol and quantity on hand of
materials, update data, collect purchasing data and statistical data, create report
such as receipt report, annual reports and stock checking (8).
7. Unused Disposal
This section has to find rmused materials, report list of unused materials
of every section, distinguish rmused materials from stock and propose
effective unused disposal method (8).
8. Transportation
Transportation has to prepaxe and pack materials, identiff
tansportation method and send them to destination on time. The destination
must get good material in the right quantity (8).
ti
Copyright by Mahidol University
P
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 7
9. Cooperation to other deparhents (8).
2.2 i0f,arorge:ment Infoluation Systems
Management positions in a firm are often broken into tbree level: upper
management (the president and vice-presidents), middle management (the people
responsible for anything between upper and lower management), ffid lower
management (the people directly responsible for managing those who produce the
firm's outputs). The roles of these levels of management are summarized in the
pyramid in Figure 2.1
$pporllnglnformdlon
qdems
trt[ddlEi,lanagsment
lowerll,lhnagement
Figure 2.1 The tlree levels of management
Management information system (MIS) is any system that provides people
with either data or information relating to an organization's operation. The systems
provide routine informationto managers and decision-maker. The focus of a MIS is on
operation efficiency (1,2).
The MIS effort in an organization arr composed of the following four
subsystems. (See Figure 2.2) Knowledge-based systems such as artfficial intelligence
(AI) and expert systems @S) are also information system, but are not depicted as
Srdeglcmanagement
ES _-___-____+
MM
Copyright by Mahidol University
t
Thanom Kanitpanyachareon Literature Review / 8
separated as subsystems because they may be used in conjtrnction with a'[?S, MRS,
DSS and OIS.
- Transaction processing systems (TPS) comprise the routine, day-to-day
accounting operations that have been an important part of most firms'
computer processing Transaction processing cycle consists of five major
segments: data entry, tansaction processing, file/database updating,
report/document getreratio& and inquiry/respome processing.
Figure 2.2 MIS subsystems
Management reporting syste,m (l\[RS) generates the preplanned printed
reports for decision-making purposes. MRS are used for both management
planning and management confrol firnctions. Properties of management
reporting systems:
- Support stucture and semi-structured decisions, primarily at the middle
and lower-management levels.
- Provide fixed tlpes of infomration, in an established format; the
information requirements of users are normally known and stable
Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 9
- Often implemented with voluminous, hardcopy reports, requfuing each
user to search specifically for key information.
- Usually require a formal request to be submiued; formal systems
development may be required to approve
- Often require a formal run schedule
- Usually consist of internal operational datq rather than data about the
extemal environment
- Usually more concerned with data about the part than relating to the
future
- Often oriented to summary and exception reporting
- Decision support systems (DSS) provide a set of easy-to-use modeling,
retieving and reporting capabilities so that. people can generate the
informationthey feel will be useful to them when making decisions.
- Office information systems (OIS) include the use of such computer-based"
office-oriented technologies as word processing, desktop publishing,
electronic-mail, video teleconferencing, and so on (l).
Form these definitions, The Computer Hardware Information System combines
between TPS and MRS.
2.3 Database
2.3.1 Concept of Database
A database is an integrated collection of data stored in different tlpes of
records, and in a way that makes them accessible for multiple applications. The
interrelation of the records derives from the relationships in the data, not from theirCopyright by Mahidol University
Thanom Kanitpanyachareon Literature Review / 10
physical storage location. Records for different entities are tJpically stored in a
database(whereas files store records for a 5ingle entity). In a university database, for
example, records for shrdents, courses, and faculty are interrelated in the same
database. The sEucture of the relationships in most database fotlow one of three
logical database models: Hierarchical, networh and relational. Hierarchical and
network models are still being used today, but relational models are the most popular.
A brief outline of database models follow:
Hierarchical or Tree Model:
A Hierarchical model is organized in top-down or inverted fieeJike structure.
An organization charq for example, shows the layers of executives, middle managers,
and operating personnel. The hierarchical model is shown with the highest level of fiee
known as the root. The nodes of the tree represent entities. A hierarchical model
permits two tlpe of relationship:
o One-to-one: An entity at one level is related to one entity at the next
level.
r One-to-many: An entity at one level is related to zero, one, or more
entities at the next level.
The design of ahierarchical database will affect the accessibihty of the data. In
the store example, Items are always related to an order. In additioq orden are always
related to a specific customer.
It is very efficient to have the orders for certain customer or the items in a
particular order. Anomalous (undesirable) side effects occur under certain database
designs. Hierarchical database involve anomalous with respect to the following:
Copyright by Mahidol University
Fac. of Grad. Studies, Matridol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 11
Insert ofrecords: A dependent record cannot be added to the database
without a parent. For example, Items cannot be added without their
inclusion in an order.
Delete of record: Deleting a parent from the database also deletes alt its
descendants. For example, deleting a customer also deletes outstanding
orders.
NetworkModel:
A network model is similar to the hierarchical model, except that an entity can
have more than one parent. In the college example, a relationship can be shown
between instructors and students. This capability intoduces the use of an additional
tlpe of relationship in the data:
o Many-to-nrany: An entity can be related to 7*ro, one, or more than one
entity at another level.
In network database, as in hierarchical database, the relations between entities
must be stablished at the time the data model is established and the database created.
The systems analyst must conform to these details when developing applications that
enter or retrieve dana during processing.
The hierarchical and network database are conceptually simple and appear
uncomplicated when fust examined. In a large database environment, however, they
can rapidly evolve into a complicated web of intenelationships that are difficult to
manage as the database evolve with use.
Relational Model:
The relational data model, developed in 1970 by E.F. Codd, is based on a
relation, a two-dimensional table. Row in the table represent the records; and columnsCopyright by Mahidol University
Thanom Kanitpanyachareon Literature Review / 12
show the attributes of the entity Relational databases use on a model to show how data
in a record me logical related.
The order of the data in the table is not sienificant and no order is implied
when records are included in the relation. Similarly, the physical details of storage are
not of concern to the analyst. Relational tables show logical, not physical,
relationships.
When a request for information is made, the system produces a table
containing the information. In the laundry exanrple, if a manager wishes to deterrrine
who uses napkins, the system will produce a table containing the names of all users of
napkins.
The relational database model is by far the most widely used. It is easier to
contol, more flexible, and more infuitive than the others because it organizes data in
table. The ability to link relational tables also allows user to relate data in new ways
without having to redefine complex relationships. Because of its many advantage,
many companies use the relational model for large corporate databases, such as
marketing and accounting. The relational model can be used with personal computers
and mainframe systems.
2.3.2 Normalization
Normalization is a process of simpliffing the relationship between data
elements in a record. Through Normalization a collection of data in a record structure
is replaced by successive record stnrctures that are simpler and more predictable and
therefore more manageable. Normalization is carried out for four reasons:
Copyright by Mahidol University
Fac. of Gmd. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 13
o To structure the data so that any pertinent relationship between entities
can h represented
o To permit simple retieval of daa in response to query and report
requests
To simpliS the maintenance of the data tbrough updates, insertions,
and deletions
o To reduce the need to restructure or reorganizs data when new
application requirements arise
The steps in nomalization
First Normal Form (lNF): A relation is in I NF if the values in the relation
are atomic for every atfribute in the relation. By this we mean, simply, that no athibute
value can be a set of values or, as it is some times expressed a oorepeating
soupo'.
Second Nonnal Form (2NF): A relation is in 2 NF if no nonkey attribute is
in firnctionally dependent on just a part of the key. The process of decomposing the
non-2NF relation into 2NF relations follows a few simple steps: 1) Create a new
relation by using the attibutes from the offending FD as the attributes in the new
relation. The determinant of the FD becomes the key of the new relation. 2) The
attibute on the right side of the FD is the eliminated from the original retation. 3) If
more than one FD prevents the relation fuom2NF, repeat steps I and2 for each FD.
Third Normal Form (3NF): A relation is in 3 NF if for every functional
dependency (FD): x -> Y, X is a key. The 3NF is often called Boydd codd Nomral
Form (BCI.IF)
Copyright by Mahidol University
[.
:
Thanom Kanitpanyachareon Literature Review / 14
Fourth Normal Fom (aN$: A relation is in 4 NF if it is 3NF and has no
multivalued dependencies (MVD). Since the problem of multivalued independencies
arises from multivaled attributes, we can reach a solution by placing all multivalued
attributes in relations by themselves, together with the key to which the attibute
values apply.
Fifth Normal Form (5N$: Functional dependency and multivalued
dependency constaint result in the need for Second, Third, and Fourttr Normal Form.
The 5NF eliminates anomalies that result from a special type of consraint calted join
dependencies.
2,3.3 Relational model terms (3)
Key A minimal set of atnibutes that uniquely identifies
each row in a relation.
A singls column or the combination of multiple
columns that uniquely identifies the row in the table.
A single column or multiple column that relate to the
primary key in another table.
It is used to store data. It is organized in a row (tuple)
and /column (attributQ manner that data can be
manipulated by DBMS.
A rule that resfiicts the values in a database.
Atomic value
The value of an atffibute in a tuple determines the
Primary key
Foreign key
Table (relation)
Constraint
Atomic value
Functiona
Copyright by Mahidol University
Fac. of Grad Studies, Mahidol Univ.
dependency (FD)
Determinant
Multivalued
dependencies
MVD)
M.Sc. (Tech. of Inform. Sys. Manag.)/ 15
value of another athibute in the tuple.
The attribute(s) on the left side of a fimctionat
dependency; determine(s) the value of other aftributes
. in the tuple.
A constraint that guarantees the independence of multi
valued attributes.
2.3.4 The database management system (DBMS)
The database management system is a program for bridging the file structures
that store the data and the data stuctures that represent the daa needs of users. DBMS
consist of group of programs that can be used as an interface between a database and
the user or the database and application programs. Typically, this software acts as a
buffer between the application progruns and the database itself (2).
2.4l)ata FIow Analysis
Data flow analysis examines the use of data to carry out specific business
processes within the scope of a systems investigation. The components of data flow
stategy span both requirements and design. A prescribed notation facilitates the
documentation of the current system and its analysis by all participants in the process
of detemrining system requirement.
Copyright by Mahidol University
i
Thanom Kanitpanyachareon Literature Review / tl6
Tools of Data Flow Strategy.
l. DataFlowDiagram.
The graphic tool used to describe and analyze the movement of data
through a system - manual or automated - including the processes, stores of
data, and delays in the system.
2. Data Dictionary
The logical characteristics of current systems data stores, including
tlame, description, aliases and organization. Identifies processes where the data
used and where immediate access to information is needed. Serves as the basic
for identiffing database requirements during system design.
3. Data Stucture Diagram.
A pictorial description of the relation between entities (people, places,
events and things) in a system and the set of information about the entity. Does
not deal with physical data store.
4. Structure Chart
A design tool that pictorially shows the relation between processing
modules in computer software. Describes the hierarchy of component modules
and the daa that ffs fiansmitt€d between them. Includes analysis of input-to-
output transforrrations and analysis of tansactions.
The first two are developed during requirements determination while the later
two most useful during systems design (6).
,
Copyright by Mahidol University
9
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of lnform. Sys. Manag.) / 17
Figrrre 2.3 DataFlow Diagram using Youdon notation
2.5 Visual Basic
Visual Basic is a complete set of tools to simpliff rapid application
development. The rrvisualr part refers to the method used to create the graphical user
interface (GUD. Rather than writing numerous lines of code to describe the
appearance and- location of interface elements. The "Basic" part refers to the BASIC
@eginners All-Furpose Slmbolic Instnrction Code) language, a language used by
more prograrnme$ than any other language in the history of computing. Visual Basic
has evolved from the originat BASIC language and now contains several hundred
statements, functions, and keywords, many of which relate direcfly to the Windows
Grrr (rs).
2.6 AI)O (ActiveX Data Object)
ADO is one of data access interfaces in Visual BASIC. The ADO object model
defines a collection of programmable objects that support the Component Object
Model (COM) and OLE Automation to leverage the powerfirl parmer technology
called OLE DB. The OLE DB is a COM-based interface between data providers and
client applications. Data providers can be anything from relation databases to file
system. Microsoft knew it needed to create an easy-to-use object layer on top of OLE
\t}{a Sors
Copyright by Mahidol University
ta
Thanom Kanitpanyachareon Literature Review / 18
DB, The OLE DB Model shown in Figure xlo(. Thus, ActiveX Data Objects were
bom. The ADO object model - when compared to other data access objects such as
RDO or DAO - is flatter (has fewer objects) and simpler to use. The ADO object
model shown in Figrre 2.4
Figure 2.4 ADO objectmodel
There are seven objects in the ADO object model, as described in the following
list (1s).
Command object Maintains information about a command, such as a query
sting, parameter definitions, ild so on. we can execute a command sfiing on a
Connection object of a query sting as part of opening a Recordset object, without
defining a command object. The command object is useful to define query
parameters or execute a stored procedure that retums output parameters. The
Command object supports a number of properties to describe the tlpe and purpose of
the query and help ADO optimize the operation.
a
OlEtldesoroE RBldlonEfDdabesE
Copyright by Mahidol University
a
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 19
Connection obiect Maintains connection information such as cursor qfpe,
connect sfring, query time-ou! connection time-out, and default database.
Eror object Contains extended error information about error conditions
raised by the data provider. Because a single statement can generate two or more
errors, the Errors collection can contain more than one Error object at a time.
X'ield object Contains information about a single column of data within a
recordset. The Recordset object uses the Fields collection to contain all of its Field
objects. This Field information includes datatlpe, precisioq and numeric scale.
Parameter object A single parameter associated with a Command. The
Command object uses the Parameters collection to contain all of its Parameter objects.
ADO Parameter objects can be created automatically by sending queries to the
database. However, we can also build this collection programmatically to improve
performance at run time.
Property object A provider-defined characteristic of an ADO object. ADO
objects have two types of properties: built-in and dynamic. Built-in properties are
those properties implemented in ADO and available to any new ADO object. Dyramic
properties are defined by the underlying data provider and appear in the Properties
collection for the appropriate ADO object. For example, a property may indicate if a
Recoldset object supports tansactions or updating. This is one of the greatest featrues
of ADO, in that it lets the ADO service provider present special interfaces.
Recordset obiect A set of rows returned from a guery, including a cursor into
those rows. We can open a Recordset object (that is, execute a query) without
explicitly opening a Connection object. However, if we do first create a Connection
Copyright by Mahidol University
c
a
Thanom Kanitpanyachareon Literature Review / 20
objec! We can open multiple Recordset objects on the same connection. Objects in
ADO shoum in Figure 2.5
Grn€dbr
Erq
Roperly
@ffiisfll
Eafl€tat
Fioperty
RecordU
Fleld
Roperty
FioFty
t
Figure 2.5 Objects in ADO
2.7 Seagate Crystal Report
Crystal Reports is designed to work with yotr daabase to help you analyze
and interpret important information. Crystal Reports makes it easy to create simple
reports, and, it also has the comprehensive tools you need to produce complex or
specialize reports.
Crystal Report is designed to produce the report you want from virtually any
data source. Built-in report experts gurde you step by step through buitding reports and
completing conrmon reporting tasks. Formulas, cross-tabs, zubreports, and conditional
forrratting help make sense of data and uncover important relationships that might
othenrrise be hidden. Geographic maps and graphs communicate information visually
when words and numbers are simply not enough (16).Copyright by Mahidol University
a
Fac. ofGrad. Studies, Mahidol Univ. M.Sc. (Tech. of Inforn. Sys. Manag.) / 21
2.8 Testing
Back-box testing attempts to find erors in the following categories:
o incorrect or missing flrnctions
o interface errors
. erron in data strucfures or extemal database access
o performance errors
o initialization and termination erors.
Back-box testing are designed to uncover erors in functional requirements
without regard to the intemal working ofprogam.
Boundary value arulysis (BVA) has been developed as a technique Boundary
value analysis leads to a selection oftest cases that exercise bounding values.
Guidelines for BVA are as following
1. If an input condition specifies a range bounded by value a and b, test cases
should be designed with values a and b, just above and just below a and b
respectively.
2. If an input condition specifies a number of values, test cases should be
developed that exercise the minimum and maximum numbers. Values just
above and below minimrrur and maximum are also tested.
3. Guidelines I and 2 are applied to output conditions. For example, assume
that a temperature vs. pressure table is requited as output from an
engineering analysis program. Test cased should be designed to create and
output report that produces the ma:rimum (and minimum) allowable
number of table entries.
Copyright by Mahidol University
Thanom Kanitpanyachareon Literature Review / 22
4. If intemal program data structures have prescribed boundaries (e.g., an
array has a defined limit of 100 enties), be certain to design a test case to
exercise the data structure at its boundary (7)
2.9 Related Research
Wijada Rattamanee (l l) analyzed and designed inventory control system of
KMITL, in particular controlling and auditing models. The design was intended to be
easy and speed up the operation procedure. The system was analyzed and designed by
data flow diagram using Gane and Sarson notation. The new systems included
database design, prototype design and report design.
Nathavipa Phasulq Voramon Uronkarn (12) did computer program that was
able to collect equipment datq academic equipment and office equipment in Industial
Engineering Deparhent factory of Engineering Mahidol University. The program was
Windows 3.11 and \Mindows 95 platform. It can be added data, edited data listing and
reported in formal forms.
Wilert Lertbudikul (13) designed and developed medical supply inventory
information system for a large hospital. The research followed these steps; current
system feasibility sdy, system analysis, system design and system development. The
system was designed and developed into 2 types, which were online interactive using
CICS/VS communication contol system and batch using OSA/SI operating system.
The system focrsed on high data quantity, high-speed data searching, collecting and
summarizing 1fos important information for management. The system consisted of 4
subsystems; initial and security subsystem, basic database recording subsystem, daily
Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 23
transaction zubsystem and query and statistical subsystem. This developed system was
suitable for a large hospital.
Usa Jugnimongkol (14) designed and developed information system for
government inventory management for Land development departuent. The system
reduces access time, increases accuracy and consistent data The information system
was designed using data flow analysis, relational database (Sybase SQL anywhere 5.0
as DBMS) and Object-Oriented programming @owersoft Powerbuilder Enterprise/32
Version 6.0).
Copyright by Mahidol University
!
Thanom Kanitpanyachareon Materials and Methods / 24
CIIAPTER III
MATERIALS AI\D METIIODS
3.l Methods
3.1.1 collect data and identify system requirement of yonok college
. Primary data are collected from observe staffs at selected times to see
how data are handled and what information people need to do theirjobs
and interview center information technology manager. see
questionnaires in Appendix D.
o Secondary data are collected from docnments, reports and database as
following:
- Organization chart (see in Appendix D.)
- The principle for hardware receiving
- Hardware receiving report
- Asset of accounting report
3.1.2 Analysis and design system
Analysis system
- Gathering and clariff system requirement
- Organize data into a meaningful representation of the information
system that exists and of the requirements desired in a replacement r
system. Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 25
- Modeling the processing elements of an information system and how
data are tansformed in the system.
- Shows the scope ofthe system using context diagram
- use data flow analysis to analyze the system. The components of data
flow sfrategy span both requirement deterrrination and system design.
Following the flow of data tbrough processes tells how data are iopoq
processes, stored, retieved, used, changed and output.
Design system
Design of database
.. _ Identiff data used and information produced
- select and identifr data from collected data and system
: ,.qrrir"rent, it gets related entities, attributes and constraints.
- Identiff relationships between those entities and design database
with relational database concept.
Design of inpsl and output
Design inpuUoutput screerui. These screens are user-friendly
with GIJI (graphic user interface). The input screens must have input
contols, which provides way to ensure that
only authorize usenl can access the system
guarantee the transactions are acceptable
the data are validated for accuracy
there is the determination whether any necessary data have
been omitted.Copyright by Mahidol University
Thanom Kanitpanyachareon Materials and Methods / 26
Design output reports, which support the activity of the
operation and management. The outputs are generated in tubular form.
Deign of procedure
Distinguish between manual and computer processes. The
computer processes axe to identiff constraints such as authorization,
volume, process timing, input method, ouput method and so on.
Design procedure and process specification. Formal statements
using tecbniques and languages that enable analysts to describe
imFortant activities that make up the system.
3.1.3 Develop system
- create database. Transform designed data structure diagram to
database.
- Develop application to connect database and support operations. This
step has unit testing.
3.1.4 Test softrrare
Verifu and validate software.
Check if the software conforms to its specification and if the softruare
meets the expectation of the software requirement by black-box testing.
Uncover errors and ensure that the software performs properly. Test cases are
designed by boundary value analysis method.
Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of lnform. Sys. Manag.) / 27
3.1.5 Summarize and create document
This document includes detail, methodology, conclusion and
recommendation of the research.
3.2 Materials
3.2.l lfardware:
o Personal Computer
. Intel Pentinm III 1000 MHz
r RAM 128 MB
o Hard disk 40 GB
3.2.2 Softrrare:
o Windows XP
r Microsoft Visual BASIC 6.0
r Crystal Report 8.0
o Microsoft Access 97
I
I
Copyright by Mahidol University
Thanom KanitpanyachareonResults /28
CHAPTER TV
REST]LTS
The result of study for this resemch is the information system for Computer
Hardware Information System Management: A Case Study of Yonok College. The
inforrration system is designed and develop using data flow analysis, relational
database and programming.
4.1 Current SVstem
Current computer Hardware Information system Management in gaph
presentation style, which may be more effective to describing the system since the
standard symbols, may limit communication.
l1 @a
lJ --Vender
o
O
t]tber
Figure 4.1 Graphic presentation of current receiving process
Copyright by Mahidol University
a
,
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 29
Figure 4.1 describes receiving process Vender submits hardware and receiving
report to officer. The receiving report consists of Vender detail (name and address),
receiving date, hardware detail, quantity and cost per unit of hardware. Next, Officer
will checking hardware and generate hardware ID register hardware data and
distribute hardware to user.
Figure 4.2 Crraphic presentation of maintenance process
Figure 4.2 Maintenance process. Officer will maintenance hardware. Valid
hardware is collected and generated to repair report and send hardware to Vender to
repair.
O
iloffler
a
t]VendEr
Copyright by Mahidol University
a
,l
Thanom Kanitpanyachareon Results /30
Figure 4.3 Graphic presentation of repair process
Figure 4.3 Repair process. User request officer to check out of order hardware.
Valid hardware is collected and generated to repair report and send hardware to
Vender to repair;
4.2 Results from System Analysis and Design
The results from system analysis and design consist of data flow diagram
(describes and analyzes the movement of data through sys0em), data dictionary
(defines systems elements), data stnrcture diagam (describes relation between
entities), stucture charts, inpuf, output and program specification.
4.2.lData Flow Diagram
In Figure 4.4,T\e presentation Saphs of current system are converted to new
system, which consists of the following entities: Section, Vender, Computer
Information Technolo gy Center.
o
lltber
O
uofficer
a
uVender
Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 31
maintenane_dda
report
repair_report
omputer_dda
omputer_dgn
Figure 4.4 Context diagram of Computer Hardware Information Sy.stem Management
The new syst€m revealed 4 major process: data manipulation, transaction
process, queries process and report generation. The overall system, consisting of these
processes, is shown in Figrre 4.5
@mputaFErdt /ere
!fformatlonQ$ent
Figure 4.5 DFD Level l: Computer Hardware Information System ManagementCopyright by Mahidol University
t
!
Thanom Kanitpanyachareon Resuls /32
This data flow analysis also shows that system use 19 data stores, which are
divided into 2 categories:
1. ooBasic data": It consists of 14 data stores, which are COMPUTE&
HARDWARE, HW-TYPE, TIW_DETAIL, SIZE, SPEED, BRAI{D,
MODEL, DEPARTMENT, SECTION, ROOM, VENDER, EMPLOYEE
and USERRIGHT. These data stores are not usually modified. The system
fetch read-only data to display and reference.
2. "Trans datd': It consists of 5 data stores, which are RECEIVEMASTER,
RECEMDETAIL, MAINTENAIICE, MAINTENAI\ICESIGN and
REPAIR These data stores are modified in each transaction process
(recgive, maintenance and repair).
The details of "basic data" and "tansaction dataoo data stores are described in
section 4.2.4 Datfiase Design. The system is explained in detail through the lower-
level subsystem diagram, that developed to understand the activities associated with
the system.
Lervel 2l l.Dafa Manipulation
Data manipulation consists of the activities of adding, deleting and editing
data These activities manipulate daa in o'Basic datd' data store. Some data store has
one-to-many relationship with another one consequently; its activities have a little
different detail.
Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 33
Figure 4.6 DFD Level2: lDatamanipulation
The doumward explosion of the data manipulation process maintains the
scheme introduced at the system level 3 in Figure 4.7.
r .lJfe -fi+q
a
I
,rl. ^gg \a
WC,
L
Copyright by Mahidol University
Thanom Kanitpanyachareon Results /34
.9 ,*-.,-fN"/B!yr;@*-@\3_/ Y Y \=IA
/ ''.,'o
\BASCDATA + lDdale I
Y:7DFD LEVEL 3: 1.1 Add data
DFD LEVEL 3: 1.2 Delete data
DFD LEVEL 3: 1.3 Edit data
Figrue 4.7 DFD Level 3: Data manipulation
,,
Level2: 2. Transaction process
Transaction process consists of 3 activities: 'oreceive hardware", oomaintenance
hardware" and "repair hardwaxe", which are shown in Figrre 4.8. In Figure 4.5 DFD
Level I mentions that the activities use 'oBasic data" and "Trans datd', but it does not
explain. This level explains details of related data stores in.each activity. In addition,
DFD level 3 are shown in Figure 4.9 - 4.12 to clariff the activities.Copyright by Mahidol University
FfW-TY?E
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 35
IEPARIIEi.IT
FEcEVB,IASIER,
Qdr_repot->FEVEETAL
MANIE{AIICE
FfW-DETAL I-IAFOI,InRE
illAlNTS{A,NCESGhI
Mse_Repdr_data
Figrue 4.8 DFD Level 2: 2 Transaction process
"Receive Hardware" activity involves 5 subactivities, o'Generate Receive ID"
subactivity retrieves data from RECEMEIvIASTER. ooEnter Receive Data" subactivity
rerieves data from VENDER and gets receive date. "Assign Computer_ID/fIW_ID"
zubactivity will assign Computer_ID or HW_ID to represent each computer or
hardware. The subactivity retieves from 2 data stores: HARDWARE and
COMPUTER. 'oEnter Computer/flardware data" subactivity retieves data from I data
stores: ROOM, IIW_TYPE, HW_DETAIL, EMPLOYEE, DEPARTMENT,
SECTION, MODEL and BRANID and stores computer or hardware data into 5 data
stores: HW_TYPE, MODEL, BRAND, SPEED and SZE. *Add Receive data"
subactivity stores receive data into 2 data stores: RECEIVEMASTER and
RECEMEDETAIL.
&deve_daa
repdr_repqt\
Copyright by Mahidol University
Thanom Kanitpanyachareon Results /36
--T---]./ z.t.z\
Reetve / Ehter \daa -'l hhle f\1/
RECE\EDETAL rW_DEIAIL
sEcnoNtDEPARil'Tg{T
Figure 4.9 DFD Level 3:2.1Receive Hardware
"Maintenance Hardware" activity involves 3 subactivities, 'oGenerate
Maintenance ID" subactivity retrieves data from MAINTENANCE. *Enter Receive
Data" subactivity retrieves data from VENDER and gets maintenance date. 'oEnter
Maintenance datd' subactivity retieves data from 11 data stores: COMPLJTER"
HARDWARE, HW-TYPE, HW_DETAIL, EMPLOYEE, DEPARTMENT,
SECTION, SPEED, SIZE, MODEL and BRANID. "Add Maintenance data"
subactivity stores maintenance data into 4 data stores: COMPUTER, HARDWARE,
MAINTENAI,{CE and MAINTENA}ICESIGN.
I
!
!
Copyright by Mahidol University
a
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 37
BtrTO\EE
t{/t/_DEtAL
IEPARII{B{r
SECTION
Figure 4.10 DFD Level 3:2.2 Maintenance Hardware
*Repair Hardware" activity involves 4 subactivities, o'Generate Repair ID"
subactivity retrieves data from REPAIR. "Enter Repair Datd'zubactivity retrieves
from 12 data stores COMPUTER, HARDWARE, IfW_TYPE, HW_DETAIL,
EMPLOYEE, DEPARTMENT, SECTION, VENDE& SPEED, Sr7E, MODEL and
BRAI\ID. o'Add Repair data" subactivity retrieves data from MAINTENAITtrCE and
stores repair data into 2 data stores: MAINTENAI\ICE and REPAIR. "Update
Hardware/Computer Status" stores hardware or computer status into 2 data stores:
HARDWARE and COMPUTER
h/hintgtaedata
llHntssredeta
MruNTEMNCES!GN
Copyright by Mahidol University
!
Thanom Kanitpanyachareon Results /38
I.IW-DETAL
[EMRNE{T
MAINTEV/qNTFHGN
Figure 4.1 I DFD Level 3:2.3 Repair Hardware
o'Receive Repair Hardware" activity involves 4 subactivities, 'Yerifr Repair
ID" subactivity gets one data is REPAIR_ID, which is verified in subactivity "Veriff
Repair data" to eruure that there is REPA&ID in data store and rehieves from 12
data stores: COMPUTE& HARDWARE, HW_TYPE, HW_DETAIL, EMPLOYEE,
DEPARTMENT, SECTION, VENDER, SPEED, SIZE, MODEL and BRAI'{D. When
the REPA&ID pass the verification "Update Repair data" zubactivity stores data into
REPAIR. *Update Hardware/Computer Status' stores hardware or computer status
into 2 data stores: HARDWARE and COMPUTER.
--@drdE[a
Copyright by Mahidol University
I
!
a
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 39
DEPARIT#NT
Figure 4.L2DFD Level 3:2.4 Receive Repair Hardware
Level2: 3. Query process
Query process consists of 4 activities, which use all data stores to process dafa.
Rezult data is tabular, which have individual processing. See list of result datr in
section 4.2.2 data dictionary. o'Process data" activity is calculation, summary and
comparative analysis.
' 2.4.2\6rtfy Repalr
dda
RedwRepdrdda
2.4.1Verify@dr
ID
Redve--Mr
dda
)
a
Copyright by Mahidol University
I
srgu_ddaa
Thanom Kanitpanyachareon Resuls /40
Figure 4.13 DFD Level2: 3. Query Process
Level2: 4. Report generation
Report generation consists of 4 activities, which use all data stores to process
printable reports. See list of printable reports n 4.2.2 dafa dictionar)r. ooProcess datao'
activity is calculation and summary data.
I
argu_dda
Figure 4.14 DFD Level2:4. Report generation
Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of lnform. Sys. Manag.)/41
4.22Dila Dictionary
The data dictionary elements developed for Computer Hardware Information
System Management consists of process, procedure, data flow and data s[rrcture. The
process of developing the data dictionary itself forces analysis to clarity their
understanding of the data in the system.
Figure 4.15 identifies each of the processes included in the DFD Level t. Each
process is briefly described to clarify its purpose. The inbound and outbound data
flows for each of the four processes are also shown.
PROCESS NAME:DESCRIPTION:
INBROT'ND DATA FLOWS:OUTBOTIND DATA FILOWS:
L DatamanipulationData of "BASIC DATA" is added, edited or deletedand stored in databaseUpdateable_dahData of "BASIC DATA" data store
PROCESS NAME:DESCRIPTION:
INBROI'NI' DATA X'LOIilS:OUTBOUND DATA FI,OWS:
2. TransactionprocessReceiving report is received new hardware.Trans_dahData of *TRAI.IS DATA" data store.
PROCESS NAME:DESCRIPTION:
INBROI'NI' DATA XI,OWS:
OUTBOTTNI' DATA FLOWS:
3. QueryprocessUser can select question to query by identifyingargument, system will process result data ln tabularformat of di.splay screenArgu_dataDah of 'tsASIC DATA" data storeData of 'TRANS DATA" data store
PROCESS NAME:DESCRIPTION:
INBROT'ND DATA FLOWS:
OUTBOT'NI' DATA FLOWS:
4. Report generationUser can select question to generate report byidenti$ing argument, system will process pdntdreportArgu_dataData of "BASIC DATA" data storeDafa of"TRANS DATA" data storeReoort
Figure 4.15 First level process descriptions.
Figure 4.16 through 4.18 identiff processes that take place in the DFD level 3
of ransaction process. The processing logic in summarized. Some process has alias
name and procedure. The logic summary of procedrne is show in Figure 4.19Copyright by Mahidol University
Thanom KaniQanyachareon
I
Results /42
PROCESS NAME: 2.1.1 Generate Receive IDAIJ\IS: 2.2.1,2.3.1LOGIC STIMII{ARY:strSQL = ,SELECT * FROM RecieveMasteruSet rsMrc = cnDB.Execut{sfrSQl)If rsMrc.BOF Or rsMrc.EOF Then
LblRecieve_ID = "1"Else
RsMrc.MovelastlblRecieve_ID = rsMrclRecieve-p + I
End IfPROCESS NAME: 2.l.2Bnter Receive dataALAIS: 2.2.2,2.3.2LOGIC SIIMITIARY:SfrSQL = "SELECT * FROM RecieveMaster"Set rsMrc = cnDB.Execute(strSQl)SffSQL = "SELECT x FROM RecieveDetailSet rsDrc : cnDB.Execute(sfrSQl)Receive Date = DateSet rsVider = cnDB.Execute("Select * From Vender Where Vender Name = ,, &
CBVender.Text & u"')
If rsVender.RecordCount = 0 ThenIf MsgBox('lrJr,ruuhIruffruilrudral fiamtr$iu{oqnriiohlr" ,vbYesNo,"finnnrn") = vbYes
ThenfrmVender.Vender_Name.Text = CBVender.TextFlagnewhardware = 1
Exit subElse
CBVender.SetFocus' Exit SubEnd If
End IfPROCESS NAME: 2. I .3 Assign Computer_ID/[IW_IDI,OGIC SIJMIUARY:Dim newlD As StringSfrSQL = "SELECT * FROM computer ORDER BY computelid"Set rsHW = cnf)B.Execute(shSQl)With rsHW
If .BOF And .EOF ThenNewID = "C000000001"
Else.MovelastnewlD - uC' & Format(Righ(lComputer_ID, 9) + 1,"000000000.)
End If.CloseLBComputer.Caption = newlD
End With
I
Figure 4.16 Third level process descriptionsCopyright by Mahidol University
t
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 43
PROCESS NAIVIE: 2.1.4 Enter Computer/flardware dataLOGIC SIIMIVIARY:Dim rsHwDetial As New ADODB.RecordsetStrSQL = "SELECT HardWare.HW_p,
HardWare.HW_[pe, tlW_Type.]M_Tpe_Name, HardWare.Computer_ID,Model.Model Name, Brand.Brand_Name, Size.HW_Size,Size.HW_Size_Unit, Speed.HW_Speed, Speed.HW_Speed_UnitHardware.Remark FROM (((HardWare INNER JOIN Model ONHardWare.Model ID = ModelJVIodel_ID) INNER JOIN Brand ONModel.Brand_ID = Brand.Brand_ID) LEFT JOIN Size ONHardWare.HW_ID = Size.IIW_ID) LEFT JOIN Speed ON HardWare.HW_ID= Speed.HW_ID) INNERJOIN HW_Type ON HardWare.HW_Type =HW_Type.HW_Type WHERE ((HardWare.HW_Type) = TICP2') AND(HardWare.Computer_IDF' & HardWarelD & "')) OR((HardWare.HW_Type) =TIIIA2) AI{D ((HardWare.Computer_ID)='n gIIardWareID & "'));'
Set rsHwDetial = cnDB.Execute(strSQl)With rsHwDetial
If .BOFAnd.EOF ThenDetailComputer = "-uExit Function
Else.MoveFirstDduntil.EOF
DetailComputer = DetailComputer & " " & hw_t5rye_name & u' &lbrand_name & u' & model_name & " " &trf(IsNull(lhw_size)= True, uu, lhw_size & u ') & tr(IsNull(lhw_size_unit) = 1*r, "'',lhw_size-unit & u ') & (IsNull(lhw_sped) = True, "", hw_speed &u
") & trf(IsNull(lhw_speed_unit) = True, "", hw_str)@d_unit & ' ') &tr(IsNull(lRemark) = True, "", Ilf(lRemark = "-", "", lRemark & ' '))
. .MoveNextLoop
End IfEnd WithPROCESS NAME: 2.1.5 Add Receive dataALAISI: 2.2.3,2.3.3ILOGIC SIIMMARY:Fori: I Tocountrec
Set datalist : ListData.Lisfltems(i)Cmdst='INSERT INTO ReceiveDetail " & "(Receive_ID, HardWare_ID,
llardWare_Price, Garuntee_Out_Date) VALLJES (' &LblReceive_ID.Caption & u,'u & datalist.Subltems(3) &"',u' &datalist.Subltems(5) & ": "'& datalist.Subltems(6) & '')u
Set rsDrc = cnDB.Execute(cmdsn)NextCmdstr = "INSERT INTO ReceiveMaster " & "(Receive_[D, Receive_Date,
Vender_ID)'& "VALUES ('& lblReceive_ID.Caption &",# &Receive_Date.Text & "#, "'& rsVenderlvender id & '')u
Set rsDrc =
Figue 4.17 Third level process descriptions (continued)Copyright by Mahidol University
Thanom Kanitpanyachareon Results /44
PROCESS NAME: 2.3.4 Updata Hardware/Computer StatusAI"AIII:2.4.4LOGIC SIJMIVIARY:If Left(CBHardware.Text, 1) = oC" Then
If CBRepair_Sesult.Lisflndex = 0 Thenset rscomputer = cnDB.Execut{'UPDATE computer set computer_status= 0 WHERE Computer_ID = '' & CBHardware.Text & n'r)
Elseset rscomputer = cnDB.Execute('LJPDATE computer set computer_status:2 WHERE Computer_ID - '' & CBHardware.Text & n'n)
End IfElse
If CBRepair_Result.Listlndex = 0 ThenSet rsHW = cnDB.Execute("UPDATE hardware set hw status = 0 WHEREHW_ID ='' & CBHardware.Text & u'')
ElseSet rsHW = cnDB.Execute("UPDATE hardware set hw status = 2 WHEREHWjD -'' & CBHardware.Text &''u)
End IfEnd IfPROCESS NAME: 2.4.1 Y erity Repair IDI,OGIC SI]MMARY:sfrSQL = "SELECT * FROM Repair Where isnull(Recieve_Date) = True'Set rsRepaif = cnDB.Execute(stSQl)Call ShowDatalnlistViewPROCESS NAME: z.4.zYertty Repair dataLOGIC STIMIVIARY:If Listdata.Lisfltems(Listdata.Selectedltem.Index).Subltems(l) o "" T'hen
lbtRepai{D.Caption = Listdata.Listltems(Listdata. Selectedltem.Index).Subltems(l)lblRepair_Date.Caption : Listdafa-Listltems(Listdata.Selectedltem.Index).Subltems(2)CBHardware.Text = Listdata.Listltems(Listdata. Selectedltem.Index).Subltems(3)lblHardWare_petail.Caption = Listdata.Listltems(Listdata. Selectedltem.Index).Subltems(4)Repair_Cause.Text = Listdata.Lisfltems(Listdata. Selectedltem.Index).Subltems(5)CBVender.Text = Listdata.Listltems(Listdata" Selectedltem.Index).Subltems(6)
End IfPROCESS NAIVIE: 2.4.3 Update RepairdataLOGIC SI]MMARY:sqlcmd -'UPDATE Repair Set Recieve_Date: '' & Format(Date, "mm/dd/y5ry5r")
& "', Repair_Result = "' & CBRepair_Result.Listlndex & "'WhereRepair_ID : " & lblRepair_ID.Caption
Set rsRepair = cnDB.Execute(sqlcmd)
Figure 4.18 Third level process descriptions (continued)Copyright by Mahidol University
;
!
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 45
PROCEDIIRE : ShowDatalnli stViewLOGIC SI]MIT{ARY:Dim strsqlsearch As StringIf rsRepair.RecordCount > 0 Then
Listdata. Listltems.ClearrsRepair.MoveFirstDoUntil rsRepair.EOF
Set datalist = Listdata.Listltems.Add(, , ",')datalist.Subltems( I ) = rsRepairlRepair_iddatalist.Sublt€ms(2) = rsRepairlRepair_datedatalist.Subltems(3) = rsRepairlHardWare_IDdatalist. Subltems(4) = dehilhardware(rsRepair! HardWare_ID)datalist.Subltems(5) = rsRepairlRepair_CausersVender.MoveFirstrsVender.Find ('Yende{D ='u & rsRepairlvendelid & u'')
datalist.Subltems(6) = rsVenderlVender NamersRepair.MoveNext
LoopEnd If
Figrue 4.19 Logic summary of procedure
DATA FLOW NAME: approvalITESCRIPTION: result tlat there is no eror after system verify data
IROM PROCESS: z.4.2Yertty Repair dataTO PROCESS: 2.4.3 Update Repair data
DATA STRUCTTIRE:ir DatefVender ID+[IardWare ID*Renair Cause
DATA FLOW NAME: argu_dataDESCRIPTION: Retrieved argument of query process and report generation
that is identified by userFROMPROCESS:
TO PROCESS: 3-0aQuerl Process
4.0 Report Generation4.1 Find data
DATA STRUCTURE:[Computer_p, Computer Status] + [HW-[D, Hw_status] + [Model ID] t
DATA FLOW NAME: del_dataDESCRIPTION: ID or name that can address row
FROM PROCESS:TO PROCESS: 1.2 Delete data
1.2.1 Find rowDATA STRUCTT RE: [ID. namel t depend on each data store *
Figure 4.20Datadictionary enties for data flowsCopyright by Mahidol University
Thanom Kanitpanyachareon Resulr /46
DATA IT,OW NAME: edit_dataDESCRIPTION: ID or name that can address row and new data for updates
the rowFROMPROCESS:
TO PROCESS: 1.3 Edit data1.3.1 Find row
DATA SIRUCTIJRE: [ID. namel * new dataDATA FLOW NAME: error
DESCRIPTION: Error message from qystem that respond to userIROM PROCESS: 1.1.3 Insert new row
TO PROCESS: 1.1.5 Display eror messageDATA STRUCTIIRE: * sEins of error statement *DATA FLOW NAIVIE: hardware status
DESCRIPTION: Status of flardwareIROM PROCESS: 2.3.3 Add Repair data
2.4.3 Update Repair dataTO PROCESS: 2.3.4 Update Hardware/Computer Status
2.4.4 Update Hardware/Computer StatusDATA STRUCTIIRE: [IardWare StatusDATA FLOW NAME: id
DESCRIPTION: Unique code that is primary key in data store and isgenerated by system or user input
IROM PROCESS: 1.1.1 Input or generated ID2. I .3 Assign Computer_ID/FlW_ID
TO PROCESS: 1.1.2 vority related table2.L.4 Ents Computer/flardware data
DATA STRUCTIJRE: * primary key in data store*DATA FLOW NAME: maintenance data
DESCRIPTION: dah of maintenance hardwareIROMPROCESS: 2.2.1 Generate Maintenance ID
2,2.2 Enter Maintenance dataTO PROCESS: 2.2.1 Generate Maintenance ID
2.2.2 Entet Maintenance data2.2.3 Add Maintenance data
DATA STRUCTTIRE:fMaintenance_IDrMaintenance_DatsFComputer_IDtMaintenance_Result+Employee IDI + EtW ID+Maintenance Detail+Maintenance Rebuild+Reoair IDIIDATA F.LOW NAME: receive data
DESCRIPTION: data of receive hardwareFROM PROCESS z 2.1.1 Generate Receive ID
2.1 .2 Enter Receive data2. 1.4 Enter Computer/Hardware data
TO PROCESS: 2.1.1 Generate Receive ID2.1.2 Entsr Receive data2. 1.3 Assigu Computer_ID/HW_[D2.1.5 Add Receive data
DATA STRUCTIIRE:[Receive_p+Receive_DateVender_ID] +lHardWare lD+HardWare PricerGaruntee Out Datel
Figure 4.2lDatadictionary enhies for data flows (continued)Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of lnform. Sys. Manag.) / 47
DATA FLOW NAIVIE: receive repair dataDESCRIPTION: data of repaired data
IROM PROCF,SS z 2.4.1 Veri8, Repair IDTO PROCESS: 2.4.1 Verl$ Repair ID
2.4.2Yefity RepairdataDATA STRUCTURE: [Repair ID+Recieve DatsfReoair ResultlDATA ILOW NAME: repair data
DESCRIPTION: out of order hardware dataFROM PROCESSz 2.3.1Generate Repair ID
2.3.2 Enter Repair dataTO PROCESS: 2.3.1 Generate Repair tD
2.3.2Enter Repair data2.3.3 Add Repair data
DATA STRUCTT]RE:[Repair_ID+Repair_DatsrVender_ID+HardWare_ID+Repair_CaussfRecieve_DatsrRepair ResultlDATA FLOW NAME: report
DESCRIPTION: report is generated by qystem that has varies styleIROM PROCESS: 4.0 Report generation
TO PROCESS: 4.3 Print resultDATA STRUCTIIRE:I Department Report, Section Report Employee Report, Out of order llardwareMaintenance Report, All tlardware Maintenance Report, Computer Repor!Hardware Report, Computer Detail Report Hardware status Reoort IDATA FLOW NAME: report_data
DESCRIPTION: data from report generationFROMPROCESS: 4.2 Process data
TO PROCESS: 4.3 Print resultDATA STRUCTIIRE: * same as the o'reDort" but it is not printed outout *DATA XLOW NAME: result_data
DESCRIPTION: data from query processIROM PROCESS: 3.2 Process data
TO PROCESS: 3.3 Display resultDATA STRUCTTIRE:I Hardware data, Computer dat4 Employee dat4 Departrrent dat4 Section datqReceive data, Maintenance daJa ReDair data IIDATA FLOW NAME: reEieved data
DESCRIPTION: data that is retrieved from data store when system get rowNumber
IROM PROCESS: 1.2.2 Display found row1.3.2 Display found row
TO PROCESS: 1.2.4 Delete row1.3.4 Update row
DATA SIRUCTIJRE: * data in data store *DATA FLOW NAME: verified data
DESCRIPTION: Data of basic data is verified with validation ruleIROM PROCESS : 1.1.2 Verrty related table
TO PROCESS: l. 1.3 Insert new rowDATA STRUCTURE: flD) + new data
Figure 4.22Datadictionary enties for data flows (continued)Copyright by Mahidol University
a
Thanom Kauipanyachareon Results /48
The other processes in data manipulation, query process and report generation
are not included in process description because the low-level of its DFD are sufficient
explanation.
Figrne 4.20 through 4.22 defiie 16 data flows ttrat are included in the system.
The processes tbat data flows originate from and into are also identified by number
and name. Each data flow is also described by the data shrctures it contains. Unnamed
data flows mean dl daa of data stores, which see detail in section 4.2.4 Database
design.
4.2.3Input and Output Desrgn
Output reports, which support the activity of the operation and management.
The outputs are generated in tubular form. See designed output reports in appendix B.
Input and oWput screeut are user-friendly with GIJI (graphic user interface,
they are MDI window. An MDI window is a frame window in which you can open
multiple document windows (sheets) and move among the sheets. The input screeilr
have input validation. Some output screerxi, especially in the query process have a
characteristic of drill down. A user can choose to access between a particular dat4
which is deep in deail, or just overall data, which is convenient for comparative
analysis. See designed screens in Appendix C.
4.2.ADatabase Design
Selecting and identiSing data from collected data and system requiremen! it
gets related entities, attributes and constaints. These entities axe identifiedCopyright by Mahidol University
a
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.)/49
relationships and designed by relational database concept. Through normalization a
collection of data in a record sfructure is refined and shown in Figure 4.23 dat^
stnrcture diagram. The designed database diagram. The designed database is cental
database, which works as back office database. In addition, the inforrration system
uses in many places, somewhere may not support online system. For this reason, it has
an extra data store to store SQL commands of transaction process. The data store is
sent to database center and executed, then o'Trans data" has consistent data.
Description of data are shown as following.
1. Table: Computer
PK Field Name Data Tvne Description FK{ Computer ID Text(l0) Computer ID
Employee ID Text(6) Emplovee ID EmployeeRoom D Text(5) Room ID RoomTCP/IP Number Text(15) TCPIP nunberMaintenance_Next_Date DatelTime Maintenance date
next timeComputqStatus Byte Computer status 0 =
Goo{ l=Bad,2=Can't used, 3 -Repair
Brand ID Text(3) Brand ID BrandVender ID Tex(4) Brand ID Vender
2. Table: Hardware
PK Field Name Data Tvne Description FK{ HW ID Text(l0) Hardware ID
HW SN Text(S0) Hardware Serial NumberHW Status Byte Hardware status 0 :
Good, l:Bad,2=Can'tused. 3 : Reoair
Comouter ID Text(l0) Comouter ID ComputerModel ID Text(S) Model ID ModelHW Tvoe Text(S) Hardware Type HW TvoeRemark Text(255) RemarkCopyright by Mahidol University
Thanom Kanitpanyachareon
3. Table: HW_Type
4. Table: HVtr_Detail
5. Table: Size
6. Table: Speed
7. Table: Brand
Resuls i50
PK Field Name Data Tvoe Dqcription{ HW Tvpe Text(S) Hardware Trme
HW Twe Name Text(S0) Hardware TvneNameHW Tvoe Detail Text(l00) Hardware Tyoe DetailHW Sort Integer Hardware arange number
PK field Name Data Tvoe Description FK{ HW Trme Text(S) Hardware Type HW Tvpe
Speed Byte SpeedTable(0=Unused,I = Use)
Size Bye Size Table (0 = Unused, I :Use)
PK Field Name Data Tvoe Description f,'K{ HW ID Text(l0) Recieve ID Hardware
HW Size Sinele Recieve DateHW Size Unit Text(S) Hardware Size Unit
PK X'ield Name Data Tvoe Descrintion FK{ I{W ID Text(l0) Hardware ID Hardware
HW Speed Sinsle Hardware SpeedHW Speed Unit Text(S) Hardware Speed Unit
PK Field Name Data Tvne Description rK{ Brand ID Text(3) Brand ID
Brand Name Text(50) Brand nameHW Tvoe Text(5) Hardware tvoe code HW Tvoe
Copyright by Mahidol University
8. Table: Model
Fac. of Grad. studies, Mahidol univ. M.sc. (Tech. of Inform. sys. Manag.) / sl
9. Table: Vender
10. Table: Depaltnent
11. Table: Section
I
PK Field Name Data Tvoe Description F'K{ Model ID Tex(5) Model Code
Model Name Tex(50) Model NameBrand ID Text6) Brand Code BrandHW tvne Text(5) Hardware Tvoe HW TweModel Deail Text(255) Model Detail
PK Field Name I)ata Tvne Description{ Vender ID Text(4) Vender ID
Vender Name Text(l00) VenderNameVender Address Text(50) Vender AddressVender Citv Text(20) Vender CityVender Province Text0O) Vender ProvinceVender Zin Long Vender ZioVender Status Byte Vender Status
PK Field Name Data Tvoe Description{ Departuent No Integer DeoarhnentNo
Deoartuent ID Text(3) Departuent IDDeparfuent Name Text(60) Deparfuent narne
Departuen!_Status Byte Deparfuent stafus 0 = Active, I =Inactive
PK Field Name Data Tvne Description x'K{ Section ID Text6) Section ID
Section Name Text(60) SectionNameDepartuent No Integer DeparhentNo DeparhentSection Status Byte Section Status
Copyright by Mahidol University
Thanom Kanipanyachareon
12. Table: Room
13. Table: Employee
14. Table: UserRight
15. Table: ReceiveMaster
16. Table: RecieveDetail
Results /52
PK Field Name Data Tvne Description FK{ Room ID Text(S) Room ID
Room Name Text(S0) Room NameBuildine ID Text(5) Buildine ID HW Tvoe
PK Field Name Data Tvne Description X'K{ Emolovee ID Text(6) Emolovee ID
Emolovee Name Text(S0) EmployeeNameSection ID Text(3) Section ID SectionEmployee_Status Byte Employee Status 0 =
Active. I = lnactive
PK Field Name Data Tvoe Descrintion FK{ Emplovee ID Text(6) Employee ID Employee
PassW Text(l0) PasswordcRipht Byte Risht
PK Field Name Data Type Descrfurtion FK{ Receive ID Long Recieve ID
Receive Date Date/Time Recieve DateVender ID Text(4) Vender ID Vender
PK Field Name Data Tvne Decription ["I({ Recieve ID Long Receive ID ReceiveMaster{ HardWare ID Text(10) Hardware ID Hardware
HardWare Price Lons Hardware PriceGaruntee Out Date Date/Time Ganrntee Out Date
Copyright by Mahidol University
e
I
Fac. of Grad. Studies, Mahidol univ. M.Sc. (Tech. of tnform. sys. Manag.) / b3
17. Table: Repair
PK Field Name Data Tvoe Description FK{ Repair ID Long Repair ID
Repair Date Date/Time Repair DateVender ID Text(4) Vender ID VenderHardWare ID Text(l0) Hardware ID HardwareRepair Cause Text(250) Repair causeReceive Date DatelTime Receive repair dateRepair_Result Byte Repair result (0 = OK, t =
Can't Repair)
18. Table: Maintenance
. 19. Table: MaintenanceSigu
,
PK Field Name Data Tvne Description x'K{ Maintenance ID Long Maintenance ID
Maintenance Date Date/Time Maintenance DateComputer ID Text(l0) Computer ID ComputerMaintenance_Result Byte Maintenance Result
(0:Good"1:Bad)Employee ID Text(6) Employee ID Employee
PK Field Name DataTme Description f,.I({ Maintenance ID Long Maintenance ID Maintenance{ HW ID Tex(10) Hardware ID Hardware
Maintenance Detail Tefi(255) Maintenance DetailMaintenance Repair Text(255) Maintenance RepairRepair ID Long Repair ID Repair
Copyright by Mahidol University
Thanom Kanitpanyachareon Results /54
ItMel_lqHQ[tlo&l_]emeBrend_!DnW_typiJldel_tbteil
ifw_rqH9Hw-$eedlM/_$eed_Unil
Enpbyee_!HHOkssill,cRSht
l-rw_Type(H0rlWlype_l',lamel-IdV_Type_DetailHW-Soft
Ffw_!D(HoFtw_s{lW_SatusOmputeilDModel_lDFW-TypeRemark
OomputerJD(H$Enployee_lDRoom_lDTCFIIP_NumberlUlaintenane_Next_DateOomputer-SdusBrend_lDVenderJD
RedilD(HQ@alr_DateVenderJDrhrdllEre_lDR4air_CausERmtue_tlateRepalr_Reult
Redeve_lD(HQnardWare-tO(HQtlard\t\trare_PHee€runteg_OJt_Elats
lVblntenane_lD(HQrilu_rD(HQIllalntenanc_DEtalli,/lalntenance_fupdrRepalrJD
Vender_lD(Fl$\6nder-l,lame\6ndel[66rcssVender_OtyVender-PovinceVender-apVendEr_Sdus
ttrlaintenane_lD(HglJbintenane-IhleComputeilDlcblntenancs_BultEinployee_lD
Figure 4.23 Datastructure dia,gam
I
Copyright by Mahidol University
r
I
Fac. of Grad" Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 55
4.2.5 Procedure Deip
1. Transform the processes in DFD into stnrcture chart, which is easier to
maintain and reduce complexity.
Figrre 4.24 SEucture Chart
Boxes in structure chart are grouped and designed to window objects. Main
box used MDI window to contol other boxes that used MDlchild window.
Design additional events to ease of use in window operations style and
convenient operation such as ope& close and so on.
2.
3.r!
Copyright by Mahidol University
t
Thanom Kanitpanyachareon Results /56
Table 4.lAncestor window objects
Process Event srouD EventData manipulation Window Open
CloseNavigation First
PreviousNextLastSearch
Data AddDeleteUpdateCancel
Transaction process Window OpenClose
Data Update masterInsert detailUpdate detailSearch
Query process Window OpenClose
Data Set argumentProcess data
Report generation Window OpenClose
Data Set argnmentProcess data
Convenient ZoomPage
Save as
Printer setupPrint
4.3 Computer Hardware Information System Management for Yonok College
Using Microsoft Access 97 to create database. Miqosoft Visual Basic 6.0
(SP5) is graphical application development tools and Crystal Report 8 is help
authoring tools for Computer Hardware Information System Management, which
implements under microcomputer Pentium III 1000 MHz CPU, Windows Xp
operating system. The information system consists of 3 major processes: l) DataCopyright by Mahidol University
I
!
at
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 57
Manipulation 2)Transaction Processing 3)Query and Report. The capability of
processes is show in Table 4.2
Table 4.2 Capability of process
Process CapabilityData manipulation Manipulate datainthese data store
l. Computer2. Hardware3. HW_Type4. HW_Detail5. Size6. Speed7. Brand8. Model9. Deparhent10. SectionI l. Room12. Vender13. Employee14. UserRisht
Transaction Process l. RECEIVEI\{ASTER2. RECEWEDETAIL3. MAINTENAI.ICE4. MAINTENAI.ICESIGN5. REPAIR
Query and report A. Tabular rezultl. Hardware data2. Repair data3. Computer data
B. Report4. Departnent Report5. Section Report6. Employee Report7. Out of order Hardware Maintenance Report8. All Hardware Maintenance Report9. ComputerReport10. Hardware ReportI l. Computer Detail Report12. Hardware status Report
Copyright by Mahidol University
I
Thanom Kanitpanyachareon Resuls /58
Since the information system works otr networlq many users can use it. The
user are divided into 3 levels: Database Adminismtor, Operator and general user. The
privilege of each user group is shown nTable 4.2.
Table 4.3 Privilege ofusers
Process DalaManipulation
TransactionProcessins
QueryAnd reportUser
DBA { {Operator { {General user {
Users access the information system through login window, which verifies
username and password. In addition, Operator can access data of transaction
..'..processing in division and section that user are under.
a
Copyright by Mahidol University
t
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 59
CIIAPTER V
DISCUSSION
The Computer Hardware Information System Management for a case study of
Yonok College works on client/server network. The system consists of tbree major
processes as follows:
o Data manipulation: Manipulate relative data such as Vender, Computer,
Hardware, Section, Deparfuent and so on.
o Transaction processing: Support operation managemen! which are receive,
maintenance ard repair.
o Query and report: Process pre-defined outputs and preplanned printed
reports. A user can choose to access between a particular data, which is
deep in detail, or just overall data, which in convenient for comparative
analysis.
Users of the information system are divided into 3 levels: Database
administrator, operator and general user. All levels can access query and report menu,
data manipulation menu can be accessed by database administator level and
tansaction processing menu can be accessed by operator level. They access the
inforrration system through login windows, which verifies user ID, password and
accessible level. In addition, operator can access data of tansaction processing in
division and section in which user in under.Copyright by Mahidol University
Thanom Kanitpanyachareon Discussion /60
Moreovero the information system uses in many places, somewhere may not
support online system. For this reason, it has an exta function to store SQL commands
of tansaction process into file. The file is sent and executed at database center, then
the database center has up to date and consistent data.
The information system is designed and developed using data flow analysis,
relational database and procedural programming. It uses the Database painter of
Microsoft Access 97 to create database, Miuosoft Visuat Basic 6.0 to develop
application and Crysal Report 8.0 to create report.
The advantages of the information system for computer hardware information
system management for a case study of Yonok College are as follows:
- There is database and information system for computer hardware
information system management.
- There is application of Inventory and Management system, which solved
and improved inefficiency of computer hardware information system. The
information system changes from manual to computer base. The
information system intoduces online operation and standard database,
which reduces access time, increases accuracy and provides consistent
duta".
:
Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 61
CHAPTER YI
CONCLUSION
The result of this study called ooComputer Hardware Information systemo'
enables users to manage computer hardware.
Data in the information system was desigued by relational database model.
Relational daabase is adequate for database model in this research because
infomration needs are two-dimensional and not gemplex datL which can be
normalized.
The system was developed by Visual Basic 6.0 that is procedural pro$amming
tool.
Data flow analysis was used in this researcb, it was as valuable for performing
process analysis although it had to be adjusted and refined in design process. Beside,
as data flow analysis have been used for a long time, this research may be guideline
for develop who would like to move his old data flow diagram and structure
programming to object-oriented programming.
The system had been tested and its results is quite satisfactory as following
features:
1. User-friendly application. This tool has been developed by using features
of Graphic User lnterface (GUI) in Visual BASIC 6.0 rurder Microsoft
Windows )(P environment.
Copyright by Mahidol University
Thanom Kanitpanyachareon Conclusion /62
More efficienfly operation. By use of computer aided processing, officer
can mana€re computer hardware easy and efficacious.
Reduce use of paper. The computer Hardware Information system was
designed for using with MS Access that stored schedule information in
database file.
Recommendation
1. Develop program into Object-oriented programming. Object-oriented
progralns can be more easily maintained and adapted than procedural
languages.
Develop this information system to Online Analytical Processing system
that is designed for live data access and analysis. Developer can add
statistical analysis model for viewing tends and required historical data.
The OLAP system is used by analysts and managers who frequently want a
higherJevel aggregated view of the data.
Apply this information system to Internet/Intranet application.
3.
a
I
Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Iech. of Inform. Sys. Manag.) / 63
B\f*ffit
,.,";#Tfin{
REFERENCES
l. Paker C, Case T. Management Infonnation System: stategy and Action. 2nd ed.
Singapore: McGraw-Hill Inc, 1993.
2. Stair M. Principles of Information System A managerial Approach. 2nd ed. United
State: Boyd & Fraser Publishing company, 1996.
3. Hansen GW, James v. Database Management and Design. 2nd ed. Prentice-Hall
lric,1992
4. Arnold J.R. Infioduction to materials management. 3td ed. USA: Prentice Hall
PTR;1998.
5. Tersine Richard J. Principles of inventory and materials management. 4m ed. USA:
Prentice Hall PTR; 1994.
6. James A. Senn. Analysis and design of information systems. 2nd ed. Singapore:
McGraw-Hill Inc, 1989.
7. Roger S. Pressman. Softnrare engineering a practitioner's approach 4e ed.
Singapore: McGraw-Hill Inc, 1997
8. utrr?vrorf,uqltrf,urr:rrfi:rv. nrruimr:iaqunvnrffndo. n'udn#rd 5. nqo,nu' drrinfiur{
rur,rrtvrorfroqlrr{ur::ufr:'w; 2533.
9. quui o{Infi1 nr:f,odounsuiur:rflaq. nq{ryrr{: I:$ur{ryaufi u$;2539.
ffi
10. oqnd orqr{flQa. nr:finds. u'urfrnfid 2. nqumu: I:ru'ur{uur?murfrur::rsr ani;2538Copyright by Mahidol University
f
Thanom Kanitpanyachareon References / &[
I l. tonr Ynnsrd. In:rnuirn:rc#ttacoonuuursuu{rJn?uqxuasnr?0floilfdE. Ri{ryrfi { Rrf,
a'rnrvrnlulafidr:dlrr?rf, nusrflnlulntfftrrnrrnf, florriuwrnlulaiinrenourndn$lq0r
mfir:nranruri.r; 2540
12. Nathavipa Phasuk, Voramon Uronkam. Management of equipment data of
Industrial Engineering Departuent by Microsoft Access. Bangkok:
Factory of Engineering Mahidol University; 1996.
I3. trn'nrfisriEfinqa. reuudl:dumsdrriundrurunuravfiEryitorlrwururallurnluqj
ttvrorfinuf:Jiqqrinuraraofuurriil,fr-n errr?murmaafnoufiernofl.
14. Usa Jugtimongkol. Information system for government inventory management:
A case study of Land development deparfinent. Bangkok Factory of
Engineering, Mahidol University; 2000.
15. Microsoft Corporation. (2001). Microsoft Visual Basic. Available from:
http://www.micorosft.com [Accessed 2001,Nov,22].
16. Crystal Decisions Corporation (2001). Se4gate Crystal Report 8.0. Available
from: http://www.crystaldecisions.com [Accessed 2001,Nov,22].
Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Maoag.) / 65
I
APPENDXA
REPORT
Copyright by Mahidol University
Thanom Kanitpanyachareon
l. Exsisting Repoil
AppendixA/66
v el t I a-6 qy tun ilSeor:mBouiro rn t{oul fi rifi n r :t{uriral r u
Tt*., --G;il;r;"ffi!'lni
3l 'ni{u'-l
t{cr.c - .lrI
' I'.-.:'.: ".1:-
1: :
I ',rirfir,'i o ir- '
I
ii:...!a':
:... i-..: .i. ,...
rl'r' '.1.:!n.'- ":.1: ':
aruufus::ne{'ft-&usilunsurltsurjikfu t !t4;-n.tr.di!o r r
.lru t aldnttdon':rnouftr,ooflmd tm,nio.r Oq5&t1-u{dir$'t ('eleron t{uo }lHrt
r:ren ! . tigrrJ1'ria',rrr ; r"arlgi'1;15'r
- trnlUn!lrr'1" :'lli.lltlllll,t
r?,r rrli,]rij,r:.r i,r r11 1 ; 1sjl1 11.1
.i-t:rr: ii : - rirr t tlr'itirir't t i tr t{'t' !r' rt lrl rl ijll-
1tu
. .riiilr.rlrlllBbrlrrr'.
I ."::i- it!;1Iil.:i;'
I ...,.-:N.,r,rrr-..,
: :':J::Jl,r:ll,l
rr. l.ltn: ' . .. :. :r ,i,,,.': :. ii:i- t: lr l.
Ir rri;'.
- :,1'!,'l;-i..l, rrint .:rrn-.,,.itrrrir'.rtrt r r ii.' l i rt, ,t tii .:...: -tm rRin.t ,r:flr;'''rit,ra:'fr-.tlrti ;r 'rr''t1 1r'1
i t ..'. r.ra .i .rtrru I f,.rtd:rrrriondrli,drrlfrliGrrn : trn-tq.lrrarftixlic'"l..nn 633 IIIkI
uir rr ! d'iirili'a.rrrirri.l.rrliiri60r'i I (ririo.t Peurirun 120 IIHrt
J,al.r.
€- lirr.r
.ul3r):y :...:r,figr
: rtio.r;I rr'lru.t
: rioo
: rnio.r;
I sllOl
t rrfo.r
I rlru: tl.lrllltl l$rlf.t
:. rll'u!uitiltf,nl
-i. rlu!f,rlU lfilfln ir rrru;i6orilnil.r
i 'tru; ilo ilrtlrr i,irr L..\8 rir:rpluc ' gritr.t /rlr'ili lilltifirll,
Computer Management P[anning
i itr lo hll0.l
Copyright by Mahidol University
Fac. of Grad- Strdies, Mahidol Univ.
2. Destgned Report
M.Sc. (Tech" of Inform. Sys. Iv1anag.) / 67
iufi r$52002. I cO
m$nutnr2E{1unufina
10
17
11
03
05
06
07
08
09
nnl:ufl r!fi mnfuna.r?urqrfi rnswinurnrtn&n*rmfi
nru:firuaRranf
nsu;f,nilarnnf
n ru:fr.r n r a r a nfu a:ir qua a r n n :{
nru:ilnErnrfin:t
nru;fifinranf
n u:iinrf nfl ua:rJr:qnrffr af,
MBA
Deparhent ReportCopyright by Mahidol University
I
I
l.
a
thanom Kanitpanyachareon Appendix A/ 68
llivl 19.tr2002
Page I ofln otr Lrlnr5rr,la nSunsu?msqsfi c
-d51td !3o n1lrnoufirrnafqfir
1 a1?ritrntrirgi
2 a'u.nrt{nnrt
3 n1n1n1tfia1a
.l !t.1'':.ai!rJE10a:(
23 ,,t'rrr{rvtinn*rRrsSr^n:tr
nilsanmf,mnfsrtutrfi-dtuu{ iai n"rrrinsrnrrao&firpaf
zz nrrrirrnfisrrtrrqnf *a:aii2J .t"v'jrdnru:lz!,r:F.rilrrf
an&firflrarnnf-dfrlz{ do
i "1':^ir::L-.la;:-;::-i*rL-j.,,.-.?"fi. .r' .-a..l!. .r
': -r:,:.1:'r.l.ir1..a:-;:r-i.i::..;.:lr:.:';;',,j
:r _{.y.ir,iar.:i,rrr.sti
nsrpiailaran6vdEu6 ta
F j.,_a -r,l:{
:a ,{-vir'7ar.;FnLP-.i..r;r
n rusffs nu nrd aSuasilq$s dl3inivdall( !a
:'i:-'-f 'r:.':'i.l1
': .r':'i:'l-:-',1':
" -, .:-..---..i., . t,,.r !r _ rL ,rr.i.i rra-.a
'a .r-:-i:-ig:;:e';'i.-r-,1r;r'n 'l
''t'it'iiPiYrs'a"'f' :;n::^irrfrnQuEti.a
'8 nqui"orlv,rrsr4:"
2: r{ru.irdnru:d.rn:rr:enf
40 itrnrurlvrcflrJrr
Section ReportCopyright by Mahidol University
Fac. of Grad. Studies, MahidolUniv. M.Sc. (tech. of Inform. Sys. Manag.) / 69
ir.i ts: zc,:.
a
:
361001
361002
3itgg3
3910r3
.t0: c03
40 1023
0. rEl'rlan lJr,u it'l }j tisu'.lti;
e *';ii:r 6urna:
o cuol afira{r1gr!:rGt
a r:.:r7nti u:':qr:ry'
l r.;'*i{ 1:gr'-:
e ir:',r 'irqcg
0 .t'f,iF''r1r 6?,1511I
I iIL rl{l.lPi:'
i .:xr:J Qif -rr
I {.-nl 3iE:s-;
2 i3i:13.!:L'Jki.1:??4.
g...,':T fi .t^F i,-r;t',^e1:i
36 1 C07
r2 r C.C3
i? r.aai
J3 1 J08
J1.00;
sUtt
t-':'air':..:
..:.".
-- -,r-r
:JJiiJ
5J6
.: j l.l-: l
JJJJ.:J
rJgCJ5
r-r9116
-lJ'30.l;
JI!OJE
d6 - dnn
s , j. ."f i- .__F/'I t-i
' -i:. :.i ' ,,/i].r' :'r.::.1;:1.,
:.'i.1- ;r'.i \i-,:?.:1L
L'1)f,L.r v';-:rLe.IIJ
';'l'Iiitt.!e
Employee ReportCopyright by Mahidol University
Thanom Kmitpmyachareon Appendix A/70
tlE{luR
:firnr:Eua: :rTcnousuna{: CHXXXXXX}I r$tnhfiEro, o.ouou ndsulqqnolq
rino{nroi
l$000{XXnl lntcl Pcnrium lll S50.00 llHz
cpu lrirlr.ru uftIr8nlrtr{dou:
I CPU
olnlt:
tflEnr?{luo I :rianodhmo{: C000000ff1s rdlrrhfi{qua: o.oHoN afinilqqrrur'ry
] CPL'
0tfnl :
ll(Ahl(xxr{}ll6 lnrcl Celcron 600.0() ltHz
cpu liltiuru ullttlent'iatitruou :
3 lhr,lDrsk rxxlll(ulrlu:fr Qumrum IDE -ltl GB -.lrrrrrlr pp11
olnl! 3 H.rrJDr,k lliriufiniiorln JHflnllE.lE[OI !
0uil: 13 ?rqunrail 2s{5
rrYanr:qua : e :rYaaolflamoi: C00000000j rfrrurhd{qua,
dorarfn:ori :ri'rqrlnrni t
I ('Pl
0uur:
'{dnutrlnr: ln!..: P!.nitun: ill sjrr,rr \lll
1Hflflltflrt!0u :
I \l.rrrrB.,.rr.l rrrrtrrtl{rl i
. 0lnll : u.li.h!
lr:t-'! sStl ('h:n.rt(i:::.rirrt.. (i \,'11 \l
thtrnllfrtdor:
Inrn11qlla :I:njrnolft:tooi : C00000001rS tUruririi{opa t
:fiaqrJn'r I
I R.-\\l
olnlt :
'run0il00.i.l Hihr.hi sD l:s \th
r.rtulJ ,uilnl:[t:!DI:
J CPL
otnlt :
lIll,lllllllltllrr lntc'l Cr.l..:on 6t|il rXt \lHz
rflTr urltiltrnntr{.rou:
omgls t9 fiqunln! 2$t5
I r rrisnoilfi:ns{: c00000000t rdrmhd{Euo ,:t{rnrtqua :
Out of order [Iardware Maintenance ReportCopyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ.
friardgurursu zsts
r rrirrnoufimaf : C00{XXE{Dt
a2 fl4rlflorJri?mo' : C000000@l
drnrrd ro ururau z$rs
r :rirrnoufi:maf : CfiX)00(X)0t
arfiarid zr rrruuu 2gs
r rrlanoufirmo{:C000@0001
I rrTnaoufiansf : C000000005
qn{d zo muluu z*rs
r :tlrlaouti:rfloi : C000000001
dunid rr fiqunmr 2s{s
r :riaRourirraoi : C000000005
I :lidflo!fl'rao{' coooooooo.t
j rriilRouri-rraqf coooooooos
r llnnoufirraoi : C000000001
oltleturt t9 nqunrnx 2$15
r :riaaorriruoi' coooooooot
: ;rinnaufir,aof cooooooot t
M.Sc. (Tech. of Inform. Sys. Manag.) / 71
Page l.of t
a'
,
nn: ilnd
nn: ilnn-
Ha : rlnn'
nn : 'it1n
Ha : 'it1n
Hn. ilrr.a'
Hn ,8r1,r
nn: ilni
Brn ,ir1;r
fld rjn.l
r.rn ,iria
r.li tiri,r
v tA -..,rfirutitfi : uruqind duqrrmiroa
v D; a.t0 l?lulYl : uruElno ilUqnrn!tofl
v tA 4.t0'lflUln : ul0{1n0 illJqrrl}rl{Ufl
rf,rtrirri : uloil:uilig ilr;tnur
rdrnrirfi : u to'ilrc(il?g il:le rror
v vir0 lllU ltl ulUU:!ril:! lJ?:alllu l
v vi q,r0 nlUlll U lUfJlllU f,uit,llH:luil
Y roi q ar0ltrurlt u lurJtlru f,uqnlr j UJfl
v tA 6 ,Iil llltrlll U luqllltJ flUqrllHi lur-l
v vililllrlrlll tl tuul!rflr-it ui:.1 ;,' I
v tiril lllUlll U ll,lli:tfli! !j::''j-..
r.) tt!.'ll U,rrt-;:'il;!,_i:.t ;
t
All Hardware Maintenance ReportCopyright by Mahidol University
Ttanom Kanitpanyachareon
.Aom]tnsnulur:{rn0
fralt tzol
Appendix A / 72
Page l-rrf I
i'
I Cllm{,{n&rl lntel Celeron l.l0 GHz
I C0m(Mr0l I lntel Pentium S90.fi) GHz
r{ol r tzot
I C(Kr{B{mOl6 lnrel Pentium llt 850.00 GHz
2 C000000015 A:\tD K6 550.00 ItHz
rlol , uoc
I C0tx)000(tl7 lnrcl Celeron 78.00 Kbps
I C(lrrllrrtIl(l{ll Inrel Penrium Iv l.6r) GHz
-i ('txnltltllt)ltr lnrcl Cc.L.ron -l_i_i (Xt KbF\
rtss, tzos
I cllnxxllxrl lntl.l Pcntium llt r(-srl rtrt \lHz
a C'rnnnilrulqs lnrs.l Cclcron Stn illl \lH/
-i ('txnljor,r,l-l ('1nr C1.rrr6 :Sll rxt \lll/
r{ol t tsost
I cilllrnlx1009 c.r nr c1.rir5 l-i.!.trll \lt{z
r Crxnuoultl.i ('1r;r Clrit6 6J-l rxr \lfl,,
-l (',rrrttttltll ln:!.1 CClL.n.n .: jVI'r Gtlr.
J ( rdrltlilrxtD.: lnr:! PCntrunr lll s:I '!r \tll..
rYor r .ruDt
| (inr{ilnIll16 ( !rr\ ('}n\h .i(!0 rxr \lll,,
r{s{ r L.rs:
I Crxxxl(llltlll: lntdl Pcntrutrt lll Sjn ltrr \1il.,
a
I
Computer ReportCopyright by Mahidol University
Fac. of Grad. SMies,IvIahidol Univ. Iv[Sc. (Tech. oflnform. Sys. Mmag.)/23
cDROIt
rrYcqrJn:oi rruavra'uoqilnroi
I Uxltt0txJt06 soI\' ],tpF9l0 .l{.00 GHz
CPU
Srrial l{umbcr
Serlql:tumber
ll-il-l-i6-
I l-rrs6?s9
,.".5619n1
I l:-t+56".{9
I l:.lJr-i.i:.:
! :.i;i:r.lJ.l::
.15.i.:5h.rsj:6
.l:.ir: jJJ.ri:
:v.l{i-.:.Jtr:
:V'\'. {t luJ'
i,,\:-i";t,.i\!.:
:i i::^{:hr,
.:.i,.-{t\ j:.
: i.:j
-lhj -\.i
r-J-"1-
l-i6--
-:-:sN
56-5JJ-i
Page I ol5
coru;qrlnroi
Ur'lCl
' f;l
:, rl,
ilrri
lr r'lI
Ur'ln
tJt}l
Ut'r;t
iJr'lvl
I
l
J
J
(r
rtYrqrJn:ni
uu0{llx}0(xt I
rllx)tx]flilx]l
uu(hru0t'rl[)-t
1ru0{.llltxlr)(A
rf,lnxxlrnIrf'
Iill)tlxnxrl:
lll rl)l ll lr ll rl I l.i
txllllllrnrrrl:
t(I nt x rlr, | (;
illxlnrtlxt:l
lll,r,l lr tl [ il r::
rl tr lt rr tt rr I rli
llx Inllllrl lir,
tlrlrlrrti]
tlllrlnrhnt.:'
r llrltlltll drl r.i.l
rnrl{ttlnxlar'
(rl[)llnltllrir,
0ll0rIttlur-9
fixr0rHlu0N9
001,ll(totxlrr!,
0t,fl{lorlt I rl:
(l(nxl(xlulll-l
{ltlilll0un I ils
tunv16unqrJn'lai
lntcl Pcnrium IIl 8-s0.00 $lHe
lntcl Pcntium l\, 1..10 CHz
lntcl Pcntium lV 1.60 GHz
lntel Pentium Ill $-i0.00 llHz
lntcl Ccl!'ron 6(10.00 \lHz
lntcl ('r:lcrrrn SSll lrtl \1H.,
lnt{l ('cl!.rr,n $.ill.tll, \lH/
\\lD :\thlon $(ll, (ltl \tHl
"\\lD K6 :-io.{r(, \lH/
lnrcl Cr.lcron gsil rilt \1H,,
lnrr.l Ccl,:ron Stxl.rht \lH/
lntcl Cr'lcnrn I lo GHz
lntrl C'cl!'r(rn I ltt CHz
lnrr.l Ptntrunr lll .rlrr
tdr \llL'
( :.n\ ( in\ri 'ii t(r \lfl.'
lntr'l P-'nllunl tin' rnr (;ll,'
lnt!.I ('clcron .ij;i rrr 1l|17
('! ri\ (') n\6 6J{ r n ' \l H,,
('1rn C1'rrs6 -Jtt.rrtt 11117
AllD K6 -i5O.00 llHz
lntr.l Pcntium lll S-<0.t10 GHz
Clrrr C1ris6 -i6l) tl(! \lHl
lntcl Cclcron :S tttt li6p1
lntcl ('clcnrn -1-i.l (xr Kbp.
v
Itt
n
t:
l.i
tt
l5
l6
l-
l$
l9
:0
:I
ll
lr
llardware ReportCopyright by Mahidol University
Thanom Kanipanyachareon
IlainBoard
CPU
R.{}t
HardDisk
Ilonltor
Appendix A / 74
t IsinuiluovrduoqrJnroito.rfi rrsad
Page I of5
IlalnBourd
CPT
R.{.\l
Ilonitor
(ir-*.rhr'.' (i \^l'fSt: lnrr.l sjrr (111p,-.r
Il:-'. [!:':l: , ': li r! ' ( rl I ,
r.i'\r i ll \1,:.,.(,. i: :.;:j:... .
\l \(r l-rr.,....,'1i <-ttl l) -i'r (r:t
i rJrrrnnqJn:ol :n"aqrlnrnl run:r6uoqrln:ol
Ihlnllolrd
cl't
ttrrdlrisk
\l:rin llourd
CPt
llardtlisk
llainlloard ltrrrtltilillllJ
CPf rrlrnnxxxllrlr
ril {nrr'r'." (tt.,l.t:r',-.(, \,,i ;\l
-r .r:,x.,il.rj l.:... :,-.... .-. ::; .:,,,
rr,r/nx,rlrr-l \l.rrt,,r ll)l -t, (rh -:r
ilrannqilrr:nl :r{nqrJnrni rtaait6soqilrrJoi
r...-{ri.r \ \\'\:,: I r {r,.irr-
'i' , i..r-' l',r!i
tn.r{Ililrxrl - \lrrl,q. ll)l .ir, Ob
rhurnngrln:ai :rYnqrln:ol :raarr6ungrln:oi
ASt S PJ f-('\\ lnlcl list| ('hrp.r.r
lntri ( .'1.':.'n ,nrll rlrl \lll/
rh;lnnqrlrnoi rrTrqrlntoi rrrcr6rnqrlnmi
rn tlxltllllutl-
rn{{xrt)ulIrl
r l l rr tt rilllli
lr{rttIIrtn I I rl
llrrr lxruul:9
I x lr r tiltll Itr lr)
r!..r!lrttnn,i
,, ..,,'.:4.
, rr,ilrXInltl:-
rJ:;rnnqrJn:oi :fiaqrJnroi lrualGsnqilnroi
{SL S Pl f-('\ tnrcl sSrr ('hrt*,:
lnt.'l lt.'ntr:i:rr lll ,{5r 'x' \ll 1.,
\P{( l-R \O:jr. (ih iir!l;:rir.,rr.,,ri:r
\l.rr:rt lDl: -ltr (ilr
\[.\C lnnurrsrrrn 5]rtFt)
Computer Detail ReportCopyright by Mahidol University
Fac. ofGrad" Studies, Mahidol Univ.
roru;qrlnroit rlnd
M.Sc. (Tech. of Inform. Sys. Ivlanag.) / 75
rurtrilss1ltuqrlnroi
Page I ofr
MainBoard uruus{a
rn-aqrlnroi
I 0000000007
r 0000000008
r 0000000009
J 0000000010
5 0000000011
6 0000000014
7 0000000018
3 0000000020
s 0000000028
r0 0000000031
r r 0000000036 '
r: 0000000037
l-:0000000038
ll 0000000039
r.r 0000000040
lt:' 0000000041
r- 0000000048
rs 0000000053
ro 0000000055
Itt 0SSOOOOO'
:t 0000000068
:: 11000000078
:! 0000000088
:r 0000000098
:-r 0000000104
:o 0000000114
CPU uututj:gxrana
rrYnqrJnrai
| 0000000001
r 0000000003
-t 0000000004
{ 0000000006
5 0000000012
6 ooooooobl3
S.Aaf lVomte
4287268734.2
37652738499
726s748219
23123H,523/.
9827490203
2323454556
49484759849
3840495M54
043C954W00174
990423
985002
900876
990876
645309
64744
21 3451
556J3
36272 \.54644.1.1
665{54{
Serlal r-umbe
12343567
1234568902
1 1 23455789
2123445323
123432334422
45345645456
:rua;rSuaqrlnroi
ASUS P4T-CW
ASUS CUSL2
Gigabyte GAG|TXE
Lemel VIA Apollo Pro 1334
Gigabyte GAotTxE
ASUS P4T.CW
ASUS P4T.CW
ASUS CUSL2
ASUS P4T.CW
ASUS P4T.CW
Matsonic MS7117C
AST FGIOO
Gigabyte ETXC
Fifo AS4
Gigabyte GAGITXE
Gigabyre STXC
Gigabyre GAoITXE
Matsonic MS7l17C
Lemel VlAApollo Pro 133A
ASUS P.TT.CU/
Gigabyte GA6ITXE
AST FG1OO
AST FG1OO
lnrel '805
ASUS CUSL2
ASUS P4T.CW
runv,6soqiln:oi
lntel Pentium lll 850.00 MHz
lntel Pentium M 1.60 GHz
lntel Pentium lll 850.00 MHz
lntel Celeron 600.00 MHz
lntel Celeron 850.00 MHz
lntel Celeron 850 00 MHz
Hardware status ReportCopyright by Mahidol University
Thanom Kanitpanyachareon Appendix B / 76
,t
APPENDIX B
DESIGNED SCREEN
!
Copyright by Mahidol University
Fac. of Grad" Studies, Mahidol Univ.
1. I)ata manipulation
M.Sc. (Tech. of Inform. Sys. Manag.) / 77
I
l' tFigrne B.l Departuent
.,t$''li,'w'ffiil'*I*.ffiU,.r,-n,J,m i, $
Figure B.2 Section
Copyright by Mahidol University
Thanom Kanieanyachareon Appendix B / 78
I
!I
Figure B.3 Employee
Figue B.4 VenderCopyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 79
I
!
Figue B.5 Computer
,rmma--
Figure 8.6 Hardware
Copyright by Mahidol University
Ttanom KanitpauyachareonAppendix B / 80
t
a
*
[-
t:
Figrre 8.8 Change password
,.
Figure B.7 ttW_T1pe
Copyright by Mahidol University
!!
t
Fac. ofGrad. Studies, Matridol Univ.
2. Transaction
M.Sc. (Tech. of Inform. Sys. Manag.) / gl
liXEl rmsm&m$Fr
I )
I
Figure B.9 Receive new hard\ rare
, 1,fi;ffi ffiit,ttJ*ffil,,ffi;1,;JI,,,J' mJ,
ryl::-:H,{ ,t},li [nD' i-]-,*r* ffi't**
Figure B. I 0 Maintenance
Copyright by Mahidol University
Thanom Kanitpanyachreon Appendix B / 82
i
rriiltryilr utndtffi- rffi,trtdftE*rluffitor, l
I
!
,
mtffi,e* .:' ,1-E
Figure B.11 Repair
.,
nltifl.. , ill $h:::::::::', * sjlli*I6j':'.'jl1:'i::
il u4!!|q4r rlrrdta6m58EHtmll @T,Hcrdddfd UBilbEzBlgO-* W. 0so&eIDEAFEH.;g-{-GbF@isk trullms iir,aEic ?a
'i6- -
!,!4. @:S0NYEIaI wsvEA @WEt 6Er6 €GbScdqd qWS. iliqshau ?78tur&8ord mnIIE,dry[G-S.rutrl.lqE. @@a AEaM.S:HCDHsMh{sLr @W Dt&a;3{S.g@tNftinh
b:#H4wtrr::::t
tro.ASttEeSA€I)GqqtrqqT,GH*sqbUSIm. ,
ASI,EP{€tr/ Le!8E0tftbs8nSSeEl.? k{dsEEqpadtl+qog$SrtiEasl-fgmud.reasUSP4T.[X' rrd8$tris
Figure B.12 Manage hardwareCopyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of lnform. Sys. Manag.) / g3
t
I
ti:
Figure B.13 Manage Computer
Figure B.14 Manage User
Copyright by Mahidol University
Thanom Kanitpanyachareon
3. Qrnery and Report
AppendixB /84
q
t
!
Figure B.l5 Search hardware
Figure B.16 Select BuildingCopyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of lnform. Sys. Manag.) / BS
!
tFigure B.l7 Select Hardware status
Figure 8.18 Login
g,l$, , *, .8 d
Copyright by Mahidol University
Thanom Kanitpanyachareon Appendix B /86
dfrqlEriilldiH.rrr
I** ,.: :*. jls I , ?.ffi'.,- ffi
6d rs:ilam2
1l
1t
,(rltxt
08
07
(E
IE
narfrrtmnSmrrr8aoeerr*ttnfnordolntnlana*rmrua[rntqrrrraalnnrdlnrstntrn rgE8mrot
nncerfiofuodryr#nf,UBA
Figure B.l9 Preview
Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / g7
APPENDIX C
PROGRAM SPECIFICATION
t
a
L
Copyright by Mahidol University
Thanom Kanitpanyachareon Appendix C / 88
!
!
l. Data ManiiIqrm EmployeeOption ExplicitDim rs As New ADODB.RecordsetDim rsl As New ADODB.RecordsetDim newdata As ByteDim sqlcmd As StringDim Section_ID As Integer
Dim sqlcmd2 As String
Private Sub CBSectlon-reyrressgrey@Dim ndeptmp As New ADODB.RecordsetIfKeyAscii = 13 Then
If Len(Trim(CBSection.Text)) > 0 Thensqlcmd: ,SELECT * FROM Section WHERE Section_Name = "' & CBSection.Text & ',"'Set rsl = cnDB.Exec6e(sqtcmd)rsl.Find ("Section_Name=,', & CBSection.Text & "',')Set rsdeptup = cnDB.Execute("Select t From Deparfirent Where Deparonent_No = ,, &
rsllDepartuent_No)hlDepartrrent.Caption = rsdeptnp ! Department_Name
End tfEnd IfCall changeobj(CBSection, KeyAscii)
End SubPrlvate Sub CmdAdd_ClickQ
Call CleardaraIf rs.BOF And rs.EOF Then
LblFmfloyee lD.Caption = 0Else
Rs.MovelastLblEmployee_ID.Caption = rslEmployee_ID + I
EndIfEmployee_Name.Locked = FalseCall Cmdlock(Me)Newdata= IEmployee_Name. SetFocus
End SubPrivate Sub CmdCancel_Clicke
Call CleardaaCall ObjectlockCall CmdUnlock(Me)CmdEdit.Enabled = FalseNewdata:0
End SubrrNate suD cmdt elete_clicko
IfMsgBox ('eYo.rnr:au{oganrinlru:ron.,rd?", ,blrforration + vbyesNo, .,6uf,u,,) = vbyes Then
sqlcmd -'uPnATE F-mployee set Employee_Status: I where Employee ID ='n &lblEmployee_ID.Caption &,""
cnDB.BeginTranscnDB.Execute (sqlcmd)cnDB.CommitTransadodcl.Refreshdatacridl.Refreshset rs -- cnDB.Execute(strSQl)Call CmdCancel=Click
End If Copyright by Mahidol University
i
a
I
Fac. of Grad. Studies, Mahidol Univ.
Prlvate Sub ObjectLoctrgEmployee_Name.Locked = Ttue
Sub
M.Sc. (Tech. of Inform. Sys. Manag.) / 89
Private Sub CmdClose_ClickeUnloadMe
lblEmployee_ID. Caption = EmptyEmployee_Name.Text = EmpgCBSection.Text= EmptyIblDepartnent. Caption = EmptyAdodcl.RecordSource = sqlcmd2Adodcl.RefreshSet DataGridl.DataSource = AdodclDataGridl.RefreshAdodc I.Recordset MoveFirst
Employee_Name.Locked = FalseEnd SubPrivate Sub CmdEdit Clicke
Call objectunlock
Prlvate Sub CmdI'irst_CtickeIf rs.RecordCount > 6-th"o
-
rs.MoveFirstAdodc l.Recordset.MoveFirstCall ShowDaa
End If
Prlvate Sub Cmdlast CtictreIf rs.RscordCount > d'Then-
rs.MovelastAdodc l.RecordsetMovelastCall ShowData
End If
Private Sub CmdNext_ClickeIf rs.RecordCount> 6-then
-
Ifrs.EOF Thenrs.MovelastAdodc I .Recordset.Movelast
End Ifrs.MoveNextAdodc I .Recordset.MoveNefiIfrs.EOF Then
rs.MovelastAdodc I .Recordset.Movelast
End IfCall ShowData
End IfEnd Sub Copyright by Mahidol University
Thanom KanitpanyachareonAppendix C / 90
q
t
s
Private suu cmarrevi-@lf rs.RecordCount > 0 Then
If rs.BOF ThenrsJVIoveFirstAdodc I .RecordsetMoveFirst
End Ifrs.MovePreviousAdodc l.Recordset.MovepreviousIfrs.BOF Then
n.MoveFirstAdodc I .RecordseLMoveFirst
End IfCall ShowData
End trfEnd SubPrivate Sub CmdSave_Clicke
Ifnewdata o 0 ThenIf Len(Trim@mployee_Name.Text)1 = 0 Then
MsgBox, nlarrlddonrinl ru,, vbCritical,,,fi nfl atn,,Employee_Name. SetFocusExit Sub
End IfIf Len(Trim(CBSection.Text)) = 0 Then
MsgBox "nlorl6onunun", vbCritical,,'finnoln',CBSection.SefFocusExit Sub
End Ifsqlcmd = "SELECT t FROM Section WHERE Section Name =',' &
CBSection.Text & ,""Set rsl = cnDB.Execute(sqlcmd)Section_ID = rsl lSection IDIfnewdata= I Then
sqlcmd = "INSEM INTo lmptoyere @mployee_ID, Employee_Namq section_ID) " & _' VALUES (' &- lblEmproyee_ID.capion & ;, "' & Emproyei_Name.rext ani'. g=
Sectiott-ITr & ')'Else
sqlcmd - 't PDATE xmnlgvee set Employee-_Name = "' & Employee_Name.Text & _"', Section_ID =,,& Segtion_ID & ,,Where Employee_D =n'&lblEmployee_ID.Caption & ;,
EndffcnDB.BeginTransSet rs = cnDB.Execr$e(sqlcmd)Set rs = cnDB.Execute(strSel)cnDB.CommitTransCall CleardaACall ObjectlockCall CmdUnlock(Me)CmdAdd.SetFocus
End IfEnd Sub
Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 91
a
t
t
t
Private Sub CmdSearcn_crcrg-Dim rsEmpTmp As New ADODB.RecordsetDin SqlEmpTmpAs StringDimaaAs StingCall Cleardata
aa = InputBox(,{ddanrinlruddornr:rfuilt,,,,,ifufl .t",,)
ffLen(aa) = 0 Then Exit SubIfn.RecordComt> 0 Then
IflsNumeric(aa) Thenrs.MoveFirstp_-Fr1d_(Employee_Nane =,n & aa &,',,)',, adSearchFonrard)Ifrs.EOF Then
MsgBox n'ldnumlnlrudelolnrrduur,,,,,'duil.t,,
Call CmdUnlock(Me)Exit Sub
ElseCall ShowData
End IfEIse
SqlF.mpL, = "SELECT Employee.Employee_ID, Employee.Employee_Nam0, ,, & _"section.section-Name, Deparment.DepartmenlName F-ROM i, & -"@mployee INNER JOIN Section ON Employee,Section ID =Section.Section_ID) " & _'INMR JOIN Deparfinent ON Section.Department_No =Deparhent Department_No " & _'UPT^^.
_Em, ployee.Employee_Status = 0 And Employee_Name like ,o/o,, & aa
& no/6'tt & .ORDER BY Employee.Employee_IDiSet rsEmpTmp = cnDB.Execute(SqlEmpTmp)If Not rsEmpTmp.EOF Then
set DataGridl.Datasource = rsEmpTmpDatacridl.Refresh
Else
IVtsgBox "lilnunrinuudelolnrrdfuur,',, nrlufl .t,,
Call CmdUnlock(Me)Exit Sub
End IfEnd If
Else
iltsgB ox " ldnunu'nuudclol nrrduil r ",, "rluu.t,Call CmdUnlock(Me)Exit Sub
End IfEnd SubPrivate Sub ShowDataQ
lblEmployee_ID.Caption = 6 ! F.mployee_IDEmployee_Name.Text = rslEmployee_NameCmdEdit.Enabled = TrueCmdCancel.Enabled = Truesqlcmd = "SELECT * FROM Section WHERE Section ID = ," & rslsection ID & ,',Set rs I = cnDB.Execute(sqlcmd)CBSection.Listlndex = rslSection IDsqlcmd = "sELECT * FRor\{ D^epironent WHERE Department_NO: ,, & rsl lDepartment_NoSet rsl = cnDB.Execute(sqlcmd)lblDepartnnent.Caption = rs Mepartnent_Name
End Sub Copyright by Mahidol University
Thanom KanitpanyachareonAppendix C / 92
?
i
t
Private sun Oata
lblEynloVe-e_ID. Caption = Dahdrid I .Columns(0).Tem
!ryloVee_Name.Text = DataGridl.Columns(l).TexCBSection.Text = Datacridl.Columns(2).Text
PD."lfg*.Caption = DataGrid l.Cotunnos(f ).fextCmdEdit Enabled = TrueCmdCancel.Enabled = True
End SubPrivatesub Unployee-
_ Call changeobj@mployee_Name, feyeiciiiEndPrivate Sun Form_LoaaQ
CallmainshsQl = "SELECT't'FROM section ORDER By section ID"Set rs = cnDB.Execute(strSel)IfNot rs.EOF And Not rs.BOf then
rs.MoveFirstDo Until rs.EOF
CBSection.Addltem rs! Section Namers.MoveNext
LoopEnd IfstrSQL = "SELECT r FROM Employee where Employee-Status = 0 oRDER By Employee_ID',Set n = cnDB.Execute(strSel)sqlcmd2 : "SELECT
_Employee.Employee_ID, Employee.Employee_Neme,,, & _"section.sectign_\ame, Deparment.DepartmenlName FROM,' &"@mployee INNER JOIN Section oN Employeesection_n = s".tioo.s""tion_ID)',&_,INNER
_JOIN Departnent ON Section.Departnent_No =Departuent.Departuent_No " & _
"where Employee.Emproyee_status = 0 oRDER By Employee.Emproyee_lD,,
newdata = 0Call ObjectlockCall CmdUnlock(Me)
End Sub
Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ M.Sc. (Tech. of Inform. Sys. Manag.) / 936 [' .rFl,Yr, l+
r'%9,
2. TransactionEq. R"p"i"Option E:rplicitDim rsRepair As New ADoDB.Recordset, rsRepaircount As New ADoDB.RecordsetDim rsvender As New ADoDB.Recordse! ncomputer As New ADoDB.RecordsetDim rstlW As New ADoDB.Recordse! nllardware As New ADoDB.RecordsetDim rsMaintenanceSigp As New ADODB.RecordsetDim newdaAAs B),teDimsqlcmdAs StingDin datalist As ListltemPrivate Sub CBVender_ChangeQ
CBVender_ID.Listlndex = CBVender.ListlndexEnd SubPrivate Sub CBVender_Clickg
CBVender_ID.Listlndex = CBVender.ListlndexEnd SubPrivate Sub CBVender_ID_ChangeQ
CBVender.Listlndex = CBVender ID.ListlndexEnd SubPrivate Sub CBVender_ID_CtickQ
CBVender.Listlndex : CBVender lD.ListlndexEnd SubPrivate Sub CmdAdd_CtickQ
If CBHardware.listcount = 0 Then Msgtsox ,'nloru6onrfinqrlnroi', : Exit Sub
Call CleardataIf rsRepaircount.BoF And rsRepaircount.EOF Then
lblRepaft_ID.Caption : IEIse
rsRepaircount.MovelastlblRepai{D.Caption = nRepaircountlRepair_id + I
End IflblRepah_Date.Caption = Fonnat(Date, "dd/mm/y5ryy,')CBHardware.Locked : FalseRepair_Cause.Locked = FalseCBVender.Locked = FalseCBRepair_Result.Locked = FalseCall Cmdlock(Me)newdata = IRepair_Cause.SetFocus
End SubPrivate Sub CmdCancel_ClickQ
Call CleardmCall ObjectlockCall CmdUnlock(Me)CBRepair_Result.Enabled = FalseCmdEdit.Enabled = FalsesfSQL = "SELECT * FROM Repair,'Set rsRepaircount = cnDB.Execute(strSQl)If rsRepaircountBOF And rsRepaircount.EOF Then
lblRepair_ID.Caption = IEIse
rsRepaircount.MovelasttblRepair_ID.Caption = rsRepaircountlRepair_id +
End Ifnewdata:0
End Sub
r!
Copyright by Mahidol University
Thanom Kanitpanyachareon Appendix C / 94
D
l-"
I
:,
Private Sub Cmdllelete_ClickeIf MsgBox('dalnrrour?ogad.rfincronr:d?,,, vblnformation + y!fs511o, ,,6u6un)
= vbyes Thensqlcmd = ,UPDATE Repair Set Repair-Shnrs = I Where Repa[ID: , & hlRepah_ID.CaptioncnDB.BeginTranscoDB.Execute (sqlcmd)cnDB.CommitTransDataGridl.RefreshSet rsRepair = cnDB.Execute(strSel)Call CmdCancel Click
End IfEnd SubPrivate Sub CmdClose_Cliche
Unload MeEnd Sub
End Sub
Private Sub CleardataQCBHardware.Text = EmptyRepair_Cause.Text = EmptyCBVender.Text = EmptyCBRepair_Result. Text = EmpglblRepair_ID.Caption = EmptylblRepair_Date. Caption = EmptyIblHardWre_Detail.Caption = Empty
Private Sub ObjectlockQCBHardware.Locked = TrueRepair_Cause.Locked = TrueCBVender.Locked = TrueCBRepair_Result.Locked = True
End SubPrivate Sub objectunlockQ
CBHardware.Locked = FalseRopair_Cause.Locked = FalseCBVender.Locked = FalseCBRepair_Result, Locked = False
End SubPrivate Sub CmdEdit_ClickQ
Call ObjectlockCall Cmdlock(Me)CBRepair_ResultEnabled = Truenewdata:2CBRepair_Result. Locked = FalseCBRepair_Result SetFocus
End SubPrivate Sub CmdX'int_ClickQ
If rsRepair.RecordCount > 0 ThenrsRepair.MoveFirstCall ShowDara
End IfEnd SubPrivate Sub Cmdlast_CtickQ
If rsRepair.RecordCount > 0 ThenrsRepair.MovelastCalX ShowData
End IfEnd Sub Copyright by Mahidol University
Fac. of Grad. Studies,Ivlahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 95
a
I
Private Sub CmdNext_ClickQIf rsRepair.RecordCount > 0 Then
If rsRepair.EOF ThenrsRepair.MoveLaS
End IfrsRepair.MoveNextIf rsRepair.EOF Then
rsRepair.MovelastEnd IfCall ShowData
End IfEnd SubPrivate Sub CmdPrevious_Cticke
If rsRepair.RecordCouut > 0 ThenIf reRepair.BOF Then rsRepair.MoveFirstrsRepair.MovePreviousIf rsRepair.BOF Then rsRepair.MoveFirstCall ShowData
End IfEnd SubPrivate Sub ShowDataQ
lblRepair_ID.Caption = rsRepairlRepair_idlblRepair_Date.Caption = rsRepair! Repair_dateCBHardware.Text = rsRepairlHardWare_IDIblHardWare_Detail.Capion : detailhardware(rsRepairlHardWareRepair_Cause.Tort = rsRepairlRepair_CausersVender.MoveFirstrsVender.Find ("Vender_ID -',' & rsRepairlvender_id & ,,'n)
CBVendEr.Text = rsVe,nderlVender NameCall CmdUnlock(Me)CmdAdd.Enabled= FalseCmdEditEnabled= TrueCmdCancel.Enabled : True
End Sub
_ID)
Private Sub DataGridl_DblCtictrQlblRepair_tD.Caption : DataGrid I .Columns(0).TextRepair_Cause.Text = Datacridl.Columns(l).TextCBllardware.Text = DaaGridl .Columns(2).TextCmdEdit"Enabled = TrueCmdDelete.Enabled = True
End SubPrivate Sub Listdata_DbtCtickQ
If Listdata.Listltemi(ListdataSilectedltem.Index).Sublrems( I ) o,, ThenlblRepair*ID.Caption = Listdata.Listltems(Listdata.Selectedltem.Index).Subltems(l)lb_lRepailDate.Caption = Listdatalistltems(Listdata"Selectedltem.nae4.SuUttems(21CBHardware.Text = Listdata.Listltems(ListdataSelectedltem.Index).Subltens(3)IblHardWare-Detail.Capion = Listdatalistltems(Listdata.Selectedltem.Index).dubltems(4)Repair_Cause.Text = tistdata-Listltems(Listdata-Selectedltem.Index).Subltems(5)CBVender.Text = Listdatalistltems(Listdata.Selectedltem.Index).Subltems(6)'
-
Call CmdUnlock(Me)CmdAdd.Enabled = FalseCmdEdit.Enabled = TrueCmdCancel.Enabled = True
End IfEnd Sub Copyright by Mahidol University
Thanom Kanitpanyachareon AppendixC/96 L
Prlvate Sub CmdSave_ClickQIfnewdatao 0 Then
If kn(Trim(CBVender.Text)) = 0 ThenMsgtsox "nlnur;rlfiuddldol ", vbCritical,,fi aff n1n,,
CBVender.SetFocusExit Sub
End IfIf Len(Trim(CBHardware.Text)) = 0 Then
MsgBox "nlorldrriagilnrei,', vbCritical,,'R'nfi orn,'
CBHardware.SetFocusExit Sub
End IfIf Len(Trim@epair_Cause.Tort)) = 0 Then
IvlsgBox "nlerusqomm', vbCritical,,'fiefforn"Repair_Cause. SetFocusExit Sub
End IfIfnewdata= I Then
sqlcmd: "LTPDATE maintenancesip set Repair_ID = " & IblRepair_ID.caption & ', whereHW_ID = "' & CBHardware.Text & "'And Repair_ID = 0,
Set rsMaintenanceSip = cnDB.Execute(sqlcmd)sqlcmd = "INSERT INTp Repair " & '@epair_lD,Repair_Date, vender_ID, Hardware_ID,
Repair_Cause) VALTJES (- & lblRepair_ID.Capion & ,', u'& Forrrat(Date,'mm/dd/yyyy") & n', "' & CBVender_ID.Text & u,, u'& CBHardware.Text & rr, trr&Repair_Cause.Text & "')"
If Le(CBHardware.Text, l) = "C" ThenSet Bcomputer = cnDB.Execute("IJPDATE Computer set computer_status = 3 WHERE
Computer_ID = "'& CBHardware.Text & n"')
EIseset rsHW = cnDB.Execute('LTPDATE hardware set hw sEtus = 3 WHERE HW ID = ,,,&
CBHardware.Text & n',)
End IfCBHardware.Removeltem (CBHardware.ListlndeD
ElseIf Len(Trim(CBRepair,gesult.Text) = 0 Then
Msgtsox "nlamdonwantidotn, vbCritical, "ficna.ln,CBRepair_Rezult. SetFocusExit Sub
End Ifsqlcmd - 'ITPDATE lryt_S* Recieve_Date =,,' & Format@ate, "mm./dd/gryy") & _
l'-', Repair_Result ='n & CBRepair_Resultlistlndex & u'Where Repair_ID:-; & _
lblRepair_ID.CaptionIf Le(CBHardware.Texg l) = "C'Then
If CBRepaii_Rcult.Listlndex : 0 Thenset rscomputer: cnDB.Execute(',upDATE computer set computer_status : 0 WHERE
Computer_ID = "'& CBHardware.Text & n'u)
ElseSet rsComputer = cnDB.Execute("LJPDATE Computer set computer_status = 2 WHERE
Computer_ID = "' & CBHardware.Text &,u')End If
EIseIf CBRepair_Result.Listlndex : 0 Then
set rsHW: cnDB.Execute("UPDATE hardware set hw status = 0 WHERE ffi D = "'& CBHardware.Text & u'")Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 97
a
Set rsHW = cnDB.Execute('UpOAlS& CBHardware.Text & u"')
End IfEnd If
End IfSet rsRepair = cnDB.Execute(sqlcmd)Set rsRepair = cnDB.Execute(sfsel)Call CleardataCall ObjectlockCall CmdUnlock(Me)Call ShowDatalnlistViewCmdAdd.SetFocus
End IfEnd Sub
ID=rn
Private Sub CmdSearch_ClickSDim aaAs StringCall Cleardata
aa = lnputBox("1ddrn'unudlsio!flrdolnr:ifuilt",',Cluil.t',)
Iflen(aa) = 0 Then Exit SubIf nRepair.RecordCount > 0 Then
rsRepair.MoveFintsRepair.Find ("Repair_ID =,,, &a & ,',n)',, adSearchForward)IfrsRepair.EOF Then
MsgBox' tinu ihn-u nrrds qiolddsl nrr rlufi .rn,,',rlufi r"Call CmdUdock(Me)Exit Sub
ElseCall ShowDaa
End tfElse
MsgBox " hh udrdu nrrd.r.rs! ddo.r nrrluil.r',,, " iiuil.t,,Call CmdUnlock(Me)Exit Sub
End IfEnd SubPrivate Sub CBllardware-KeyPres(KeyAscii es tntegery
If KeyAscii = 13 ThenIf Len(Trim(CBHardware.Text) = 0 Then
CBHardware.SetFocusExit Sub
End IfSet rsMaintenanceSip = cnDB.Execute("Select * From Mainte,nancesip Where Repair_ID =
0r)If rsMaintenancesign.RecordCount o 0 Then
rsMainte,nanceSign MoveFirstrsMaintenanceSign.Find (,HW_ID = "'& CBHardware.Text & ',"')If Not rsMaintenanceSip.EOF Then
_ Repair_Cause.Text = rsMaintenanceSignlMaintenance_DetailEnd If
End IfEnd If
Call changeobj(CBHardware, KeyAscii)End SubPrivate Sub Repair_Cause_KeyPress(KeyAscii As Intqer)
Call changeobj@epair_Cause, KeyAscii)End Sub
Copyright by Mahidol University
Thanom Kanitpanyachareon Appendix C / 98
I
t
t
Private Sub Repair_Cause_GotFocusgIf Len(Trim(CBHardware.Text)) > 0 Then
If Le(CBHardware.Text, l) = nC'Then
Set nComputer = cnDB.Execute("Select * From Computer Where Computer_lD =',' &CBHardware.Text& "'')
If rsComputer.RecordCount = 0 Then
Iv[sgBox "tinurrTrnstfi:rnofd:aq", vbCritical, "finnaln,CBHardware.SetFocusExit Sub
EIseIf rsComputerlcomputer_shtus = 0 Then
Ir[sgBox "R1omr?odounorfi'rrnsi6nnfirdorornlrinunzufinilnn'm.rnouiirnofdrnrir:',
vbcritical, "ilaraln"CBHardware.SetFocusExit Sub
EIseIf rsComputerlcomputer_status = 2 Then
MsgBox "n1orm:mdounoln'rtnsfsnnfiru"orornRsrn'T rnofn'.rnrir, ldonriinnrrldruliludr",
vbCritical, "finfialn"CBHardware.SetFocusExit Sub
End IfEnd If
ElseSet rsHW = L:nDB.Execute("Select * From hardware Where HW ID = "' & CBHardware.Text& ,ru)
If rsHW.RecordCount= 0 Then
MsgBox'lrinusil"dqiln:ofdrrq", vbCritical, "finfi arn"
CBHardnmre.SetFocusExit Sub
ElseffrsHWlhw stahrs=0Then
MsgBox "Rlatmt:odouqrJntei6nnftrdororntinun:ufinr.lnfitorqrlnroinlRn'rr", vbCritical,ttFt'RflB'lnn
CBHardware.SetFocusExit Sub
EIseIf rstlWlhw_status = 2 Then
Msgtsox "Rlottortodouqrlnroi6nnfiru{orcrnqrln:dn-rndr:ldsnra'nnrrlftrulrJrrd,r', vbCritical,
'finfla1e"CBHardware.SetFocusExit Sub
End IfEnd If
End IfIblHardWare_Detail.Caption = detailhardware(CBHardware.Text)
EIseCBHardware.SetFocus
End IfEnd Sub
Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 99
n
t
?
t
PrivateSub Form_LoadSCallmainSet rsVe,nder = cnDB.Execute('SELECT * FROM Vender WHERE vender_status = 0,,)If rsVender.RecordCount > 0 Then
rsVender.MoveFirstDo Until rsVender.EOF
CBVender_IDAddItem rsVender! vender_idCBVenderAddltem rsVenderlVender NInersVender.MoveNext
LoopEnd IfCBRepair_ResulrAddttem "douriou9os"
CBRepair_Result.Addltem "ldarurrodotld"SESQL = "SELECT t FROM Hardware WHERE hw_status = I Order by hw_id"Set rsHW : cnDB.Exeq[e(sESQL)If rsttW.RecordCount > 0 Then
rsHW.MoveFirstDo Until TsHW.EOF
CBllardware.Addltem rsHW ! hw_idrsHW.MoveNext
LoopEnd IfStrSQL = "SELECT'r FROM Computer WHERE computer_status = l"Set rsComputer = crDB.Execute(sfSQl)If rsCompfier.RecordCount > 0 Then
RsComputer.MoveFirstDo Until rsComputer.EOF
CBHrdware.Addltem rsComputer! Computer_lDRsComputer.MoveNext
LoopEnd tfCBRepair_ResultEnabled = FalseSet rsRepaircount = cnDB.Execute('SELECT * FROM Repair")Set rsRepair = cnDB.Execute('SELECT t FROM Repair Where isnull@ecieve_Date) = True,')Call ShowDatalnlistViewNewdata = 0 : Call Objectlock : Call Cmdunlock(Me)Sub
Private Sub ShowDatalnlistViewQDim sffiqlsearch As StringIf nRepair.RecordCbunt > 0 Then
Listdatalistltems.ClearrsRepair.MoveFirstDo Until rsRepair.EOF
Set datalist = ListdaA.Listltems.Add(, , "")dahlist.Subltems(l) = nRepairlRepair_iddahlist.Subltems(2) = rsRepairlRepair_datedatalistSubltems(3) = rsRepair! HardWare_IDdatalisf Subltems(4) = detailhardware(rsRepairlHardWare_tD)datalistSubltems(s) : nRepair! Repair_CausersVender.MoveFirstrsVender.Find ("Vender_ID = "' & rsRepairlvendelid &',',')dahlist.Subltems(6) = rsVender! Vender_NasrersRepair.MoveNext
LoopEnd If
End Sub Copyright by Mahidol University
Thanom Kanitpanyachareon Appendix C / 100
9
D
t
Private Function detailhardware(EardWarelD As String) As Str:lngIf Le(HardWareID, l) = "C" Thens'[rsqrsearch="'ffi*ffi1ffi#;H:T#-frffir-***=..
'Size.HW_Size_Unit, [email protected]_Speeq SFedHW_Speed_Uni!', & _'Hardware.Remark FROM ((Hardware INNER JOIN Mdel ON " &"HardWare.Model_ID = Model.Model_ID) INNER JOIN Brand " & _
]OtI Model.Brand_ID = Brand3rand_tD) LEFT]gry Sirc : g _
j3N fiHSffi :ffi.B = 3ffi3iffi,iRilffi"_t* . . _
"ON HardWare.fW_fype i ffW_fype.tiW_Type ,, & _' WHERE (((HardWare.HW_Tpe) = TICP2) " &_'AI{D ((Hardware.Computer_[D)='' & HardWarelD & '')) OR'&_"(((HardWare.HW_Tpe)=I{HA2) AIIID ((HardWare.Computer_ID)="' &HardWarelD & "));"
detailhardware = "Computer'Elses'Esqsearch']ffi*ffi!
u-ON HardWare.HW_ID = Size.HW_ID) LEFT JOIN Speed " & _
"ON HardWre.HW_ID: Speed"HW_ID) INNER JOIN HW_T1pe ' & _ltON IlardWare.t[W_Type = HW_gpe.HW_Type " & _
deta,hardware = :yo*'((Hardware'HW-ID)= "' & HardwarelD & "'));'
End IfSet rsHardware : cnDB.Execute(strsqlsearch)If rsHardware.RecordCount > 0 Then
rcInardware.MoveFirstDo Until rsHardware.EOF
With rsHardwaredetailhardware = detailhardware &" " & _
lhw_type_name&" " & _lbrand :name &" " & _lmodel_name&""&_Il(IsNull(lhw_size) = True, uu, lhw_size & ' ') & _tr(IsNull(lhw_size_uni0 = Trug "n, lhw_size_unit & ' ") & _tr(IsNull(lhw_speed):True, "", lhw_sp€ed &" ") & _tr(tsNul(lhw_sp€ed_unit) = True, "', lhw_sp@d_unit & ' ') & _trf[hNull(lRemark) = True, "", tr(lRemark = '-', "", lRemark & ' "))
EndWithrsHardware.MoveNext
LoopElse
detailhardware ='"End If
End
Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 101
r
I
r
3. andForm lHardware SearchOption ExplicitDim ListAs ListltemDim rstmp As New ADODB.Recordset, rsTmphw As New ADODB.RecordsetDim rsTmpshow As New ADODB.Recordseq rsModel As New ADODB.RecordsetDim cwherel As Sfring cwhere2 As Sting, cwhere3 As String; cwhere4 As String, cwhereS As SfringDim cwhere6 As Strine.cwhereT As Strine. cwhereE As Strine. cwhere9 As Strins. cwherel0 As StrinsPrlvate Sub CBBrandName_Cliek$
If CBBrandName.lisrcount > 0 ThencuiherE2 = "'LBBrandlD.Caption = arrHw_Bmnd(CBBrandName.Listlndoq 1)
cwhere2 - n Atrd (Brand"Brand_ID)='n & LBBrandlD.Caption & n) n
Call ShowDalalnlistViewCall AddModelToComboorlistBox(CBModel, LBHwTlpe.Caption, LBBrardtD.Caption)
ElseLBBrandlD.Caption = rr"
End tfEnd SubPrivate Sub CBhwStatus_Click$
LBStatus.Caption = CBhwStatus.ListlndexEnd SubPrivate Sub CBHwType-CtickQ
LBHwTlpe.Caption = arrHw_Type(CBHwType.Listlndex + l, l)cwherel -'And ((HardWare.HW_Tpe)='n & LBHwTlpe.Capion & "') "
Call ShowDitalnlistView : Call SetobjectenableCall AddBrandToComboOrlistBox(CBBrandName, LBHwType.Caption)
End SubPrivate Sub CBIIwType_GotX'ocus$
cwherel : ttn
Call CleardaaCall ShowDatalnlistView
End SubPrivate Sub CBMhz_GotFocusQ
strSQL = "SELECT hw_speed FROM speed GROUP BY hw_speed ORDER BY hw_speed"Call AddDataToComboBox(CBMha srSQL)
End SubPrivate Sub CBMhzUnit_Clict<Q
cwhereS - n And (sped"hw_speed_unitf "'& CBMhzunit.Text & n') 'Call ShowDatalnlistView
End SubPrivate Sub CBMhzUnit_GotFocusQ
strSQL = "SELECThw_speed_unitFROM speed GROIJP BY hw_speed_unit ORDERBYhw_speed_unit"
Call AddDataToComboBox(CBMhzunit, strSQL)cwhereS = tt"
Call ShowDatalnlistViewEnd SubPrivate Sub CBMhzUnit_LostFocusQ
If Len(Trim(CBMhzunit.Text)) = 0 ThencwhereS = tt"
EIsecwhereS -'And (speed.hw_speed_unit! u'& CRMhzUnit.Text & trr) x
End IfCall ShowDatalnlistView
End SubCopyright by Mahidol University
Thanom Kanitpanyachareon Appendix C I 102
!
Y
g
Private Sub CBModelCliekSff CBModel.listcount > 0 Then
cwhetre3 ='oLBModel_tD.Caption = arrHw_Mode(CBModel.Listlndoq I )cwhere3 = n And ((Model.Model_ID)= "'& LBModel_tD.Caption & n) "Call ShowDatalnlistView
ElseLBModel-[D.CaPtion = ""
End IfEnd SubPrivate Sub CBSize_Gotf,'ocusQ
strSQL = 'SELECT hw_size FROM size GROLJP BY hw_size ORDER BY hw_sizeuCall AddDataToComboBox(CBSize, sfrSQL)
End SubPrtvate Sub CBSheUnft-CIickQ
cwhereT -'And (Gize.hw_size_unitF '' & CBSizeUniLText & n) n
Call ShowDatalnlistViewEnd SubPrivate Sub CBSizeUnlt_GotFocusQ
strSQL = 'SELECT hw_size_unit FROM size GROIJP BY hw_size_unit ORDER BYhw_size_unit"
Call AddDataToComboBox(CBSizeUnit, strSQL)cwhereT = u'
Call ShowDatalnlistViewBnd SubPrivate Sub CleandataQ
LBHwType.Captioa = "'LBModel_ID.CBption = r'rr
LBBrandID.CBption = nn
LBStatus.Caption = I'n
CBHwTlpe.Text: ""CBModel.Text: ""t(tlVlhz.Text = ""CBMhzunitText= nn
t(6ize.Text = tttt
CBSizeUnit.Text = "nCBBrandName.Text= ""RemarkText=tt-ncwherel = un
cwhere2 = u'
cwh€re3 = "'cwhere4 = nu
cwhereS - n'
cwhere6 - uu
cwhereT = uu
cwhereS -'ncwhere9 = un
cwherel0 = "End SubPrivate Sub CBSizeUnit_LostFocusQ
If Len(Trim(CBSizeUnit.Text)) = 0 ThencwhereT = tt"
ElsecwhereT: " And ((size.hw_size_unit): "'& CBsizeunit.Text & ") "
End IfCall ShowDatalnlistView
End Sub
Copyright by Mahidol University
ffivate Sub CmdCancel_ClickQCall OpenCloseBox(False)CaIl CleardataCall ShowDahlnlistViewCBHwTlpe.Locked = False
End Subhfvate Sub CmdExit_ClickQ
UnloadMeEnd SubPrivate Sub cmdPrint-CliclQ
Dim CrystalObj As Object, AnData0 As VariantDim i As IntegerIf ListllardwareDetail.Listltems.Cout <= 0 Then Exit SubSet Crystalobj = Createobjec('CrystalDataObject.CrystalComobject')CrysalObjAddfieH "IdCode', vbStringCrystalobj Addfield'Itemu, vbSringCrystalObj.AddField nBmnd', vbSringCrystalObjAddField'Model', vbStringCrystalObj.AddField'Speed', vbSringCrystalObj AddField nSize", vbStingCrystalObj.AddField "IdCom', vbStringCrystalObj AddField'SN', vbStringCrysalObj.AddField nStatus", vbSningCrystalObj.AddField nRemark", vbStingReDim ArrData(l To ListHardwareDetail.Listltems.Count, I To l0)For i = I To ListHardwareDeAillistltems.Count
Set listl : ListllardwareDetail.Listltems(i)ArrData(i" 1) = CSr(listl.Text)AnDaE(i, 2) = CSfr(listl.Subltems( l)ArrData(i, 3) = CSr(listl.Subltems(2)ArrData(i, 4) = CSt(listl.Subltems(3)ArrData(i, 5) = CStr(listl.Subltems(4)ArrData(L 6) = CStr(listl.Subltems(5))ArrData(i, 7) = CStr(listl.Subltems(6))ArrDaa(i, 8) = CStr(listl.Subltems(7)ArrData(i, 9) = CSfr(listl.Subltems(8))ArrData(i, I 0) = CSfr(listl.Subltems(9))
NextIf CreateFieldDeffile(CrystalObj,'C:VIISNBW\data00 l.bd", True) = 0 Then
MsgBox "Failed to create Data-brt fileln, vbE:rclamationEnd tfCrystalobj AddRows ArrDataWith frmViewer.CrystalReportl
.Connect= cSting
.Destination = crptToWindow
.DiscardSavedDah = False
.setTablePrivateData 0, 3, crystalobj
.ReportFileName = App.Path &'\report\rrmrunrrdumrqrJnrei.rpt"
. WindowState = crptlvlaximized
.WindowParentllandle = frmViewer.hWnd
.Action = IEnd With
End SubPrivate Sub Form_ActivateQ
Me.WindowState = 2End Sub
Fac. of Grad- Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 103
t
Y
Copyright by Mahidol University
Thanom Kanitpanyachareon Appendix C I 104
Y
Private Sub Form_LoadQCallmainMe.Left=0: Me.Top:0Call CleardataCall OpenCloseBox(False)Call ShouDatalnlistViewCall AddDetailToComboOrlistBoxf,0l0>fl,1 CnHwtype, False, no)CBHwType.Removeltem (0)
End SubPrlvate Sub ShowDatalnllstViewQ
Dim rsShowData As New ADtODB.RecordsetDim c€omputsrld As SningLisElardwareDetail.Lisfltems.ClearsESQL = "SELECT HardWare.HW-ID, HardWare.HW_SN, HardWare.HW_Status,
HardWare.Computer_lD, HardWare.Model [D, HardWare.HW_Type,t{W_Tpe.HW_Type_Name, HW_T1pe.HW_T}"e_Detail, HW_T1pe.HW_Sort,Size.tlW_Size, Size.HW_Size_Unit Hardware.Remark, Speed.HlV_Speed,Speed.Hw_Speed_Unit, Model.Model Name, Model.Brand_ID,Brand.Brand_Name FROM (((((HardWare INNER JOIN HW_Tpe ONHardWare.HW_Type = HW_Tlpe.HW_Type) INNER JOIN Brand ONHW_Tpe.HW_lpe = Brand.HW_Type) INMR JOIN Model ON @rand.Brand_tD= Model.Brand_ID) AI.{D (}IardIVare.Model_ID = Model.Model_ID)) LEFT JOINSpeed ON HardWare.HW_ID = Speed.HW_ID) LEFT JOIN Size ONHardWare.HW_[D = Size.HW_tD) WHERE HardWare.HW_Status o 2 "
strSQL = strSQL & cwherel & cwhere2 & cwhere3 & cwhere4 & cwhereS & cwhere6 &cwhereT & cwhereS & cwhere9 & cwherel0
shSQL = strSQL & ' ORDER BY Hardware.hw_id'Set rsShowData : cnDB.ExecutE(strSQL)With rsShowData
IfNot (.BOF And .EOF) Then.MoveFirctDo Until.EOF
Set List = ListHardwareDetail.Listltems.Add( , Il$sNul(lhw_iQ = True, "-",!hw_id)LislSubltems(l) = tr(IsNull(lhw_type name) = True, "-", lhw_type_name)LisfSubltems(2) = tr(IsNull(lbrand_name) : True, "-", lbrand_name)List.Subltems(3) = tr(IsNull(lmodel :name) = True, "-", lmodel nane)LisfSubltems(4) = Il(IsNul(lhw_speed) = True, "-", lhw_speed)List.Subltems(4) = Il(IsNul(lhw_speed_unit) = True, "-", [(lhw_speed_unit o"-", ListSubltems(4) & " " & lhw_speed_uniq ListSubltems(4))List.Subltems(5) = tr(IsNul(lhw_size) = True, '-u, il(lhw_size = 0, n-",
!hw_size)List Subltems(S) = tr(IsNul(lhw_size_unit) = True, u-u, [(lhw_size_unit c> 'r-rr,
List.Subttems(5) &'' & lhw_size_unig LisrSubltems(5))LisrSubltems(6): tr(IsNull(lComputer_ID) = True, "-", [(!Computer_[D = 0, "-", lComputer_ID))' List.Subltems(7) = tr(IsNul(lhw-sn) = True, u-n, ffilhw-sn:0, "-n, !hw-sn)Listsubltems(8) = tr(tsNul(lhw_status) = True, "-", Il(lhw_status = 0, 'ilR6",
Il(lhw_status = l, "frqn"n tr(lhw_status = 2, "ldnrchild", "dldou"))))List Subltems(9) = Il(IsNull(lRemark) = True, "-", lRemark).MoveNext
LoopEnd If.Close
End With Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 105
Private Sub AddDahToComboBox@yVal ctrlObject As ComboBox, ByVal cSQL As Stning)ctrlObjectClearSet rsHW : cnDB.Execute(cSQl)WithnHW
IfNot (.BOF And .EOF) Then.MoveFirstDo Until.EOF
ctrlObject.Addltem .Fields(0).MoveNext
LoopEnd If
End WithEnd SubPrtvate Sub OpenCloseBox@yRef EnFlag As Boolean)
CBHwTlpe.Enabled = TrueCBModel.Enabled = EnFlagbftItlhz.Enabled = FalseCBMhzunitEnabled = Falsetr6ize.Enabled = FalseCBSizeUnit.Enabled = FalseRemadcEnabled = EnFlagLabell l.Enabled = FalseLabel l2.Enabled = FalseLabeDl.Enabled = FalseLabel22.Enabled = FalseIabell l.F.nabld = EnFlagtru5sls.F.nabled = EnFlagLab€lT.Enabled = EnFlagCBBrandName.F.n ablsd = EnFlag
End SubSub SetobjectenableQ
If LBHwType.Caption = " Then Exit SubstSQL = "SELECT * FROM Hw_Debil Where HW_lype ='" & LBHwType & ""'Set rstup : cnDB.Execute(sfSQl)Call OpenCloseBox(True)Ifrsmp.Fields(l) = I Then
tsttlVlhzF.nabled = True : CBMhzUnirEnabled: TrueLabell l.Enabled = True : Labell2.Enabled: True
End IfIf rsmp.Fields(2)
= I Then
bdSize.Enabled = TrueCBsizeunit.F.nabled = TrueLabeDl.Enabled = Truel.a.beD,z.En bled = True
End IfEnd SubPrivate Sub Remark_ChangeQ
cwheret -'And (hardware.remark) like'%'& Remark.Text & "o/o') 'Call ShowDatalnlistView
End SubPrivate Sub Remark_LostFocusQ
cwhereS = un
If Len([email protected]) o 0 ThencwhereS = " And ((hardware.remark) like'7o" & RemarkText &"yS)"
Etrd IfCall ShowDatalnlistView
End SubCopyright by Mahidol University
Thanom Kanipanyachareon Appendix C / 106
v
Private Sub Remark_GotFocusQSet rsModel = coDB.Execute("Select * From Model Where Model_ID ='n &
LBModel_ID.Caption & n'n)
If rsModel.RecordCouut > 0 ThenRemrk.Text = rsModellmodel_detail
End IfCall HilightText(Remark)
End SubPrivate Sub ffiMhz ,GotFocusQ
Call HilightText(bdNdhz)End SubPrivate Sub txtMhz_KeyPress(KeyAscii As Integer)
IfKeyAscii: 13 Thencwhere4 = nu
If Len(Trim(txtMhzText)) o0 Thencwhere4 -'And (speed.hw_speed)= n g brtlVthz.Text & ") "
End IfCall ShowDatalnlistView
End IfEnd SubPrivate Sub txtMhz_LostF ocusQ
curhgre4 = t'If Len(Trim(brtlt{hz.Text)) o 0 Then
cwhere4 - ' And (speed.hw_speed)= tt * BtIVIhzText & ") "End IfCall ShowDaUlnlistView
End SubPrivate Sub ffiSerialNo_Gottr'ocusQ
Call HililhtText(EaSerialNo)End SubPrivate Sub ffi ize-Gottr'ocus$
Cdl HilightText(bfiSize)End SubPrivate Sub trtSize_KeyPress(KeyAscii As Integer)
IfKeyAscii = 13 Thencrvhere6 = nn
If f,en(Trim(b<tSize.Text) o 0 Thencwhere6 = " And ((size.hw_size): u & trtSize.Text & u) u
End IfCall ShowDatalnlistView
End tfEnd SubPrivate Sub txtSize_LostFocusQ
cwhetre6 = "t'If Len(Trim(OrtSize.Text) o 0 Then
cwhere6 = " And (size.hw_sizef " & trtSize.Text & ")'rnrirCall ShowDaalnlistView
End Sub
Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of tnform. Sp. Manag.) / 107
APPENDIX I)
QTIESTTONNATR
Copyright by Mahidol University
Thanom Kanitpanyachareon
urirss'ru 61s'r no Nfi c lnafqrfi rC ec ogizsas
Appendix D / 108
ilunn
{ud a fiurnr.r zsas
rCcs mdunrunfrdomumufrorynilrynaunrniT ivrarfifiuf
d.rddundes drnruilrynaunrnfrumuni
rliau ffirurunmqudrvrntutnfinls6ur?rfiRoNfi'rrnaf
nffiatil u'letnuou nrriiorflrgrgTre?rg druurJ.r arqred:levirshmitrnotfirrnofqrfiq nuv
mnrgnrnn$uavuiureqrfin insrdflIflun lfidns,rrislurdur.llrgrgTlvr nrrrimryrnlulndnrr{rrn,re
,vuust'ltfiutvrrt nzusrtrnraufirs{nf ilurirerdeufinn lfrrnuorlcffoivra'tfiy{uf#l ryuud,lmurnfl
q:Jnminoufitnsfrfianrr{nnT a nnfiflntnivrflrdslflun d.r'lufunounrer-mutyuuqvfioq?i1n1mrru
mderynrdarirtrJldl,unr:Qtrrervifiunrssnuuuevuuluri rdotilfiurddoryndnr.:fluncrrufiornrmor{
'ln*;'uururnd4or nrruudtlndlonorud'rufio'lunTrfrunruni hsqyrofiunt*nlluiud tt fiu.rnr zsas
, [?m 10.00 u.
a furisuutdoronmuoqnnnf
(nuou nfimflrprgrrn?rp)
Copyright by Mahidol University
?
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.) / 109
u-da'tunrefrlnriniu)
1 . ufirfr udnsatmN{udrnnlulniirq'rrauryrnnoufi lmof
z. fiuqoulun, t{nnlrnoilfi ? Maf un;qrjnrnfnaufi tnof ulafi nrafu r{ruT turi
3. uTs:.nelunrrq un$nm noufi c msf unyq:Jnnr[n0ruf, r rnof
4. fiunoulunT xfu dou naufi I uaf unrqrJnrnlnalfi n uafs. yltr{r1uoi'Ilr
1 dvrrrqudr qrfro.rfrutuoda{ufut
6. funounrmufl Nfraqnnoufi r mof un; qr.lnmfnaxfi Q rnof rfi s{nrirnsmurfi of r mua
m0ryuflr1?
I
I
Copyright by Mahidol University
Thanom Kanitpanyachareon Appendix E/ 110
APPENDD( E
ORGAINIZATION CIIART
Copyright by Mahidol University
Fac. of Grad. Studies, Mahidol Univ. M.Sc. (Tech. of Inform. Sys. Manag.)/ 111
$s
GFql
lrj4lWrOIFe
'E
E
EEsEsFt
Figure E.1 Organization Chart of Yonok CollegeCopyright by Mahidol University
Ihanom lftniPanyachareon
NAME
DATE OFBIRTH
PLACE OF BIRTH
INSTITUTIONS ATTEI\DEI)
HOME.ADDRESS
BIOGRAPITY
Biogrqhy / tt2
Mr. Thanom Kanipanyachareon
5 June 1972
Lampang, Thailand
Yonok College, 1990-1994
Bachelor of Business AdminisEation
@usiness Computer)
Mahidol University, 1997 -2002
Master of Science
(Technology of Information System
Management)
563 M.7 Lampang-Maeta Rd.
Tumbon. Itabaht Amphor. Muang
Lampang 52000
K9,
Copyright by Mahidol University