资源简介
基于vs2008 开发的酒店管理系统 sql 2005数据库 希望对研究C#语言的朋友 有所帮助!!

代码片段和文件信息
using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Configuration;
using System.Data.SqlClient;
using BinModel;
//Download by http://www.codefans.net
namespace BinDal
{
public class CustomBookServices
{
private Dals dal;
private SqlConnection connection;
private SqlCommand command;
public CustomBookServices()
{ }
///
/// 添加顾客基本信息
///
///
/// 受影响的记录
public int addCustomBooksServices(CustomBooks customBook)
{
int i = 0;
this.dal = new Dals();
using (this.connection = dal.connection)
{
this.connection.Open();
DateTime bc_time = customBook.Cb_time;
string bc_name = customBook.Cb_cusName;
int bc_room = 1;
DateTime bc_entertime = customBook.Cb_enterTime;
string bc_CusType = customBook.Cb_type;
string bc_connection = customBook.Gb_connection;
int bc_Group = customBook.Cb_Group;
string bc_note = customBook.Cb_note;
string sql = string.Format(“insert into CustomBook values(‘{0}‘‘{1}‘‘{2}‘‘{3}‘‘{4}‘‘{5}‘‘{6}‘‘{7}‘)“ bc_name bc_room bc_Group bc_connection bc_time bc_entertime bc_CusType bc_note);
this.command = new SqlCommand();
this.command.Connection = this.connection;
this.command.CommandText = sql;
i = this.command.ExecuteNonQuery();
}
return i;
}
///
/// 获得最新客户预定信息的主键 Id号
///
///
public int getLastCustomBooks()
{
int i = 0;
this.dal = new Dals();
using (this.connection = dal.connection)
{
this.command = new SqlCommand();
this.command.Connection = this.connection;
this.connection.Open();
this.command.CommandText = “select max(cb_id) from CustomBook “;
i = (int)this.command.ExecuteScalar();
}
return i;
}
///
/// 获得所有的预定 客户的信息
///
///
public IList getAllCustomBooks()
{
IList cusBookss = new List();
this.dal = new Dals();
using (this.connection = dal.connection)
{
this.command = new SqlCommand();
this.command.Connection = this.connection;
this.command.CommandText = “getAllCustomerBooks“;
this.command.CommandType = CommandType.StoredProcedure;
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 3342336 2009-05-18 23:41 酒店管理系统\DB\GinShop.mdf
文件 1376256 2009-04-07 16:56 酒店管理系统\DB\GinShop_log.LDF
文件 40960 2010-03-04 18:22 酒店管理系统\酒店管理系统\BinBal\bin\Debug\BinBal.dll
文件 169472 2010-03-04 18:22 酒店管理系统\酒店管理系统\BinBal\bin\Debug\BinBal.pdb
文件 16896 2010-03-04 18:22 酒店管理系统\酒店管理系统\BinBal\bin\Debug\BinModel.dll
文件 132608 2010-03-04 18:22 酒店管理系统\酒店管理系统\BinBal\bin\Debug\BinModel.pdb
文件 3317 2008-11-24 22:33 酒店管理系统\酒店管理系统\BinBal\BinDal.csproj
文件 4979 2009-05-18 23:47 酒店管理系统\酒店管理系统\BinBal\CustomBookServices.cs
文件 15908 2008-06-14 18:05 酒店管理系统\酒店管理系统\BinBal\CustomersServices.cs
文件 1877 2009-05-18 23:47 酒店管理系统\酒店管理系统\BinBal\Dals.cs
文件 1308 2008-06-10 16:19 酒店管理系统\酒店管理系统\BinBal\DeleteEmloyeeSalary.cs
文件 1803 2008-06-10 16:19 酒店管理系统\酒店管理系统\BinBal\EmployeeSalaryBinDal.cs
文件 1540 2008-06-13 15:35 酒店管理系统\酒店管理系统\BinBal\EmployeeSalaryServer.cs
文件 12159 2009-05-18 23:47 酒店管理系统\酒店管理系统\BinBal\EmployeeServices.cs
文件 1533 2008-06-07 10:39 酒店管理系统\酒店管理系统\BinBal\EmpStateServices.cs
文件 2189 2008-06-05 13:17 酒店管理系统\酒店管理系统\BinBal\Everyserver.cs
文件 1489 2009-05-18 23:48 酒店管理系统\酒店管理系统\BinBal\GoodsServices.cs
文件 10493 2009-05-18 23:47 酒店管理系统\酒店管理系统\BinBal\GroupRegisServices.cs
文件 1461 2008-06-07 10:09 酒店管理系统\酒店管理系统\BinBal\JobServices.cs
文件 176 2001-08-19 17:55 酒店管理系统\酒店管理系统\BinBal\obj\BinBal.csproj.FileList.txt
文件 178 2008-07-03 13:41 酒店管理系统\酒店管理系统\BinBal\obj\BinDal.csproj.FileList.txt
文件 40960 2010-03-04 18:22 酒店管理系统\酒店管理系统\BinBal\obj\Debug\BinBal.dll
文件 169472 2010-03-04 18:22 酒店管理系统\酒店管理系统\BinBal\obj\Debug\BinBal.pdb
文件 1623 2010-03-04 18:22 酒店管理系统\酒店管理系统\BinBal\obj\Debug\BinDal.csproj.FileListAbsolute.txt
文件 20480 2008-06-12 14:47 酒店管理系统\酒店管理系统\BinBal\obj\Debug\Refactor\BinBal.dll
文件 3843 2010-03-04 18:22 酒店管理系统\酒店管理系统\BinBal\obj\Debug\ResolveAssemblyReference.cache
文件 1410 2008-05-30 15:02 酒店管理系统\酒店管理系统\BinBal\PopedomsServices.cs
文件 1313 2001-08-19 17:08 酒店管理系统\酒店管理系统\BinBal\Properties\AssemblyInfo.cs
文件 9049 2009-05-04 07:06 酒店管理系统\酒店管理系统\BinBal\Properties\from-download.gif
文件 1465 2009-05-18 23:47 酒店管理系统\酒店管理系统\BinBal\ProvincesServices.cs
............此处省略437个文件信息
相关资源
- Visual C#.2010从入门到精通配套源程序
- EQ2008LEDc#开发实例
- 连连看游戏C#源码有提示和洗牌功能
- 一款漂亮的灯光闪烁的圣诞树(C# V
- AssetStudio V0.16.0 源代码 使用VS2019
- C# 斑马手持终端WINCE开发 MC32N0 vs2008
- Microsoft® Visual C#® 2010 Step by
- visual C#使用指纹识别器实现员工考勤
- 大型比赛竞赛抽签系统 可打印 c# vs
- c# 开发与 mysql数据库实现的增删改查
- [源代码] 《领域驱动设计 (C# 2008 实
- ASP.NET+SQL Server 2008 实现的学生学籍管
- visual C#2005 管理系统开发经典案例 罗
- Visual Studio C#播放器制作
- 2008.精通LINQ数据访问技术pdf及源码
-
Visual.Studio.NET.fr
amework技术内幕(高 - Web实训网站C#新闻发布系统
- 宾馆管理系统(c#2008access2003winform)
- 2008 安装 sqldmo.dll
- VS 2008 C#读写excel文件
- Visual C#从入门到精通(第9版)-2018年
- PC桌面程序鼠标轨迹在Robotstudio中重现
- 基于ASP.NET的在线考试系统
- 物料清单 bom图
- VS2008+SQL2005开源普通三层架构项目源代
- 基于VS2008 C#编写的简单学生成绩管理
- Visual C# 2010程序设计教程(教程PPT+源
- 图书管理系统 C# Visul studio.NET( 含源
- 基于SQL SERVER 2008实现的学生学籍管理
-
《Beginning C# 2008 Databa
ses (英文版)
评论
共有 条评论