With the start of "Trave Expo 2010 in China" and the improvement of people's material living standard, domestic tourism and outbound tourism grow rapidly. To improve the quality of the tourism services and to master the business information in real-time, equitably assessing the operational capacity of staff who is employed, TP travel company buildding a tourism management information system is necessary.Firstly, analysis the status of research at home and abroad, further according to the actual situation of the company'business, propose using Django framework, Python programming language to develop a management information system that can quickly release tourist information. There are three feasibility analysis. Technically, using Dango, MVC, Python, MySQL. Economically, using free,open source LAMP software. Society, It's necessary to build a tourism management informion system, to seize the trend of tourism informatization.After a analysis about user needs, elaborate business processes and data flow diagram of the system, in accordance with business rules, established conceptual data model, physical data model and object-oriented data model of system.and use data dictionary to detail the rule of the data tables. Then create the application project, the configuration fo database. Physical data model is specificed by the python file named models. In the same time, generates the appropriate data sheet. Build a distributed database by using DATAID-D method in Top-down manner, analysis the distributed requirements, distributed design, local logical design and local physical design. The whole system is mainly divied horizontally the business information table according to the respective branch. Export frequency table, division table, polarization table. Alleviate the large amount of data query by using the fragmentation model. The logical segment of the company and the branch was distributed by redundancy allocation and non-redundant distribution. And then deccribe the data query and the content of data replication.In the Web side design, firstly briefly the process of Django request and response, HTTP requests will match with the predefined URLconf, and then shift the corresponding controller, call the particular view function. Based on basic template, use the specific Django template tags embedded in web pages, and add the page logic to design Web. Use the built-in Django management to edit data, custom administrative templates, and register the appropriate module, mapping many to many links and one to many links between each data. To solve the minimum cost of booking airplane and solve the optimization problems of planning itinerary, using Dijkstra algorithm and Ant Colony algorithm to provide a scientific support to the company business.Finally, the whole system have completed base-on template portal pages and Django adminstrition, the information table all digital storage, real-time released travel information, planning travel routes, real-time counting business information and other functions. |