摘 要 随着社会的发展,现在医院的计算机局域网很完善,已成为大部分医院的基本配置,医院的管理者每天需要将大量的通知、新药、表彰、规定等院务信息及时传达给医护人员。针对这种情况,一套简洁方便,能够实现即时通讯的医院局域网即时通讯系统就显得非常的需要。该软件应该充分利用医院现有的计算机局域网资源,不仅可以方便医护人员之间的交流,还可以传输文件。要求能够实现即时通信,方便、简洁。 本软件采用Delphi的开发环境,在UDP通信协议的基础上,采用了客户/服务器结构,开发了一款能够互发信息、互传文件的医院局域网即时通讯工具,提供了更为人性化的界面和更为方便的操作,降低了对使用者的要求,使其能短期内取代传统的通讯模式,它能更好的提高医院的工作效率,满足现在医院的要求。为医院增强市场竞争能力提供了强有力的手段。 关键字:医院局域网;即时通讯;UDP通信协议;Delphi ABSTRACT Along with the development of the society, now at the hospital of the area net of the calculator bureau is very perfect, have become big and parts of hospitals basic to install, the governor of the hospital need to give award to, rule etc. a great deal of circular, new medicine, everyday hospital of 务 information inform in time to the medical personnel.Aim at this kind of circumstance, a set of simple and direct convenience, can carry out the area net instant communication system of the hospital bureau of the instant communication to seem to be very to need.That software should make use of the hospital area net resources of the existing calculator bureau well, not only can with exchanges between convenient medical personnel, also can deliver the document.The request can carry out the instant correspondence, convenience, simple and direct. This software adopts the Delphi development environment, corresponding by letter the foundation of agreement in the UDP up, adopted customer/ server's structure, develop a the style can send letter the interest with each other and spread the instant means of communication of the area net of the hospital bureau of the document with each other, providing the more humanized interface and operating more conveniently, lowering to the request of the user, make its ability short date inside replace the traditional communication mode, its ability work efficiency of the better exaltation hospital, satisfy now at the hospital of request.Strengthenned the market competition ability to provide the powerful means for the hospital. Key word: Hospital bureau area net; Instant communication; The UDP communication protocol; Delphi 目 录 第1章 绪 论 1 1.1 引言 1 1.2 发展现状及设计意义 2 1.3 设计综述 2 第2章 Delphi 7.0简介 4 2.1 序言 4 2.2 Delphi特点简介 4 2.3 面向对象编程的概念 4 2.4 启动Delphi 7 5 2.5 Delphi在网络中的应用 11 2.6本章小结 12 第3章Object Pascal语言简介 13 3.1 编写Object Pascal程序代码 13 3.2 编写赋值语句 13 3.3 标识符的说明与使用 13 3.4 变量与常量 13 3.5 跳转语句与循环语句 14 3.6 过程与函数 14 3.7 Object Pascal的库单元Unit 15 3.8本章小结 15 第4章 局域网即时通信软件总体设计思路 16 4.1 局域网概述 16 4.1.1 局域网的概念 16 4.1.2 局域网基本组成 17 4.1.3 局域网拓扑 18 4.2 网络协议的介绍 18 4.2.1 TCP/IP协议的简介 19 4.2.2 TCP/UDP协议基础 20 4.3 UDP 协议简介 24 4.3.1 什么是UDP协议 24 4.3.2 为什么要使用UDP 24 4.3.3 UDP协议的标题结构 24 4.4 客户机/服务器结构(Client/Server) 25 4.4.1 C/S的概念 25 4.4.2 C/S的基本组成 26 4.4.3 C/S模式的工作过程 26 4.5 本章小结 27 第5章 医院局域网即时通讯软件的实现 28 5.1程序简介 28 5.2 服务器端程序的开发 28 5.2.1 启动服务器 28 5.2.2 监听服务器端口 29 5.2.3 服务器具体功能的实现 29 5.3 客户端程序的开发 35 5.3.1 启动客户端 35 5.3.2 登陆服务器 36 5.3.3 在服务器上注销 37 5.3.4 发送信息功能的实现 38 5.3.5 传送文件功能的实现 40 5.3.6 帮助文档 42 5.4 服务器与客户端的软件连接 43 5.5 本章小结 45 结 论 47 参考文献 49 致 谢 50 第1章 绪 论 1.1 引言 在现代激烈竞争的社会生活中,人们愈加追求健康高质量的生活,同时对服务行业的水平提出了更高的要求。医院作为救死扶伤的主要行业,为广大患者提供及时、有效的服务更是义不容辞。简单的患者和值班人员的对讲通讯已不能满足现代化医院对即时通讯服务的需要,建立一套高效、先进、即时的综合通讯系统是现代化信息医院的必经之路。从医护综合通讯服务系统的发展趋势来看,医院的医护人员在移动中随时随地的获得信息是极其重要的,对一般企业而言时间就是金钱,而对于医院,时间就是生命,所以能快速获得信息,并及时响应,对医院和患者来讲都具有极大的意义。除了获得文字信息外,还应该获得语言信息、图像信息、实时交互性信息,充分利用先进的无线通信技术,如目前的TDMA 、TDD 技术将在未来的发展中应用到该系统中。在医院工作区域内,无论医护人员在何处都能及时地相互通话,随时随地登录本医院局域网查询有关患者病历、相关治疗案例、用药纪录等。2003年在对SARS 患者救治服务中,很多医院都出现了 [1] [2] 下一页 |