资源简介
这是一个对学生宿舍进行管理的系统,运用c#语言编写,是一个窗体程序,里面附加有数据库

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace 学生宿舍管理系统1
{
public partial class addStudent : Form
{
private string num;
public addStudent()
{
InitializeComponent();
}
public addStudent(string n)
{
InitializeComponent();
num = n;
txtRoomNum.Text = num;
}
public void GetData(string selectCommand)
{
try
{
String connectionString =
“Integrated Security=SSPI;Persist Security Info=False;“ +
“Initial Catalog=stuQuartersManage;Data Source=HASEE-PC\\SQLEXPRESS“;
SqlDataAdapter dataAdapter = new SqlDataAdapter(selectCommand connectionString);
SqlCommandBuilder commandBuilder = new SqlCommandBuilder(dataAdapter);
DataTable table = new DataTable();
table.Locale = System.Globalization.CultureInfo.InvariantCulture;
dataAdapter.Fill(table);
bindingSource1.DataSource = table;
dataGridView1.AutoResizeColumns(
DataGridViewAutoSizeColumnsMode.AllCellsExceptHeader);
}
catch (SqlException)
{
MessageBox.Show(“添加学生信息失败!“ “错误提示“);
}
}
public int getConut()
{
SqlConnection con = new SqlConnection(@“Data Source=HASEE-PC\SQLEXPRESS;Initial Catalog=stuQuartersManage;Integrated Security=True“);
con.Open();
string str = “select * from Student where stuNum=‘“ + txtStuNum.Text + “‘“;
SqlCommand com = new SqlCommand(str con);
int intcont = Convert.ToInt32(com.ExecuteScalar());
con.Close();
com.Clone();
return intcont;
}
public string room()
{
SqlConnection con = new SqlConnection(@“Data Source=HASEE-PC\SQLEXPRESS;Initial Catalog=stuQuartersManage;Integrated Security=True“);
con.Open();
string str1 = “select roomNum from Room where roomNum = ‘“ + txtRoomNum.Text + “‘“;
SqlCommand com1 = new SqlCommand(str1 con);
string room = Convert.ToString(com1.ExecuteScalar());
con.Close();
com1.Clone();
return room;
}
public int count()
{
SqlConnection con = new SqlConnection(@“Data Source=HASEE-PC\SQLEXPRESS;Initial Catalog=stuQuartersManage;Integrated Security=True“);
con.Open();
string str1 = “select count(roomNum) from Student where roomNum=‘“ + txtRoomNum.Text + “‘“;
SqlCommand com1 = new SqlComm
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
目录 0 2011-06-09 09:26 学生宿舍管理系统1\
目录 0 2011-06-09 09:26 学生宿舍管理系统1\学生宿舍管理系统1\
目录 0 2011-06-09 09:26 学生宿舍管理系统1\学生宿舍管理系统1\Properties\
文件 1442 2011-06-09 09:26 学生宿舍管理系统1\学生宿舍管理系统1\Properties\AssemblyInfo.cs
文件 1769 2011-06-10 12:32 学生宿舍管理系统1\学生宿舍管理系统1\Properties\Settings.Designer.cs
文件 5957 2011-06-09 10:49 学生宿舍管理系统1\学生宿舍管理系统1\Properties\Resources.resx
文件 2874 2011-06-09 10:49 学生宿舍管理系统1\学生宿舍管理系统1\Properties\Resources.Designer.cs
文件 1051 2011-06-10 12:32 学生宿舍管理系统1\学生宿舍管理系统1\Properties\Settings.settings
文件 2411 2011-06-11 15:48 学生宿舍管理系统1\学生宿舍管理系统1\Login.cs
文件 8541 2011-06-12 00:57 学生宿舍管理系统1\学生宿舍管理系统1\addStudent.cs
文件 9742 2011-06-09 16:18 学生宿舍管理系统1\学生宿舍管理系统1\stuLook.Designer.cs
文件 8964 2011-06-12 12:17 学生宿舍管理系统1\学生宿舍管理系统1\学生宿舍管理系统1.csproj
目录 0 2011-06-09 09:26 学生宿舍管理系统1\学生宿舍管理系统1\bin\
目录 0 2011-06-09 09:26 学生宿舍管理系统1\学生宿舍管理系统1\bin\Debug\
文件 14328 2011-06-20 13:48 学生宿舍管理系统1\学生宿舍管理系统1\bin\Debug\学生宿舍管理系统1.vshost.exe
文件 156672 2011-06-20 13:48 学生宿舍管理系统1\学生宿舍管理系统1\bin\Debug\学生宿舍管理系统1.exe
文件 95744 2011-06-20 13:48 学生宿舍管理系统1\学生宿舍管理系统1\bin\Debug\学生宿舍管理系统1.pdb
文件 450 2011-06-10 12:32 学生宿舍管理系统1\学生宿舍管理系统1\bin\Debug\学生宿舍管理系统1.exe.config
文件 450 2011-06-10 12:32 学生宿舍管理系统1\学生宿舍管理系统1\bin\Debug\学生宿舍管理系统1.vshost.exe.config
目录 0 2011-06-12 12:17 学生宿舍管理系统1\学生宿舍管理系统1\bin\Debug\databa
文件 2293760 2011-06-12 12:16 学生宿舍管理系统1\学生宿舍管理系统1\bin\Debug\databa
文件 573440 2011-06-12 12:16 学生宿舍管理系统1\学生宿舍管理系统1\bin\Debug\databa
文件 490 2009-06-11 05:14 学生宿舍管理系统1\学生宿舍管理系统1\bin\Debug\学生宿舍管理系统1.vshost.exe.manifest
目录 0 2011-06-12 12:18 学生宿舍管理系统1\学生宿舍管理系统1\bin\Release\
文件 450 2011-06-10 12:32 学生宿舍管理系统1\学生宿舍管理系统1\bin\Release\学生宿舍管理系统1.exe.config
文件 450 2011-06-10 12:32 学生宿舍管理系统1\学生宿舍管理系统1\bin\Release\学生宿舍管理系统1.vshost.exe.config
文件 490 2009-06-11 05:14 学生宿舍管理系统1\学生宿舍管理系统1\bin\Release\学生宿舍管理系统1.vshost.exe.manifest
文件 14328 2011-06-20 13:48 学生宿舍管理系统1\学生宿舍管理系统1\bin\Release\学生宿舍管理系统1.vshost.exe
目录 0 2011-06-12 12:20 学生宿舍管理系统1\学生宿舍管理系统1\bin\Release\databa
文件 2293760 2011-06-12 12:16 学生宿舍管理系统1\学生宿舍管理系统1\bin\Release\databa
文件 573440 2011-06-12 12:16 学生宿舍管理系统1\学生宿舍管理系统1\bin\Release\databa
............此处省略73个文件信息
- 上一篇:C#考试管理系统C/S
- 下一篇:C#开发的医院挂号管理系统
相关资源
- 考试管理系统 - C#源码
- Asp.net学生信息管理系统源码
- 超市进销存管理系统 Sqlserver 数据库文
- ASP.NET实验室预约管理系统
- Winform可视化打印模板设计工具含源码
- 020ASP.NET车辆综合管理系统.zip
- c# winform 自动登录 百度账户 源代码
- DirectX.Capturec# winform 操作摄像头录像附
- 基于c#的实验室设备管理系统621530
- c# 高校档案信息管理系统
- C# 五子棋程序 附带编程日记
- C# winform实现表数据导出到Excel表格
- 用C#做的鲜花管理系统
- ASP.NET C# 工资管理系统
- 班级管理系统(C#实现)
- C# WinForm读写INI文件
- ASP.NET客户管理系统(毕业设计 C#
- 医院门诊管理系统 aspc#access数据库
- 医院业务管理系统(C#源代码)
- 学生信息管理系统(C# 控制台下)
- C#处理png图片位深度和交错属性
- 酒店管理系统(c#.net源码)
- winform(c#)最全73种非常漂亮界面样式
- 图书管理系统-----------C# 版
- 海益ERP数据管理系统2.0源码
- winform与内嵌echarts的数据交互,让数据
- winform分页控件
- winform materialskin好看的皮肤组件
- winform 皮肤
- C#全套皮肤一共73款(IrisSkin4)
评论
共有 条评论