超市进销存管理系统.doc

JSJ06-329@VB超市进销管理系统

收藏

资源目录
跳过导航链接。
JSJ06-329@VB超市进销管理系统.zip
JSJ06-329@VB超市进销管理系统
超市进销存管理系统.doc---(点击预览)
电路交换网与vb调用数据库外文翻译.doc---(点击预览)
毕业设计答辩稿.ppt---(点击预览)
开题报告.doc---(点击预览)
超市进销存管理系统
Class
clsAdmin.cls
clsAdmins.cls
clsBuy.cls
clsBuys.cls
clsDBbase.cls
clsDBbases.cls
clsDispose.cls
clsDisposes.cls
clsMerch.cls
clsMerchs.cls
clsMType.cls
clsMTypes.cls
clsOpAdmin.cls
clsOpBase.cls
clsOpBuy.cls
clsOpDispose.cls
clsOpMerch.cls
clsOpMType.cls
clsOpProvider.cls
clsOpSell.cls
clsProvider.cls
clsProviders.cls
clsPublic.cls
clsSell.cls
clsSells.cls
DB
Merchandise.mdb
Form
frmAbout.frm
frmAbout.frx
frmAnalysis.frm
frmAnalysis.frx
frmBuy.frm
frmBuy.frx
frmDispose.frm
frmDispose.frx
frmLogin.frm
frmLogin.frx
frmMain.frm
frmMain.frx
frmMerch.frm
frmMerch.frx
frmMType.frm
frmMType.frx
frmProvider.frm
frmProvider.frx
frmSell.frm
frmSell.frx
frmSplash.frm
frmSplash.frx
frmUser.frm
frmUserList.frm
images
1.ico
2.ico
3.ico
4.ico
70.gif
71.gif
admin.ico
aod_bb_1_73.ico
bGirl.ico
bMan..ico
Buyinfo.ico
Buyreg.ico
CAB.ICO
Camera1.ico
Camera2.ico
Camera3.ico
del.ico
FILER.ICO
GEARS.ico
GEARSH.ico
group.ico
groupH.ico
Help.ico
HOUSE.ICO
info.ico
key.ico
key_32.ico
language.ico
Langue.ico
Leaf.ICO
LeafH.ICO
login.ico
loginin.ico
lstView.bmp
lstview.ico
machine.ico
machineH.ico
modify.bmp
modify.ico
MYCOMP.ICO
NETHOOD.ICO
NOTE03.ICO
ok.ico
OtherFind.ico
Otherreg.ico
Personinfo.ico
Personreg.ico
Preview.ico
Print.ico
quit.ico
reg.ico
search.ico
SearchButton.ico
Sellinfo.ico
Sellreg.ico
sGirl.bmp
sMan.bmp
soft.ico
Superfind.ico
SysMsgButton.ico
Thumbs.db
Toolbox.ico
user.ico
userH.ico
WinXPPro Icon 22.ico
Module
mdlDB.bas
mdlListView.bas
mdlMain.bas
mdlMTypeOp.bas
mdlPublic.bas
mdlTreeView.bas
Merchandise.RES
Merchandise.vbp
Merchandise.vbw
MSSCCPRJ.SCC
压缩包内文档预览:
预览图 预览图 预览图 预览图 预览图 预览图 预览图 预览图
编号:507651    类型:共享资源    大小:618.99KB    格式:ZIP    上传时间:2015-11-11 上传人:QQ28****1120 IP属地:辽宁
12
积分
关 键 词:
毕业设计论文
资源描述:
JSJ06-329@VB超市进销管理系统,毕业设计论文
内容简介:
1 毕 业 设 计(论 文)开 题 报 告 1、文献综述 (结合毕业设计(论文)课题情况,根据所查阅的文献资料撰写) nts 2 超市进销存 管理系统用计算机管理 超市库存进出 管理的一种计算机应用技术的创新 ,在计算机还未普及之前 库存 管理都是由工作人员手工书写的方式来操作的 .现在一般的 超市 都采用计算机智能化管理 ,采用计算机作为工具的实用的计算机 超市 库存管理程序来帮助管理员进行更有效的 超市库存 管理工作。 超市进销存 管理系统 是典型的信息管理系统 (MIS),其开发主要包括后台数据库的建立和维护以及前端应用 程序的开发两个方面。对于前者要求建立起数据一致性和完整性强、数据安全性好的库。而对于后者则要求应用程序功能完备 ,易使用等特点。 经过分析 ,我们使用 MICROSOFT 公司的 VISUAL BASIC 开发工具 ,利用其提供的各种面向对象的开发工具 ,尤其是数据窗口这一能方便而简洁操纵数据库的智能化对象 ,首先在短时间内建立系统应用原型 ,然后 ,对初始原型系统进行需求迭代 ,不断修正和改进 ,直到形成用户满意的可行系统。 nts 3 主要的控件及其属性简介 命令按钮类的控件: 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 属性 :当控件为一控件数组时 ,此属性值为该控件在数组的下标值 . 标签框类的控件: 1) Caption 属性:在应用程序界面上加入说明。 Autosize 属性:决定控件是否自动改变大小以显示其全部内容。 nts 4 2) 3) Backstyle 属性:用以指示标签是否透明 . 4) Bordstyle 属性 :用以设定控件是否有边框。 文本框类的控件: 1) Text 属性:通过像 text 属性赋值的方法来改变该属性的值。 2) Maxlength 属性:该属性设定在文本框控件中能够输入的最大字符数。 3) Multline 属性:该属性设 定 text 字符串中是否接受换行符。 4) Scrollbars 属性:该属性决定是否为文本框加滚动条。 5) Passwordchar 属性:该属性设定输入文本的特殊显示字符 ,在设计密码程序时非常有用。 6) Change 事件属性:文本框的内容发生改变时 ,相应的控件之间发生相应的改变 ,具有即时性。 7) Keypress:事件由用户在文本框控件中按任意键触发。 单选按钮类的控件: 1) Caption 属性:显示在控件上的文本 ,是单选按钮的标题。 2) Alignment 属性:决定单选按钮的标题在控件上的位置。 3) Enable 属性:该控件为灰色时为 false,表示运行时不可用。 4) Index 属性:属性值表示为单选按钮组成的控件中某个按钮的索引值。 5) Tabindex 属性:建立控件时 ,vb 自动为其分配一个 tabindex值 ,利用 tab 键可以在控件之间切换焦点。 6) Value 属性:反映控件状态的属性 ,返回 true 表示已选择了该按钮。 复选按钮类的控件: 1) Caption 属性:缺省为 check1 。 2) Index 属性 :该属性值为复选框控件数组的下标 . 3) Value属性 :value为 0表空白 ,为 1表勾号 ,为 2表示灰色勾号 . 框架类的控件: Frame 属性:做为其他控件的容 器。 nts 5 1) 列表框架和组合类的控件: 1) List 属性:列表框控件的表项是使用数组的方式保存 ,数组的每一个元素存储列表控件的一个表项 2) Listcount 属性 :控件列表部分项目的个数。 3) Mutselect 属性 :可以设置列表框为单选或允许多选属性 . 4) Selectd 属性 :标示一个数组 ,数组各元素为 : 5) Selected(0),selected(1) 滚动条类的控件: 1) Value 属性:滚动条上滑块所在位置由 value 值所决定。 2) Max 和 min 属性:对 value 值的最大 ,最小进行限制。 3) Largechange 属性:用户点击 滚动条与键头之间的区域时 ,value 的改变量。 定时器类类的控件: 1) Interval 属性:表示定时的时间间隔 ,以毫秒为单位。 2) Enable 属性 :为 true 时 (缺省值 ),激活定时器开始计时 ;为false 时处于休眠状态 . 数据库连接方式选择 Visual basic6.0 连接数据库的主要方式以下几种方式:一是: 用 data 控件进行数据库链接 ,二是 利用 adodc( ADO Data Control)进行数据库链接 。三是 : 利用 DataEnvironment 进行数据库链接 .四是 利用 ADO(ActiveX Data Objects)进行编程 :现在我们来大致对这几种技术应用介绍: 一、 用 data 控件进行数据库链接 . 第一步:给窗体添加一个 Data 控件。 如果你的机器没安装有 Access,可通过 VB 建库。 nts 6 第二步:用 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 年代以后开发的数据库管理系统产品几乎都是基于关系的。在数 据库发展的历史上,最重要的成就就是关系模型。 关系数据库系统与非关系数据库系统的区别是:关系系统只有 “ 表 “ 这一种数据结构;而非关系数据库系统还有其他数据结构,对这些数据结构有其他的操作。 。 nts 7 结构化查询语言 SQL( Structured Query Language)是一种介于关系代数与关系演算之间的语言,其功能包括查询、操纵、定义和控制四个方面,是一个通用的、功能极强的关系数据库语言。目前已成为关系数据库的标准语言 Microsoft Access 介绍 : 使用 Microsoft Access,可以在单一的数据库文件中管理所有的信息。在这个文件中,用户可以将自己的数据分别保存在各自独立的存储空间中,这些空间称作表;可以使用联机窗体来查看、添加及更新表中的数据;使用查询来查找并检索所要的数据;也可以使用报表以特定的版面布置来分析及打印数据。 如果要保存数据,请为每一种类型的信息创建一个表。如果要从查询、窗体或报表中的多个表中将数据合并在一起,就要定义各个表之间的关系。 如果要搜索并检索符合指定条件的数据,包括来自多个表中的数据,就要创建查询。查询的同时也可以更新或删 除多条记录,并对数据执行内嵌或自定义的计算。 如果要简单地直接在某个表中查看、输入及更改数据,请创建一个窗体。在打开一个窗体时, Microsoft Access 将从一个或多个表中检索数据,并使用用户在 “ 窗体向导 ” 选择的版面布局或所创建的版面布局,将窗体显示在屏幕上。 如果要分析数据或将数据以特定的方式打印出来,请创建一个报表。例如,可以打印一份将数据分组并计算数据总和的报表,也可以打印另一份带有各种数据格式的打印邮件标签的报表。 nts 8 nts 9 毕 业 设 计(论 文)开 题 报 告 2、参考文 献 (不少 15 篇) 1陈明 . 软件工程学教程 .科技出版社, 2002 2 萨师煊,王珊 . 数据库系统概论 . 第三版 . 高等教育出版社, 2000 3 飞思科技产品研发中心 . visual basic 6.0 数据库应用开发 .电子工业出版社, 2003 4 飞思科技产品研发中心 . visual basic 6.0 开发者手册 . 电子工业出版社 , 2002 5 申 旻 . visual basic 6.0 高手突破 . 清华大学出版社, 2002, 302 6 Steve Teixeira, Xaviver Pacheco 著,龙劲松,王瑜,谢尚书译 . visual basic 6.0 开发人员指南 . 机械工业出版社 .2003 7 乔林 .参透 Delphi Kylix . 中国铁道出版社 .2003 8 李维 .Inside 深入核心 VCL 架构剖析 . 电子工业出版社 .2004 9 张立科编写组 .Windows API 函数参考手册 .人民邮电出版社 .2002 严蔚敏,吴伟民 .数据结构 .第二版 .清华大学出版社 .2001 10 王珍 玲 。实用软件工程教程 高等教育出版社 2004 11 (英) Ian Sommerville 机械工业出版社 2003 12 美 Cantu,U. 王辉等译 visual basic 6.0 从入门到精通 电子工业出版社 2003 13 李维 面向对象开发实践之路( visual basic 6.0 版) (BORLAND 资深顾问著名 visual basic 6.0 专家李维最新力作 ) 电子工业出版社 2005-4 14 秦斌 等 visual basic 6.0 数据库系统开发与应 用 中国水利水电出版社 2006 .1 15 刘艺 visual basic 6.0 面向对象编程思想 机械工业出版社 2003 16.visual basic 程序设计第二版 谭浩强 清华大学出版社 2003 17. visual basic6.0 程序设计教程 . 胡同森 赵剑锋等 . 浙江科学技术出版社 ,2002.1 18.软件工程学教程 (第二版 ) 周苏 王文 著 科学出版社 2003 nts 10 毕 业 设 计(论 文)开 题 报 告 指导教师意见 : 指导教师: 年 月 日 nts 11 教研室审查意见: 教研室负责人: 年 月 日 nts - 计高本 056周伟 nts系统功能模块 商品类型管理 商品管理 进货管理 销售管理 报损管理 nts程序主界面 nts组件开发技术 开发组件的几种场合: 、希望设计一个被其它应用程序共享的组件 、现有的组件不满足某种特殊需要的时候 、想更深入的了解架构技术的 nts软件安全 一、明码比较的严重安全隐患。 二、软件安全的几点建议: 软件加壳防止反汇编 增加自身完整性检查防止软件被爆破 运用成熟的密码学进行注册码的运算防止注册机的制作 nts感谢 真诚的感谢老师的教导。 nts 1 指导教师评语: 签名: 日期: nts 2 外文资料译文(一) 电路交换网与 vb 调用数据库 切换电路的连接设置的结果是保留了从发送端到接收端的包所通过的线路带宽。其它的特性这一就是所有的包都沿同一个线路意味着如果包传输超过了时序那它将不能到达接收端 .由于没有路径用来进行包交换,所以要想不同的包沿不同的路径传送就是能依靠网络的条件了。这样包即便是超过了时序它们也有可能到达的。 包交换技术比线路交换技术更能容错。事实上,这也是它被发明的理由!当一个交换开头被拉下,则所有使用它的线路将被切断并且其余的包将不能再被传送。此时如果在进行包交换,包将在已选择的路径上停止交换。 预先建立一条路径也开创预先保留带宽的可能性。 如果带宽被保留,那么当一个包到达时, 通过 保留的带宽 它可以被立即发送出去。假如没有带宽被保留用于包交换,那么所有的包将不得不等待着被转发。 预先保留带宽意味着当一个包出现时 不会发生 拥塞 (除非 出现的包比预期的还 多 )。 在另一方面 ,当尝试建立一条 电 路时 , 由于拥塞 , 尝试 将会 失败 。因此 ,在线路交换 (在设置时 )和包交换 (在包发送时 )的不同时间拥塞都可能发生。 如果为特定的用户建立一条线路那么当这个用户没有数据传送时,则这些保留下来的带宽将被浪费而不能用于其它用户的传输。而包交换则不会浪费带宽,因此它在系统宽带方面的应用更有前景。理解电路交换和包交换的这种商业差别是极其重要的。这种商业差别是在质保服务和浪费资源相对不质保服务和不浪费资源的。 包交换是利用存储器并向前发送的。包是先存储在路由器的内存里然后再发送到下一个路由器的。和电路交换一样信息位也是连续不断地通过导线传输的。存储转发技术增加 了延迟时间。 另一个不同是电路交换是完全透明的。发送者和接收者可以使用他们想要的任一比特速率,格式和帧同步 .这通信公司不知道也不关心这的。而在包交换中载体决定了基本的参数的。用一个简单比喻它们就像一个是公路一个是铁路。在以前,用户决定介质的大小,速度和特性。而后来这些都由通信公司做了的。这些nts 3 都是透明的它允许声音,数据和传真共同存在于电话系统里。 电路交换和包交换的最后一个不同点是计费方式。电路交换的计费是按照传统的距离和时间的。比如移动电话除打国际电话外距离是不列入计算的,而时间也只是列入一个简单的计算 (例 :拔打 2000 分钟电话比 1000 分钟电话花费的多并且晚上或周末也比平时来得便宜 )。时间对于包交换来说是没有问题的,但是传输流量却是个问题。 ISPs 为家庭用户的计费方式基于按一个月的流量的一半的,这是因为它们用得相对较少并且他们的顾客也很好理解这种计费方式。但是主干网络中心的收费是基于它们的流量的。这些不同列在图 2-40里。 项目 电路交换 包交换 呼叫设置 需要 不需要 专用物理线路 是 否 每个包沿相同路径 是 否 包的到达中有规则的 是 否 是否会致命的崩溃 是 否 带宽利用 固定 动态分 配 可能的时间堵塞 在设置时 在每个包时 可能浪费带宽 是 否 以存储转发进行发送 否 是 透明性 是 否 收费 按分钟 按包 图 2 40:比较电路交换网络和包交换网络的不同 电路交换和包交换是两者都是非常重要的,我们将立即在详细的资料里提及并描述它们之间各种不同的技术。 2.6 移动电话系统 传统的电话的系统将不能满足用户的大量增长(即有一天实现了终端到终端的光纤连接)。人类在进步,人们期望能在飞机上,汽车里,船上,足球场甚至在公园里跑步的时候也能打电话。在近几年人们更是期望能在更多 的地方发电子邮件和上网冲浪。因此有很多的人关心无线电话技术。在下面的章节我们将用详细的资料来学习这些主题。 nts 4 无线电话可以分为基本的两种:无绳电话和移动电话(有时也叫蜂窝电话)。无绳电话设备是由痤机和听筒组成它们被安装在用户的家里。它们从不被应用于网络,所以我们没有办法做进一步的检测。取而代之,我们将把焦点放在在声音和数据通信上有广泛应用的移动系统上。 移动电话经历了三个不同的发展阶段,每个阶段都有不同的技术: 1 模拟声音 2 数字声音 3 数字声音和数据(互联网,电子邮件, etc.) 虽然我们主要讨论 这系统技术,但是我们也有必要注意政府和市场对它的巨大影响。第一个移动电话系统是在美国由受美国国家联邦通讯委员会 (FCC)委托的美国电话电报公司 (AT&T)设计的。结果在整个美国就有了一个简单的 (模拟 )系统并且移动电话开始在加利福尼亚上市同时也在纽约得到应用。相反的,当移动电话来到欧洲时,由于每个国家都设计了自己的系统,所以结局很惨败。 当数字技术到来时,欧洲从前面的失败中吸收教训,政府和邮政制定了简单系统 (GSM)的统一标准,因此移动电话在欧洲的任何一个地方都是通用的。此时,美国政府决定不把标准商业化因而它 失去了数字市场。这个决定导致不同的设备生产商生产出不同的移动电话。结果现在美国有两不可兼容的数字移动电话在使用 (加强了一家就会削弱另一家 )。 即使美国拥有移动电话的所有权,但是在应用上欧洲要远远超过美国的。原因之一就是整个欧洲拥有相同的简单系统。然而更多的是由于美国和欧洲的基本电话数量不同。在美国移动电话和固定电话是共用的,因此对于用户没有办法区分 (212)234-5678到底是固定电话 (拨打是便宜的或者是免费的 )还是移动电话 (拨打是昂贵的 )。为了使人们从使用电话中获益,电话公司决定为引入呼叫而花自己的钱制 造移动电话。结果导致,很多人怕由于呼叫而收到一大笔帐单而不愿意买移动电话。在欧洲移动电话有特殊的区号 (如 800,900 之类的数字 ),所以它很快就得到了认可。因而在一般的“叫方付费”的原则在欧洲也被应用于移动电话了 (除国际电话分开收费外 )。 在欧洲采用颁布广泛的已经付费的移动电话的影响巨大 (超过同地区的 75%)。移动电话可以在很多的商店里购买而不像购买收音机那样需要很多手续。谁付费谁使用,他们预先存入,比如 20 或 50 euro 并且在快用完的时候可以用 PIN 码进nts 5 行再充值。结果在欧洲几乎所有的青年和小孩都有一个 (预付费的 )移动电话,这样他们的父母就可以准确的定位他们而不用去担心孩子们会用掉一大笔帐的。如果仅在偶而使用移动电话,那么它的使用是基本免费的因为这里有月租或者预先支付呼叫。 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,类型为二维饼图,用于显示每nts 6 种成绩的学生数;一个 ADO 控件 AdScore 用于连接数据库;一个 DataGrid 控件DgScore 用于以表格形式显示数据库内容。 工作过程为:双击饼图的某个区域,则 DgScore 显示相应成绩的学生名单。 代码如下: Option Explicit Dim SelectedSeries as Integer 自定义变量 Dim Rs() as String 提取记录集用的字符串数组 Private Sub Form_Load() 设定 DataGrid 控件的数据源 DgScore.DataSource=AdScore 设定 ADO 控件的连接字串和初始的记录源,即显示内容 AdScore.ConnectString=Provider=Microsoft.OLEDB.3.51;Persist_Securit y 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 Sub Private Sub McScore_SeriesSelected(Series as Integer,MouseFlags as _Integer,Cancel as Integer) SelectedSeries=Series End Sub nts 7 Private Sub McScore_PointSelected(Series as Integer,DataPoint as_Integer,MouseFlags as Integer,Cancel as Integer) SelectedSeries=Series End Sub Private Sub McScore_Db1Click() 改变 ADO 控件的记录源并刷新 Adoc1.RecordSource=Rs(SeletedSeries) Adoc1.Refresh End 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 myprocedure job_id smallint, nts 8 job_lvl tinyint AS SELECT * FROM employee WHERE 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 参数 1 Dim parm_joblvl As ADODB.Parameter 参数 2 Dim rstByQuery As ADODB.Recordset 结果集 nts 9 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 integer Dim j as integer Set parm_jobid = New ADODB.Parameter Set mycommand = New ADODB.Command parm_jobid.Name = name1 this line can be ommited parm_jobid.Type = adInteger nts 10 外 文 原 文(二) 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 nts 11 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 router s 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. nts 12 Item Circuit Switched Packet Switched Call setup Required Not needed Dedicated physical path Yes No Each packet follows the same route Yes No Packets arrive in order Yes No Is a switch crash fatal Yes No Bandwidth available Fixed Dynamic Time of possible congestion At setup time On every packet Potentially wasted bandwidth Yes No Store-and-forward transmission No Yes Transparency Yes No Charging Per minute Per packet Both 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 SYSTEM The 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 nts 13 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 voice 2. Digital voice 3. 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 nts 14 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 nts 15 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 nts 16 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 so
温馨提示:
1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
2: 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
3.本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
提示  人人文库网所有资源均是用户自行上传分享,仅供网友学习交流,未经上传用户书面授权,请勿作他用。
关于本文
本文标题:JSJ06-329@VB超市进销管理系统
链接地址:https://www.renrendoc.com/p-507651.html

官方联系方式

2:不支持迅雷下载,请使用浏览器下载   
3:不支持QQ浏览器下载,请用其他浏览器   
4:下载后的文档和图纸-无水印   
5:文档经过压缩,下载后原文更清晰   
关于我们 - 网站声明 - 网站地图 - 资源地图 - 友情链接 - 网站客服 - 联系我们

网站客服QQ:2881952447     

copyright@ 2020-2025  renrendoc.com 人人文库版权所有   联系电话:400-852-1180

备案号:蜀ICP备2022000484号-2       经营许可证: 川B2-20220663       公网安备川公网安备: 51019002004831号

本站为文档C2C交易模式,即用户上传的文档直接被用户下载,本站只是中间服务平台,本站所有文档下载所得的收益归上传人(含作者)所有。人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。若文档所含内容侵犯了您的版权或隐私,请立即通知人人文库网,我们立即给予删除!