资源简介
本资源是一个完成的基于.NET的宿舍管理系统的毕业设计,包括完整源代码,答辩提纲,论文,开题报告,任务书,外文翻译,文献综述等完整毕业设计文档。

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Data.SqlClient;
using System.Data;
using System.Windows.Forms;
namespace 宿舍管理系统
{
public class DBHelp
{
///
/// 数据库访问助手
///
public class DBHelper
{
//连接字符串
static string connString = ConfigurationManager.ConnectionStrings[“connString“].ConnectionString;
//建立新的连接
public static SqlConnection connection = new SqlConnection(connString);
///
/// 执行返回结果集的方法
///
///
///
public static DataSet Query(string strSql)
{
SqlCommand cmd = new SqlCommand();
cmd.Connection = connection;
cmd.CommandText = strSql;
SqlDataAdapter adapter = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
try
{
adapter.Fill(ds);
}
catch
{
MessageBox.Show(“数据库服务器未启动“);
return new DataSet();
}
return ds;
}
///
/// 执行通过调用有参存储过程返回结果集的方法
///
/// 存储过程名称
/// 参数集
///
public static DataSet Query(string paramName SqlParameter[] paras)
{
SqlCommand cmd = new SqlCommand();
cmd.Connection = connection;
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = paramName;
foreach (SqlParameter para in paras)
{
cmd.Parameters.Add(para);
}
SqlDataAdapter adapter = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
adapter.Fill(ds);
return ds;
}
///
/// 执行通过调用无参存储过程返回结果集的方法
///
///
///
public static DataSet Query1(string paramName)
{
SqlCommand cmd = new SqlCommand();
cmd.Connection = connection;
cmd.CommandType = CommandType.StoredProcedure;
cmd.CommandText = paramName;
SqlDataAdapter adapter = new SqlDataAdapter(cmd);
DataSet ds = new DataSet();
adapter.Fill(ds);
return ds;
}
///
/// 执行通过调用有参存储过程返回受影响的行数的方法
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 10485760 2012-05-09 01:14 宿舍管理系统\db_PWMS.mdf
文件 5242880 2012-05-09 01:14 宿舍管理系统\db_PWMS_log.ldf
文件 495 2012-05-24 22:41 宿舍管理系统\宿舍管理系统\App.config
文件 516096 2011-10-28 21:07 宿舍管理系统\宿舍管理系统\bin\Debug\IrisSkin2.dll
文件 740352 2012-05-26 10:44 宿舍管理系统\宿舍管理系统\bin\Debug\宿舍管理系统.exe
文件 495 2012-05-24 22:41 宿舍管理系统\宿舍管理系统\bin\Debug\宿舍管理系统.exe.config
文件 206336 2012-05-26 10:44 宿舍管理系统\宿舍管理系统\bin\Debug\宿舍管理系统.pdb
文件 14328 2012-05-28 00:30 宿舍管理系统\宿舍管理系统\bin\Debug\宿舍管理系统.vshost.exe
文件 495 2012-05-24 22:41 宿舍管理系统\宿舍管理系统\bin\Debug\宿舍管理系统.vshost.exe.config
文件 490 2007-07-21 01:33 宿舍管理系统\宿舍管理系统\bin\Debug\宿舍管理系统.vshost.exe.manifest
文件 5275 2012-05-08 11:31 宿舍管理系统\宿舍管理系统\DBHelp.cs
文件 1482 2012-04-14 00:10 宿舍管理系统\宿舍管理系统\frmAddLastBack.cs
文件 6005 2012-04-14 00:10 宿舍管理系统\宿舍管理系统\frmAddLastBack.Designer.cs
文件 5814 2012-04-14 00:10 宿舍管理系统\宿舍管理系统\frmAddLastBack.resx
文件 3609 2012-05-07 23:32 宿舍管理系统\宿舍管理系统\frmAddLetter.cs
文件 8177 2012-05-07 23:29 宿舍管理系统\宿舍管理系统\frmAddLetter.Designer.cs
文件 5814 2012-05-07 23:29 宿舍管理系统\宿舍管理系统\frmAddLetter.resx
文件 3709 2012-05-09 00:49 宿舍管理系统\宿舍管理系统\frmAddManager.cs
文件 6203 2012-05-09 00:49 宿舍管理系统\宿舍管理系统\frmAddManager.Designer.cs
文件 5814 2012-05-09 00:49 宿舍管理系统\宿舍管理系统\frmAddManager.resx
文件 1555 2012-05-24 23:00 宿舍管理系统\宿舍管理系统\frmAddRepair.cs
文件 6980 2012-05-24 22:57 宿舍管理系统\宿舍管理系统\frmAddRepair.Designer.cs
文件 5814 2012-05-24 22:57 宿舍管理系统\宿舍管理系统\frmAddRepair.resx
文件 4603 2012-05-25 20:51 宿舍管理系统\宿舍管理系统\frmAddStudent.cs
文件 8670 2012-05-25 20:50 宿舍管理系统\宿舍管理系统\frmAddStudent.Designer.cs
文件 5814 2012-05-25 20:50 宿舍管理系统\宿舍管理系统\frmAddStudent.resx
文件 8416 2012-05-26 10:40 宿舍管理系统\宿舍管理系统\frmAdmin.cs
文件 20506 2012-05-26 10:40 宿舍管理系统\宿舍管理系统\frmAdmin.Designer.cs
文件 136097 2012-05-26 10:40 宿舍管理系统\宿舍管理系统\frmAdmin.resx
文件 2329 2012-05-09 00:45 宿舍管理系统\宿舍管理系统\frmDeleteManager.cs
............此处省略134个文件信息
- 上一篇:WinCE环境的游戏
- 下一篇:本地测试接口的POST工具
相关资源
- WPF USB 网络 串口 通信软件
- B/S 网上订餐系统
- 教室管理系统.rar
- 小鸡快跑游戏.
-
分别适用于.NET fr
amework 2.0和4.0的E - 汽车租赁系统............................
- 德卡D8读写器关于读写感应卡的一些代
- halcon 测量助手
- 图片存储到数据库保存二进制文件并
- 用Socket写的简易FTP服务器和客户端
- 企业销售管理信息系统(全套)
- 串口操作类(justinio)
- 基于Petri网的工作流(完整的原创源代
- 选择题自动考试系统
- 多线程实例:桌面智能弹球小游戏
- 土地信息管理系统
- ServiceStack V3.9 全部dll
- PDF pdfview.ocx 无水印
- 无需共享打印机实现远程打印功能小
- 真正的破解版PDFView4NET
- 网页调用ActiveX控件获取串口数据
- Luence的与盘古分词的使用软件
- Emgu.CV 打开视频与人脸检测
- 麦克纳姆轮程序.rar
- Unity3D 实战视频教程 保卫萝卜 2D 游戏
- net微信支付
- lucene.net+盘古分词多条件全文检索并匹
- 闪电猫-电商下图助手5.0.zip
- FastReport.Net V2014.4.8 For .Net2.0
- NET Reflector 8.3破解版自带代码导出
评论
共有 条评论