谌连龙++何先波++李小松


摘要:利用java实现文档在网络中从客户端到服务器端的传输。客户端可以将指定类型的文件及上传时间,实现特定文件定时自动上传的功能。该设计与实现建立在中石油加管系统之上,实现加管系统当日数据的快速获取与备份,并且该辅助系统已在定点试用中。
关键词:socket;自启服务;定时上传
中图分类号:TP311 文献标识码:A 文章编号:1009-3044(2015)29-0051-03
Gas Station Capital Inventory Management Auxiliary System Design and Implementation
CHEN Lian-long, HE Xian-bo, LI Xiao-song
(Computer School of China West Normal University, Nanchong 637000, China)
Abstract:This article focuses on the use of Java implementation document from the client to the server in the network transmission. The client can specify the type of the file and upload time, realize the function of specific files regularly upload automatically。The design and implementation based on oil and pipe system,implementation with quick access to the data pipe system and backup, and the auxiliary system has been already used in somewhere.
Key words: socket; automatic startup service; time to upload
随着计算机应用的不断发展,客户对于应用程序能否满足其功能需求更加的看重。中国石油公司拉萨地区分管负责人不满足于加油站管理系统原有功能,意在其基础上增加一种较实时的数据监测功能,从而更好了解各加油站点燃料及其他产品的每日销售状况,且通过对数据分析得到结果,与加管系统中数据进行对比,比较实际销售金额与应产生的销售金额,避免因某些因素造成的资金缺失,起到一种监督的作用。
为了满足客户这一功能需求,提出了基于B/S模式的加油站资金库存管理辅助系统的设计与实现。该辅助系统由两部分组成:供浏览器访问的服务器平台与放置在各个站点获取原始数据的客户端。
本文主要介绍获取原始数据的客户端、服务器端设计与实现,采用java编程语言,使用socket进行数据通讯,socket提供了基于TCP/IP网络协议的接口,采用客户机和服务器通信机制,可靠且速度快。
1 系统功能简介
该系统由几个部分组成:放置在各个站点的加管系统和站点自启服务程序、放置在服务器端的自启服务程序、数据库、j2ee平台网站式管理平台。……