1、文档资料管理系统的设计与实现文档资料管理系统的设计与实现 摘摘 要要 本系统使用 MFC 提供的文档视图结构为主体框架,用 XML 文挡进行数据的 储存,实现对各种资料的管理。第一部分是实现对用户界面操作的响应,这部 分主要是使用 MFC 提供的不同的窗口类,即框架窗口,视图窗口,对话窗口以 及控件来实现用户操作界面的主体框架的实现。第二部分为处理具体事务的模 块,实现用户对资料的管理和使用。第三部分是用 XML 编写储存结构,这部分 主要是设计 XML 树和对其存储和读取的具体实现。 利用本系统可以管理自己的各种资料(文本的和电子的), 对每一份资料 均有命名,对所有的资料进行归类,指明各资
2、料的存放位置,可以给每一份资 料指明关键字,便于用户查找资料。若是电子资料(如电脑上的文件),可以 通过鼠标点击直接打开文件。整个系统实现了最初设计的各种功能,并能够快 速方便的帮助用户查找到需要的资料信息,整个操作界面简洁和实用。 关键词关键词: MFC;XML;框架;窗口 The Design and Implementation of the Documents Management System Abstract The Documents Management System can manage various materials. It is implemented by the
3、Document-View framework provided by the MFC. In order to hold the materials data, a XML document is used. The system is composed by the user interface、 the logic processing and the XML operation. The first part responds to the operation of the user. This part is implemented by the various kinds of w
4、indows in the MFC, such as a frame window, a view window, the dialog windows, and many control windows. The second part is design to process material management operation such as adding a material, deleting materials, browsing and searching materials. The last part is the serialization module. It us
5、es a XML tree structure to organize the data in the memory and holds the data by a XML text document in the disk. Users can manage their own materials conveniently by this system. In the system, every material has many attributes such as a name what we can call it, a path indicates where it is, an a
6、uthor who writes it, a catalogs field specifies how many catalogs it belongs to, and some keywords for searching it. If the material is a document in the computer, users can view it directly by double clicking the document. The system is enabled all the functions at design and quickly and conveniently search the users need. The document is concise and pragmatic. Key words: MFC;XML;Frame;Window 目目 录录 论文总页数: 20 页 1 引 言 1 2 设计理论依据 . 1 2.1 MFC 简介 1 2.2 XML 介绍 2 3 文档资料管理系统简介 . 4 3.1 系统开发背景 . 4