论文部分内容阅读
卫生行政处罚案件涉及到大量的文书,处罚文书之间存在共享的数据,并具有一定的逻辑关系。如果能有一个管理系统来辅助管理,可以减少出错,提高效率,对处罚文书的制作有很大的帮助。本文基于Word VBA开发的卫生行政处罚文书管理系统,采用主程序+模板文件的架构模式。主程序文档集中了所有的代码,模板文件是启用了限制编辑功能的Word填写窗体,主程序通过调用模板文件生成各种文书。系统将行政处罚文书中的共享数据划分为系统共享数据、案件共享数据和案件关联数据三种,通过字典和For-Each循环等技术,降低代码与界面或文档的耦合度,提高了程序的可扩展性与健壮性,极大地减少了赋值语句。
There are a lot of instruments involved in health administrative punishment cases, and the shared data exist between the instruments of punishment and have a certain logical relationship. If you can have a management system to help manage, you can reduce errors and improve efficiency, the production of punishment instruments will be of great help. This article is based on Word VBA developed health administrative penalty document management system, using the main program + template file schema. The main program documentation focuses on all the code, the template file is enabled to limit the editing function of Word to fill in the form, the main program generates a variety of instruments by calling the template file. The system divides the shared data in the administrative penalty documents into three kinds: system shared data, case shared data and case related data. Through the technology of dictionary and For-Each cycle, the coupling degree between code and interface or document is reduced, Scalability and robustness greatly reduce the assignment statement.