Пример #1
0
 public static long Save(CLayer.Property propertydata)
 {
     DataLayer.Property property = new DataLayer.Property();
     propertydata.B2CMarkupShortTerm = Convert.ToDecimal(BLayer.Settings.GetValue((CLayer.Settings.B2C_MARKUP_SHORT_TERM)));
     propertydata.B2CMarkupLongTerm  = Convert.ToDecimal(BLayer.Settings.GetValue((CLayer.Settings.B2C_MARKUP_LONG_TERM)));
     propertydata.B2BMarkupShortTerm = Convert.ToDecimal(BLayer.Settings.GetValue((CLayer.Settings.B2B_MARKUP_SHORT_TERM)));
     propertydata.B2BMarkupLongTerm  = Convert.ToDecimal(BLayer.Settings.GetValue((CLayer.Settings.B2B_MARKUP_LONG_TERM)));
     propertydata.B2BStdLongTermDis  = Convert.ToDecimal(BLayer.Settings.GetValue((CLayer.Settings.B2B_STD_LONG_TERM_DIS)));
     propertydata.B2BStdShortTermDis = Convert.ToDecimal(BLayer.Settings.GetValue((CLayer.Settings.B2B_STD_SHORT_TERM_DIS)));
     propertydata.Validate();
     return(property.Save(propertydata));
 }
Пример #2
0
 public static void SetCommission(CLayer.RateCommission commission)
 {
     DataLayer.Property prperty = new DataLayer.Property();
     if (commission.B2CShortTerm <= 0)
     {
         commission.B2CShortTerm = commission.B2CShortTerm;
     }
     if (commission.B2CLongTerm <= 0)
     {
         commission.B2CLongTerm = commission.B2CLongTerm;
     }
     if (commission.B2BShortTerm <= 0)
     {
         commission.B2BShortTerm = commission.B2BShortTerm;
     }
     if (commission.B2BLongTerm <= 0)
     {
         commission.B2BLongTerm = commission.B2BLongTerm;
     }
     prperty.SetCommission(commission);
 }
Пример #3
0
 public static DataTable GetHotelFormattedDescription(long id)
 {
     DataLayer.Property property = new DataLayer.Property();
     return(property.GetHotelFormattedDescription(id));
 }
Пример #4
0
 public static CLayer.SearchResult GetGDSImageandDesctiption(long PropertyID)
 {
     DataLayer.Property pr = new DataLayer.Property();
     return(pr.GetGDSImageandDesctiption(PropertyID));
 }
Пример #5
0
 public static void GDSSaveImageurl(long PropertyId, string url)
 {
     DataLayer.Property bok = new DataLayer.Property();
     bok.GDSSaveImageurl(PropertyId, url);
 }
Пример #6
0
 public static String GetGDSHotelImage(long PropertyID)
 {
     DataLayer.Property pr = new DataLayer.Property();
     return(pr.GetGDSHotelImage(PropertyID));
 }
Пример #7
0
 public static void SaveCancellationDetails(long propertyId, double charge, int period, CLayer.ObjectStatus.CancellationType cancType, bool appliesForRefund)
 {
     DataLayer.Property pr = new DataLayer.Property();
     pr.SaveCancellationDetails(propertyId, charge, period, cancType, appliesForRefund);
 }
Пример #8
0
 public static List <CLayer.Property> GetDefaultHotels(long pUserID, string pDestination)
 {
     DataLayer.Property bok = new DataLayer.Property();
     return(bok.GetDefaultHotels(pUserID, pDestination));
 }
Пример #9
0
 public static string GetPropertyTamarindFlag(long PropertyID, string PropertyName)
 {
     DataLayer.Property bok = new DataLayer.Property();
     return(bok.GetPropertyTamarindFlag(PropertyID, PropertyName));
 }
Пример #10
0
 public static void GDSUpdatePropertyContactNumbers(long PropertyId, string Phone, string Mobile, string Email = "")
 {
     DataLayer.Property bok = new DataLayer.Property();
     bok.GDSUpdatePropertyContactNumbers(PropertyId, Phone, Mobile, Email);
 }
Пример #11
0
 public static long GetGDSPropertyImagesCount(long PropertyID)
 {
     DataLayer.Property bok = new DataLayer.Property();
     return(bok.GetGDSPropertyImagesCount(PropertyID));
 }
Пример #12
0
 public static CLayer.Property GetCancellationCharges(long propertyId)
 {
     DataLayer.Property pr = new DataLayer.Property();
     return(pr.GetCancellationCharges(propertyId));
 }
