资源目录
压缩包内文档预览:(预览前20页/共46页)
编号:24993279
类型:共享资源
大小:862.29KB
格式:ZIP
上传时间:2019-11-18
上传人:遗****
认证信息
个人认证
刘**(实名认证)
湖北
IP属地:湖北
19
积分
- 关 键 词:
-
VB
超市
管理
系统
- 资源描述:
-
VB超市进销管理系统,VB,超市,管理,系统
- 内容简介:
-
11毕 业 设 计(论 文)开 题 报 告1、文献综述(结合毕业设计(论文)课题情况,根据所查阅的文献资料撰写) 超市进销存管理系统用计算机管理超市库存进出管理的一种计算机应用技术的创新,在计算机还未普及之前库存管理都是由工作人员手工书写的方式来操作的.现在一般的超市都采用计算机智能化管理,采用计算机作为工具的实用的计算机超市库存管理程序来帮助管理员进行更有效的超市库存管理工作。超市进销存管理系统是典型的信息管理系统(MIS),其开发主要包括后台数据库的建立和维护以及前端应用程序的开发两个方面。对于前者要求建立起数据一致性和完整性强、数据安全性好的库。而对于后者则要求应用程序功能完备,易使用等特点。 经过分析,我们使用 MICROSOFT公司的 VISUAL BASIC开发工具,利用其提供的各种面向对象的开发工具,尤其是数据窗口这一能方便而简洁操纵数据库的智能化对象,首先在短时间内建立系统应用原型,然后,对初始原型系统进行需求迭代,不断修正和改进,直到形成用户满意的可行系统。u 主要的控件及其属性简介u 命令按钮类的控件:1) Caption属性:用来显示在控件上的标题。2) Enable属性:控制控件的激活状态灰色或可用。3) Appearance属性:值为1时,则以3D效果显示该控件,0则不然。4) Backcolor属性:用来改变在按钮上显示图像的背景色。5) Cancel属性:该属性决定按钮是否为一个”取消”按钮。6) Default属性:决定哪一个命令按钮控件是窗体的缺省命令按钮.7) Font属性:控制各种文字字体类型.8) Left,top,height,width属性:设定控件的位置与大小.9) Style,picture属性:决定按钮的显示方式是否为图像形式出现.10) Visible属性:确定控件运行时是否为可见.11) Index属性:当控件为一控件数组时,此属性值为该控件在数组的下标值.u 标签框类的控件:1) Caption属性:在应用程序界面上加入说明。Autosize属性:决定控件是否自动改变大小以显示其全部内容。2)3) Backstyle属性:用以指示标签是否透明.4) Bordstyle属性:用以设定控件是否有边框。u 文本框类的控件:1) Text属性:通过像text属性赋值的方法来改变该属性的值。2) Maxlength属性:该属性设定在文本框控件中能够输入的最大字符数。3) Multline属性:该属性设定text字符串中是否接受换行符。4) Scrollbars属性:该属性决定是否为文本框加滚动条。5) Passwordchar属性:该属性设定输入文本的特殊显示字符,在设计密码程序时非常有用。6) Change事件属性:文本框的内容发生改变时,相应的控件之间发生相应的改变,具有即时性。7) Keypress:事件由用户在文本框控件中按任意键触发。u 单选按钮类的控件:1) Caption属性:显示在控件上的文本,是单选按钮的标题。2) Alignment属性:决定单选按钮的标题在控件上的位置。3) Enable属性:该控件为灰色时为false,表示运行时不可用。4) Index属性:属性值表示为单选按钮组成的控件中某个按钮的索引值。5) Tabindex属性:建立控件时,vb自动为其分配一个tabindex值,利用tab键可以在控件之间切换焦点。6) Value属性:反映控件状态的属性,返回true表示已选择了该按钮。u 复选按钮类的控件:1) Caption属性:缺省为check1。2) Index属性:该属性值为复选框控件数组的下标.3) Value属性:value为0表空白,为1表勾号,为2表示灰色勾号.u 框架类的控件:Frame属性:做为其他控件的容器。1)u 列表框架和组合类的控件:1) List属性:列表框控件的表项是使用数组的方式保存,数组的每一个元素存储列表控件的一个表项2) Listcount属性:控件列表部分项目的个数。3) Mutselect属性:可以设置列表框为单选或允许多选属性.4) Selectd属性:标示一个数组,数组各元素为:5) Selected(0),selected(1)u 滚动条类的控件:1) Value属性:滚动条上滑块所在位置由value值所决定。2) Max和min属性:对value值的最大,最小进行限制。3) Largechange属性:用户点击滚动条与键头之间的区域时,value的改变量。u 定时器类类的控件:1) Interval属性:表示定时的时间间隔,以毫秒为单位。2) Enable属性:为true时(缺省值),激活定时器开始计时;为false时处于休眠状态.数据库连接方式选择Visual basic6.0连接数据库的主要方式以下几种方式:一是:用data控件进行数据库链接 ,二是利用adodc(ADO Data Control)进行数据库链接 。三是: 利用DataEnvironment进行数据库链接.四是利用ADO(ActiveX Data Objects)进行编程:现在我们来大致对这几种技术应用介绍:一、 用data控件进行数据库链接.第一步:给窗体添加一个Data控件。如果你的机器没安装有Access,可通过VB建库。第二步:用Access建立一个名为Pad的数据库,在库中建立一个表Myset,给表添加四个字段:backcolor(数据),forecolor(文本),fontname(文本),fontsize(文本)。注意:请将库文件存入程序所在目录。 如果你的机器没安装有Access,可通过VB建库。二、 利用adodc(ADO Data Control)进行数据库链接:使用adodata控件访问数据库可以完全不用编写代码,只需要通过简单的设置和操作其属性就可以实现与数据库的连接,通过绑定数据感知控件,就能提供一个访问数据库的界面,用来实现对数据库的浏览,贴加,删除,修改等操作.三、 利用DAO对数据库进行操纵:在visual basic 中提供了两种与jet数据引擎接口的方法:data控件与数据访问对象(DAO)DAO是database object的英文缩写,要访问数据库一方面数据库要提供访问接口,另一方面要在编程环境中有对数据库的支持.DAO模型是设计关系数据库系统结构的对象类的集合.他们提供了管理关系型数据库系统所需要的全部操作属性和方法,这其中包括建立数据库,定义表,字段和建立表间关系,定位和查询数据库等.关系数据库介绍:关系数据库是目前各类数据库中最重要、最流行的数据库,他应用数学方法来处理数据库数据,是目前使用最广泛的数据库系统。20世纪70年代以后开发的数据库管理系统产品几乎都是基于关系的。在数据库发展的历史上,最重要的成就就是关系模型。 关系数据库系统与非关系数据库系统的区别是:关系系统只有“表“这一种数据结构;而非关系数据库系统还有其他数据结构,对这些数据结构有其他的操作。 结构化查询语言SQL(Structured Query Language)是一种介于关系代数与关系演算之间的语言,其功能包括查询、操纵、定义和控制四个方面,是一个通用的、功能极强的关系数据库语言。目前已成为关系数据库的标准语言MicrosoftAccess介绍:使用MicrosoftAccess,可以在单一的数据库文件中管理所有的信息。在这个文件中,用户可以将自己的数据分别保存在各自独立的存储空间中,这些空间称作表;可以使用联机窗体来查看、添加及更新表中的数据;使用查询来查找并检索所要的数据;也可以使用报表以特定的版面布置来分析及打印数据。 如果要保存数据,请为每一种类型的信息创建一个表。如果要从查询、窗体或报表中的多个表中将数据合并在一起,就要定义各个表之间的关系。 如果要搜索并检索符合指定条件的数据,包括来自多个表中的数据,就要创建查询。查询的同时也可以更新或删除多条记录,并对数据执行内嵌或自定义的计算。 如果要简单地直接在某个表中查看、输入及更改数据,请创建一个窗体。在打开一个窗体时,MicrosoftAccess将从一个或多个表中检索数据,并使用用户在“窗体向导”选择的版面布局或所创建的版面布局,将窗体显示在屏幕上。 如果要分析数据或将数据以特定的方式打印出来,请创建一个报表。例如,可以打印一份将数据分组并计算数据总和的报表,也可以打印另一份带有各种数据格式的打印邮件标签的报表。毕 业 设 计(论 文)开 题 报 告2、参考文献(不少15篇)1陈明 . 软件工程学教程 .科技出版社,20022 萨师煊,王珊 . 数据库系统概论 . 第三版 . 高等教育出版社,20003 飞思科技产品研发中心 . visual basic 6.0数据库应用开发 .电子工业出版社,20034 飞思科技产品研发中心 . visual basic 6.0开发者手册 . 电子工业出版社, 2002 5 申旻 . visual basic 6.0高手突破 . 清华大学出版社,2002,3026 Steve Teixeira,Xaviver Pacheco著,龙劲松,王瑜,谢尚书译 . visual basic 6.0开发人员指南 . 机械工业出版社 .2003 7 乔林 .参透DelphiKylix . 中国铁道出版社 .20038 李维 .Inside 深入核心 VCL 架构剖析 . 电子工业出版社 .2004 9 张立科编写组 .Windows API 函数参考手册 .人民邮电出版社 .2002 严蔚敏,吴伟民 .数据结构 .第二版 .清华大学出版社 .2001 10 王珍玲 。实用软件工程教程 高等教育出版社 200411 (英)Ian Sommerville 机械工业出版社 200312 美Cantu,U. 王辉等译visual basic 6.0 从入门到精通 电子工业出版社 200313 李维 面向对象开发实践之路(visual basic 6.0版)(BORLAND资深顾问著名visual basic 6.0专家李维最新力作) 电子工业出版社 2005-414 秦斌 等 visual basic 6.0数据库系统开发与应用 中国水利水电出版社 2006 .115 刘艺 visual basic 6.0面向对象编程思想 机械工业出版社 200316.visual basic 程序设计第二版 谭浩强 清华大学出版社 200317. visual basic6.0 程序设计教程. 胡同森 赵剑锋等. 浙江科学技术出版社,2002.118.软件工程学教程 (第二版) 周苏 王文 著 科学出版社 2003 毕 业 设 计(论 文)开 题 报 告指导教师意见: 指导教师: 年 月 日教研室审查意见: 教研室负责人: 年 月 日-计高本056周伟,超市进销存管理系统,系统功能模块,商品类型管理商品管理进货管理销售管理报损管理,程序主界面,组件开发技术,开发组件的几种场合:、希望设计一个被其它应用程序共享的组件、现有的组件不满足某种特殊需要的时候、想更深入的了解架构技术的,软件安全,一、明码比较的严重安全隐患。二、软件安全的几点建议:软件加壳防止反汇编增加自身完整性检查防止软件被爆破运用成熟的密码学进行注册码的运算防止注册机的制作,感谢,真诚的感谢老师的教导。,21 指导教师评语:签名:日期: 外文资料译文(一) 电路交换网与vb调用数据库 切换电路的连接设置的结果是保留了从发送端到接收端的包所通过的线路带宽。其它的特性这一就是所有的包都沿同一个线路意味着如果包传输超过了时序那它将不能到达接收端.由于没有路径用来进行包交换,所以要想不同的包沿不同的路径传送就是能依靠网络的条件了。这样包即便是超过了时序它们也有可能到达的。包交换技术比线路交换技术更能容错。事实上,这也是它被发明的理由!当一个交换开头被拉下,则所有使用它的线路将被切断并且其余的包将不能再被传送。此时如果在进行包交换,包将在已选择的路径上停止交换。预先建立一条路径也开创预先保留带宽的可能性。如果带宽被保留,那么当一个包到达时,通过保留的带宽它可以被立即发送出去。假如没有带宽被保留用于包交换,那么所有的包将不得不等待着被转发。预先保留带宽意味着当一个包出现时不会发生拥塞(除非出现的包比预期的还多)。在另一方面,当尝试建立一条电路时,由于拥塞,尝试将会失败。因此,在线路交换(在设置时)和包交换(在包发送时)的不同时间拥塞都可能发生。如果为特定的用户建立一条线路那么当这个用户没有数据传送时,则这些保留下来的带宽将被浪费而不能用于其它用户的传输。而包交换则不会浪费带宽,因此它在系统宽带方面的应用更有前景。理解电路交换和包交换的这种商业差别是极其重要的。这种商业差别是在质保服务和浪费资源相对不质保服务和不浪费资源的。包交换是利用存储器并向前发送的。包是先存储在路由器的内存里然后再发送到下一个路由器的。和电路交换一样信息位也是连续不断地通过导线传输的。存储转发技术增加了延迟时间。另一个不同是电路交换是完全透明的。发送者和接收者可以使用他们想要的任一比特速率,格式和帧同步.这通信公司不知道也不关心这的。而在包交换中载体决定了基本的参数的。用一个简单比喻它们就像一个是公路一个是铁路。在以前,用户决定介质的大小,速度和特性。而后来这些都由通信公司做了的。这些都是透明的它允许声音,数据和传真共同存在于电话系统里。电路交换和包交换的最后一个不同点是计费方式。电路交换的计费是按照传统的距离和时间的。比如移动电话除打国际电话外距离是不列入计算的,而时间也只是列入一个简单的计算(例:拔打2000分钟电话比1000分钟电话花费的多并且晚上或周末也比平时来得便宜)。时间对于包交换来说是没有问题的,但是传输流量却是个问题。ISPs为家庭用户的计费方式基于按一个月的流量的一半的,这是因为它们用得相对较少并且他们的顾客也很好理解这种计费方式。但是主干网络中心的收费是基于它们的流量的。这些不同列在图2-40里。项目电路交换包交换呼叫设置需要不需要专用物理线路是否每个包沿相同路径是否包的到达中有规则的是否是否会致命的崩溃是否带宽利用固定动态分配可能的时间堵塞在设置时在每个包时可能浪费带宽是否以存储转发进行发送否是透明性是否收费按分钟按包图240:比较电路交换网络和包交换网络的不同电路交换和包交换是两者都是非常重要的,我们将立即在详细的资料里提及并描述它们之间各种不同的技术。2.6 移动电话系统 传统的电话的系统将不能满足用户的大量增长(即有一天实现了终端到终端的光纤连接)。人类在进步,人们期望能在飞机上,汽车里,船上,足球场甚至在公园里跑步的时候也能打电话。在近几年人们更是期望能在更多的地方发电子邮件和上网冲浪。因此有很多的人关心无线电话技术。在下面的章节我们将用详细的资料来学习这些主题。 无线电话可以分为基本的两种:无绳电话和移动电话(有时也叫蜂窝电话)。无绳电话设备是由痤机和听筒组成它们被安装在用户的家里。它们从不被应用于网络,所以我们没有办法做进一步的检测。取而代之,我们将把焦点放在在声音和数据通信上有广泛应用的移动系统上。 移动电话经历了三个不同的发展阶段,每个阶段都有不同的技术:1 模拟声音2 数字声音3 数字声音和数据(互联网,电子邮件,etc.)虽然我们主要讨论这系统技术,但是我们也有必要注意政府和市场对它的巨大影响。第一个移动电话系统是在美国由受美国国家联邦通讯委员会(FCC)委托的美国电话电报公司(AT&T)设计的。结果在整个美国就有了一个简单的(模拟)系统并且移动电话开始在加利福尼亚上市同时也在纽约得到应用。相反的,当移动电话来到欧洲时,由于每个国家都设计了自己的系统,所以结局很惨败。当数字技术到来时,欧洲从前面的失败中吸收教训,政府和邮政制定了简单系统(GSM)的统一标准,因此移动电话在欧洲的任何一个地方都是通用的。此时,美国政府决定不把标准商业化因而它失去了数字市场。这个决定导致不同的设备生产商生产出不同的移动电话。结果现在美国有两不可兼容的数字移动电话在使用(加强了一家就会削弱另一家)。即使美国拥有移动电话的所有权,但是在应用上欧洲要远远超过美国的。原因之一就是整个欧洲拥有相同的简单系统。然而更多的是由于美国和欧洲的基本电话数量不同。在美国移动电话和固定电话是共用的,因此对于用户没有办法区分(212)234-5678到底是固定电话(拨打是便宜的或者是免费的)还是移动电话(拨打是昂贵的)。为了使人们从使用电话中获益,电话公司决定为引入呼叫而花自己的钱制造移动电话。结果导致,很多人怕由于呼叫而收到一大笔帐单而不愿意买移动电话。在欧洲移动电话有特殊的区号(如800,900之类的数字),所以它很快就得到了认可。因而在一般的“叫方付费”的原则在欧洲也被应用于移动电话了(除国际电话分开收费外)。在欧洲采用颁布广泛的已经付费的移动电话的影响巨大(超过同地区的75%)。移动电话可以在很多的商店里购买而不像购买收音机那样需要很多手续。谁付费谁使用,他们预先存入,比如20或50 euro并且在快用完的时候可以用PIN码进行再充值。结果在欧洲几乎所有的青年和小孩都有一个(预付费的)移动电话,这样他们的父母就可以准确的定位他们而不用去担心孩子们会用掉一大笔帐的。如果仅在偶而使用移动电话,那么它的使用是基本免费的因为这里有月租或者预先支付呼叫。2.6.1 第一代移动电话:模拟声音 移动电话充分体现了政治和市场的特征。让我们来看一下它的技术吧。它是从简单的系统开始的。在20世纪的初,移动无线电话被偶而应用于海上或军事通信中。在1946年,第一个基站被安置在St.Louis。这个系统被安置在高层建筑上,它使用一个简单的大的发送机并且有了用于发送和接收的简单的通道。像这样的系统称做被动式系统,从1950开始它就被安装在很多的城市了。可较验的收音机,出租车,警车还有电视也广泛采用这种技术。在1960年,IMTS(改良的移动电话系统)被发明。它仍然使用高达200瓦的发送器,发送器被安置在山上,不过此时已经有了两各不同的频率了,一种用来发送,另一种用来接收,所以这个呼叫按钮就可不要了。相比信号出站移动电话的信号入站是通过不同的通道的,因此移动用户不会互相听到(不像应用在出租车上被叫系统)。 IMTS支持从150 MHz到 450 MHz的23条通道。由于通道太少,用户经常要等很长时间才能听到拔号音。也由于小山上的发送器的功率太大,为了不互相干扰邻近的系统不得不与它相距几百千米。总而言之,这有限的容量使用这系统有点不合实际应用。VB6.0中的MSChart控件是一个功能强大的高级图表工具,拥有丰富的图表绘制功能,可显示二维和三维的棒图、区域图、线形图、饼图等多种常用图表。近日我为了在双击图表的某个区域时将与该区域相对应的数据库的内容在DataGrid控件上显示出来,遇到了许多困难,最后用一个自定义的变量SelectSeries解决了问题,具体方法如下:设数据库名称为“学生信息”,有一Access表“学生成绩”,其内容为一个班学生的考试成绩,包括学号、姓名、成绩3个字段,成绩字段格式是字符型,值为“优”、“良”、“中”、“差”中的一个。窗体Form1包括一个MSChart控件McScore,类型为二维饼图,用于显示每种成绩的学生数;一个ADO控件AdScore用于连接数据库;一个DataGrid控件DgScore用于以表格形式显示数据库内容。工作过程为:双击饼图的某个区域,则DgScore显示相应成绩的学生名单。代码如下:Option ExplicitDim SelectedSeries as Integer 自定义变量Dim Rs() as String 提取记录集用的字符串数组Private Sub Form_Load()设定DataGrid控件的数据源DgScore.DataSource=AdScore设定ADO控件的连接字串和初始的记录源,即显示内容AdScore.ConnectString=Provider=Microsoft.OLEDB.3.51;Persist_Security Info=False;Data Source=学生信息AdScore.RecordSource=selet from学生成绩order by成绩AdScore.Refresh预设好提取记录用的SQL语句Rs(1)=select from学生成绩where成绩=Chr(34)优_Chr(34)order by成绩Rs(2)=select from学生成绩where成绩=Chr(34)良_Chr(34)order by成绩Rs(3)=select from学生成绩where成绩=Chr(34)中_Chr(34)order by成绩Rs(4)=select from学生成绩where成绩=Chr(34)差_Chr(34)order by成绩End SubPrivate Sub McScore_SeriesSelected(Series as Integer,MouseFlags as _Integer,Cancel as Integer)SelectedSeries=SeriesEnd SubPrivate Sub McScore_PointSelected(Series as Integer,DataPoint as_Integer,MouseFlags as Integer,Cancel as Integer)SelectedSeries=SeriesEnd SubPrivate Sub McScore_Db1Click()改变ADO控件的记录源并刷新Adoc1.RecordSource=Rs(SeletedSeries)Adoc1.RefreshEnd Sub- VB做为快速应用开发(RAD)工具越来越得到开发人员的认可和接受。它对许多API(如ODBC API、SOCKET API等等)的封装使得编程变得简单起来。同时,它支持集成开发环境下的可视化、事件驱动、面向对象等编程特点。下面,我们谈谈在VB中调用存储过程的实现方法及其注意事项。 - 我们知道,VB的数据库编程有许多种方法,比如直接用ODBC API编程,这种方法灵活、高效,程序员可以实现对数据库复杂的控制;也可以用VB中的数据对象,如RDO(远程数据对象)、DAO(数据访问对象)、ADO(ActiveX 数据对象),这种方法实现起来方便、快捷,但灵活性较差一些。由于存储过程在实现数据封装、隐藏以及代码的预编译、减少网络负载、维护方便等优点,所以被许多RDBMS和编程工具做支持。VB中的各类数据对象也提供对存储过程的支持。 - 我们以ADO为例来说明其实现的步骤 - 1 创建、调试存储过程。你可以在数据库中也可以在其他外挂程序的支持下进行存储过程的创建和调试工作。本例中的存储过程代码如下(使用PUBS的MS SQL中的例子库 ): CREATE PROCEDURE myprocedurejob_id smallint,job_lvl tinyintASSELECT *FROM employeeWHERE job_id job_lvl- 2 在VB中生成一个新的工程,工程有一窗体,一个COMMAND(NAME:COMMAND1) 按钮,一个 MSFlexGrid(NAME:MSFlexGrid1)控件。 - 3 创建连接ADO connection; - 4 创建命令ADO command; - 5 创建参数并设置各个参数的属性; - 6 执行ADO command; - 7 对数据进行处理;MSFlexGrid显示查询到的数据 - 8 释放连接,退出程序。 - 其中代码如下: 在窗体中声明以下变量:Dim cnn1 As ADODB.Connection 连接Dim mycommand As ADODB.Command 命令Dim parm_jobid As ADODB.Parameter 参数1Dim parm_joblvl As ADODB.Parameter 参数2Dim rstByQuery As ADODB.Recordset 结果集Dim strCnn As String 连接字符串在窗体的LOAD事件中加入如下代码:Set cnn1 = New ADODB.Connection 生成一个连接strCnn = DSN=MYDSN;uid=sa;pwd=创建的系统数据源MYDSN指向PUBS数据库cnn1.Open strCnn 打开连接在窗体的UNLOAD中的加入代码如下:cnn1.Close 关闭连接Set cnn1 = Nothing 释放连接在按钮中的代码如下:Dim i As integerDim j as integer Set parm_jobid = New ADODB.ParameterSet mycommand = New ADODB.Command parm_jobid.Name = name1 this line can be ommitedparm_jobid.Type = adInteger 外 文 原 文(二)Electric circuit exchange network and vb transfer database The result of the connection setup with circuit switching is the reservation of bandwidth all the way from the sender to the receiver. All packets follow this path. Among other properties, having all packets follow the same path means that they cannot arrive out of order. With packet switching there is no path , so different packets can follow different paths, depending on network conditions at the time they are sent. They may arrive out of order.Packet switching is more fault tolerant than circuit switching. In fact, that is why it was invented. If a switch goes down, all of the circuits using it are terminated and no more traffic can be sent on any of them. With Packet switching, packets can be routed around dead switches.Setting up a path in advance also opens up the possibility of reserving bandwidth in advance. If bandwidth is reserved, then when a packet arrives, it can be sent out immediately over the reserved bandwidth. With packet switching, no bandwidth is reserved, so packets may have to wait their turn to be forwarded.Having bandwidth reserved in advance means that no congestion can occur when a packet shows up (unless more packets show up than expected).On the other hand, when an attempt is made to establish a circuit, the attempt can fail due to congestion. Thus, congestion can occur at different times with circuit switching(at setup time) and packet switching(when packets are sent).If a circuit has been reserved for a particular user and there is no traffic to send, the bandwidth of that circuit is wasted. It cannot be used for other traffic. Packet switching does not waste bandwidth and thus is more efficient form a system-wide perspective. Understanding this trade-off is crucial for comprehending the difference between circuit switching and packet switching. The trade-off is between guaranteed service and wasting resources versus not guaranteeing service and not wasting resources.Packet switching uses store-and-forward transmission. A packet is accumulated. in a routers memory, then sent on to the next router. With circuit switching, the bits just flow through the wire continuously. The store-and-forward technique adds delay.Another difference is that circuit switching is completely transparent.The sender and receiver can use any bit rate, format, or framing method they want to. The carrier does not know or care. With packet switching, the carrier determines the basic parameters. A rough analogy is a road versus a railroad. In the former, the user determines the size, speed, and nature of the vehicle; in the latter, the carrier does. It is this transparency that allows voice, data, and fax to coexist within the phone system.A final difference between circuit and packet switching is the charging algorithm. With circuit switching, charging has historically been based on distance and time. For mobile phones, distance usually does not play a role, except for international calls, and time plays only a minor role(e.g., a calling plan with 2000 free minutes costs more than one with 1000 free minutes and sometimes night or weekend calls are cheaper than normal).With packet switching, connect time is not an issue, but the volume of traffic sometimes is. For home users, ISPs usually charge a flat monthly rate because it is less work for them and their customers can understand this model easily, but backbone carriers charge regional networks based on the volume of their traffic. The differences are summarized in Fig.2-40.ItemCircuit SwitchedPacket SwitchedCall setupRequiredNot neededDedicated physical pathYesNoEach packet follows the same routeYesNoPackets arrive in orderYesNoIs a switch crash fatalYesNoBandwidth availableFixedDynamicTime of possible congestionAt setup timeOn every packetPotentially wasted bandwidthYesNoStore-and-forward transmissionNoYesTransparencyYesNoChargingPer minutePer packetBoth circuit switching and packet switching are important enough that we will come back to them shortly and describe the various technologies used in detail.2.6 THE MOBILE TELEPHONE SYSTEMThe traditional telephone system(even if it some day gets multi-gigabit end-to-end fiber) will still not be able to satisfy a growing group of users :people on the go .People now expect to make phone calls from airplanes ,cars ,swimming pools ,and while jogging in the park .Within a few years they will also expect to send e-mail and surf the Web from all these locations and more consequently ,there is a tremendous amount of interest in wireless telephony .In the following sections we will study this topic in some detail.Wireless telephones come in two basic varieties :cordless phones and mobile phones(sometimes called cell phones),Cordless phones are devices consisting of a base station and a handset sold as a set for use within the home. These are never used for networking ,so we will not examine them further .Instead we will concentrate on the mobile system ,which is used for wide area voice and data communication.Mobile phones have gone through three distinct generations ,with different technologies:1. Analog voice2. Digital voice3. Digital voice and data(Internet ,e-mail ,etc.).Although most of our discussion will be about the technology of these systems ,it is interesting to note how political and tiny marketing decisions can have a huge impact .The first mobile system was devised in the U.S. by AT&T and mandated for the whole country by the FCC .As a result ,the entire U.S. had a single(analog) system and a mobile phone purchased in California also worked in New York .In contrast ,when mobile came to Europe ,every country devised its own system ,which resulted in a fiasco.Europe learned from its mistake and when digital came around, the government-run PTTs got together and standardized on a single system(GSM),so any European mobile phone will word anywhere in Europe .By then ,the U.S. had decided that government should not be in the standardization business ,so it left digital to the marketplace .This decision resulted in different equipment manufacturers producing different kinds of mobile phones .As a consequence ,the U.S. now has two major incompatible digital mobile phone systems in operation(plus one minor one).Despite an initial lead by the U.S. , mobile phone ownership and usage in Europe is now far greater than in the U.S. Having a single system for all of Europe is part of the reason ,but there is more .A second area where the U.S. and Europe differed is in the humble matter of phone numbers .In the U.S. mobile phones are mixed in with regular (fixed) telephones .Thus ,there is no way for a caller to see if ,say ,(212)234-5678 is a fixed telephone (cheap or free call) or a mobile phone (expensive call).To keep people from getting nervous about using the telephone ,the telephone companies decided to make the mobile phone owner pay for incoming calls .As a consequence ,many people hesitated to buy a mobile phone for fear of running up a big bill by just receiving calls .In Europe ,mobile phones have a special area code (analogous to 800 and 900 numbers) so they are instantly recognizable .Consequently , the usual rule of “caller pays” also applies to mobile phones in Europe (except for international calls where costs are split).A third issue that has had a large impact on adoption is the widespread use of prepaid mobile phones in Europe (up to 75% in some areas ).These can be purchased in many stores with no more formality than buying a radio .You pay and you go .They are preloaded with ,for example ,20 or 50 euro and can be recharged (using a secret PIN code ) when the balance drops to zero . As a consequence , practically every teenager and many small children in Europe have (usually prepaid ) mobile phones so their parents can locate them ,without the danger of the child running up a huge bill .If the mobile phone is used only occasionally ,its use is essentially free since there is no monthly charge or charge for incoming calls .2.6.1 First-Generation Mobile Phones :Analog Voice Enough about the politics and marketing aspects of mobile phones .Now let us look at the technology ,starting with the earliest system .Mobile radiotelephones were used sporadically for maritime and military communication during the early decades of the 20th century .In 1946, the first system for car-based telephones was set up in St.Louis .This system used a single large transmitter on top of a tall building and had a single channel ,used for both sending and receiver .Such systems ,known as push-to-talk systems ,were installed in several cities beginning in the late 1950s.CB-radio,taxis,and police cars on television programs often use this technology.In the 1960s,IMTS(Improved Mobile Telephone System) was installed .It ,too ,used a high-powered (200-watt) transmitter ,on top of a hill , but now had two frequencies ,one for sending and one for receiving , so the push-to-talk button was no longer needed . Since all communication from the mobile telephones went inbound on a different channel than the outbound signals ,the mobile users could not hear each other (unlike the push-to-talk system used in taxis). IMTS supported 23 channels spread out from 150 MHz to 450 MHz .Due to the small number of channels ,users often had to wait a long time before getting a dial tone .Also ,due to the large power of the hilltop transmitter ,adjacent systems had to be several hundred kilometers apart to avoid interference . All in all ,the limited capacity made the system impractical.In VB6.0 MSChart controls is one function formidable high-level graph tool, has the rich graph plan function, may demonstrate two-dimensional and the three dimensional good chart, the linear chart, the cake chart and so on the many kinds of commonly used graph. Recently I in order to in double struck the graph when some region will the database content which corresponded with this region controlled on in DataGrid demonstrates, encountered many difficulties, finally used one to solve the problem from definition variable SelectSeries, concrete method as follows:Supposes the database name is the student information , has one Access table the student result , its content is one class students test result, includes the student number, the name, the result 3 fields, the result field form is the character, the value is is superior , is good , center , the difference center one.Window Form1 includes one MSChart controls MC$score, the type for the two-dimensional cake chart, uses in to demonstrate each kind of result the student counts; One ADO controls AdScore uses in to connect the database; One DataGrid controls DgScore uses in by the form form demonstration database content.The work process is: Double strikes the cake chart some region, then DgScore demonstrates the corresponding result the student name list.Code as follows:Option ExplicitDim SelectedSeries as Integer from definition variable Dim Rs () as String withdraws the character string array which the record compendium uses Private Sub Form_Load () Establishes DataGrid controls the data pool DgScore.DataSource= AdScore Establishes ADO controls the connection character string and the initial record source, namely demonstration content AdScore.ConnectString= Provider=Microsoftc.oledb.3.51; Persist_Security Info=False; Data Source= student information AdScore.RecordSource= selet * from student result order by result AdScore.Refresh Supposes in advance withdraws the SQL sentence which the recording uses Rs (1) = select * from the student result where result = + Chr (34) + is superior + _Chr (34) + order the by result Rs (2) = select * from the student result where result = + Chr (34) + is good + _Chr (34) + order the by result Rs (3) = select * from student result where result = + Chr (34) + center + _Chr (34) + order by result Rs (4) = select * from student result where result = + Chr (34) + difference _Chr (34) + order by result End SubPrivate Sub MC$score_SeriesSelected (Series as Integer, MouseFlags as _Integer, Cancel as Integer)SelectedSeries=SeriesEnd SubPrivate Sub MC$score_PointSelected (Series as Integer, DataPoint as_Integer, MouseFlags asInteger, Cancel as Integer)SelectedSeries=SeriesEnd SubPrivate Sub MC$score_Db1Click () Changes ADO controls the record source and renovates Adoc1.RecordSource=Rs (SeletedSeries)Adoc1.RefreshEnd Sub- VB does for the rapid application development (RAD) the tool more and more obtains the development personnels approval and accepts. It to many API (for example ODBC API, SOCKET API and so on) the seal causes the programming to change is simple. At the same time, it supports under the integrated development environment visible, the event actuates, to be object-oriented and so on the programming characteristic. Under, we chat in VB transfer the memory process the realization method and its the matte
- 温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

人人文库网所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。