息表按学号建立主索引,对学籍信息表按学号建立主索引,对学生密码表按学号建立主索引,对经计算密码表按用户名建立主索引,并按学号建立个表间的一一对应关系。
这5张数据表的结构和部分数据如下表所示:
表1 毕业生基本信息表的结构
字段名 学号 姓名 学工号 性别 出生年月 民族 政治面貌 学历 语种 家庭住址 邮政编码 手机号码 Qq号码 毕业院校 所学专业 字段类型 字符型 字符型 字符型 字符型 字符型 字符型 字符型 字符型 字符型 字符型 字符型 字符型 字符型 字符型 字符型 字段宽度 9 4 4 2 8 4 4 4 4 16 6 11 10 12 12 索引类型 主索引(↑) 无 无 无 无 无 无 无 无 无 无 无 无 无 无 表2 毕业生成绩信息表结构:
字段名 学号 密码 姓名 政治面貌 学业成绩 毕业去向 工作单位 工资待遇 学校评价
字段类型 字符型 字符型 字符型 字符型 字符型 字符型 字符型 数值型 备注型 字段宽度 10 12 8 10 10 10 20 11 4 索引类型 主索引(↑) 无 无 无 无 无 无 无 无 表3 毕业生学籍信息表结构 字段名 编号 姓名 班级 入学方式 字段类型 字符型 字符型 字符型 字符型 字段长度 10 10 10 10 小数点 —— —— —— —— 索引类型 主索引(↑) —— —— —— 家长姓名 家长联系方式 入学成绩 应试外语 外语水平 在校表现 就业去向 邮政编码 高中学校 字符型 字符型 数值型 字符型 字符型 备注型 字符型 字符型 字符型
10 15 15 10 10 4 30 10 20 —— —— 2 —— —— —— —— —— —— —— —— —— —— —— —— —— —— —— 表4 教师密码表的结构:
字段名 用户名 密码 字段类型 字符型 字符型
字段宽度 6 3 索引类型 主索引(↑) 无 表5 教师密码表的部分数据:
用户名 密 码 01 2 02 2
03 2 04 2 05 2 表6 学生密码表的结构:
字段名 学号 密码 字段类型 字符型 字符型 字段宽度 9 3 索引类型 主索引(↑) 无 表7 学生密码表的部分数据:
学 号 061411201 061411202 061411203 061411204 062411101 062411102 062411103 062411104 063411101 063411102 063411103 063411104 密 码 1 1 1 1 1 1 1 1 1 1 1 1 五.系统实施
1.启动界面
实现功能:作为毕业生管理系统的欢迎界面
启动表单的信息
表单的属性如下: Auto Center: .T.--真 Caption: 启动表单 Font Name: 宋体
Font size: 9 Height: 550
Picture: c:\%user\\adminstrator\\ desktop\\课程设计\\hydrangeas. jpg
Show window: 2--作为顶层表单 Title bar: 0--关闭 Top: 0
Width: 781
Window state: 0--普通 表单控件属性设置: Auto Center: .T.--真 Back style:0--透明
Caption: 欢迎使用! Font Name: 宋体 Font size: 30
Fore color: 0,0,255 Height: 48
Left: 120
Top: 300 Width: 187
Auto Center: .T.--真 Back style:0--透明
Caption: 欢迎进入毕业生管理系统 Font Name: 微软雅黑 Font size: 40
Fore color: 0,0,255 Height: 96 Left: 96
Top: 300
Width: 1582Base class: line Border color:0,255,64 Bord width:8 Height :1 Left :36 Line slant:\\ Name :line 1 Top :180 Width :708
事件代码: 对象:form1 事件:init
this.timer1.interval=1000 public a as integer a=1
thisform.top=30 thisform.left=300 对象:timer 事件:timer
if thisform.label1.left=thisform.width thisform.label1.left=0 else
thisform.label1.left=thisform.label1.left+50 endif
i=int(rand()*255) j=int(rand()*255) k=int(rand()*255)
thisform.label2.forecolor=rgb(i,j,k) a=a+1
if a=10 then
do form 通道入口.scx release thisform endif
2.通道入口
实现功能:使不同身份的用户进入自己所需的界面。
Form1的属性如下:
AutoCenter=.T. Height=401
Picture= d:\\photos\\ getca4b53eg.jpg TitleBar=0-关闭 Width=550
“教师入口”的代码如下: do form 教师登录.scx release thisform “学生入口”的代码如下: do form 学生登录.scx
release thisform
“退出”按钮的Click事件代码如下: release thisform Label1的属性如下:
Caption=请选择通道入口 FontBold=.T. FontName=楷体 FontSize=50
Forecolor=203,53,10 Height=72 Left=0
Top=0 Width=564
3.主登录界面
实现功能:用于身份验证。
Form1的属性如下: Auto Center:.F.--假 Caption:学生登录 Font Name:宋体
Font size:9 Height:443 Left :-16 Picture:省略
Show window: 2--作为顶层表单 Title bar:0--关闭
Top:-2 Width:748
Window state:0--普通 “登录”按钮的属性如下: Caption=登录 FontSize=14 Height=36 Left=168 Top=360 Width=72