예제 #1
0
        protected void GetRoomInfoDetails(int PageSize, int intPageIndex)
        {
            Accomodation_ID = new Guid(Request.QueryString["Hotel_Id"]);
            var result = AccSvc.GetRoomDetailsByWithPagging(new MDMSVC.DC_Accommodation_RoomInfo_RQ()
            {
                Accommodation_Id = Accomodation_ID, PageNo = intPageIndex, PageSize = PageSize
            });

            grdRoomTypes.DataSource = result;
            grdRoomTypes.PageIndex  = intPageIndex;
            grdRoomTypes.PageSize   = PageSize;
            if (result != null && result.Count > 0)
            {
                grdRoomTypes.VirtualItemCount = Convert.ToInt32(result[0].TotalRecords);
            }
            grdRoomTypes.DataBind();
            GetLookupValues();
        }