public string getResortName(int _projNum, string _reservationType) { try { //ResortInfo resort = new ResortInfo(); //gets the correct resort name for resorts with multiple names. For example, //oasis lakes is also the fountains. This function will return the fountains // as a display name for any reservation that is set for oasis lakes. ResortInfo resort = Utilities.getResortInfo(_projNum); //This modification added a logical to identify PNE - Preferred Status Exchange Resorts, as the Resort Name. //BITS 7748. Luiz - 04/26/2010 if (_reservationType.Trim() == "K" | _reservationType.Trim() == "L") { resort.ResortName = "Preferred Status Exchange Resorts"; } return(resort.ResortName); } catch (Exception ex) { } return(""); }
//TODO Currently Working private void PendingReservationListItemSelect(ReservationModel model) { try { // instanceResort = Utilities.getResortInfo(Convert.ToInt32(lblResortNo.Text)); } catch (Exception ex) { instanceResort = new ResortInfo(); } Session["instanceResort"] = instanceResort; }
public async Task <ActionResult> EditAsync([Bind("ResortId,ResortName,Description")] ResortInfo resortInfo, List <IFormFile> files) { if (!ModelState.IsValid) { return(View(resortInfo)); } var lstBlobDetails = await CreateOrUpdateAnAttachment(files); await _documentRepository.UpdateDocumentAsync(resortInfo.ResortId, resortInfo, lstBlobDetails); return(RedirectToAction("Index")); }
public static List <ResortInfo> GetIndividualResortInfo() { ResortInfo IndivResort = new ResortInfo(); var IndivResortList = new List <ResortInfo>(); DataSet ResortReport = new DataSet(); ResortReport = resortdata.GetResortUsingDB(); if (ResortReport.Tables.Count > 0) { IndivResortList = ResortReport.Tables[0].AsEnumerable().Select(m => new ResortInfo { Name = Convert.ToString(m["Name"]), Country = Convert.ToString(m["Country"]), ContactNumber = Convert.ToString(m["ContactNumber"]) }).ToList(); } return(IndivResortList); }
public ActionResult ViewPPP(string reservationNo, string resortNo) { BXGOwner = (BGO.OwnerWS.Owner)Session["BXGOwner"]; BGO.ResortsService.OwnerID owner = new BGO.ResortsService.OwnerID(); //searching for the clicked reservation item so that the session can be set for the next page. BGO.ResortsService.ReservationHistory history = new BGO.ResortsService.ReservationHistory(); BGO.ResortsService.ReservationHistoryList historyResult = new BGO.ResortsService.ReservationHistoryList(); BGO.ResortsService.ResortsServiceClient reservationAS400 = new BGO.ResortsService.ResortsServiceClient(); BGO.ResortsService.ReservationHistoryItem[] histories = null; history.OwnerID = null; owner.OwnerVacationNumber = BXGOwner.Arvact; history.OwnerID = owner; history.SiteName = BGO.ResortsService.Sites.OnlinePoints; history.EffectiveDate = DateTime.Now; history.SearchHistoryBy = BGO.ResortsService.ReservationHistoryType.Future; historyResult = reservationAS400.GetReservationsHistory(history); if (historyResult.Success) { histories = historyResult.ReservationHistoryItem; foreach (BGO.ResortsService.ReservationHistoryItem reservationItem in histories) { if (reservationItem._ReservationNumber == reservationNo) { Session["ReservationSelected4Details"] = reservationItem; } } } ResortInfo resortInfo = Utilities.getResortInfo(Convert.ToInt32(resortNo)); dynamic ourResorts = null; int ourResortsContentId; string ourResortsContentIdString = ConfigurationManager.AppSettings["ourResortsContentId"]; if (!string.IsNullOrWhiteSpace(ourResortsContentIdString) && Int32.TryParse(ourResortsContentIdString, out ourResortsContentId)) { ourResorts = Umbraco.TypedContent(ourResortsContentId); } //Populate the image based on the resorts. if (ourResorts != null) { foreach (IPublishedContent content in ourResorts.Children) { if (content.DocumentTypeAlias.Equals("Resort")) { if (resortInfo.ResortID == content.GetPropertyValue <string>("DatabaseId")) { Session["ReservResortImage"] = content.GetPropertyValue <string>("ResortImage"); Session["ReservResortUrl"] = content.Url; } } } } Session["BuyPPPResortNo"] = resortNo; Session["resortcity"] = String.Concat(resortInfo.City, ", ", resortInfo.State, " ", resortInfo.PostalCode); string path = BGModern.HtmlExtensions.CustomHtmlHelpers.GetParentSitePath(null).ToString(); string pppUrl = string.Concat(path, "/owner/ptsPurchaseppp.aspx?Origin=myreservation&resno=", reservationNo + "&ResortNo=" + Session["BuyPPPResortNo"]); return(Redirect(pppUrl)); }