# SportSystem
基于C#和SQL Server 2014开发的运动会管理系统
使用到的开发环境
- Visual Studio 2015
- SQL Server 2014
## 准备工作(数据库部署)
安装**SQL Server 2014**并在开始菜单中打开**Microsoft SQL Server Management Studio**,选择验证方式为**Windows身份验证**,***注:此服务器名称要记下来,后面要用到***
![image](https://user-images.githubusercontent.com/33719641/172337720-b79bddba-bcea-42f5-88c4-11551351b35d.png)
点击连接,然后打开**sportSystem_database**文件夹下的**sportSystem.sql**文件,点击执行,
![image](https://user-images.githubusercontent.com/33719641/172338889-2bfcbf4e-95cb-4c53-9809-71d88a8c80a3.png)
即可看到相应的数据库
![image](https://user-images.githubusercontent.com/33719641/172339236-1dadf266-7cb5-4b04-a4ba-b4493be1d26d.png)
## 运行代码
双击**sportSystem.sln**打开Visual Studio 2015项目
双击.cs文件对窗口界面进行编辑,展开.cs文件对窗口逻辑代码进行编辑,以athletesMatchMgr.cs为例
![image](https://user-images.githubusercontent.com/33719641/172341448-19f1cc47-63a6-47d0-962c-866d46efa93d.png)
`string connstr = "server=PC-PC;database=sportSystem;Trusted_Connection = True";`
将server名称改为自己的服务器名称,其他所有文件同理,更改完毕后,点击上方的运行即可,点击登录,用户名和密码可以在login中设置,把代码取消注释即为用户名admin,密码admin
```c#
private void button1_Click(object sender, EventArgs e)
{
/*if (textBox1.Text == "admin" && textBox2.Text == "admin")
{*/
main f2 = new main();
f2.Show(this);
this.Visible = false;
/*}
else
{
MessageBox.Show("用户名或密码错误!");
}*/
}
```
## 运行效果截图
![image](https://user-images.githubusercontent.com/33719641/172344250-38588b4a-f0b7-4e98-8411-f59fb69d61d7.png)
![image](https://user-images.githubusercontent.com/33719641/172344405-bcef78f0-8887-40d6-9728-839fe32a1a71.png)
![image](https://user-images.githubusercontent.com/33719641/172345034-a95ff9e4-528c-47cc-8fcf-768ca1646ad1.png)
## 补充说明(表属性说明)
- athletes表
| Ano | Aname | Asex | Aage | team | Ecout |
| :--------: | :--------: | :--------: | :--------: | :------: | :----------------: |
| 运动员编号 | 运动员姓名 | 运动员性别 | 运动员年龄 | 队伍名称 | 运动员参加的项目数 |
- grade表
| Ano | Eno | grade | eventGrade |
| :--------: | :------: | :----------------: | :----------: |
| 运动员编号 | 项目编号 | 成绩转化到具体数值 | 实际项目成绩 |
由于每种项目评分标准不同,例如跑步的**eventGrade**为4分30秒,升序排列,最终根据排名转化为**grade**,第一名**grade**给10分,实际计算总成绩是根据**grade**来算的,而**eventGrade**只是作为给分参考,具体给到的数值 还是看**grade**
- spevent表
| Eno | Edate | Eplace | Ename | Eattrib |
| :------: | :------: | :------: | :------: | :----------------------------------------------------------: |
| 项目编号 | 赛事日期 | 赛事地点 | 赛事名称 | 赛事成绩属性(升或者降,决定值是越小越好还是越大越好,例如跑步时间越小越好,则为升序,进球越大越好,则为降序) |
- team_grade表
| team | sum | Acount |
| :------: | :----------: | :------------------: |
| 队伍名称 | 队伍所得总分 | 队伍所含总运动员人数 |
没有合适的资源?快使用搜索试试~ 我知道了~
基于C#和SQL Server 2014开发的运动会管理系统
共76个文件
cs:23个
resx:9个
resources:9个
需积分: 5 0 下载量 39 浏览量
2024-03-13
10:09:29
上传
评论
收藏 994KB RAR 举报
温馨提示
## 补充说明(表属性说明) - athletes表 | Ano | Aname | Asex | Aage | team | Ecout | | :--------: | :--------: | :--------: | :--------: | :------: | :----------------: | | 运动员编号 | 运动员姓名 | 运动员性别 | 运动员年龄 | 队伍名称 | 运动员参加的项目数 | - grade表 | Ano | Eno | grade | eventGrade | | :--------: | :------: | :----------------: | :----------: | | 运动员编号 | 项目编号 | 成绩转化到具体数值 | 实际项目成绩 | 由于每种项目评分标准不同,例如跑步的**eventGrade**为4分30秒,升序排列,最终根据排名转化为**grade**,第一名**gra
资源推荐
资源详情
资源评论
收起资源包目录
基于C#和SQL Server 2014开发的运动会管理系统.rar (76个子文件)
基于C#和SQL Server 2014开发的运动会管理系统
sportSystem.sln 978B
.vs
sportSystem
v14
.suo 68KB
sportSystem
eventMgr.resx 8KB
gradeMgr.resx 8KB
main.cs 1KB
checkSchedule.cs 7KB
gradeMgr.Designer.cs 11KB
login.cs 926B
sportSystem.csproj.user 441B
App.config 184B
athletesMgr.resx 8KB
obj
Debug
sportSystem.exe 262KB
sportSystem.gradeMgr.resources 2KB
TemporaryGeneratedFile_5937a670-0e60-4077-877b-f7221da3dda1.cs 0B
TemporaryGeneratedFile_036C0B5B-1481-4323-8D20-8F5ADCB23D92.cs 0B
sportSystem.pdb 104KB
sportSystem.checkSchedule.resources 2KB
sportSystem.csproj.GenerateResource.Cache 2KB
DesignTimeResolveAssemblyReferencesInput.cache 7KB
sportSystem.athletesMatchMgr.resources 2KB
TempPE
Properties.Resources.Designer.cs.dll 4KB
sportSystem.checkGrade.resources 2KB
sportSystem.main.resources 2KB
TemporaryGeneratedFile_E7A71F73-0F8D-4B9B-B56E-8E70B10BC5D3.cs 0B
sportSystem.csproj.FileListAbsolute.txt 3KB
sportSystem.exe.manifest 3KB
sportSystem.eventMgr.resources 2KB
sportSystem.csprojResolveAssemblyReference.cache 2KB
sportSystem.Properties.Resources.resources 178KB
sportSystem.application 2KB
sportSystem.login.resources 2KB
DesignTimeResolveAssemblyReferences.cache 2KB
sportSystem.athletesMgr.resources 2KB
checkGrade.cs 6KB
checkSchedule.resx 8KB
checkSchedule.Designer.cs 14KB
checkGrade.Designer.cs 18KB
athletesMatchMgr.resx 8KB
login.Designer.cs 8KB
athletesMgr.Designer.cs 46KB
gradeMgr.cs 6KB
main.Designer.cs 12KB
bin
Debug
sportSystem.exe 262KB
sportSystem.pdb 104KB
sportSystem.exe.config 184B
app.publish
sportSystem.exe 262KB
sportSystem.vshost.exe.manifest 3KB
Vista2_color7.ssk 16KB
sportSystem.vshost.application 2KB
sportSystem.exe.manifest 3KB
sportSystem.vshost.exe 22KB
sportSystem.application 2KB
sportSystem.vshost.exe.config 184B
checkGrade.resx 8KB
Properties
Resources.Designer.cs 4KB
app.manifest 3KB
Settings.Designer.cs 1KB
Settings.settings 242B
AssemblyInfo.cs 1KB
Resources.resx 6KB
Program.cs 501B
Resources
button.png 1KB
main_back.png 40KB
login_back.png 99KB
sportSystem.csproj 8KB
main.resx 8KB
athletesMatchMgr.cs 6KB
eventMgr.Designer.cs 28KB
eventMgr.cs 10KB
login.resx 8KB
athletesMgr.cs 12KB
athletesMatchMgr.Designer.cs 15KB
sportSystem_database
sportSystem_log.ldf 2MB
sportSystem.mdf 5MB
sportSystem.sql 34KB
README.md 4KB
共 76 条
- 1
资源评论
嘻嘻爱编码
- 粉丝: 844
- 资源: 145
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功