Skip to content

wx98/NetTest

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

58 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

NetTest 作者:王旭

本项目是基于 WCF(Windows Communication Foundatiomn) 框架的试题练习程序  作者 功能:

  • 添加试题
  • 删除试题
  • 更新试题
  • 试题练习

支持的环境

系统:Windows
本项目在 Microsoft Visual Studio Ultimate 2012 编译通过
Microsoft .Net Framework Version 4.7.02556
数据库:SQL Serve

文件结构

NetTestServer (服务器端)

+NetTestBLL 业务逻辑层

-NetTestManager.cs
-UserManager.cs
对传送数据进行逻辑判断分折,并进行传送正确的值。

+NetTestDAl 数据访问层

-DBHelper.cs
数据库的连接,一些基本访问函数
-TestService.cs
对数据库表的一些基本操作,给tests添加新字段函数,删除tests字段函数,更新test字段函数,得到10条tests表记录函数,添加marks表字段函数
-UserService.cs
对users表的操作,添加,查询

+NetTsetModel 实体类库层

-TsetClass.cs
存放数据库 tests 表的字段
-UserClass.cs
存放数据库 users 表的字段

+NerTsetServer 表现层

-INetTestService.cs
wcf服务的接口
-NetTestService.cs
此处实现接口函数
-Program.cs
调用接口实现控制台程序c从而启动wcf服务

+NetTestClient (客户端)

-App.xaml
文件是程序的起点,定义全局资源,他们可以在整个应援里被访问
-App.xaml.cs
是扩展了应用类,它是WPF窗口应用的中心类

登录界面

-MainWindow.xaml
登录界面 的布局文件
-MainWindow.xaml.cs
登录界面 的代码隐藏文件。其中有用于处理登录的事件

功能选择窗口

-Option.xaml
功能选择窗口 的布局文件
-Option.xaml.cs
文件用于定义 功能选择窗口 上按钮的事件

习题添加窗口

-AddQuestionWindow.xaml
习题添加窗口 的布局文件
-AddQuestionWindow.xaml.cs
用于定义 习题添加窗口 窗口的事件函数以及一些处算法逻辑

习题更新窗口

-UpdateQuestionWindow.xaml
习题更新窗口 的布局文件
-UpdateQuestionWindow.xaml.cs
用于定义 习题更新窗口 窗口的事件函数以及一些处算法逻辑

习题删除窗口

-DeleteQuestionWindow.xaml
习题删除窗口 的布局文件
-DeleteQuestionWindow.xaml.cs
用于定义 习题删除窗口 窗口的事件函数以及一些处算法逻辑

习题练习窗口

-ExerciseWindow.xaml
练习习题窗口 的布局文件
-ExerciseWindow.xaml.cs
用于 练习习题窗口 窗口的事件函数以及一些处算法逻辑

部署

部署超级简单

  1. 数据库部分参考NetTest_Database.sql文件进行数据库创建。
  2. 连接数据库部分请更改DB_config.ini Server=为数据库名称; UserName=数据库用户名; UserPass=用户名密码; DataBase=数据库名称;
  3. 重新生成过后请用管理员身份运行NetTestServer.exe文件,作为服务器端。
  4. 请启动NetTestClient.exe作为客户端。

MIT License

Copyright (c) 2018 wx98

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

基于WCF的试题练习程序

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages