资源简介
一个关于图书租赁管理的数据库课程设计
内容:完整代码(含注释)+数据库备份文件
开发环境:VS2012(C#)+SQL2008
代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Data.SqlClient;
using Class_DB;
namespace Class_BU
{
public class BU_HXX
{
DB_Database MyDBdatabase = new DB_Database();
#region 查询会员表中的所有会员信息 (2009-01-06 何小霞)
///
/// 查询会员表中的所有会员信息
///
/// 返回表
public DataTable Check_Member()
{
StringBuilder check_str = new StringBuilder();
check_str.Append(“select Member_No Member_Name Member_NameFirst Member_Sex “);
check_str.Append(“Member_Tel Member_Address Count_Could Count_Surplus “);
check_str.Append(“Money_Deposit Count_Total Reg_DateTime Remarks Admin_No “);
check_str.Append(“from Book_MemberBasic “);
check_str.Append(“where Reg_DateTime between ‘“ + DateTime.Now.Year.ToString() + “-“ + DateTime.Now.Month.ToString() + “-“ + DateTime.Now.Day.ToString() + “ “ + “00:00:00“ + “‘“);
check_str.Append(“ and ‘“ + DateTime.Now.Year.ToString() + “-“ + DateTime.Now.Month.ToString() + “-“ + DateTime.Now.Day.ToString() + “ “ + “23:59:59“ + “‘“);
DataTable Member_table = new DataTable();
Member_table = MyDBdatabase.Get_table(check_str.ToString());
if (Member_table == null)
{
return null;
}
else
{
return Member_table;
}
}
#endregion
#region 根据会员注册登记日期查询统计该天的新增会员总数 (2009-01-06 何小霞)
///
/// 根据会员注册登记日期查询统计该天的新增会员总数
///
/// 今日日期
/// 返回表
public DataTable Check_newaddmember()
{
StringBuilder check_str = new StringBuilder();
check_str.Append(“select count(Member_No) as ‘今日共新增会员‘ “);
check_str.Append(“from Book_MemberBasic “);
check_str.Append(“where Reg_DateTime between ‘“ + DateTime.Now.Year.ToString() + “-“ + DateTime.Now.Month.ToString() + “-“ + DateTime.Now.Day.ToString() + “ “ + “00:00:00“ + “‘ “);
check_str.Append(“ and ‘“ + DateTime.Now.Year.ToString() + “-“ + DateTime.Now.Month.ToString() + “-“ + DateTime.Now.Day.ToString() + “ “ + “23:59:59“ + “‘ “);
DataTable Newaddmember_table = new DataTable();
Newaddmember_table = MyDBdatabase.Get_table(check_str.ToString());
if (Newaddmember_table == null)
{
return null;
}
else
{
return Newaddmember_table;
}
}
#endregion
#region 根据会员注册登记日期和会员性别查询统计该天的新增会员,统计男会员多少人 (2009-01-06 何小霞)
///
/// 根据会员注册登记日期和会员性别查询统计该天的新增会员,统计男会员多少人
///
///
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 1883 2009-01-13 19:23 BookManagementSystem(CSharp)\Book.sln
..A..H. 113152 2009-12-03 07:52 BookManagementSystem(CSharp)\Book.suo
文件 32899 2009-01-13 15:21 BookManagementSystem(CSharp)\Class_BU\BU_HXX.cs
文件 13496 2009-01-13 19:49 BookManagementSystem(CSharp)\Class_BU\BU_SQL.cs
文件 35289 2009-01-30 13:33 BookManagementSystem(CSharp)\Class_BU\BU_SYC.cs
文件 30348 2009-01-22 11:32 BookManagementSystem(CSharp)\Class_BU\BU_XF.cs
文件 33652 2009-01-12 09:50 BookManagementSystem(CSharp)\Class_BU\BU_ZFQ.cs
文件 4328 2009-01-12 14:52 BookManagementSystem(CSharp)\Class_BU\Check_Format.cs
文件 2355 2009-01-30 13:34 BookManagementSystem(CSharp)\Class_BU\Class_BU.csproj
文件 1335 2009-01-06 19:48 BookManagementSystem(CSharp)\Class_BU\Properties\AssemblyInfo.cs
文件 1999 2009-01-08 15:06 BookManagementSystem(CSharp)\Class_DB\Class_DB.csproj
文件 1324 2008-12-23 19:19 BookManagementSystem(CSharp)\Class_DB\DB_AllWork.cs
文件 3037 2009-01-10 13:46 BookManagementSystem(CSharp)\Class_DB\DB_Databa
文件 1335 2009-01-06 14:19 BookManagementSystem(CSharp)\Class_DB\Properties\AssemblyInfo.cs
文件 92 2009-01-10 00:17 BookManagementSystem(CSharp)\db.txt
文件 3145728 2009-01-13 15:24 BookManagementSystem(CSharp)\测试数据库\Book.mdf
文件 1048576 2009-01-13 15:24 BookManagementSystem(CSharp)\测试数据库\Book_log.ldf
文件 81920 2009-12-03 07:52 BookManagementSystem(CSharp)\灵动软件图书租赁系统\bin\Debug\Class_BU.dll
文件 118272 2009-12-03 07:52 BookManagementSystem(CSharp)\灵动软件图书租赁系统\bin\Debug\Class_BU.pdb
文件 16384 2009-12-03 07:52 BookManagementSystem(CSharp)\灵动软件图书租赁系统\bin\Debug\Class_DB.dll
文件 22016 2009-12-03 07:52 BookManagementSystem(CSharp)\灵动软件图书租赁系统\bin\Debug\Class_DB.pdb
文件 1093632 2009-01-12 00:10 BookManagementSystem(CSharp)\灵动软件图书租赁系统\bin\Debug\Interop.Excel.dll
文件 1100392 2007-10-10 09:48 BookManagementSystem(CSharp)\灵动软件图书租赁系统\bin\Debug\Microsoft.Office.Interop.Excel.dll
文件 64088 2007-10-10 09:48 BookManagementSystem(CSharp)\灵动软件图书租赁系统\bin\Debug\Microsoft.Vbe.Interop.dll
文件 223800 2007-10-10 09:48 BookManagementSystem(CSharp)\灵动软件图书租赁系统\bin\Debug\office.dll
文件 3584 2009-12-03 07:52 BookManagementSystem(CSharp)\灵动软件图书租赁系统\bin\Debug\sq\灵动软件图书租赁系统.resources.dll
文件 25841 2009-01-13 19:47 BookManagementSystem(CSharp)\灵动软件图书租赁系统\Book.csproj
文件 577 2009-01-13 15:35 BookManagementSystem(CSharp)\灵动软件图书租赁系统\Book.csproj.user
文件 14420 2009-12-03 07:53 BookManagementSystem(CSharp)\灵动软件图书租赁系统\frm_AdminDo.cs
文件 13043 2009-01-13 00:51 BookManagementSystem(CSharp)\灵动软件图书租赁系统\frm_AdminDo.Designer.cs
............此处省略178个文件信息
- 上一篇:asp.net 1.0论坛源码
- 下一篇:C#做的一个粗略的个人书籍管理系统
评论
共有 条评论