Example #1
0
        /// <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);
        }
Example #2
0
 /// <summary>
 /// 获取所有房间类型信息
 /// </summary>
 /// <returns></returns>
 public static List <RoomType> GetAllRoomTypeInfo(string fjlx)
 {
     return(Dal_Room.GetAllRoomTypeInfo(fjlx));
 }
Example #3
0
 /// <summary>
 /// 根据状态ID查询房间数
 /// </summary>
 /// <param name="stateId"></param>
 /// <returns></returns>
 public static object GetRoomStateCount(string fjzt, string fjlx)
 {
     return(Dal_Room.GetRoomStateCount(fjzt, fjlx));
 }
Example #4
0
 /// <summary>
 /// 根据房间类型查询房间状态
 /// </summary>
 /// <param name="typeId"></param>
 /// <returns></returns>
 public static List <Room> GetRoomStateByType(string fjlx)
 {
     return(Dal_Room.GetRoomStateByType(fjlx));
 }
Example #5
0
 /// <summary>
 /// 获取所有状态信息
 /// </summary>
 /// <param name="ztid"></param>
 /// <returns></returns>
 public static List <RoomState> GetStateInfo(string ztid)
 {
     return(Dal_Room.GetStateInfo(ztid));
 }
Example #6
0
 /// <summary>
 /// 查询所有房间状态
 /// </summary>
 /// <returns></returns>
 public static List <Room> GetRoomState()
 {
     return(Dal_Room.GetRoomState());
 }
Example #7
0
 /// <summary>
 /// 查询房间类型是否存在
 /// </summary>
 /// <param name="fjbh"></param>
 /// <returns></returns>
 public static object CheckRoomType(string fjlx)
 {
     return(Dal_Room.CheckRoomType(fjlx));
 }
Example #8
0
        /// <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);
        }
Example #9
0
 /// <summary>
 /// 根据房间类型获取空闲房间编号
 /// </summary>
 /// <returns></returns>
 public static object GetFreeRoomIdWithFjlx(string fjlx)
 {
     return(Dal_Room.GetFreeRoomIdWithFjlx(fjlx));
 }
Example #10
0
 /// <summary>
 /// 查询未入住房间
 /// </summary>
 /// <returns></returns>
 public static List <FreeRoomNum> GetFreeRoom()
 {
     return(Dal_Room.GetFreeRoom());
 }
Example #11
0
 /// <summary>
 /// 更新房间信息
 /// </summary>
 /// <param name="room"></param>
 /// <returns></returns>
 public static bool UpdateRoomInfo(Room room)
 {
     return(Dal_Room.UpdateRoomInfo(room) == 1 ? true : false);
 }
Example #12
0
 /// <summary>
 /// 获取所有房间类型信息
 /// </summary>
 /// <returns></returns>
 public static List <RoomType> GetAllRoomType()
 {
     return(Dal_Room.GetAllRoomType());
 }
Example #13
0
 /// <summary>
 /// 添加房间信息
 /// </summary>
 /// <param name="room"></param>
 /// <returns></returns>
 public static bool AddRoomInfo(Room room)
 {
     return(Dal_Room.AddRoomInfo(room) == 1 ? true : false);
 }
Example #14
0
 /// <summary>
 /// 删除房间信息
 /// </summary>
 /// <param name="roomId"></param>
 /// <returns></returns>
 public static bool DelRoomInfo(string roomId)
 {
     return(Dal_Room.DelRoomInfo(roomId) == 1 ? true : false);
 }
Example #15
0
 /// <summary>
 /// 获取房间信息
 /// </summary>
 /// <returns></returns>
 public static List <Room> GetRoomInfo(string roomId)
 {
     return(Dal_Room.GetRoomInfo(roomId));
 }
Example #16
0
        /// <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);
        }
Example #17
0
 /// <summary>
 /// 查询房间号是否存在
 /// </summary>
 /// <param name="fjbh"></param>
 /// <returns></returns>
 public static object CheckRoomId(string fjbh)
 {
     return(Dal_Room.CheckRoomId(fjbh));
 }
Example #18
0
 /// <summary>
 /// 根据房间号获取房间信息
 /// </summary>
 /// <returns></returns>
 public static List <Room> GetRoomByFjbh(string roomId)
 {
     return(Dal_Room.GetRoomByFjbh(roomId));
 }