private SupplierHotelCustomerCategoryInfo GetSupplierHotelCustomersValues(DataRow dr) { SupplierHotelCustomerCategoryInfo supplierhotelcustomer = new SupplierHotelCustomerCategoryInfo(); if (dr["Margin"] != DBNull.Value) { supplierhotelcustomer.Margin = Convert.ToDecimal(dr["Margin"]); } if (dr["CustomerCategoryName"] != DBNull.Value) { supplierhotelcustomer.CustomerCategoryName = Convert.ToString(dr["CustomerCategoryName"]); } if (dr["CustomerCategoryId"] != DBNull.Value) { supplierhotelcustomer.CustomerCategoryId = Convert.ToInt32(dr["CustomerCategoryId"]); } if (dr["SupplierHotelDurationId"] != DBNull.Value) { supplierhotelcustomer.SupplierHotelDurationId = Convert.ToInt32(dr["SupplierHotelDurationId"]); } //if (dr["SupplierHotelPriceId"] != DBNull.Value) //{ // supplierhotelcustomer.SupplierHotelPriceId = Convert.ToInt32(dr["SupplierHotelPriceId"]); //} return(supplierhotelcustomer); }
public SupplierHotelTariffViewModel() { SupplierHotelTariff = new SupplierHotelTariffInfo(); SupplierHotelDetail = new SupplierHotelDetailInfo(); SupplierOccupancyDetail = new SupplierOccupancyDetailInfo(); SupplierHotelCustomerCategory = new SupplierHotelCustomerCategoryInfo(); SupplierHotelCustomerCategories = new List <SupplierHotelCustomerCategoryInfo>(); LstVendor = new List <VendorInfo>(); LstCities = new List <CityInfo>(); LstRoomTypes = new List <RoomTypeInfo>(); LstMeals = new List <MealInfo>(); LstHotel = new List <HotelInfo>(); FriendlyMessage = new List <FriendlyMessage>(); SupplierHotelTariffDuration = new SupplierHotelTariffDurationInfo(); SupplierHotelTariffDurations = new List <SupplierHotelTariffDurationInfo>(); LstStandardCharges = new List <ChargesInfo>(); LstSupplierHotelPriceDetail = new List <SupplierHotelPriceDetailInfo>(); LstSupplierHotelPrice = new List <SupplierHotelPriceInfo>(); CustomerCategories = new List <CustomerCategoryInfo>(); LstStandardCharges = new List <ChargesInfo>(); LstTaxFormula = new List <TaxFormulaInfo>(); LstTaxFormulaCharges = new List <TaxFormulaChargesInfo>(); SupplierHotelPrice = new SupplierHotelPriceInfo(); Pager = new PaginationInfo(); Cities = new List <CityInfo>(); SupplierHotelTariffDayInfo = new SupplierHotelTariffDayInfo(); SupplierHotelTariffDays = new List <SupplierHotelTariffDayInfo>(); SupplierHotelDayItem = new SupplierHotelDayItemInfo(); SupplierHotelDayItems = new List <SupplierHotelDayItemInfo>(); }