温馨提示:代码在线浏览功能只能做为源码浏览参考,如果想更进一步了解该代码请下载:酒店管理系统(ExtJs)源码
当前文件:
MyHotelManager/HotelDAL/RoomStateDAO.cs,打开代码结构图
MyHotelManager/HotelDAL/RoomStateDAO.cs,打开代码结构图1using System; 2
using System.Collections.Generic; 3
using System.Text; 4
using System.Data; 5
using System.Data.SqlClient; 6
using HotelModels; 7
8
namespace HotelDAL 9
{ 10
public class RoomStateDAO 11
{ 12
13
SqlHelper sh = new SqlHelper(); 14
DataSet ds; 15
private SqlParameter para; //参数 16
17
18
19
/// <summary> 20
/// 查询房间状态表(所有) 21
/// </summary> 22
/// <returns></returns> 23
public DataSet GetAllRoomState() 24
{ 25
try 26
{ 27
ds = sh.GetDataSet("GetAllRoomState"); 28
} 29
catch (Exception ex) 30
{ 31
throw ex; 32
} 33
return ds; 34
} 35
36
} 37
} 38





}