protected override Task ProcessHotelWorkItem(HotelWorkItem workItem, CancellationToken cancellationToken) { var key = new HotelProperty() { AppacitiveId = workItem.ArticleId, PropertyId = long.Parse(workItem.HotelId), SupplierFamily = workItem.SupplierFamily }; var appacitiveHotelKey = _appacitive.CreateHotelKey(key); List <HotelTimeDetail> inDetails = null; List <HotelTimeDetail> outDetails = null; //1. Get the checkinout details from the appacitive _appacitive.GetCheckInOutDetails(appacitiveHotelKey, out inDetails, out outDetails); if (inDetails != null || outDetails != null) { //2. Update/Add the checkinout details _inOutDetailsProvider.AddOrUpdate(workItem.HotelId, workItem.SupplierFamily, inDetails, outDetails); } else { _inOutDetailsProvider.Delete(workItem.HotelId, workItem.SupplierFamily); } return(null); }
public ActionResult DeleteConfirmed(int id) { HotelProperty hotelProperty = db.Propertys.Find(id); db.Propertys.Remove(hotelProperty); db.SaveChanges(); return(RedirectToAction("Index")); }
public void SetProperStars_WhenTheObjectIsConstructed() { //Arrange & Act var hotel = new HotelProperty("telerik", 5, 4); //Assert Assert.AreEqual(4, hotel.Stars); }
public ActionResult Edit([Bind(Include = "ID,Name,FtpBox,City,State,ZipCode,DaysBeforePSM")] HotelProperty hotelProperty) { if (ModelState.IsValid) { db.Entry(hotelProperty).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(hotelProperty)); }
public ActionResult Create([Bind(Include = "ID,Name,FtpBox,City,State,ZipCode,DaysBeforePSM")] HotelProperty hotelProperty) { if (ModelState.IsValid) { db.Propertys.Add(hotelProperty); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(hotelProperty)); }
private string GetVendorMessage(string MsgType, HotelProperty hpr) { string rvalue = ""; CultureInfo cultureInfo = Thread.CurrentThread.CurrentCulture; TextInfo = cultureInfo.TextInfo; DataRow[] drf = hpr.dtVendorMsgs.Select("MsgType='" + MsgType + "'"); foreach (DataRow dr in drf) { rvalue += TextInfo.ToTitleCase(dr[2].ToString().ToLowerInvariant()) + ""; } return(rvalue); }
// GET: HotelProperty/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } HotelProperty hotelProperty = db.Propertys.Find(id); if (hotelProperty == null) { return(HttpNotFound()); } return(View(hotelProperty)); }
private string Getroomdetpopup(string RPH, HotelProperty hpr, DataRow dr) { string rvalue = ""; string roomtype = ""; try { roomtype = dr["RoomTypedesc"].ToString().Substring(0, dr["RoomTypedesc"].ToString().IndexOf(',')); } catch { roomtype = dr["RoomTypedesc"].ToString().Trim(','); } rvalue += "<h4 class='modal-title'><span>Room Type:</span>" + roomtype + "</h4>"; return(rvalue); }
protected override Task ProcessHotelWorkItem(HotelWorkItem workItem, CancellationToken cancellationToken) { var key = new HotelProperty() { AppacitiveId = workItem.ArticleId, PropertyId = long.Parse(workItem.HotelId), SupplierFamily = workItem.SupplierFamily }; var appacitiveHotelKey = _appacitive.CreateHotelKey(key); //1. Get images from the appacitive for the hotelarticle id. var sourceImages = _appacitive.GetImagesForHotel(appacitiveHotelKey); //2. Get images from the client database var destImages = _imageDataProvider.GetImagesForHotel(workItem.HotelId, workItem.SupplierFamily); //3. compare these two lists and update the client database accordingly sourceImages = sourceImages ?? new List <HotelImage>(); destImages = destImages ?? new List <HotelImage>(); //3.1 Add new hotel images foreach (var sourceImage in sourceImages) { var foundIndex = destImages.FindIndex(i => i.Equals(sourceImage)); if (foundIndex == -1) { _imageDataProvider.SaveImage(workItem.HotelId, workItem.SupplierFamily, sourceImage); } else { if (destImages[foundIndex].IsUpdated(sourceImage)) { _imageDataProvider.UpdateImage(workItem.HotelId, workItem.SupplierFamily, sourceImage); } destImages.RemoveAt(foundIndex); } } //3.2 delete hotel images foreach (var destImage in destImages) { _imageDataProvider.DeleteImage(destImage.Id); } return(null); }
// private string GetRoomdet(DataTable dtrows, HotelProperty hpr, string hcode, string hdVARsessionHPR,int count,string searchid) private string GetRoomdet(DataTable dtrows, HotelProperty hpr, string hcode, int count, string searchid) { string stravroomdet = ""; int i = 0; string rrate; string roomdesc; foreach (DataRow dr in dtrows.Rows) { #region room info i++; if (i <= count) { rrate = dr["RatePernight"].ToString(); roomdesc = dr["RoomTypedesc"].ToString(); stravroomdet += "<div class='available-rooms avl-wht'>"; string roomdesc1 = ""; try { roomdesc1 = roomdesc.Substring(0, roomdesc.IndexOf(',')); } catch { roomdesc1 = roomdesc; } string roomdetpopup = HttpUtility.HtmlEncode(Getroomdetpopup(dr["RPH"].ToString(), hpr, dr)); string RDroominfopopup = HttpUtility.HtmlEncode(Getrdroominfopopup(dr["RPH"].ToString(), hpr, dr, searchid)); string ratetable = HttpUtility.HtmlEncode(GetRateTable(dr["RPH"].ToString(), hpr, dr, searchid)); stravroomdet += "<div class='avl-room-dtls'><p>" + roomdesc1 + "</p><a href='#' data-toggle='modal' data-target='#room-details-pop' onclick='showroomdet(\"" + roomdetpopup + "\",\"" + ratetable + "\",\"" + RDroominfopopup + "\")'>room details</a></div>"; stravroomdet += "<div class='avl-price-dtls'>"; stravroomdet += "<div class='avl-price-inn'><h2>$" + rrate + "</h2> <p>per night</p></div>"; stravroomdet += "<div class='avl-bknw-btn'>"; // stravroomdet += "<a target='_blank' href='HotelDetails.aspx?id=" + searchid + "&HotelCode=" + hcode + "&RPH=" + dr["RPH"] + "&hdvarhpr=" + hdVARsessionHPR + "'>book now</a>"; stravroomdet += "<a target='_blank' href='HotelDetails.aspx?id=" + searchid + "&HotelCode=" + hcode + "&RPH=" + dr["RPH"] + "'>book now</a>"; stravroomdet += "</div>"; stravroomdet += "</div> "; stravroomdet += "</div>"; } #endregion } return(stravroomdet); }
//public HotelProperty GetData(string SearchID,string contextresult,string hotelcode ) public HotelProperty GetData(string SearchID, string hotelcode) { HotelProperty hpr = null; string filePathContext = Path.Combine(HttpRuntime.AppDomainAppPath, "HotelXML/" + SearchID + "_ContextChange-RS.xml"); if (File.Exists(filePathContext)) { ContextResult = File.ReadAllText(filePathContext); } else { ContextResult = XMLRead.ContextChange(SearchID); } try { searchid = SearchID; objfavicons = new ClsFevicons(); CultureInfo cultureInfo = Thread.CurrentThread.CurrentCulture; TextInfo = cultureInfo.TextInfo; // string filePathRQ = Path.Combine(HttpRuntime.AppDomainAppPath, "HotelProperty/" + searchid + "_" + hotelcode + "_PropertyData.xml"); string filePathRQ = Path.Combine(HttpRuntime.AppDomainAppPath, "HotelXML/" + searchid + "_propertydesc_" + hotelcode + "-RS.xml"); if (File.Exists(filePathRQ)) { string result = File.ReadAllText(filePathRQ); hpr = new HotelProperty(result, hotelcode, searchid); } else { DataTable dssearch = HotelDBLayer.GetSearch(searchid); HPDCondition Hapc = GetCondition(hotelcode); hpr = new HotelProperty(Hapc, ContextResult, searchid); if (!File.Exists(filePathRQ)) { File.WriteAllText(filePathRQ, hpr.PropertyXmlResult); } } } catch { } return(hpr); }
private string Getrdroominfopopup(string RPH, HotelProperty hpr, DataRow dr, string searchid) { string rvalue = ""; string canpolicy = GetVendorMessage("Cancellation", hpr); string facilities = GetVendorMessage("Facilities", hpr).TrimEnd(','); string bkftdiningpol = GetVendorMessage("Dining", hpr); string Miscpolicies = GetVendorMessage("Policies", hpr); string Safety = GetVendorMessage("Safety", hpr).TrimEnd(','); string services = GetVendorMessage("Services", hpr).TrimEnd(','); string roomtype = dr["RoomTypedesc"].ToString().Trim().Trim(','); rvalue += "<div class='room-infm-blk'><h2>Room Details</h2><p>" + roomtype + "</p></div>"; rvalue += "<div class='room-infm-blk'><h2>Cancellation Policy</h2><p>" + canpolicy + "</p> </div>"; rvalue += "<div class='room-infm-blk'><h2>Room Facilities</h2><p>" + facilities + "</p></div>"; rvalue += "<div class='room-infm-blk rmdtls-imp-infrm'><h2>Important Information</h2>"; rvalue += "<div class='imp-infrm-inn'> <h3>Breakfast/Dining Policy</h3><p>" + bkftdiningpol + "</p></div>"; rvalue += "<div class='imp-infrm-inn'><h3>Safety</h3> <p>" + Safety + "</p> </div>"; rvalue += "<div class='imp-infrm-inn'><h3>Services</h3> <p>" + services + "</p> </div>"; rvalue += "<div class='imp-infrm-inn'><h3>Other Policies</h3> <p>" + Miscpolicies + "</p> </div>"; rvalue += "</div>"; return(rvalue); }
public string GetRoomDetails(string searchid, string hcode) { string rvalue = ""; //pcc = "VL5H"; //ipcc = "7A7H"; ; //username = "******"; //password = "******"; //getting the contexchangeresult //string filePathContext = Path.Combine(HttpRuntime.AppDomainAppPath, "HotelAvail/" + searchid + "_Context.xml"); //if (File.Exists(filePathContext)) //{ // ContextResult = File.ReadAllText(filePathContext); //} //else //{ // // ContextResult = XMLRead.ContextChange(pcc, ipcc, username, password, searchid); //} //ManageHotelDetails mhd = new ManageHotelDetails(); //HotelProperty hpr = mhd.GetData(searchid, hcode); // HotelProperty hpr = mhd.GetData(searchid, ContextResult, hcode); //string filePathRQ = Path.Combine(HttpRuntime.AppDomainAppPath, "HotelProperty/" + searchid + "_" + hcode + "_PropertyData.xml"); //if (!File.Exists(filePathRQ)) //{ // File.WriteAllText(filePathRQ, hpr.PropertyXmlResult); //} ManageHotelDetails mhd = new ManageHotelDetails(); HotelProperty hpr = mhd.GetData(searchid, hcode); string stravroomdet = ""; string stravroomdetmore = ""; string lbav = "lnkviewavrooms" + hcode; string lessid = "divavailroomLess" + hcode; string moreid = "divavailroomMore" + hcode; stravroomdet = "<div class='availble-rm-blk' id='" + lessid + "'>"; stravroomdet += "<div class='row avail-rm-inn'>"; stravroomdet += "<div class='avail-rm-header'> <h3 class='avail-rm-hd'>available rooms</h3><a style='cursor:pointer' onclick=\"CloseAvlRoom('" + lessid + "','" + lbav + "')\"><i class='fas fa-times-circle'></i>close</a></div>"; stravroomdet += GetRoomdet(hpr.dtRoomInfo, hpr, hcode, 3, searchid); stravroomdet += "</div>"; if (hpr.dtRoomInfo.Rows.Count > 3) { stravroomdet += " <div class='view-mre'><a style='cursor:pointer' onclick='showavroomsMore(\"" + lessid + "\",\"" + moreid + "\")'>view more rooms</a></div>"; } stravroomdet += "</div>"; stravroomdetmore = "<div class='availble-rm-blk' style='display:none' id='" + moreid + "'>"; stravroomdetmore += "<div class='row avail-rm-inn'>"; stravroomdetmore += "<div class='avail-rm-header'> <h3 class='avail-rm-hd'>available rooms</h3><a style='cursor:pointer' onclick=\"CloseAvlRoom('" + moreid + "','" + lbav + "')\"><i class='fas fa-times-circle'></i>close</a></div>"; stravroomdetmore += GetRoomdet(hpr.dtRoomInfo, hpr, hcode, hpr.dtRoomInfo.Rows.Count, searchid); stravroomdetmore += "</div>"; stravroomdetmore += " <div class='view-mre'><a style='cursor:pointer' onclick='showavroomsLess(\"" + lessid + "\",\"" + moreid + "\")'>view less rooms</a></div>"; stravroomdetmore += "</div>"; if (hpr.dtRoomInfo.Rows.Count > 0) { rvalue = stravroomdet + stravroomdetmore; } else { rvalue = " No Rooms Available"; } return(rvalue); }
private string GetRateTable(string RPH, HotelProperty hpr, DataRow dr, string searchid) { string rvalue = ""; DataTable dts = HotelDBLayer.GetSearch(searchid); DateTime checkindt = Convert.ToDateTime(dts.Rows[0]["CheckInDt"]); DateTime checkoutdt = Convert.ToDateTime(dts.Rows[0]["CheckOutDt"]); DateTime startweekdate = checkindt.AddDays(-(int)checkindt.DayOfWeek); DateTime endweekdate = checkoutdt.AddDays(-(int)checkoutdt.DayOfWeek).AddDays(6);; double noofdays = (endweekdate - startweekdate).TotalDays; decimal noofweeks = Decimal.Ceiling(Convert.ToDecimal(noofdays) / 7); string strtable = "<table width='100%' border='0' cellspacing='0' cellpadding='0' class='week-table-main'>"; strtable += "<tbody><tr><td>"; strtable += "<table width='100%' border='0' cellspacing='0' cellpadding='0' class='week-days'>"; strtable += "<tbody><tr><td> </td><td>Sun</td><td>mon</td><td>tue</td><td>wed</td><td>thu</td><td>fri</td> <td>sat</td> </tr></tbody></table>"; strtable += "</td></tr><tr><td> <table width='100%' border='0' cellspacing='0' cellpadding='0' class='price-details'><tbody>"; DataRow[] roomdescrow = hpr.dtRoomInfo.Select("RPH='" + RPH + "'"); DataRow[] roomRaterow = hpr.dtRoomRate.Select("RPH='" + RPH + "'"); DataRow[] hotelpricingrow = hpr.dtHotelPricing.Select("RoomRateID='" + roomRaterow[0]["RoomRateID"].ToString() + "'"); DataRow[] hpraterangerow = hpr.HP_RateRange.Select("HotelPricingID='" + hotelpricingrow[0]["HotelPricingID"].ToString() + "'"); DataTable dtr = new DataTable(); dtr.Columns.Add("id"); dtr.Columns.Add("amount"); dtr.Columns.Add("taxes"); dtr.Columns.Add("surcharges"); dtr.Columns.Add("expdate", typeof(DateTime)); dtr.Columns.Add("effedate", typeof(DateTime)); dtr.Columns.Add("hid"); if (hpraterangerow.Count() > 0) { foreach (DataRow drr in hpraterangerow) { DataRow drp = dtr.NewRow(); drp[0] = drr[0]; drp[1] = drr[1]; drp[2] = drr[2]; drp[3] = drr[3]; drp[4] = "2018-" + drr[4].ToString(); drp[5] = "2018-" + drr[5].ToString(); drp[6] = drr[6]; dtr.Rows.Add(drp); } } else { DataRow drp = dtr.NewRow(); drp[0] = 0; drp[1] = roomdescrow[0]["RatePernight"]; drp[2] = 0; drp[3] = 0; drp[4] = "2018-" + checkoutdt.ToString("MM-dd"); drp[5] = "2018-" + checkindt.ToString("MM-dd"); drp[6] = 1; dtr.Rows.Add(drp); } for (int i = 0; i < noofweeks; i++) { strtable += "<tr><td>Week" + (i + 1) + "</td>"; for (int j = 0; j < 7; j++) { strtable += "<td>" + GetDayRate(dtr, startweekdate.AddDays((7 * i) + j).ToString("MM-dd-yyyy")) + "</td>"; } strtable += "</tr>"; } strtable += "</tbody> </table> </td> </tr> </tbody></table>"; return(strtable); }
//public string GetContextResult() //{ // string rvalue = ""; // pcc = "VL5H"; // ipcc = "7A7H"; ; // username = "******"; // password = "******"; // //getting the contexchangeresult // string filePathContext = Path.Combine(HttpRuntime.AppDomainAppPath, "HotelAvail/" + searchid + "_Context.xml"); // if (File.Exists(filePathContext)) // { // ContextResult = File.ReadAllText(filePathContext); // } // else // { // ContextResult = XMLRead.ContextChange(pcc, ipcc, username, password, searchid); // } // return ContextResult; //} public int SaveRoom(HotelProperty hpr, string srph, string searchid, string viewid, string itinid, string firstname, string lastname, string email, string phone) { int rvalue = 0; #region collectinginfosaving try { DataTable dt = hpr.dtBasicPropInfo; DataTable dtpricing = hpr.dtHotelPricing; DataTable dtRateRange = hpr.HP_RateRange; string rphcond = ""; rphcond = srph; if (srph.Length == 1) { rphcond = "00" + srph; } if (srph.Length == 2) { rphcond = "0" + srph; } DataRow[] roomdescrow = hpr.dtRoomInfo.Select("RPH='" + rphcond + "'"); DataRow[] roomRaterow = hpr.dtRoomRate.Select("RPH='" + rphcond + "'"); DataRow[] hotelpricingrow = hpr.dtHotelPricing.Select("RoomRateID='" + roomRaterow[0]["RoomRateID"].ToString() + "'"); DataRow[] hpraterangerow = hpr.HP_RateRange.Select("HotelPricingID='" + hotelpricingrow[0]["HotelPricingID"].ToString() + "'"); DataRow[] propaddress = hpr.dtAddressLines.Select("BasicPropInfo_ID='" + dt.Rows[0]["BasicPropInfo_ID"].ToString() + "'"); DataRow[] raterow = hpr.dtRate.Select("RoomRateID='" + roomRaterow[0]["RoomRateID"].ToString() + "'"); ////property details starts ----------------- string PropertyName = dt.Rows[0]["HotelName"].ToString(); string PropertyCode = dt.Rows[0]["HotelCode"].ToString(); string PropertyCityCode = dt.Rows[0]["HotelCityCode"].ToString(); string ChainCode = dt.Rows[0]["ChainCode"].ToString(); string ChainName = ""; string GDSId = "SB"; string CheckinTime = dt.Rows[0]["CheckInTime"].ToString(); string CheckOutTime = dt.Rows[0]["CheckOutTime"].ToString(); string AddressLine1 = propaddress[0]["Address"].ToString(); string AddressLine2 = propaddress[1]["Address"].ToString(); string Phone = dt.Rows[0]["Phone"].ToString(); string Fax = dt.Rows[0]["Fax"].ToString(); string City = ""; string State = ""; string CountryCode = dt.Rows[0]["CountryCode"].ToString();; string PostalCode = ""; string Latitude = dt.Rows[0]["Latitude"].ToString(); string Longitude = dt.Rows[0]["Longitude"].ToString(); string Distance = ""; string DistanceUnit = ""; string StarRating = ""; string ReviewRating = ""; ////property details ends ----------------- ////Rate details starts --------------------- string BookingStatus = ""; string BookingConfirmation = ""; string NumAdults = ""; string NumChildren = ""; string Amount = roomdescrow[0]["Rate"].ToString(); string TotalAmount = hotelpricingrow[0]["HPTotalAmount"].ToString(); string TotalBaseAmount = "0"; string TotalTaxAmount = hotelpricingrow[0]["TTaxes_Amount"].ToString(); string TotalSurgeAmount = hotelpricingrow[0]["TSurcharges_Amount"].ToString(); string taxpercent = dt.Rows[0]["TaxshortText"].ToString(); string MarkupAmount = ""; string DiscountAmount = ""; string NumExtraAdults = raterow[0]["AddGuestAmt_NumAdults"].ToString(); string NumExtraChildren = raterow[0]["AddGuestAmt_NumChild"].ToString(); string NumExtraCribs = raterow[0]["AddGuestAmt_NumCribs"].ToString(); string NumExtraPersonAllowed = raterow[0]["AddGuestAmt_Max"].ToString(); string ExtraPersonAmount = raterow[0]["AGA_Charges_ExPer"].ToString(); string ExtraCribAmount = raterow[0]["AGA_Charges_Crib"].ToString(); string ChildRollawayAmount = raterow[0]["AGA_Charges_ChildRollAway"].ToString(); string AdultRollAwayAmount = raterow[0]["AGA_Charges_AdultRollAway"].ToString(); string CurrencyCode = roomRaterow[0]["CurrencyCode"].ToString(); string IsSpecialOffer = roomRaterow[0]["SpecialOffer"].ToString(); string IsRateConversion = roomRaterow[0]["RateConversionInd"].ToString(); string IsRateChanges = roomRaterow[0]["RateChangeInd"].ToString(); string RateLevelCode = roomRaterow[0]["RateLevelCode"].ToString(); string ReturnOfRate = roomRaterow[0]["ReturnOfRateInd"].ToString(); string RateCategory = roomRaterow[0]["RateCategory"].ToString(); string RateAccessCode = roomRaterow[0]["RateCategory"].ToString(); string LowInvThreshold = roomRaterow[0]["LowInvThreshold"].ToString(); string ProductIdentif = roomRaterow[0]["IATA_ProdIdent"].ToString(); string Identif = roomRaterow[0]["IATA_ChaIdent"].ToString(); string GTSurgeRequired = roomRaterow[0]["GuaSurchrgReq"].ToString(); string GTRateProgram = roomRaterow[0]["DirectConnect"].ToString(); string DirectConnect = roomRaterow[0]["GuaRateProg"].ToString(); string AdvResPeriod = roomRaterow[0]["AdvResPeriod"].ToString(); string ClientID = roomRaterow[0]["ClientID"].ToString(); string XPM_GTRequired = roomRaterow[0]["XPM_GuaReq"].ToString(); string RoomLocCode = roomRaterow[0]["RoomLocationCode"].ToString(); string RoomTypeCode = raterow[0]["RoomTypeCode"].ToString(); string IsRateConverted = raterow[0]["RateConvIndicator"].ToString(); string IsPackage = raterow[0]["PkgIndicator"].ToString(); string HRDForSell = raterow[0]["HRD_ReqforSell"].ToString(); string CPVal = ""; string CPText = ""; string CommissionAvl = ""; string RateCode = ""; string RuleIdn = ""; string roomdesc = ""; //// rate details ends ------------------------------ //// for rate range starts string BaseAmount = "0"; string TaxAmount = "0"; string SurchargeAmount = "0"; string ExpireDt = "0"; string EffectiveDt = "0"; //// for rate range starts ends try { roomdesc = roomdescrow[0]["RoomTypedesc"].ToString(); } catch { roomdesc = ""; } try { BookingId = HotelDBLayer.SaveBooking(searchid, viewid, "", firstname, lastname, email, phone); Propertyid = HotelDBLayer.SaveBookingProperty(BookingId, PropertyName, PropertyCode, PropertyCityCode, ChainCode, ChainName, GDSId, CheckinTime, CheckOutTime, AddressLine1, AddressLine2, Phone, Fax, City, State, PropertyCityCode, CountryCode, PostalCode, Latitude, Longitude, Distance, DistanceUnit, StarRating, ReviewRating); RateID = HotelDBLayer.SaveBookingRate(BookingId, BookingStatus, BookingConfirmation, NumAdults, NumChildren, Amount, TotalAmount, TotalBaseAmount, TotalTaxAmount, TotalSurgeAmount, MarkupAmount, DiscountAmount, NumExtraAdults, NumExtraChildren, NumExtraCribs, NumExtraPersonAllowed, ExtraPersonAmount, ExtraCribAmount, ChildRollawayAmount, AdultRollAwayAmount, CurrencyCode, IsSpecialOffer, IsRateConversion, IsRateChanges, RateLevelCode, ReturnOfRate, RateCategory, RateAccessCode, LowInvThreshold, ProductIdentif, Identif, GTSurgeRequired, GTRateProgram, DirectConnect, AdvResPeriod, ClientID, XPM_GTRequired, RoomLocCode, RoomTypeCode, IsRateConverted, IsPackage, HRDForSell, CPVal, CPText, CommissionAvl, RateCode, RuleIdn, roomdesc, srph); foreach (DataRow drrr in hpraterangerow) { BaseAmount = drrr["Amount"].ToString(); TaxAmount = drrr["Taxes"].ToString();; SurchargeAmount = drrr["Surcharges"].ToString();; ExpireDt = drrr["ExpireDate"].ToString();; EffectiveDt = drrr["EffectiveDate"].ToString(); RaterangeID = HotelDBLayer.SaveBookingRateRange(BookingId, RateID, BaseAmount, TaxAmount, SurchargeAmount, ExpireDt, EffectiveDt); } rvalue = 1; } catch (Exception ex) { throw ex; } } catch (Exception ex) { throw ex; } #endregion return(rvalue); }
public void UpdateHotel(HotelProperty hotel) { throw new NotImplementedException(); }
public void Hotel_Should_Return_ToString() { var hotel = new HotelProperty("Telerik", 4, 5); Assert.IsTrue(hotel.ToString().Contains("=== Information for hotel")); }