예제 #1
0
        private SightSeeingTariffInfo GetSightSeeingTariffValues(DataRow dr)
        {
            SightSeeingTariffInfo sightseeingtariff = new SightSeeingTariffInfo();

            sightseeingtariff.SightSeeingTariffId = Convert.ToInt32(dr["SightSeeingTariffId"]);
            sightseeingtariff.VendorId            = Convert.ToInt32(dr["VendorId"]);
            sightseeingtariff.SightSeeingId       = Convert.ToInt32(dr["SightSeeingId"]);
            sightseeingtariff.CreatedDate         = Convert.ToDateTime(dr["CreatedDate"]);
            sightseeingtariff.CreatedBy           = Convert.ToInt32(dr["CreatedBy"]);
            sightseeingtariff.UpdatedDate         = Convert.ToDateTime(dr["UpdatedDate"]);
            sightseeingtariff.UpdatedBy           = Convert.ToInt32(dr["UpdatedBy"]);
            return(sightseeingtariff);
        }
예제 #2
0
 public int InsertSightSeeingTariff(SightSeeingTariffInfo sightseeingtariff)
 {
     return(Convert.ToInt32(_sqlHelper.ExecuteScalerObj(SetValuesInSightSeeingTariff(sightseeingtariff), Storeprocedures.spInsertSightSeeingTariffBasicDetails.ToString(), CommandType.StoredProcedure)));
 }
예제 #3
0
 public void UpdateSightSeeingTariff(SightSeeingTariffInfo sightseeingtariff)
 {
     _sqlHelper.ExecuteNonQuery(SetValuesInSightSeeingTariff(sightseeingtariff), Storeprocedures.spUpdateSightSeeingTariffBasicDetails.ToString(), CommandType.StoredProcedure);
 }
        public SightSeeingTariffViewModel()
        {
            //For Sight Seeing Tariff

            SightSeeingTariff = new SightSeeingTariffInfo();

            SightSeeingTariffs = new List <SightSeeingTariffInfo>();

            Filter = new SightSeeingTariffFilter();


            Vendors = new List <VendorInfo>();

            SightSeeings = new List <SightSeeingInfo>();

            Meals = new List <MealInfo>();

            Occupancies = new List <OccupancyInfo>();

            Pager = new PaginationInfo();

            FriendlyMessage = new List <FriendlyMessage>();

            //for date details

            SightSeeingTariffDate = new SightSeeingTariffDateInfo();

            SightSeeingTariffDates = new List <SightSeeingTariffDateInfo>();

            //For Duration

            Durations = new List <DurationInfo>();

            Duration = new DurationInfo();

            DurationFilter = new DurationFilter();

            //for sight seeing duration

            SightSeeingTariffDuration = new SightSeeingTariffDurationInfo();

            SightSeeingTariffDurations = new List <SightSeeingTariffDurationInfo>();

            SightSeeingTariffDurationFilter = new SightSeeingTariffDurationFilter();

            //For Sight Seeing Tariff Occupancy

            SightSeeingTariffOccupancy = new SightSeeingTariffOccupancyInfo();

            SightSeeingTariffOccupancies = new List <SightSeeingTariffOccupancyInfo>();

            SightSeeingTariffOccupancyFilter = new SightSeeingTariffOccupancyFilter();

            //For tax formula

            LstStandardCharges = new List <ChargesInfo>();

            LstTaxFormula = new List <TaxFormulaInfo>();

            LstTaxFormulaCharges = new List <TaxFormulaChargesInfo>();

            //For Sight Seeing Details

            SightSeeingDetails = new List <SightSeeingDetailInfo>();

            SightSeeingDetail = new SightSeeingDetailInfo();

            SightSeeingDetailFilter = new SightSeeingDetailFilter();

            //For Sight Seeing Tariff Price

            SightSeeingTariffPrice = new SightSeeingTariffPriceInfo();

            SightSeeingTariffPrices = new List <SightSeeingTariffPriceInfo>();

            SightSeeingTariffPriceFilter = new SightSeeingTariffPriceFilter();

            //For Sight Seeing Tariff Duration

            SightSeeingTariffDuration = new SightSeeingTariffDurationInfo();

            SightSeeingTariffDurations = new List <SightSeeingTariffDurationInfo>();

            SightSeeingTariffDurationFilter = new SightSeeingTariffDurationFilter();

            //for Customer Category

            SightSeeingTariffCustomerCategory = new SightSeeingTariffCustomerCategoryInfo();

            SightSeeingTariffCustomerCategories = new List <SightSeeingTariffCustomerCategoryInfo>();

            CustomerCategory = new CustomerCategoryInfo();

            CustomerCategories = new List <CustomerCategoryInfo>();

            SightSeeingTariffCustomerCategoryFilter = new SightSeeingTariffCustomerCategoryFilter();
        }