The Development of Decision Support System for Tobacco Diseases and Insect Pests Management
- Author
- YinHua
- Advisor
- LiuYingHong , WuShiYuan
- School
- Southwestern University
- Major
- Agricultural Entomology and Pest Control
- Classification
- S435.72 Tobacco pests and diseases
- Degree
- Master's thesis
- Year
- 2008
- Downloads
- 216
- Citations
- 2
- tobacco diseases and insect pests
- decision support system
- database management
- development of application program
Abstract
Tobacco diseases and insect pests threaten tobacco production and human’s health badly, not only a deadly factor limited field and economic value of tobacco and cigarette, but also caused a great damage to agricultural production in China. As an important branch of agricultural diseases and pests management, more and more advanced technique were applied on the control strategies against tobacco pest.Combined decision support system (DSS), the last word in information technology, with flourishing computer database technology, the dissertation studied on the critical techniques in construction of decision support system aimed at tobacco diseases and insect pests management, included: application model design; function module design; database construction of SQL Server 2000; application programming of Visual Basic 6.0 and its optimization and publication. Through this project, technology and its realization of DSS based on advanced program developing language Visual Basic 6.0; database management system SQL Server 2000 have been clarified. Furthermore, the architecture of application model construction and function module design in "DSS for Tobacco diseases and insect pests Management" could provide necessary scientific theoretic basis for integrated management against tobacco diseases and insect pests and its DSS application. Meanwhile, database constructed in system as the most abundant database of tobacco pest current in China, would extent field and enrich the whole study system for tobacco plant protectors.The project is supported by the Science and Technology Project of Chongqing Tobacco Co.. From the above research we made the conclusions given below.1. Application model designThe system applied SQL Server 2000 on construction of tobacco diseases and insect pests database; Visual Basic 6.0 on development of application programs; and database access with ActiveX Database Object (ADO) through the interface of the OLEDB data source. The results showed that, based on visual interface; object-oriented and event-driven structured programming properties, Visual Basic is available to develop application in Windows operate system, and the function is powerful. By using Open Database Connectivity (ODBC), Visual Basic can directly access or in pattern of establish connection to process and manipulate background SQL Server database.As an open API calls, ADO made up the nonsupport of memory accessing, which caused Visual Basic enable to use OLE DB provider directly. ADO supplies executive operation including connect data source; compile access command; executive instruction, i.e. SELECT script; routine errors analysis, etc.2. Database engineering designSQL Server 2000 database system were adopted to management data of tobacco diseases and insect pests. The results showed, the core of system architecture was database engine, each of which contained several database, and each database composed plenty of database objects, i. e. table; view; constraint, etc. Meanwhile, the system supports various data types and holds an excellent mechanism for log management.As a relational database, SQL Server 2000 database establishment via wizard tools made the method simply and consecution clearly. Furthermore, Transact-SQL language SQL Server used were compatible with most of ANSI SQL standard and provided several extended and enhancing functions, so as to joined application programs rather and easy to transplant.Systematic database Tabacco<sub>d</sub>ss stored data including the occurrence; damage; prevalence; forecast and integrated management strategies against tobacco diseases and insect pests. The six user-defined Table: Diease; DisTypes; Pests; PstPart; Spc<sub>P</sub>icture and Tobacco<sub>D</sub>ig memorized records of tobacco diseases; type of diseases; insect pests; type of pests; pictures of special topic (Pests and Digital tobacco) respectively. Records and fields of user-defined Table elements reached 137 and 39 each, character data to 65535, (Chinese characters 61737 non-Chinese words 3598 there into), and binary image data to 388.General procedures for database engineering design were clarified: requirement analysis, conception framework design, logic framework design, physical framework design, database implementation, and operation and maintenance of database.3. Engineering Framework designThe dissertation studied on project establish, addition of standard module and class module and their management of constant; variable and user-defined function, and configuration of ODBC data source in engineering framework design process. The Form addition; Command design and code programming, etc. were all carried out after the establishment of project file (.vbp), which is the main documents in Visual Basic application programs.In the system, standard module were applied to manage constant; variable and user-defined function. Database operations corresponding table element were encapsulated in the class module. Combined global variable; module-level statement; and universal process, standard module were independent of the project unit and set up the communications from Form to Form, Form to project. Class module calls were as well as execution of database operation. The utilization of standard module and class module are indispensable while database application programming.ODBC API were isolation from database system and constructed on call-level interface basis. In the process of ODBC data source configuration, driver manager supplied a certain diver program according to database information provided by data source. ODBC administrator integrated the resources above to build the connection between ODBC and database and application programs then.4. Interface design of application programThe objects of Visual Basic were abstracted to Form and Command. While developing application programs, foundation of visual user-interface and its property setting-up accomplished via specifying the attribution of Form and Command. In the process of "DSS for Tobacco diseases and insect pests Management" interface designing, the frame of Form were divided by function module, each of which took the same style.There were altogether 24 Form added, 13 standard Command (i.e. Textbox; Image) cited, ActiveX Command included Microsoft Common Controls 6.0; Microsoft ADO Data Control 6.0 (OLEDB); Microsoft DataList Control 6.0 (OLEDB); Microsoft Common Dialog Control 6.0, and 1 insert-abled object Microsoft Word Document in the system.The concept of "prettify command" were put forward firstly in interface designing. Through specifying certain attributions specifying of a command, the prettification of running interface were realized. When running the Form, it had non-response to user action (Attribution of Enable is True). Application of "prettify command" signified much to the friendly interface.5. Function module design and code compilingThere were four modules: tobacco disease diagnosis system; tobacco pest diagnosis system; forecast system and systematic manipulation, designed in system. Each of modules corresponded to certain systematic function and accomplished independent database operations against objects (i.e. Table). The implementation of module function was finished by Form design and code compiling.Availed of event-driven programming mechanism, Visual Basic engineering realized its systematic function via methods or events code programming, which were supported by Command in Form.Systematic function of "DSS for Tobacco diseases and insect pests Management" is powerful. With function module design, system possessed the capabilities: image data recognition; character data retrieval; real-time data derivation; information data browse; text data editing and hypertext data link.In database programming, "buffering Command" was taken to switch data source. Through reading certain Field in first data source, then specified new linking parameters of another data source in SQL language. In this way, the instruction of database operation was consecution clearly, and still easier to SQL code programming and errors analysis. Meanwhile, it avoided the problem of SQL sentence complexity, unnecessary and over elaborate formalities, database access conflict, etc, brought by database manipulate language when just one Adodc Command action on the same Form.As a key technology in the study, application of "buffering Command" might provide an important reference for development of database application programs.6. Optimization and publication of application programImage editing software Adobe<sup>?</sup> Photoshop CS and Microsoft<sup>?</sup> Paint were applied to prettify the picture showed in application program interface. Systematic help file myhelp.chm was compiled with tool Html Help Workshop. The HTML files used in myhelp.chm were established via software Microsoft<sup>?</sup> Office FrontPage 2003.Finally, after the development of application program, Visual Basic 6.0 tool "Package & Deployment Wizard" was utilized to finish the system installation program making.7. SummaryTo sum up, integrated module design and decision support methodology, the study developed expert system for tobacco diseases and insect pests management. Tobacco pest database was constructed based on "Integrated Pest Management" (IPM) theoretical basis. Through system analysis and function design, the system built on SQL Server 2000 as database management system and Visual Basic 6.0 as application developing platform. The function implemented included data management, data retrieval, prediction and evaluation, chart orientating and text editing, etc.Tested and applied results showed, "DSS for Tobacco diseases and insect pests Management" can be professional software in the field of plant-protection science, to provide support to the tobacco diseases and insect pests study and IPM decision making, with friendly interface; high reliability and convenient access.
Table of contents
Chinese Abstract 9-12
ABSTRACT 12-16
Part Ⅰ literature review 16-28
the
chapter of the tobacco pest and disease research progress 16-21
of tobacco disease research overview 16-19
1.1 China's major coverage of tobacco diseases 16-17
1.2 Tobacco Diseases type 17-19
2 tobacco insect research overview 19-21
2.1 of tobacco insects Research 19
2.2 tobacco insect species 19-21
Computer Technology in Plant Protection 21-28
decision support systems on the plant protection applications 21-23
1.1 decision support system in the plant protection overview 21-22
1.2 plant protection the DSS Research dynamically 22-23
2 object-oriented programming language Visual Basic 6.0 23-25
2.1 Visual Basic programming language overview 23-24
2.2 Visual Basic access to the SQL Server database 24-25
3 database management system, Microsoft SQL Server 2000 25-28
3.1 ODBC API architecture 26-27
3.2 Transact-SQL Language Overview 27-28
Part Ⅱ system development 28-127
the Chapter system applications model design 28-34
3.1 project systems analysis and functional design 28-31
3.1.1 System Description 28-30
3.1.2 function module divided 30
3.1.3 System Flow Analysis 30-31
3.2 VB to access SQL Server database project management 31-32
3.2.1 ADO data access technology 31
3.2.2 ADO to perform operations 31-32
3.3 Materials and methods 32-34
3.3.1 hardware and software environment 32
3.3.2 Data acquisition 32-33
3.3.3 method 33-34
Chapter database design 34-42
4.1 needs analysis 34
4.2 structural design 34-37
4.3 database implementation 37-40
4.3.1 create a database 37-38
4.3.2 create data table 38-39
4.3.3 Data storage 39-40
4.4 database is running and maintenance 40-42
4.4.1 database backup and restore 40-41
4.4.2 database maintenance 41-42
design engineering framework 42-55
5.1 to create engineering 42
5.2 add modules 42-48
5.2.1 Const module 43
5.2.2 DbFunc module 43-45
5.2.3 GeneralFunc module 45-46
5.2.4 Variable module 46-47
5.2.5 ImageFunc module 47-48
5.2.6 module add 48
5.3 Add Class Module 48-52
5.3.1 class module Disease.cls 48-50
5.3.2 class module DisType.cls 50-51
5.3.3 class module Pest.cls 51-52
5.3.4 class module PstPart.cls 52
5.3.5 class module add 52
5.4 configuring ODBC data source 52-55
Chapter VI system interface design 55-77
6.1 main interface design 55-57
6.2 system login form design 57-58
6.3 Tobacco Diseases diagnostic system module form design 58-64
6.3.1 Tobacco common diseases Form Designer 58-59
6.3.2 tobacco disease image recognition form design 59-60
6.3.3 tobacco diseases feature recognition form design 60-61
6.3.4 Tobacco of important diseases thematic form design 61-63
6.3.5 Tobacco Diseases Information retrieval form design 63-64
6.4 tobacco pest diagnostic system module form design 64-69
6.4.1 Tobacco common pests and natural enemies of insect form design 64-65
6.4.2 the tobacco pest image recognition form design 65-66
6.4.3 tobacco victims like diagnostic form design 66-67
6.4.4 Tobacco the important pests thematic Form Designer 67-68
6.4.5 tobacco pests and natural enemies in information retrieval form design 68-69
6.5 tobacco pest forecast reporting system module form design 69-71
6.6 the Chongqing Tobacco thematic module form design 71-74
6.6.1 Chongqing Tobacco documentary form design 71-72
6.6.2 Digital tobacco form design 72-73
6.6.3 laws and regulations form design 73-74
6.7 the help module form design 74-77
6.7.1 Technical Support Form Designer 74-75
6.7.2 Microsoft Visual Basic form design 75-76
6.7.3 on Microsoft SQL the Form Designer Enterprise Manager 76-77
Chapter VII function module design and coding 77-99
7.1 main interface functions to achieve 77-81
7.1.1 Design main interface 77-78
7.1.2 in the main interface to add code 78-81
7.2 system login interface functions to achieve 81-82
the 7.2.1 Design System login screen 81
7.2.2 add the code in the system login screen 81-82
7.3 the tobacco disease diagnosis system module function to achieve 82-88
7.3.1 the tobacco common diseases form code to add 83-85
7.3.2 Tobacco Diseases data retrieval form code to add 85-88
7.4 the tobacco pests diagnostic system module functions to achieve 88-90
7.4.1 the tobacco the pest image recognition Form code to add 88-89
the
diagnosis Forms 7.4.2 tobacco victims like code to add 89-90
7.5 tobacco pest forecast reporting system module functions 90-94
7.5.1 \the
tab code of 7.5.2 field cultivation and management information to write 92-93
the
tab code of 7.5.3 generate reports to write 93-94
7.5.4 Forms operation code supplement 94
7.6 of Chongqing Tobacco thematic module functions to achieve 94-97
7.6.1 the TreeView control management text data browser 95-96
7.6.2 to use Adodc controls image data browsing 96-97
7.7 Help module functions to achieve 97-99
Chapter VIII of the key technologies to achieve 99-109
8.1 standard toolbar add 99-100
8.2 AppendChunk method of SQL Server binaries Add 100-103
8.2.1 ImageFunc module 101
8.2.2 FrmPhotoMenu.frm form 101-103
8.3 Undo function to achieve 103
8.4 Teeview control 103-106
8.4.1 Overview 103-104
8.4.2 common properties 104
8.4.3 common method 104-105
8.4.4 Common events 105
8.4.5 Usage introduce 105-106
8.5 buffer control 106
8.6 Visual Basic call CHM help file 106-108
8.6.1 Statement HtmlHelp API function 106-107
8.6.2 program calls 107-108
8.7 Summary 108-109
IX program to compile and run the test 109-113
9.1 explain the operation and fault handling 109
9.2 compiled applications 109-110
9.3 to run the sample project 110-113
Chapter 10 of the
optimization and publishing of the application are found; 113-124
10.1 Application Program Interface optimization 113-116
the
10.1.1 the interface to display the image selection and processing 113-114
the
10.1.2 Forms controls design 114-116
10.1.3 \
10.2 create a help file 116-120
10.2.1 Html Help WorkShop use concept 117
10.2.2 help file making 117-120
10.3 fabrication and installation procedures 120-124
the
10.3.1 installation program production process 120-122
10.3.2 application installation process 122-124
Chapter XI of the main conclusions and Prospects 124-127
11.1 study's main conclusions 124-125
the
11.1.1 of the main results and conclusions 124
the
11.1.2 System features 124-125
11.2 to be further studied 125-126
11.3 decision support system application prospects in pest management . 126-127
Appendix 127-137
the
Appendix A system parameter 127-128
the
Appendix B this abbreviations 128-130
Appendix the Part C source code 130-137
References (References) 137-142
Master participate during research projects and published papers directory 142-143
Acknowledgements 143-144
Related dissertations
- Research on Rebate and Penalty Contract for Supply Chain Coordination
- A Web-Based Decision Support System and Search Engine Smart for Real Estates:a Case Study for Bangkok Province of Thailand
- On Construction of Gansu Information Database of TRS Company
- Network-based Decision Support System of Eye Movement Disorder Treatment
- Research and Development of Decision Support System in Business Management
- Research and Implementation of OLAP-based Production Decision Support System
- Design and Implementation of Integrated Management System for HR Service in Universities and Colleges
- Study on Decision Support System for Tramp Ship Operation
- The Design and Implementation of Plugin-based Developing Environment for Water Resource Decision Support System
- The Design and Implementation of Based on the GPS Cable Line Inspection System
- Analysis and Design of the Performance Management System Based on Asp.Net
- Development and Application of Wheat Cultivation Design Service System on Soa-Based
- Development and Application of a Decision Support System Supporting Multidiscipline Model Integration
- Research on Environment Monitoring System of Ship Cabin
- Research on the Tunnel Project Cost Control DSS Based on DM
- Research on Scheme Optimization of Bridge Alteration Based on MAGDM
- The Study of Urban Rail Transit Train Operation Simulation System
- The Design and Realization of the Traction Power Supply Management Information System Based on B/S Model
- The Mobilization of the National Economy Medical Pumping Group Modeling
- Research on Intelligent audit system architecture based on risk management