摘要
针对船舶电力负荷计算输入数据多、表格设计复杂等问题,提出了一种利用MFC基于对象模型的表格计算系统,采用View对象负责表格的绘制和各种项目的计算,利用编辑框定位方式来模拟手工表格输入的过程,有效地避免了基于Form-Control法输入数据和最终打印效果不一致的缺陷,实现了所见即所得。View-Document对象模型能够独立处理表格数据,并支持打开、保存和打印操作,该系统具有可视化和仿真操作能力,实例显示具有较高的执行效率和应用效果。
Considering the problem of abundant input data and complex table design for ship power loading,the paper puts forward a tabular computation software system by using MFC object model,which adopts view object to draw tables and calculate the items in tables and uses the editbox to locate the proper position.The method simulates the process of inputting data by handwork,avoids inconsistence between data input and print result as a result of using Form-Control method,and accomplishes W.Y.S.W.Y.G.Furthermore the View-Document object model can deal with data in table independently,and supports the operations such as file open,save,and print.The proposed method has visual propety and simulation analysis ability.The actual example shows that it has good executive efficiency and pratical effect.
出处
《大连海洋大学学报》
CAS
CSCD
北大核心
2012年第4期377-382,共6页
Journal of Dalian Ocean University
基金
大连海洋大学教育教学改革研究项目(2011)
辽宁省优秀青年骨干教师资助计划项目(2006)
辽宁省教育厅高等学校科研计划项目(2008146)
作者简介
吕显强(1957-),男,副教授。E-mail:lxq@dlou.edu.cn