protected void btnViewReport_Click(object sender, EventArgs e)
        {
            var selectedRegions = GetSelectedList(ddlRegion);
            var Region          = ddlRegion.Items.Count == selectedRegions.Count ? new List <string> {
            } : selectedRegions;

            var selectedCountries = GetSelectedList(ddlCountry);
            var Country           = ddlCountry.Items.Count == selectedCountries.Count ? new List <string> {
            } : selectedCountries;

            //GAURAV_TMAP_874
            var selectedPriorities = GetSelectedList(ddlPriorities);
            var Priority           = selectedPriorities.Count == 0 ? new List <string> {
            } : selectedPriorities;

            var City = new List <string> {
            };

            if (rdoIsAllCities.Checked)
            {
                City = Cities;
            }


            if (rdoIsSelectiveCities.Checked)
            {
                foreach (RepeaterItem item in repSelectedCity.Items)
                {
                    Label lblCityId = (Label)item.FindControl("lblCityId");
                    Cities.Add(lblCityId.Text);
                }

                City = Cities;
            }
            //var AccoPriority = GetSelectedList(ddlAccoPriority);


            var report = new DC_EzeegoHotelVsSupplierHotelMappingReport_RQ();

            report.Country      = Country.ToArray();
            report.Region       = Region.ToArray();
            report.AccoPriority = Priority.ToArray();
            report.City         = City.ToArray();
            //report.AccoPriority = AccoPriority.ToArray();
            var reportResponse = mappingSVC.HotelMappingReport(report);

            getHotelReportData(reportResponse);
        }
Esempio n. 2
0
        protected void btnViewReport_Click(object sender, EventArgs e)
        {
            var Region  = GetSelectedList(ddlRegion);
            var Country = GetSelectedList(ddlCountry);

            var City = new List <string> {
            };

            if (rdoIsAllCities.Checked)
            {
                City = Cities;
            }


            if (rdoIsSelectiveCities.Checked)
            {
                foreach (RepeaterItem item in repSelectedCity.Items)
                {
                    Label lblCityId = (Label)item.FindControl("lblCityId");
                    Cities.Add(lblCityId.Text);
                }

                City = Cities;
            }
            var AccoPriority    = GetSelectedList(ddlAccoPriority);
            var Supplier        = GetSelectedList(ddlSupplierName);
            var selectedHotelId = txtHotelNameOrHDL.Text;

            var report = new DC_EzeegoHotelVsSupplierHotelMappingReport_RQ();

            report.Country = Country.ToArray();
            report.Region  = Region.ToArray();

            report.City            = City.ToArray();
            report.AccoPriority    = AccoPriority.ToArray();
            report.Supplier        = Supplier.ToArray();
            report.selectedHotelId = selectedHotelId;

            var reportResponse = mappingSVC.EzeegoHotelVsSupplierHotelMappingReport(report);

            getData(reportResponse);
            //reportList.Add(Country);
        }