一种基于表单的软件自动化开发方法

2020-06-21 15:16:16方木云刘海波姜伟刘辉
软件工程 2020年6期

方木云 刘海波 姜伟 刘辉

摘  要:表单是信息交流的载体,也是信息管理软件中工作流的基本单位。提出一种基于表单的软件自动化开发方法:首先对表单进行形式化描述;其次映射到关系数据库表中的一个表和一个视图;然后映射到软件的一个主界面和一个增加界面;最后映射出表单的保存、修改、删除和查询等代码。根据这个映射流程,利用VB6.0和SQL Server 2015开发出CASE工具,使用该工具能自动生成表单的数据库表、界面和代码。

关键词:表单;工作流;软件自动化

Abstract: The form is the carrier for information exchange and the basic unit of workflow in information management software. This paper proposes a method of software automation development based on forms. Firstly, the form is described formally; secondly, the form is mapped to a table and a view in a relational database table; thirdly, the form is mapped to a main interface and an additional interface of the software; finally, the form is mapped to the codes of saving, modifying, deleting and querying. Based on this mapping process, a Computer Aided (Assisted) Software Engineering (CASE) tool is developed by using VB6.0 and SQL server 2015. The tool can be used to automatically generate the database table, interface and codes of the form.

Keywords: form; workflow; software automation development

1   引言(Introduction)

軟件生产长期处于作坊式的手工阶段,如何提高软件生产效率、降低生产成本,一直是软件工程界研究的课题。信息化管理软件在我国软件产业中占比大,发展信息化管理软件能促进我国工业和信息产业升级换代。信息化管理软件中信息传递都是以表单作为载体,例如:个人与个人之间的信息交流是书信和论文等;个人与单位之间的信息交流是申请书和请假条等;政府部门之间的信息来往是公文和通知等;公司之间的买卖交流是协议和合同等;企业采供流程中的物资交流是入库单和出库单等。这些书信、论文、申请书、请假条、公文、通知、协议、合同、入库单和出库单等都是表单。这些表单作为信息载体在工作流中进行流转,保证工作流各个节点的信息主体相同,差别在于表单状态和经办人等流转信息。因此表单可以作为软件建模的基本单位,并且是实现自动化编程的基础[1]。……

登录APP查看全文