Exemple #1
0
        public ActionResult CommonAmenties()
        {
            try
            {
                objnew = BL_tblPropertyRoomAmentiesMap.GetSingleRecordById(Convert.ToInt32(Session["PropId"]));

                objnew.RoomAnenitiesRadio       = BL_tblHotelRoomAmenityM.GetHotelRoomAmenityRadio();
                objnew.iPropId                  = Convert.ToInt32(Session["PropId"]);
                objnew.BasicRoomAmenitiesItems  = BL_tblHotelRoomAmenityM.GetHotelRoomAmenityCheckBox(objnew.sBasicRoomAmenities);
                objnew.AdditionalAmenitiesItems = BL_tblHotelRoomAmenityAdditionalM.GetHotelRoomAmenityAdditional(objnew.sAdditionalRoomAmenities);
                objnew.BathroomAmenitiesItems   = BL_tblHotelRoomAmenityBathRoomM.GetHotelRoomAmenityBathRoom(objnew.sBathRoomAmenities);
                objnew.BeddingandLinensItems    = BL_tblHotelRoomAmenityBeddingM.GetHotelRoomAmenityBedding(objnew.sBeddingRoomAmenities);
            }
            catch (Exception)
            {
            }
            return(View("CommonAmenities", objnew));
        }
Exemple #2
0
        public ActionResult RoomAmenties(string id, string name)
        {
            try
            {
                objRoomType = BL_tblPropertyRoomTypeRoomAmentiesMap.GetSingleRecordById(Convert.ToInt32(id));

                //get master commaon Amenities Data
                objnew = BL_tblPropertyRoomAmentiesMap.GetSingleRecordById(Convert.ToInt32(Session["PropId"]));

                //--Get Ids that would be disabled---------------------
                if (objnew.sBasicRoomAmenities != null)
                {
                    objRoomType.DisabledBasicRoomAmenities = objnew.sBasicRoomAmenities.Trim().Split(',');
                }
                if (objnew.sAdditionalRoomAmenities != null)
                {
                    objRoomType.DisabledAdditionalAmenities = objnew.sAdditionalRoomAmenities.Trim().Split(',');
                }
                if (objnew.sBathRoomAmenities != null)
                {
                    objRoomType.DisabledBathroomAmenities = objnew.sBathRoomAmenities.Trim().Split(',');
                }
                if (objnew.sBeddingRoomAmenities != null)
                {
                    objRoomType.DisabledBeddingandLinens = objnew.sBeddingRoomAmenities.Trim().Split(',');
                }
                //-----------------------------------------------

                objRoomType.RoomAnenitiesRadio        = BL_tblHotelRoomAmenityM.GetHotelRoomAmenityRadio();
                objRoomType.iPropId                   = Convert.ToInt32(Session["PropId"]);
                objRoomType.iRoomId                   = Convert.ToInt32(id);
                objRoomType.BasicRoomAmenitiesItems   = BL_tblHotelRoomAmenityM.GetHotelRoomAmenityCheckBox(objRoomType.sBasicRoomAmenities, objnew.sBasicRoomAmenities);
                objRoomType.AdditionalAmenitiesItems  = BL_tblHotelRoomAmenityAdditionalM.GetHotelRoomAmenityAdditional(objRoomType.sAdditionalRoomAmenities, objnew.sAdditionalRoomAmenities);
                objRoomType.BathroomAmenitiesItems    = BL_tblHotelRoomAmenityBathRoomM.GetHotelRoomAmenityBathRoom(objRoomType.sBathRoomAmenities, objnew.sBathRoomAmenities);
                objRoomType.BeddingandLinensItems     = BL_tblHotelRoomAmenityBeddingM.GetHotelRoomAmenityBedding(objRoomType.sBeddingRoomAmenities, objnew.sBeddingRoomAmenities);
                objRoomType.iCommonBasicAmenitieRadio = objnew.iBasicAmentiesRadio;
                objRoomType.sRoomName                 = name;
            }
            catch (Exception)
            {
            }
            return(View("Amenities", objRoomType));
        }