Пример #13
0
 public static void GDSUpdatePropertyTitle(long PropertyId, string Title)
 {
     DataLayer.Property bok = new DataLayer.Property();
     bok.GDSUpdatePropertyTitle(PropertyId, Title);
 }
Пример #14
0
 public static void GDSUpdatePropertyStarRatings(long PropertyId, int StarRatings)
 {
     DataLayer.Property bok = new DataLayer.Property();
     bok.GDSUpdatePropertyStarRatings(PropertyId, StarRatings);
 }
Пример #15
0
 public static void GDSUpdatePropertyDescriptionFormatted(long PropertyId, string Description, int StarRatings, string Response)
 {
     DataLayer.Property bok = new DataLayer.Property();
     bok.GDSUpdatePropertyDescriptionFormatted(PropertyId, Description, StarRatings, Response);
 }
Пример #16
0
 public static void GDSUpdatePropertyDescription(long PropertyId, string Description)
 {
     DataLayer.Property bok = new DataLayer.Property();
     bok.GDSUpdatePropertyDescription(PropertyId, Description);
 }
Пример #17
0
 public static List <CLayer.Property> GetAllGDSPropertiesRecommended()
 {
     DataLayer.Property bok = new DataLayer.Property();
     return(bok.GetAllGDSPropertiesRecommended());
 }
Пример #18
0
 public static List <string> GetGDSHotelAllImages(long propertyid, int limit = 0)
 {
     DataLayer.Property bok = new DataLayer.Property();
     return(bok.GetGDSHotelAllImages(propertyid, limit));
 }
Пример #19
0
 public static List <CLayer.Property> PropertyGetOnCity(int CityId)
 {
     DataLayer.Property bok = new DataLayer.Property();
     return(bok.PropertyGetOnCity(CityId));
 }
Пример #20
0
 public static int DeleteGDSPropertyImages(long PropertyID)
 {
     DataLayer.Property bok = new DataLayer.Property();
     return(bok.DeleteGDSPropertyImages(PropertyID));
 }
Пример #21
0
 public static CLayer.Property GetBookingPropertyDetails(long propertyId)
 {
     DataLayer.Property bok = new DataLayer.Property();
     return(bok.GetBookingPropertyDetails(propertyId));
 }
Пример #22
0
 public static bool HasValidAccountForProperty(long propertyId)
 {
     DataLayer.Property property = new DataLayer.Property();
     return(property.HasValidAccountForProperty(propertyId));
 }
Пример #23
0
 public static int GetTBOInventoryAPITypeId(long tamarindhotelid)
 {
     DataLayer.Property bok = new DataLayer.Property();
     return(bok.GetTBOInventoryAPITypeId(tamarindhotelid));
 }
Пример #24
0
 public static DataTable SearchForGDSPropertiesWithUser(List <string> codes)
 {
     DataLayer.Property property = new DataLayer.Property();
     return(property.SearchForGDSPropertiesWithUser(codes));
 }
Пример #25
0
 public static CLayer.Property GetPartialPayment(long propertyId)
 {
     DataLayer.Property pr = new DataLayer.Property();
     return(pr.GetPartialPayment(propertyId));
 }
Пример #26
0
 public static DataTable GetHotelIDFromTBOid(long id)
 {
     DataLayer.Property property = new DataLayer.Property();
     return(property.GetHotelIDFromTBOid(id));
 }
Пример #27
0
 public static List <CLayer.Accommodation> GetDetailsForBooking(long propertyId, CLayer.SearchCriteria criteria)
 {
     DataLayer.Property pr = new DataLayer.Property();
     return(pr.GetDetailsForBooking(propertyId, criteria));
 }
Пример #28
0
 public static int GetPropertybyEmail(string Email)
 {
     DataLayer.Property pr = new DataLayer.Property();
     return(pr.GetPropertybyEmail(Email));
 }
Пример #29
0
 public static void GDSSavePropertyDescriptions(long pID, long propertyid, CLayer.DetailContents pDetailContents)
 {
     DataLayer.Property property = new DataLayer.Property();
     property.GDSSavePropertyDescriptions(pID, propertyid, pDetailContents);
 }
Пример #30
0
 public static int GetPropertyInventoryAPIType(long PropertyId)
 {
     DataLayer.Property bok = new DataLayer.Property();
     return(bok.GetInventoryAPITypeId(PropertyId));
 }