public string BatchRoomList(int page, int rows, long buildId, long floorId, string roomNO, string changeType)
        {
            var models = RoomBll.GetPager(page, rows, UserContext.CurrentUser.HotelId, buildId, floorId, roomNO, changeType);



            foreach (var item in models.rows)
            {
                if (item.RoomRegId != 0)
                {
                    item.RoomReg = RoomRegBll.GetById(item.RoomRegId);
                }


                LoadRoomInfo2(item);
            }

            return(JsonConvert.SerializeObject(models));
        }
Exemplo n.º 2
0
        public string GetPager(int page, int rows, long floorId = 0, string searchName = null)
        {
            var pager = RoomBll.GetPager(page, rows, UserContext.CurrentUser.HotelId, floorId, searchName);

            return(JsonConvert.SerializeObject(pager));
        }