电子报检系统客户端的设计与实现
详细信息    本馆镜像全文|  推荐本文 |  |   获取CNKI官网全文
摘要
伴随着中国经济的迅猛发展,进出口贸易占国家GDP的比重越来越大。在进出口贸易中,对进出口商品的检验检疫工作是至关重要的。如果货物的质量出现了问题,有可能导致贸易争端,影响到国家经济的正常发展。
     传统报检业务是报检员手工填写报检单,交到质量检验检疫局做申报。必须等待质量检验检疫局审核通过后,拿到审核后的报检单,才可以通关。这种传统的业务方式,严重依赖于报检员和审单员,无论哪个环节出现问题,都不好追查原因。并且其效率低下,误差率高,已经严重影响到了进出口业务的发展。所以,质量检验检疫局对于采用新的电子化报检模式有了迫切的业务需求。
     本文针对电子化报检业务模式,对基于微软的.Net平台的电子报检客户端的各项关键技术进行了深入研究,并在此基础上实现了一个具有实际应用价值的电子报检系统客户端。系统基于业内推崇的三层系统架构,分为显示层、业务逻辑层、数据访问层。在显示层实现了MVC模式,将Modle、View、Controller分离,通过Observer模式,把一对多对象之间的通知依赖关系的变得更为松散,大大地提高了程序的可维护性和可扩展性,也很好的符合了开放-封闭原则。业务逻辑层抽象了业务规则引擎,使得对于业务的变化可以达到动态加载动态支持,这样使业务与操作得到了清晰的分离,并减少了对于系统的后期维护工作。数据访问层通过ADO.Net采用了Factory设计模式,通过对配置文件的修改,可以方便的切换后台连接的数据库类型,使其可以应用部署到各种环境。客户端系统与服务器的通讯,根据业务的不同,实现了两种通讯模式,一是基于oRdex平台的SMTP和POP3协议通讯,另一是基于WebService的通讯。客户端系统可以根据自己的实际情况,来选择不同的通讯机制。
     本文还应用面向对象的系统设计方法、UML统一建模语言以及关系/对象映射技术(O/R Mapping),对电子报检业务做了详尽的业务分析。
With the rapid economical development, the trade of import - export is playing a more and more important role in national's GDP. In the trade of import - export, quarantine is crucial in terms of the trading commodity. Any problem with the quality of the import-export commodity may cause a trade dispute and even an affection of the normal development of a nation's economy.
     The traditional quarantine is done and submitted to the General Administration of quality supervision, Inspection and quarantine of china by the examiner. It has to be approved and issued the result by the General Administration in order to pass the quarantine. The disadvantage of this traditional quarantine is the over reliance on the examiner and is hard to trace the cause in every process. In addition, its inefficiency and the rate of error are strongly impacting the development of import and export. Thus, there is a cryingneed for the General Administration of quarantine to have an electronic declare system.
     This article aims at the electronic declare system, with an insight into the key techniques of the system based on the Microsoft .Net, which has achieved a practical application value of the electronic declare client. The system is based on the 3-layer frame work, which is highly thought of by the insiders, consists of the presentation layer, business layer, and the data layer. There is a MVC mode in the presentation layer that separates Modle、View、Controller and eases the dependency on the many-one relationship through the Observer mode. It obviously enhances the maintainability and the expandability of the system and is appropriately in accordance with the principle of the Open-Close.
     The business layer abstracts the business rule engine, which enables the dynamic support system toward the business operation, clearly separates the business transaction and operation and reduces the post-maintaining works. By the means of ADO.Net and modification of the configuration files, the data layer adopts the Factory mode and can be easily shifted to the background connecting database and applied to various circumstances.
     According to the different business transactions, the client system and communication network have achieved two communication modes. They are the SMTP & POP3 protocol based on the oRdex and the Webservice. The client system chooses different communication mechanism on its own practical situation.
     This article is also applied for OOP, UML and O/R Mapping and gives a full operational analysis to the electronic declare.
引文
[1](美)凯里,(美)卡尔森著,林星,张夏 译,框架过程模式.人民邮电出版社,2003.06
    [2](美)弗里曼(Freeman,E.)等著,深入浅出设计模式.2005.11
    [3]柴晟 著,ADO.NET数据库访问技术案例式教程.北京航空航天大学出版社,2006.11
    [4](美)Christian ThiImany著,DotNet模式:架构、设计与过程.中国电力出版社,2005.06
    [5](美)马利克著,汤涛,邰晓翠译,ADO。NET高级程序设计.人民邮电出版社,2007.06
    [6](美)陈新著,温昱,靳向阳译,应用框架的设计与实现.电子工业出版社,2005.07
    [7]Metsker,Steven John,Design Pattern in C#.Pearson Public,2004.04
    [8](美)麦斯科著,颜炯译,C#设计模式.中国电力出版社,2005.07
    [9]DotNet组件开发.东南大学出版社,2006.4
    [10]企业平台中的业务规则引擎,http://dev2dev.bea.com.cn/techdoc/2OO50719Ol.html
    [11](美)布奇,(美)兰宝,(美)雅各布著,UML用户指南第二版.人民邮电出版社,2006.06
    [12](美)麦克多纳德著,DotNet分布式应用.清华大学出版社,2005.03
    [13](美)贝列哲著,张晓坤等译,DotNet WebService架构与实现.中国电力出版社,2004.12
    [14](美)师奈德等 著,姚淑珍等 译,用例分析技术.机械工业出版社,2002.08

© 2004-2018 中国地质图书馆版权所有 京ICP备05064691号 京公网安备11010802017129号

地址:北京市海淀区学院路29号 邮编:100083

电话:办公室:(+86 10)66554848;文献借阅、咨询服务、科技查新:66554700