/// <summary> /// 添加房间类型 /// </summary> /// <param name="type"></param> /// <returns></returns> public static bool AddRoomType(RoomType type) { bool flag = false; int result = Dal_Room.AddRoomType(type); return(flag = result == 1 ? true : false); }
/// <summary> /// 获取所有房间类型信息 /// </summary> /// <returns></returns> public static List <RoomType> GetAllRoomTypeInfo(string fjlx) { return(Dal_Room.GetAllRoomTypeInfo(fjlx)); }
/// <summary> /// 根据状态ID查询房间数 /// </summary> /// <param name="stateId"></param> /// <returns></returns> public static object GetRoomStateCount(string fjzt, string fjlx) { return(Dal_Room.GetRoomStateCount(fjzt, fjlx)); }
/// <summary> /// 根据房间类型查询房间状态 /// </summary> /// <param name="typeId"></param> /// <returns></returns> public static List <Room> GetRoomStateByType(string fjlx) { return(Dal_Room.GetRoomStateByType(fjlx)); }
/// <summary> /// 获取所有状态信息 /// </summary> /// <param name="ztid"></param> /// <returns></returns> public static List <RoomState> GetStateInfo(string ztid) { return(Dal_Room.GetStateInfo(ztid)); }
/// <summary> /// 查询所有房间状态 /// </summary> /// <returns></returns> public static List <Room> GetRoomState() { return(Dal_Room.GetRoomState()); }
/// <summary> /// 查询房间类型是否存在 /// </summary> /// <param name="fjbh"></param> /// <returns></returns> public static object CheckRoomType(string fjlx) { return(Dal_Room.CheckRoomType(fjlx)); }
/// <summary> /// 修改房间类型信息 /// </summary> /// <param name="typeId">房间类型ID</param> /// <param name="typeName">房间类型名称</param> /// <param name="typePrice">房间类型价格</param> /// <returns></returns> public static bool UpdateRoomType(RoomType roomType) { bool flag = false; return(flag = Dal_Room.UpdateRoomType(roomType) == 1 ? true : false); }
/// <summary> /// 根据房间类型获取空闲房间编号 /// </summary> /// <returns></returns> public static object GetFreeRoomIdWithFjlx(string fjlx) { return(Dal_Room.GetFreeRoomIdWithFjlx(fjlx)); }
/// <summary> /// 查询未入住房间 /// </summary> /// <returns></returns> public static List <FreeRoomNum> GetFreeRoom() { return(Dal_Room.GetFreeRoom()); }
/// <summary> /// 更新房间信息 /// </summary> /// <param name="room"></param> /// <returns></returns> public static bool UpdateRoomInfo(Room room) { return(Dal_Room.UpdateRoomInfo(room) == 1 ? true : false); }
/// <summary> /// 获取所有房间类型信息 /// </summary> /// <returns></returns> public static List <RoomType> GetAllRoomType() { return(Dal_Room.GetAllRoomType()); }
/// <summary> /// 添加房间信息 /// </summary> /// <param name="room"></param> /// <returns></returns> public static bool AddRoomInfo(Room room) { return(Dal_Room.AddRoomInfo(room) == 1 ? true : false); }
/// <summary> /// 删除房间信息 /// </summary> /// <param name="roomId"></param> /// <returns></returns> public static bool DelRoomInfo(string roomId) { return(Dal_Room.DelRoomInfo(roomId) == 1 ? true : false); }
/// <summary> /// 获取房间信息 /// </summary> /// <returns></returns> public static List <Room> GetRoomInfo(string roomId) { return(Dal_Room.GetRoomInfo(roomId)); }
/// <summary> /// 删除房间类型信息 /// </summary> /// <param name="lxbh"></param> /// <returns></returns> public static bool DeleteRoomType(string lxbh) { bool flag = false; return(flag = Dal_Room.DeleteRoomType(lxbh) == 1 ? true : false); }
/// <summary> /// 查询房间号是否存在 /// </summary> /// <param name="fjbh"></param> /// <returns></returns> public static object CheckRoomId(string fjbh) { return(Dal_Room.CheckRoomId(fjbh)); }
/// <summary> /// 根据房间号获取房间信息 /// </summary> /// <returns></returns> public static List <Room> GetRoomByFjbh(string roomId) { return(Dal_Room.GetRoomByFjbh(roomId)); }