USE [TeacherEvaluation]
SET ANSI_NULLS ON
SET QUOTED_IDENTIFIER ON
GO
CREATE TABLE [dbo].[institute](
[iID] [char](5) NOT NULL,
[iName] [nvarchar](20) NULL,
[intro] [nvarchar](1000) NULL,
[picture] [nvarchar](200) NULL,
CONSTRAINT [PK_institute] PRIMARY KEY CLUSTERED
(
[iID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[student](
[sID] [char](10) NOT NULL,
[sName] [nvarchar](10) NULL,
[password] [char](32) NOT NULL,
[picture] [nvarchar](200) NULL,
[isMale] [bit] NULL,
[age] [int] NULL,
[session] [int] NULL,
[hideFromStudent] [bit] NULL,
[hideFromTeacher] [bit] NULL,
CONSTRAINT [PK_student] PRIMARY KEY CLUSTERED
(
[sID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
ALTER TABLE [dbo].[student] ADD CONSTRAINT [DF_student_isMale] DEFAULT ((1)) FOR [isMale]
ALTER TABLE [dbo].[student] ADD CONSTRAINT [DF_student_hideFromStudent] DEFAULT ((0)) FOR [hideFromStudent]
ALTER TABLE [dbo].[student] ADD CONSTRAINT [DF_student_hideFromTeacher] DEFAULT ((1)) FOR [hideFromTeacher]
GO
CREATE TABLE [dbo].[teacher](
[tID] [char](10) NOT NULL,
[iID] [char](5) NOT NULL,
[tName] [nvarchar](10) NULL,
[password] [char](32) NOT NULL,
[profile] [nvarchar](1000) NULL,
[mark] [float] NULL,
[picture] [nvarchar](200) NULL,
[isMale] [bit] NULL,
[numOfMarks] [int] NULL,
CONSTRAINT [PK_teacher] PRIMARY KEY CLUSTERED
(
[tID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
ALTER TABLE [dbo].[teacher] ADD CONSTRAINT [DF_teacher_mark] DEFAULT ((0)) FOR [mark]
ALTER TABLE [dbo].[teacher] ADD CONSTRAINT [DF_teacher_isMale] DEFAULT ((1)) FOR [isMale]
ALTER TABLE [dbo].[teacher] ADD CONSTRAINT [DF_teacher_numOfMarks] DEFAULT ((0)) FOR [numOfMarks]
ALTER TABLE [dbo].[teacher] WITH CHECK ADD CONSTRAINT [FK_teacher_institute] FOREIGN KEY([iID])
REFERENCES [dbo].[institute] ([iID])
ALTER TABLE [dbo].[teacher] CHECK CONSTRAINT [FK_teacher_institute]
GO
CREATE TABLE [dbo].[manager](
[mID] [char](5) NOT NULL,
[password] [char](32) NOT NULL,
[mName] [nvarchar](10) NULL,
CONSTRAINT [PK_manager] PRIMARY KEY CLUSTERED
(
[mID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[course](
[cID] [char](10) NOT NULL,
[cName] [nvarchar](20) NULL,
[intro] [nvarchar](1000) NULL,
CONSTRAINT [PK_course] PRIMARY KEY CLUSTERED
(
[cID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
GO
CREATE TABLE [dbo].[teachingCourse](
[tID] [char](10) NOT NULL,
[cID] [char](10) NOT NULL,
[tcID] [uniqueidentifier] NOT NULL,
[mark] [float] NULL,
[numOfMarks] [nchar](10) NULL,
[term] [char](6) NOT NULL,
CONSTRAINT [PK_teachingCourse] PRIMARY KEY CLUSTERED
(
[tcID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
ALTER TABLE [dbo].[teachingCourse] ADD CONSTRAINT [DF_teachingCourse_tcID] DEFAULT (newid()) FOR [tcID]
ALTER TABLE [dbo].[teachingCourse] ADD CONSTRAINT [DF_teachingCourse_mark] DEFAULT ((0)) FOR [mark]
ALTER TABLE [dbo].[teachingCourse] ADD CONSTRAINT [DF_teachingCourse_numOfMarks] DEFAULT ((0)) FOR [numOfMarks]
ALTER TABLE [dbo].[teachingCourse] WITH CHECK ADD CONSTRAINT [FK_teachingCourse_course] FOREIGN KEY([cID])
REFERENCES [dbo].[course] ([cID])
ALTER TABLE [dbo].[teachingCourse] CHECK CONSTRAINT [FK_teachingCourse_course]
ALTER TABLE [dbo].[teachingCourse] WITH CHECK ADD CONSTRAINT [FK_teachingCourse_teacher] FOREIGN KEY([tID])
REFERENCES [dbo].[teacher] ([tID])
ALTER TABLE [dbo].[teachingCourse] CHECK CONSTRAINT [FK_teachingCourse_teacher]
GO
CREATE TABLE [dbo].[selectCourse](
[sID] [char](10) NOT NULL,
[tcID] [uniqueidentifier] NOT NULL,
[grade] [float] NULL,
CONSTRAINT [PK_selectCourse] PRIMARY KEY CLUSTERED
(
[sID] ASC,
[tcID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
ALTER TABLE [dbo].[selectCourse] WITH CHECK ADD CONSTRAINT [FK_selectCourse_teachingCourse] FOREIGN KEY([tcID])
REFERENCES [dbo].[teachingCourse] ([tcID])
ALTER TABLE [dbo].[selectCourse] CHECK CONSTRAINT [FK_selectCourse_teachingCourse]
GO
CREATE TABLE [dbo].[comment](
[sID] [char](10) NOT NULL,
[comID] [uniqueidentifier] NOT NULL,
[cContent] [nvarchar](1000) NOT NULL,
[isHided] [bit] NOT NULL,
[time] [datetime] NOT NULL,
[tcID] [uniqueidentifier] NOT NULL,
[tReply] [nvarchar](1000) NULL,
CONSTRAINT [PK_coment] PRIMARY KEY CLUSTERED
(
[comID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
ALTER TABLE [dbo].[comment] ADD CONSTRAINT [DF_comment_comID] DEFAULT (newid()) FOR [comID]
ALTER TABLE [dbo].[comment] ADD CONSTRAINT [DF_coment_isHided] DEFAULT ((0)) FOR [isHided]
ALTER TABLE [dbo].[comment] ADD CONSTRAINT [DF_comment_time] DEFAULT (getdate()) FOR [time]
ALTER TABLE [dbo].[comment] WITH CHECK ADD CONSTRAINT [FK_coment_teachingCourse] FOREIGN KEY([tcID])
REFERENCES [dbo].[teachingCourse] ([tcID])
ALTER TABLE [dbo].[comment] CHECK CONSTRAINT [FK_coment_teachingCourse]
GO
CREATE TABLE [dbo].[mark](
[markID] [uniqueidentifier] NOT NULL,
[tcID] [uniqueidentifier] NOT NULL,
[sID] [char](10) NOT NULL,
[totalMark] [tinyint] NOT NULL,
[mark1] [tinyint] NOT NULL,
[mark2] [tinyint] NOT NULL,
[mark3] [tinyint] NOT NULL,
[mark4] [tinyint] NOT NULL,
[mark5] [tinyint] NOT NULL,
CONSTRAINT [PK_mark] PRIMARY KEY CLUSTERED
(
[markID] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]
ALTER TABLE [dbo].[mark] ADD CONSTRAINT [DF_mark_markID] DEFAULT (newid()) FOR [markID]
ALTER TABLE [dbo].[mark] ADD CONSTRAINT [DF_mark_totalMark] DEFAULT ((8)) FOR [totalMark]
ALTER TABLE [dbo].[mark] ADD CONSTRAINT [DF_mark_mark1] DEFAULT ((8)) FOR [mark1]
ALTER TABLE [dbo].[mark] ADD CONSTRAINT [DF_mark_mark2] DEFAULT ((8)) FOR [mark2]
ALTER TABLE [dbo].[mark] ADD CONSTRAINT [DF_mark_mark3] DEFAULT ((8)) FOR [mark3]
ALTER TABLE [dbo].[mark] ADD CONSTRAINT [DF_mark_mark4] DEFAULT ((8)) FOR [mark4]
ALTER TABLE [dbo].[mark] ADD CONSTRAINT [DF_mark_mark5] DEFAULT ((8)) FOR [mark5]
ALTER TABLE [dbo].[mark] WITH CHECK ADD CONSTRAINT [FK_mark_teachingCourse] FOREIGN KEY([tcID])
REFERENCES [dbo].[teachingCourse] ([tcID])
ALTER TABLE [dbo].[mark] CHECK CONSTRAINT [FK_mark_teachingCourse]
GO
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
基于c#和.NET框架开发的教师评价系统完整源码+数据库(数据库课程设计).zip 【资源说明】 该项目是个人毕设项目源码,评审分达到95分,调试运行正常,确保可以运行!放心下载使用。 该项目资源主要针对计算机、自动化等相关专业的学生或从业者下载使用,也可作为期末课程设计、课程大作业、毕业设计等。 具有较高的学习借鉴价值!基础能力强的可以在此基础上修改调整,以实现类似其他功能。 数据库课程设计——教师评价系统 * 使用C#和WPF、基于.NET框架编写,以SQL Server 2016为数据库服务器 * 程序仿照“软件管家”的结构,学生可以对老师评价或评分,就像对软件评价或评分一样 * 程序对不同的角色开放不同的功能,除学生外,还有教师和督导,有更多的统计功能 * 一定程度上采用“扁平化”风格
资源推荐
资源详情
资源评论
收起资源包目录
基于c#和.NET框架开发的教师评价系统完整源码+数据库(数据库课程设计).zip (77个子文件)
预览图
登录界面.png 28KB
督导的统计界面.png 173KB
评分界面.png 64KB
主界面-任课列表.png 366KB
主界面-任课详情.png 292KB
学生的菜单.png 25KB
项目说明.md 501B
初始化数据库的SQL代码
CREATE VIEW.sql 3KB
INSERT INTO.sql 2KB
CREATE PROCEDURE.sql 3KB
CREATE DATABASE.sql 55B
CREATE LOGIN.sql 911B
CREATE TABLE.sql 7KB
.vs
TeacherEvaluation
v15
.suo 313KB
TeacherEvaluation.sln 997B
关于账号密码.md 244B
TeacherEvaluation
ClassDiagram1.cd 8KB
packages.config 142B
OtherClasses
Teaching.cs 2KB
SqlHelper.cs 29KB
enums.cs 309B
Student.cs 2KB
DetailedMark.cs 787B
Identity.cs 662B
Rank.cs 313B
StaticStuff.cs 2KB
Comment.cs 2KB
Teacher.cs 1KB
App.config 2KB
Windows
ChangePassword.xaml 2KB
DataWindow.xaml.cs 7KB
InputDialog.xaml 1KB
MainWindow.xaml 4KB
LoginOption.xaml.cs 3KB
Login.xaml 3KB
DataWindow.xaml 3KB
Login.xaml.cs 3KB
MainWindow.xaml.cs 11KB
GradeWindow.xaml 6KB
SettingWindow.xaml.cs 1KB
LoginOption.xaml 3KB
InputDialog.xaml.cs 2KB
SettingWindow.xaml 2KB
GradeWindow.xaml.cs 2KB
ChangePassword.xaml.cs 2KB
App.xaml 3KB
Heads
2.jpg 13KB
6.jpg 13KB
1.jpg 13KB
5.jpg 14KB
0.jpg 13KB
8.jpg 14KB
3.jpg 15KB
7.jpg 13KB
9.jpg 12KB
4.jpg 13KB
Properties
Resources.Designer.cs 3KB
Settings.Designer.cs 5KB
Settings.settings 2KB
AssemblyInfo.cs 2KB
Resources.resx 5KB
App.xaml.cs 898B
TeacherEvaluation.csproj 10KB
64X64.ico 17KB
UserControls
CommentUC.xaml.cs 4KB
TeachingUC.xaml.cs 5KB
TeacherDetailUC.xaml 6KB
TeachingUC.xaml 3KB
TeacherDetailUC.xaml.cs 7KB
CommentUC.xaml 3KB
EventArgs
CourseClickedEventArgs.cs 405B
TeacherClickedEventArgs.cs 414B
TeacherEvaluation-release.exe 254KB
MD5转换器
MD5Transformer.exe 13KB
代码
MD5Transformer.xaml 2KB
MD5Transformer.xaml.cs 3KB
packages
关于包.md 89B
共 77 条
- 1
资源评论
manylinux
- 粉丝: 4442
- 资源: 2491
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- bdwptqmxgj11.zip
- onnxruntime-win-x86
- onnxruntime-win-x64-gpu-1.20.1.zip
- vs2019 c++20 语法规范 头文件 <ratio> 的源码阅读与注释,处理分数的存储,加减乘除,以及大小比较等运算
- 首次尝试使用 Win,DirectX C++ 中的形状渲染套件.zip
- 预乘混合模式是一种用途广泛的三合一混合模式 它已经存在很长时间了,但似乎每隔几年就会被重新发现 该项目包括使用预乘 alpha 的描述,示例和工具 .zip
- 项目描述 DirectX 引擎支持版本 9、10、11 库 Microsoft SDK 功能相机视图、照明、加载网格、动画、蒙皮、层次结构界面、动画控制器、网格容器、碰撞系统 .zip
- 项目 wiki 文档中使用的代码教程的源代码库.zip
- 面向对象的通用GUI框架.zip
- 基于Java语言的PlayerBase游戏角色设计源码
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功