Applied Mechanics and Materials Online: 2012-12-13 ISSN: 1662-7482, Vols. 241-244, pp 3098-3102 doi:10.4028/www.scientific.net/amm.241-244.3098 2013 Trans Tech Publications, Switzerland Design and Implementation of Archives Query System Based on B/S Structure Lianfeng Zhao Information and Engineering Institute of Huzhou Teachers College,Huzhou,China, 313000 Email:zlf@hutc.zj.cn Key words: B/S, colleges and university, archives management system Abstract: This thesis takes archives management system of Huzhou Teachers College which the author has participated in its development when working in the archive as an example, and briefly introduces the system architecture and function module of archives management system in high education based on B/S model and ASP technology, which greatly raises network level of file query and management efficiency in colleges and university. As the high education is developing, the scope and content of management has expanded gradually to be more and more complex. Thus, more information and files need to be kept as a preparation for later examination and reference. The archive, however, as the important archives management department in college, is far from meeting the demand of developing conditions, because its old traditional file management method and technology has affected working efficiency of archival administrative department.with increasing maturity and popularization of the network technology, modernization of archives management accelerates. Therefore, applying ASP technology to the development of a systematic and networked archives management system can not only brings efficiency to the work by making it an easy job to file an enquiry, but also ensure archives management work to a new stage. I Demand Analysis of the System 1. Part-time archives managers and responsible leaders of all secondary colleges and functional departments can inquiry the filing of their own colleges and departments, and leave online messages to consult the archives management and the responsible personnel about related questions. 2. Archives management personnel in College can conveniently carry out file input, query, modification, statistics, and import (including export) a batch of filing information after being input into EXCEL table to guarantee the information is complete and accurate. 3. Archives management personnel in College can add, delete, modify and distribute administrative privileges online to archives within the system according to their division of labor and different rights, and the system will record the modifying and deleting accordingly. 4. If necessary, the relevant functional departments or secondary colleges can be the first to use archives online inquiries, and wait to consult relevant archives until the results come out, which will save them a great amount of time. II Design of the System and Analysis of Technologies The system uses a three-layer B/S structure including client display, business logic and data, and applies the technique of ASP+ACCESS to develop the system. 1. Design and Analysis of Key technologies The archives query system, positioned in the archives management, conducts online network query and management on archives, and based on B/S model, use database development technology of ACCESS and ASP technology, which makes file management and remote query available beyond All rights reserved. No part of contents of this paper may be reproduced or transmitted in any form or by any means without the written permission of Trans Tech Publications, www.ttp.net. (ID: 130.203.136.75, Pennsylvania State University, University Park, USA-06/03/16,00:14:12)
Applied Mechanics and Materials Vols. 241-244 3099 regions. B/S model database system takes WEB server and ASP as the intermediate layer of the database operation, combine the database structure of C/S mode and WEB technology closely, and form a B/S model database system with the three-layer web structure. As shown in Fig1: Fig1 Archives query system network structure diagram of Huzhou Teachers College 2. Design and Implementation of System Function Module Base on the analysis of system demand and key technologies in the early stage, the main purpose of system development is to improve the network query and management level of archives. According to the actual demand, archives query system of Huzhou Teachers College is divided into the following several modules as shown in Fig2: Fig2 Archives query system of Huzhou Teachers College diagram (1)Archive information inquiry department module, is mainly designed for secondary colleges and departments according to the relevant information (such as classification, time, number, key words) to conduct accurate or fuzzy query, and understand filing and related search over the years of their own departments. (2)Archives business consulting module, is main to facilitate the part-time file staff on the related problems of archives and policies to consult,and management personnel to answer and feedback about common question. (3)Archives information input module is mainly for the management staff to input file information. (4)Archives information delete is mainly for the management staff to delete file information. (5)Archives information inquiry module is mainly for the management staff to conduct a comprehensive query into archives information of the college. (6)Archives information modification module is mainly for the management staff to update and maintain archives information in time. (7)User and authorization management module is mainly to authorize supervisors and other managers in archives management department and manage relevant operations.
3100 Industrial Instrumentation and Control Systems (8)Data backup module is mainly to allow the system to back up the database regularly to ensure security and accuracy of the data. III Design and Connection of the Database 1. Design of the database When using ASP technology to access WEB database, ADO component (ADO is built-in ActiveX server components by ASP) is an essential. Through setting ODBC on the WEB server and connecting OLEDB the ACCESS database, it enables adding, modifying and deleting the database available. The system establishes a das.mdb file, which includes the manager information table, archives information table, filing unit table, etc. 2. Connection of the Database ASP is script execution environment of a server-side, which can be used to generate and implement dynamic high performance of WEB server program. When the user is using the browser to request ASP homepage, the WEB server will response first, call the ASP engine to execute the ASP file and explain the script language (Jscript). Then by connecting ODBC to the database, the database access ADO component to accomplish database operations, and finally the data query results is returned to HTML page. Realizing the connection of database requires a built-in object of ASP: Connection, setting up connectivity to the backend database. Call the Server.CreateObject method to obtain ADODB.Connection, and then use the Open method to open the database: connstr="provider=microsoft.jet.oledb.4.0;data Source=" +server.mappath("database/the name of database") Set conn= Server.CreateObject("ADODB.Connection") Establishment of database connection conn.open connstr set rs=server.createobject("adodb.recordset") Make the data set rs.close conn.close Close database IV Realization of the System Through the ASP programming, the functions of the system can be acquired. A part of the key technologies is as follows. 1, Realization of archives information query function <% set rs=server.createobject("adodb.recordset") sql="select * from das " if nd<>"" then sql=sql&"and nd='"&nd&"'" if gjz<>""then sql=sql&"and (nr like '%"&gjz&"%' or wh = '"& gjz &"' or wh like'%"& gjz &"%' or ztc like '%"& gjz &"%')" sql=sql&"order by dh asc" rs.open sql,conn,1,3 %> It only illustrates the multi-condition selection using year, key words as the search condition for the query. Lack of space forbids outlining other words as the search condition for the query in detail here
Applied Mechanics and Materials Vols. 241-244 3101 Realization of archives information input function <% if nd<>"" and dh<>"" then if left(dh,4)<>nd then Response.Write("<script language=javascript>alert(' You enter the number and annual inconsistencies, please enter again!');this.location.href='adminindaxx.asp';</script>") response.end() StrSql="Select * From wen Where dh='"&dh& "'and nd='"&nd& "' " Set Rsu=Conn.Execute(StrSql) IF Rsu.Eof Then StrSql="Insert Into wen(xx,lb,nd,ljdw,wh,nr,sj,ztc,dh) Values('" & xx & "','" & lb & "','" & nd & "','" & ljdw & "','" & wh& "','" &nr& "','" & sj& "','"&ztc&"','"& dh& "')" Conn.execute(StrSql) Call ShowMessAge("Increased information success!","adminindaxx.asp") Else ShowMess("This year the number already exists, please choose another ref!") End IF %> 2, Realization of data import function <% data=request.form("myxls") dim conn dim conn2 set conn=createobject("adodb.connection") conn.open "Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Database Password=;Data Source="&server.mappath("database/das.mdb") set conn2=createobject("adodb.connection") conn2.open "Provider=Microsoft.Jet.OLEDB.4.0;Jet OLEDB:Database Password=;Extended properties=excel 5.0;Data Source="&data sql="select * FROM [Sheet1$]" Set rs=createobject("adodb.recordset") rs.open sql,conn2,1,1 Do while not rs.eof if drjb="ajj" then sql="insert into das([xx],[nd],[lb],[nr],[ljdw],[sj],[dh])values('"&fixsql(rs(0)) &"','"& fixsql(rs(1)) &"','"&fixsql(rs(2))&"','"&fixsql(rs(3))&"','"&fixsql(rs(4))&"','"&fixsql(rs(5))&"','"&fixsql(rs(6))& "')" else sql="insert into wen([xx],[nd],[lb],[nr],[wh],[ljdw],[ztc],[sj],[dh]) values('"& fixsql(rs(0)) &"','"&fixsql(rs(1))&"','"&fixsql(rs(2))&"','"&fixsql(rs(3))&"','"&fixsql(rs(4))&"','"&fixsql(rs(5))& "','"& fixsql(rs(6))&"','"& fixsql(rs(7))&"','"& fixsql(rs(8))&"')" conn.execute(sql)
3102 Industrial Instrumentation and Control Systems rs.movenext Loop response.write "<script language=javascript>alert('data import was successful!');history.go(-1)</script>" conn.close %> V Conclusion At present, as the system has been running in the archive, it turns out to work effectively by increasing files search efficiency, facilitating accomplishment of related work of functional departments, and greatly improve the network management level of the archives. However, with the constant development and improvement of network technology and information level, archives management system based on B/S model also faces bigger challenge. Therefore, the system requires ever-accelerated refinement and improvement. References [1] Ping Lin, The Principle and Practice of calling Network database on ASP technology. Computer Knowledge and Technology, 2004. [2] Yusha Wu, The Archives Management in Colleges and Universities on Brower/Server Structure [M],Journal of First College of Hunan [3] Liping Qu. Using ASP and ADO Technologies to Call Network Database [M].2006 [4] Xinshao Zhou. Design and Implementation of Graduates Achieves Management System in Colleges and University on Asp Technology[M]. Journal of Hunan University of Science and Engineering [5] Juya Yu, Chen Shuyu, Research and Realizaiton of the Archives Management in Colleges and Universities on Web Structure [M]. Silicon Valley.2012
Industrial Instrumentation and Control Systems 10.4028/www.scientific.net/AMM.241-244 Design and Implementation of Archives Query System Based on B/S Structure 10.4028/www.scientific.net/AMM.241-244.3098