资源简介
课程设计 图书管管理系统
前台C# ——Microsoft Visual Studio 2008
后台SQL ——SQL Server Management Studio Express

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Text;
using System.Windows.Forms;
using System.Data.SqlClient;
namespace WindowsApplication2
{
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void Form1_Load(object sender EventArgs e)
{
}
private void button1_Click(object sender EventArgs e)
{
string usr pw;
bool flag=false;
usr = user.Text;
pw = password.Text;
string str = “server=CHINA-8A6C9FF19;Integrated Security=SSPI;database=Lib“;
string sqlstr=“select adminNameadminpassword from dbo.admin“;
SqlConnection con = new SqlConnection(str);
SqlCommand cmd = new SqlCommand(sqlstr con);
con.Open();
SqlDataReader thisAdmin = cmd.ExecuteReader();
while (thisAdmin.Read())
{
if ((thisAdmin.GetValue(0).ToString().Trim()) == usr.ToString())
{
if ((thisAdmin.GetValue(1).ToString().Trim()) == pw.ToString())
{
flag = true;
}
}
}
if (flag)
{
this.Hide();//隐藏当前窗口
Form2 fm2 = new Form2();//跳转
fm2.Show();
}
else
{
MessageBox.Show(“check your name and key!“);
user.Text = ““;
password.Text = ““;
}
}
}
}
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 412 2011-07-05 22:20 BookManageSystem课程设计\Lib\app.config
文件 1550336 2011-07-06 22:14 BookManageSystem课程设计\Lib\bin\Debug\WindowsApplication2.exe
文件 412 2011-07-05 22:20 BookManageSystem课程设计\Lib\bin\Debug\WindowsApplication2.exe.config
文件 136704 2011-07-06 22:14 BookManageSystem课程设计\Lib\bin\Debug\WindowsApplication2.pdb
文件 14328 2011-07-07 00:37 BookManageSystem课程设计\Lib\bin\Debug\WindowsApplication2.vshost.exe
文件 412 2011-07-05 22:20 BookManageSystem课程设计\Lib\bin\Debug\WindowsApplication2.vshost.exe.config
文件 490 2007-07-21 01:33 BookManageSystem课程设计\Lib\bin\Debug\WindowsApplication2.vshost.exe.manifest
文件 1783 2011-07-06 18:57 BookManageSystem课程设计\Lib\Form1.cs
文件 5837 2011-07-06 18:57 BookManageSystem课程设计\Lib\Form1.Designer.cs
文件 545847 2011-07-06 18:57 BookManageSystem课程设计\Lib\Form1.resx
文件 1288 2011-07-04 22:19 BookManageSystem课程设计\Lib\Form2.cs
文件 5613 2011-07-03 23:07 BookManageSystem课程设计\Lib\Form2.Designer.cs
文件 173823 2011-07-03 23:07 BookManageSystem课程设计\Lib\Form2.resx
文件 10732 2011-07-06 19:24 BookManageSystem课程设计\Lib\Lib.csproj
文件 486 2011-07-04 22:38 BookManageSystem课程设计\Lib\Lib.csproj.user
文件 895 2011-07-04 21:56 BookManageSystem课程设计\Lib\Lib.sln
..A..H. 46592 2011-07-07 00:41 BookManageSystem课程设计\Lib\Lib.suo
文件 372284 2011-07-06 10:17 BookManageSystem课程设计\Lib\LibDataSet.Designer.cs
文件 3 2011-07-06 10:17 BookManageSystem课程设计\Lib\LibDataSet.xsc
文件 87757 2011-07-06 10:17 BookManageSystem课程设计\Lib\LibDataSet.xsd
文件 3 2011-07-06 10:17 BookManageSystem课程设计\Lib\LibDataSet.xss
文件 7758 2011-07-07 00:37 BookManageSystem课程设计\Lib\obj\Debug\Lib.csproj.FileListAbsolute.txt
文件 1991 2011-07-06 22:14 BookManageSystem课程设计\Lib\obj\Debug\Lib.csproj.GenerateResource.Cache
文件 126976 2011-07-06 10:17 BookManageSystem课程设计\Lib\obj\Debug\TempPE\LibDataSet.Designer.cs.dll
文件 9216 2011-07-06 12:58 BookManageSystem课程设计\Lib\obj\Debug\TempPE\masterDataSet.Designer.cs.dll
文件 5120 2011-07-05 22:20 BookManageSystem课程设计\Lib\obj\Debug\TempPE\Properties.Resources.Designer.cs.dll
文件 900 2011-07-03 23:07 BookManageSystem课程设计\Lib\obj\Debug\WindowsApplication2.csproj.GenerateResource.Cache
文件 1550336 2011-07-06 22:14 BookManageSystem课程设计\Lib\obj\Debug\WindowsApplication2.exe
文件 360386 2011-07-06 19:24 BookManageSystem课程设计\Lib\obj\Debug\WindowsApplication2.Form1.resources
文件 112296 2011-07-06 19:24 BookManageSystem课程设计\Lib\obj\Debug\WindowsApplication2.Form2.resources
............此处省略88个文件信息
相关资源
- 数据库课程设计程序及报告(c#编写)
- asp.net+IIS+sqlserver选课系统毕业设计全
- ASP.NET课程设计 新闻发布网站 新.rar
- ASP.NET课程设计案例精编279451
- ASP.NET课程设计+报告-单班通讯录管理
- asp.net课程设计网上投票系统access库包
- ASP.NET实验报告,结课论文,课程设计
- 工资管理系统数据库课设报告()
- asp.net网上商城系统原创数据库课程设
- 社团会员管理系统数据库课程设计报
- c#语法分析器自上而下
- 健康档案管理系统 数据库课程设计
- 销售管理系统---UML课程设计,采用C
- C#课程设计一个自己做的收银系统火锅
- C#课程设计-超市管理系统
- 课程设计--实验室管理系统
- 数据库课程设计——教学管理系统C
- 广工c#网络应用编程课程设计 银行存
- ASP.NET网上图书销售系统
- 基于ASP.NET的课程设计
- ASP.NET 旅行社信息管理网站课程设计
- ASP.NET聊天室课程设计
- C#学生宿舍管理系统 课程设计
- 用C#做的简单的学生学籍管理系统课程
- 数据库课程设计----C#版学生信息管理
- 关于酒店管理系统的C#课程设计
- 数据库课程设计-超市管理系统
- 教学设备数据库管理系统SQL+C#课程设
- 酒店管理系统(数据库+课程设计+C#)
- 小小的网上订餐系统课程设计用
评论
共有 条评论