private void HandleCallBack() { string RetVal; string RequestParam; string RequestParam2; string RequestParam3; string RequestParam4; string RequestParam5; string RequestParam6; string RequestParam7; CallbackType OCallbackType; Callback OCallback; RetVal = string.Empty; RequestParam = string.Empty; RequestParam2 = string.Empty; RequestParam3 = string.Empty; RequestParam4 = string.Empty; RequestParam5 = string.Empty; RequestParam6 = string.Empty; RequestParam7 = string.Empty; OCallback = null; OCallbackType = CallbackType.None; try { if (Request.Params.Count > 0) { OCallbackType = (CallbackType)int.Parse(Request[Constants.RequestHeaderParamNames.CallBack].ToString()); RequestParam = Request[Constants.RequestHeaderParamNames.Param1]; RequestParam2 = Request[Constants.RequestHeaderParamNames.Param2]; RequestParam3 = Request[Constants.RequestHeaderParamNames.Param3]; RequestParam4 = Request[Constants.RequestHeaderParamNames.Param4]; RequestParam5 = Request[Constants.RequestHeaderParamNames.Param5]; RequestParam6 = Request[Constants.RequestHeaderParamNames.Param6]; RequestParam7 = Request[Constants.RequestHeaderParamNames.Param7]; OCallback = new Callback(this.Page); //get browser type to handle internet explorer 8 issue of ajax 32 bit size [reurn Image url in this case] if (!string.IsNullOrEmpty(Request.QueryString["bType"])) { OCallback.BrowserType = Convert.ToString(Request.QueryString["bType"]).Trim(); } switch (OCallbackType) { case CallbackType.GetQdsResultsForAdaptation: RetVal = OCallback.GetQdsResultsForAdaptation(RequestParam); break; case CallbackType.GenerateCacheResults: RetVal = OCallback.GenerateCacheResults(RequestParam); break; case CallbackType.GetDataViewDataNidsMulipleDbs: RetVal = OCallback.GetDataViewDataNidsMulipleDbs(RequestParam); break; case CallbackType.GetLangDBcode: RetVal = OCallback.GetLangDBcode(RequestParam); break; case CallbackType.GetOatStringFromFileUpload: RetVal = OCallback.getOATfromFile(RequestParam); break; case CallbackType.GetIndWhereDataExists: RetVal = OCallback.GetIndWhereDataExists(RequestParam); break; case CallbackType.GetAreaWhereDataExists: RetVal = OCallback.GetAreaWhereDataExists(RequestParam); break; case CallbackType.GetDataView: RetVal = OCallback.GetDataView(RequestParam); break; case CallbackType.GetQDSResults: if (Session["IsMapServer"] != null) { Session.Remove("IsMapServer"); } RetVal = OCallback.GetQDSResults(RequestParam); break; case CallbackType.GetDataViewDataNids: RetVal = OCallback.GetDataViewDataNids(RequestParam); break; case CallbackType.GetGalleryThumbnails: RetVal = OCallback.GetGalleryThumbnails(RequestParam); break; case CallbackType.GetAreas: RetVal = OCallback.GetAreas(RequestParam); break; case CallbackType.GetSGs: RetVal = OCallback.GetSGs(RequestParam); break; case CallbackType.GetSources: RetVal = OCallback.GetSources(RequestParam); break; case CallbackType.GetTPs: RetVal = OCallback.GetTPs(RequestParam); break; case CallbackType.GetASDatabases: RetVal = OCallback.GetASDatabases(RequestParam); break; case CallbackType.GetASResults: RetVal = OCallback.GetASResults(RequestParam); break; case CallbackType.isHTMLfilePrepared: RetVal = OCallback.WriteHTMLtoFile(RequestParam, ""); break; case CallbackType.sharedPresentionUrl: RetVal = OCallback.sharedPresentation(RequestParam, RequestParam2, RequestParam3, RequestParam4); break; case CallbackType.chartInputData: RetVal = OCallback.getChartData(RequestParam, RequestParam2); break; case CallbackType.ShareByEmail: RetVal = OCallback.ShareByEmail(RequestParam); break; case CallbackType.ShareSearchResult: RetVal = OCallback.ShareSearchResult(RequestParam); break; case CallbackType.AdminUpdateConfiguration: RetVal = OCallback.AdminUpdateConfiguration(RequestParam); break; case CallbackType.GetCloudContent: RetVal = OCallback.GetCloudContent(RequestParam); break; case CallbackType.GetTransformedCodelist: RetVal = OCallback.GetTransformedCodelist(RequestParam); break; case CallbackType.GetDPArtefact: RetVal = OCallback.GetDPArtefact(RequestParam); break; case CallbackType.AdminGetAvlConnections: RetVal = OCallback.AdminGetAvlConnections(RequestParam); break; case CallbackType.AdminGetConnectionDetailsData: RetVal = OCallback.AdminGetConnectionDetailsData(RequestParam); break; case CallbackType.AdminUpdateDbConnection: RetVal = OCallback.AdminUpdateDbConnection(RequestParam); break; case CallbackType.GetViewDataChildDivHtml: RetVal = OCallback.GetViewDataChildDivHtml(RequestParam); break; case CallbackType.GetSelectedDatabasesDetails: RetVal = OCallback.GetSelectedDatabasesDetails(RequestParam); break; case CallbackType.GetSelectedArea: RetVal = OCallback.GetSelectedArea(RequestParam); break; case CallbackType.AddSubscription: RetVal = OCallback.AddSubscription(RequestParam); break; case CallbackType.GetDefaultAreaCountOfSelDb: RetVal = OCallback.GetDefaultAreaCountOfSelDb(RequestParam); break; case CallbackType.Gallery_GetQDSResults: RetVal = OCallback.Gallery_GetQDSResults(RequestParam); break; case CallbackType.Gallery_GetASResults: RetVal = OCallback.Gallery_GetASResults(RequestParam); break; case CallbackType.Gallery_ShareSearchResult: RetVal = OCallback.Gallery_ShareSearchResult(RequestParam); break; case CallbackType.GetSubscriptionDetails: RetVal = OCallback.GetSubscriptionDetails(RequestParam); break; case CallbackType.SaveGalleryItem: RetVal = OCallback.SaveGalleryItem(RequestParam); break; case CallbackType.AdminTestConnection: RetVal = OCallback.AdminTestConnection(RequestParam); break; case CallbackType.AdminDeleteConnection: RetVal = OCallback.AdminDeleteConnection(RequestParam); break; case CallbackType.AdminRegisterDatabase: RetVal = OCallback.AdminRegisterDatabase(RequestParam); break; case CallbackType.AdminGetAllDbConnections: RetVal = OCallback.AdminGetAllDbConnections(RequestParam); break; case CallbackType.AdminXMLGeneration: RetVal = OCallback.AdminXMLGeneration(RequestParam); break; case CallbackType.AdminSaveDefaultArea: RetVal = OCallback.AdminSaveDefaultArea(RequestParam); break; case CallbackType.NGallery_GetQDSResults: RetVal = OCallback.NGallery_GetQDSResults(RequestParam); break; case CallbackType.NGallery_GetASResults: RetVal = OCallback.NGallery_GetASResults(RequestParam); break; case CallbackType.NGallery_GetMoreKeywords: RetVal = OCallback.NGallery_GetMoreKeywords(RequestParam); break; case CallbackType.GetICTypes: RetVal = OCallback.GetICTypes(RequestParam); break; case CallbackType.GetCategoryScheme: RetVal = OCallback.GetCategoryScheme(RequestParam); break; case CallbackType.AdminAddNewLanguage: RetVal = OCallback.AdminAddNewLanguage(RequestParam); break; case CallbackType.AdminSDMXArtefactsGeneration: RetVal = OCallback.AdminSDMXArtefactsGeneration(RequestParam); break; case CallbackType.RegisterUser: RetVal = OCallback.RegisterUser(RequestParam); break; case CallbackType.LoginUser: RetVal = OCallback.LoginUser(RequestParam, false); break; case CallbackType.AdminGetAllLanguageList: RetVal = OCallback.AdminGetAllLanguageList(); break; case CallbackType.AdminDeleteLanguage: RetVal = OCallback.AdminDeleteLanguage(RequestParam); break; case CallbackType.GenerateAllPagesXML: RetVal = OCallback.GenerateAllPagesXML(); break; case CallbackType.AddRegistration: RetVal = OCallback.AddRegistration(RequestParam); break; case CallbackType.GetRegistrationsSummary: RetVal = OCallback.GetRegistrationsSummary(RequestParam); break; case CallbackType.GetRegistrationDetails: RetVal = OCallback.GetRegistrationDetails(RequestParam); break; case CallbackType.UpdateRegistration: RetVal = OCallback.UpdateRegistration(RequestParam); break; case CallbackType.DeleteRegistration: RetVal = OCallback.DeleteRegistration(RequestParam); break; case CallbackType.SendNotifications: RetVal = OCallback.SendNotifications(RequestParam); break; case CallbackType.GetLoggedInUserSubscriptions: RetVal = OCallback.GetLoggedInUserSubscriptions(RequestParam); break; case CallbackType.UpdateSubscription: RetVal = OCallback.UpdateSubscription(RequestParam); break; case CallbackType.DeleteSubscription: RetVal = OCallback.DeleteSubscription(RequestParam); break; case CallbackType.GetEmailIdOfLoggedInUser: RetVal = OCallback.GetEmailIdOfLoggedInUser(RequestParam); break; case CallbackType.BindDPSchemeAndDFD: RetVal = OCallback.BindDPSchemeAndDFD(RequestParam); break; case CallbackType.BindDataProviders: RetVal = OCallback.BindDataProviders(RequestParam); break; case CallbackType.GetUserDetails: RetVal = OCallback.GetUserDetails(RequestParam); break; case CallbackType.UpdateUserDetails: RetVal = OCallback.UpdateUserDetails(RequestParam); break; case CallbackType.ForgotPassword: RetVal = OCallback.ForgotPassword(RequestParam); break; case CallbackType.ValidateSDMXML: RetVal = OCallback.ValidateSDMXML(RequestParam); break; case CallbackType.ValidateDSD: RetVal = OCallback.ValidateDSD(RequestParam); break; case CallbackType.GetUnmatchlist: this.SetIsMapServerValueInSession(RequestParam7); this.CheckNCreateIsMapServerColumnInMDBDatabase(); RetVal = OCallback.GetUnmatchList(RequestParam, RequestParam2, RequestParam3, RequestParam4, RequestParam5, RequestParam6); break; case CallbackType.AdminMapFilesGeneration: RetVal = OCallback.AdminMapFilesGeneration(RequestParam); break; case CallbackType.AdminDBScriptGeneration: RetVal = OCallback.AdminDBScriptGeneration(RequestParam); break; case CallbackType.GetDataQueryRequestSOAP: RetVal = OCallback.GetDataQueryRequestSOAP(RequestParam); break; case CallbackType.GetDataQueryResponseSDMXML: RetVal = OCallback.GetDataQueryResponseSDMXML(RequestParam); break; case CallbackType.CompareUserDSDAgainstDevInfoDSD: RetVal = OCallback.CompareUserDSDAgainstDevInfoDSD(RequestParam); break; case CallbackType.CompareCodelists: RetVal = OCallback.CompareCodelists(RequestParam); break; case CallbackType.CompareUserDSD1AgainstUserDSD2: RetVal = OCallback.CompareUserDSD1AgainstUserDSD2(RequestParam); break; case CallbackType.InitiaizeMap: bool usingMapServer = false;//Convert.ToBoolean(isMapServer.Trim()); if (Session["IsMapServer"] != null) { usingMapServer = Convert.ToBoolean(Session["IsMapServer"]); } RetVal = OCallback.InitiaizeMap(RequestParam, RequestParam2, RequestParam3, RequestParam4, RequestParam5, usingMapServer.ToString()); break; case CallbackType.ZoomIn: RetVal = OCallback.ZoomIn(); break; case CallbackType.ZoomOut: RetVal = OCallback.ZoomOut(); break; case CallbackType.ZoomToRectangle: RetVal = OCallback.ZoomToRectangle(RequestParam, RequestParam2, RequestParam3, RequestParam4); break; case CallbackType.Pan: RetVal = OCallback.Pan(RequestParam, RequestParam2, RequestParam3, RequestParam4); break; case CallbackType.FullExtent: RetVal = OCallback.FullExtent(); break; case CallbackType.Label: RetVal = OCallback.Label(RequestParam); break; case CallbackType.Border: RetVal = OCallback.Border(RequestParam); break; case CallbackType.NorthSymbol: RetVal = OCallback.NorthSymbol(RequestParam); break; case CallbackType.Scale: RetVal = OCallback.Scale(RequestParam); break; case CallbackType.Resize: RetVal = OCallback.Resize(RequestParam, RequestParam2); break; case CallbackType.GetThemeInfo: RetVal = OCallback.GetThemeInfo(RequestParam); break; case CallbackType.ResetLegendColor: RetVal = OCallback.ResetLegendColor(RequestParam, Convert.ToInt32(RequestParam2), RequestParam3); break; case CallbackType.GetSeriesInfo: RetVal = OCallback.GetSeriesInfo(); break; case CallbackType.EditThemeInfo: RetVal = OCallback.EditThemeInfo(RequestParam, RequestParam2, RequestParam3, RequestParam4, RequestParam5, RequestParam6); break; case CallbackType.GetTitleInfo: RetVal = OCallback.GetTitleInfo(); break; case CallbackType.GetDisclaimerInfo: RetVal = OCallback.GetDisclaimerInfo(); break; case CallbackType.GetDataLabelInfo: RetVal = OCallback.GetDataLabelInfo(Convert.ToInt32(RequestParam)); break; case CallbackType.SetTitleInfo: RetVal = OCallback.SetTitleInfo(RequestParam); break; case CallbackType.SetDisclaimerInfo: RetVal = OCallback.SetDisclaimerInfo(RequestParam); break; case CallbackType.SetDataLabelInfo: RetVal = OCallback.SetDataLabelInfo(RequestParam, Convert.ToBoolean(RequestParam2), Convert.ToInt32(RequestParam3)); break; case CallbackType.SetLegendSeriesColor: RetVal = OCallback.SetLegendSeriesColor(RequestParam, RequestParam2, RequestParam3); break; case CallbackType.SetBorderStyle: RetVal = OCallback.SetBorderStyle(RequestParam, RequestParam2, RequestParam3, RequestParam4); break; case CallbackType.GetBorderStyle: RetVal = OCallback.GetBorderStyle(); break; case CallbackType.SetDataLabels: RetVal = OCallback.SetDataLabelsJSON(RequestParam); break; case CallbackType.GetDataLabels: RetVal = OCallback.GetDataLabelsJSON(); break; case CallbackType.RefreshImage: RetVal = OCallback.RefreshImage(); break; case CallbackType.GetMapImageURL: RetVal = OCallback.GetMapImageURL(); break; case CallbackType.AddTheme: RetVal = OCallback.AddTheme(RequestParam); break; case CallbackType.SetThemeVisiblity: RetVal = OCallback.SetThemeVisiblity(RequestParam, RequestParam2); break; case CallbackType.DeleteTheme: RetVal = OCallback.DeleteTheme(RequestParam); break; case CallbackType.UpdateTheme: RetVal = OCallback.UpdateTheme(RequestParam, RequestParam2, RequestParam3, RequestParam4); break; case CallbackType.UpdateThemeLegends: RetVal = OCallback.UpdateThemeLegends(RequestParam, RequestParam2, RequestParam3, RequestParam4); break; case CallbackType.GetLegendRangesByThemeChange: RetVal = OCallback.GetLegendRangesByThemeChange(RequestParam, RequestParam2); break; case CallbackType.UpdateDotDensityTheme: RetVal = OCallback.UpdateDotDensityTheme(RequestParam, RequestParam2); break; case CallbackType.GetUpdatedLegendRanges: RetVal = OCallback.GetUpdatedLegendRanges(RequestParam, Convert.ToInt32(RequestParam2), RequestParam3); break; case CallbackType.ChangeHatchPatern: RetVal = OCallback.ChangeHatchPatern(RequestParam, RequestParam2, RequestParam3); break; case CallbackType.UpdateLegendRange: RetVal = OCallback.UpdateLegendRange(RequestParam, RequestParam2); break; case CallbackType.Smooth: RetVal = OCallback.Smooth(RequestParam, RequestParam2, RequestParam3); break; case CallbackType.UpdateChartSettings: RetVal = OCallback.UpdateChartSettings(RequestParam, RequestParam2, RequestParam3); break; case CallbackType.UpdateChartLegendSettings: RetVal = OCallback.UpdateChartLegendSettings(RequestParam, RequestParam2, RequestParam3, RequestParam4); break; case CallbackType.SetDisputedBoundriesVisiblity: RetVal = OCallback.SetDisputedBoundriesVisiblity(RequestParam); break; case CallbackType.GetLayerTaggingInformation: RetVal = OCallback.GetTaggingInformation(); break; case CallbackType.GetAreaInformation: RetVal = OCallback.GetAreaInfo(RequestParam); break; case CallbackType.SetLegendInfo: RetVal = OCallback.SetLegendInfo(RequestParam, RequestParam2); break; case CallbackType.GetLegendInfo: RetVal = OCallback.GetLegendInfo(RequestParam); break; case CallbackType.Nudging: RetVal = OCallback.Nudging(RequestParam, RequestParam2); break; case CallbackType.GetKMZ: RetVal = OCallback.GetKMZ(); break; case CallbackType.InitiaizeGoogleMap: RetVal = OCallback.InitiaizeGoogleMap(RequestParam, RequestParam2, RequestParam3, RequestParam4); break; case CallbackType.GetFeatureLayerInfo: RetVal = OCallback.GetFeatureLayerInfo(); break; case CallbackType.GetBaseLayerInfo: RetVal = OCallback.GetBaseLayerInfo(); break; case CallbackType.SetFeatureLayerInfo: RetVal = OCallback.SetFeatureLayerInfo(RequestParam, RequestParam2); break; case CallbackType.SetBaseLayerInfo: RetVal = OCallback.SetBaseLayerInfo(RequestParam, RequestParam2); break; case CallbackType.UploadLegends: RetVal = OCallback.UploadLegends(RequestParam, RequestParam2); break; case CallbackType.SetDisputedBoundryVisible: RetVal = OCallback.SetDisputedBoundryVisible(RequestParam); break; case CallbackType.ShowDisputedBoundryDefault: RetVal = OCallback.ShowDisputedBoundryDefault(); break; case CallbackType.GetTimeperiodOfSeries: RetVal = OCallback.GetTimeperiodOfSeries(RequestParam, RequestParam2); break; case CallbackType.GetChartLegendOpacity: RetVal = OCallback.GetChartLegendOpacity(RequestParam, RequestParam2); break; case CallbackType.ResetAllTheme: RetVal = OCallback.ResetAllTheme(RequestParam, RequestParam2); break; case CallbackType.GetThemeCount: RetVal = OCallback.GetThemeCount(); break; case CallbackType.DeleteFile: RetVal = OCallback.DeleteFile(RequestParam); break; case CallbackType.GetTimePeriods: RetVal = OCallback.GetTimePeriods(RequestParam); break; case CallbackType.GetDataQueryResponseJSON: RetVal = OCallback.GetDataQueryResponseJSON(RequestParam); break; case CallbackType.GetDataQueryResponseXML: RetVal = OCallback.GetDataQueryResponseXML(RequestParam); break; case CallbackType.GenerateComparisonReport: RetVal = OCallback.GenerateComparisonReport(RequestParam); break; case CallbackType.AdminSDMXMLGeneration: RetVal = OCallback.AdminSDMXMLGeneration(RequestParam); break; case CallbackType.AdminSDMXMLRegistration: RetVal = OCallback.AdminSDMXMLRegistration(RequestParam); break; case CallbackType.GetDataQueryRequestHTTP: RetVal = OCallback.GetDataQueryRequestHTTP(RequestParam); break; case CallbackType.GetDataQueryRequestREST: RetVal = OCallback.GetDataQueryRequestREST(RequestParam); break; case CallbackType.AdminRegisterDatabaseForUploadedDSD: RetVal = OCallback.AdminRegisterDatabaseForUploadedDSD(RequestParam); break; case CallbackType.AdminMetadataGeneration: RetVal = OCallback.AdminMetadataGeneration(RequestParam); break; case CallbackType.GetMSDList: RetVal = OCallback.GetMSDList(RequestParam); break; case CallbackType.GetMSDAttributes: RetVal = OCallback.GetMSDAttributes(RequestParam); break; case CallbackType.AdminSaveDefaultIndcator: RetVal = OCallback.AdminSaveDefaultIndcator(RequestParam); break; case CallbackType.GetMFDList: RetVal = OCallback.GetMFDList(RequestParam); break; case CallbackType.GetDFDAndMFDList: RetVal = OCallback.GetDFDAndMFDList(RequestParam); break; case CallbackType.AdminGetAllTheUploadedDSDsTable: RetVal = OCallback.AdminGetAllTheUploadedDSDsTable(RequestParam); break; case CallbackType.AdminUpdateDatabaseForUploadedDSD: RetVal = OCallback.AdminUpdateDatabaseForUploadedDSD(RequestParam); break; case CallbackType.IsUserAdmin: if (OCallback.isUserAdmin(RequestParam)) RetVal = "true"; else RetVal = "false"; break; case CallbackType.AdminLoginUser: RetVal = OCallback.AdminLoginUser(RequestParam); break; case CallbackType.GetAllUsersGridHTML: RetVal = OCallback.GetAllUsersGridHTML(); break; case CallbackType.DeleteUser: RetVal = OCallback.DeleteUser(RequestParam); break; case CallbackType.DeletePresentation: RetVal = OCallback.deletePresentation(RequestParam, RequestParam2); break; case CallbackType.CheckIfUploadedDSD: RetVal = OCallback.CheckIfUploadedDSD(RequestParam); break; case CallbackType.StoreMappingInfo: RetVal = OCallback.storeMappingDetails(RequestParam, RequestParam2); break; case CallbackType.GettingMappingInfo: RetVal = OCallback.getMappingDetails(RequestParam, RequestParam2, RequestParam3, RequestParam4); break; case CallbackType.AdminGetAllTheUploadedDSDsList: RetVal = OCallback.AdminGetAllTheUploadedDSDsList(); break; case CallbackType.AdminGetAllTheUploadedMSDsTable: RetVal = OCallback.AdminGetAllTheUploadedMSDsTable(); break; case CallbackType.AdminMetadataRegistration: RetVal = OCallback.AdminMetadataRegistration(RequestParam); break; case CallbackType.AdminCheckIfDSDAlreadyUploaded: RetVal = OCallback.AdminCheckIfDSDAlreadyUploaded(RequestParam); break; case CallbackType.AdminGetAllTheDatabasesTable: RetVal = OCallback.AdminGetAllTheDatabasesTable(RequestParam); break; case CallbackType.AdminGetAllTheDatabaseList: RetVal = OCallback.AdminGetAllTheDatabaseList(); break; case CallbackType.DataProviderGetTPDivInnerHTML: RetVal = OCallback.DataProviderGetTPDivInnerHTML(RequestParam); break; case CallbackType.DataProviderGetAreaDivInnerHTML: RetVal = OCallback.DataProviderGetAreaDivInnerHTML(RequestParam); break; case CallbackType.DataProviderGetIndicatorDivInnerHTML: RetVal = OCallback.DataProviderGetIndicatorDivInnerHTML(RequestParam); break; case CallbackType.DataProviderGetDatabaseDivInnerHTML: RetVal = OCallback.DataProviderGetDatabaseDivInnerHTML(RequestParam); break; case CallbackType.DataProviderGetDSDDivInnerHTML: RetVal = OCallback.DataProviderGetDSDDivInnerHTML(RequestParam); break; case CallbackType.DataProviderGenerateSDMXML: RetVal = OCallback.DataProviderGenerateSDMXML(RequestParam); break; case CallbackType.DataProviderRegisterSDMXML: RetVal = OCallback.DataProviderRegisterSDMXML(RequestParam); break; case CallbackType.DataProviderGenerateMetadata: RetVal = OCallback.DataProviderGenerateMetadata(RequestParam); break; case CallbackType.DataProviderRegisterMetadata: RetVal = OCallback.DataProviderRegisterMetadata(RequestParam); break; case CallbackType.ValidateMetadataReport: RetVal = OCallback.ValidateMetadataReport(RequestParam); break; case CallbackType.GetDataForGenerateApiCall: RetVal = OCallback.GetDataForGenerateApiCall(RequestParam); break; case CallbackType.GettingMatchingAreas: this.SetIsMapServerValueInSession(RequestParam7); RetVal = OCallback.getMatchingArea(RequestParam, RequestParam2, RequestParam3, RequestParam4); break; case CallbackType.GetDataQuerySources: RetVal = OCallback.GetDataQuerySources(RequestParam); break; case CallbackType.DataProviderGetSourceDivInnerHTML: RetVal = OCallback.DataProviderGetSourceDivInnerHTML(RequestParam); break; case CallbackType.GetJsonM49CountriesFile: RetVal = OCallback.GetJsonM49CountriesFile(); break; case CallbackType.AdminSaveAdaptation: RetVal = OCallback.AdminSaveAdaptation(RequestParam); break; case CallbackType.GetJsonAdaptations: RetVal = OCallback.GetJsonAdaptationFile(); break; case CallbackType.BindHelpText: RetVal = OCallback.BindHelpText(RequestParam); break; case CallbackType.GetCatalogCacheResults: RetVal = OCallback.GetCatalogCacheResults(RequestParam); break; case CallbackType.BindCodelistMappingLists: RetVal = OCallback.BindCodelistMappingLists(RequestParam); break; case CallbackType.GenerateCodelistMappingXml: RetVal = OCallback.GenerateCodelistMappingXml(RequestParam); break; case CallbackType.CheckIfAdminLoggedIn: RetVal = OCallback.CheckIfAdminLoggedIn(RequestParam); break; case CallbackType.IsAdminRegister: RetVal = OCallback.IsAdminRegistered(); break; case CallbackType.GetAllUsersHTMLForAdmin: RetVal = OCallback.GetAllUsersHTMLForAdmin(); break; case CallbackType.UpdateUsers: RetVal = OCallback.UpdateUsers(RequestParam); break; case CallbackType.AdminGetLanguageGridHTML: RetVal = OCallback.AdminGetLanguageGridHTML(RequestParam); break; case CallbackType.AdminSaveLanguageChanges: RetVal = OCallback.AdminSaveLanguageChanges(RequestParam); break; case CallbackType.AdminLogout: RetVal = OCallback.AdminLogout(); break; case CallbackType.GetIndicativeIdAgencyIdVersionValues: RetVal = OCallback.GetIndicativeIdAgencyIdVersionValues(RequestParam); break; case CallbackType.AdminDeleteCatalog: RetVal = OCallback.AdminDeleteCatalog(RequestParam); break; case CallbackType.AdminUpdateAdaptation: RetVal = OCallback.AdminUpdateAdaptation(RequestParam); break; case CallbackType.GetDisclaimerText: RetVal = OCallback.GetDisclaimerText(); break; case CallbackType.SetChartTimePeriodsVisiblity: RetVal = OCallback.SetChartTimePeriodsVisiblity(RequestParam, RequestParam2); break; case CallbackType.GetChartTimePeriods: RetVal = OCallback.GetChartTimePeriods(RequestParam); break; case CallbackType.GetSeriesThemeName: RetVal = OCallback.GetSeriesThemeName(RequestParam); break; case CallbackType.RequestAdminForDataProviderRights: RetVal = OCallback.RequestAdminForDataProviderRights(RequestParam); break; case CallbackType.AdminGetAdaptationVersions: RetVal = OCallback.AdminGetAdaptationVersions(); break; //case CallbackType.ViewContent: // RetVal = OCallback.ViewContent(RequestParam); // break; case CallbackType.AccountActivation: RetVal = OCallback.ActiveAccount(RequestParam); break; case CallbackType.ChangePassword: RetVal = OCallback.ChangePassword(RequestParam); break; case CallbackType.GenerateMetadataMappingXml: RetVal = OCallback.GenerateMetadataMappingXml(RequestParam); break; case CallbackType.BindMetadataMappingLists: RetVal = OCallback.BindMetadataMappingLists(RequestParam); break; case CallbackType.BindIUSMappingList: RetVal = OCallback.BindIUSMappingList(RequestParam); break; case CallbackType.BindIndicatorCodelist: RetVal = OCallback.BindIndicatorCodelist(RequestParam); break; case CallbackType.BindUnitCodelist: RetVal = OCallback.BindUnitCodelist(RequestParam); break; case CallbackType.BindAreaCodelist: RetVal = OCallback.BindAreaCodelist(RequestParam); break; //case CallbackType.BindAgeCodelist: // RetVal = OCallback.BindAgeCodelist(RequestParam); // break; //case CallbackType.BindSexCodelist: // RetVal = OCallback.BindSexCodelist(RequestParam); // break; //case CallbackType.BindLocationCodelist: // RetVal = OCallback.BindLocationCodelist(RequestParam); // break; case CallbackType.GetLangFromDB: RetVal = Global.GetLangFromDB(); break; //Added to check gallery existence case CallbackType.GalleryExistence: RetVal = OCallback.GalleryExistence(RequestParam).ToString(); break; case CallbackType.GenerateIUSMappingXml: RetVal = OCallback.GenerateIUSMappingXml(RequestParam); break; case CallbackType.BindRegistrations: RetVal = OCallback.BindRegistrations(RequestParam); break; case CallbackType.GetDefaultDb: RetVal = OCallback.GetDefaultDb(); break; case CallbackType.SessionReset: RetVal = OCallback.SessionReset().ToString(); break; case CallbackType.GetSearchedKeywords: RetVal = OCallback.GetSearchedKeywords(RequestParam).ToString(); break; case CallbackType.GetAllAdaptations: RetVal = OCallback.GetAllAdaptations(); break; case CallbackType.GetAllUsers: RetVal = OCallback.GetAllUsers(RequestParam); break; case CallbackType.UpdatePassword: RetVal = OCallback.UpdatePassword(RequestParam); break; case CallbackType.GetCodelistsPopupInnerHTML: RetVal = OCallback.GetCodelistsPopupInnerHTML(RequestParam); break; case CallbackType.GenerateCSVFile: RetVal = OCallback.GenerateCsvFile(); break; case CallbackType.RegenrateActivationLink: RetVal = OCallback.RegenerateActivationLink(RequestParam); break; case CallbackType.RegenrateForgotPasswordLink: RetVal = OCallback.RegenrateForgotPasswordLink(RequestParam); break; case CallbackType.CheckGlobalAdaptation: RetVal = OCallback.CheckGlobalAdaptation(); break; case CallbackType.CheckIsDI7ORGAdaptation: RetVal = OCallback.CheckIsDI7ORGAdaptation(); break; case CallbackType.GetGlobalAdaptationURL: RetVal = OCallback.GetGlobalAdaptationURL(); break; case CallbackType.GetCurentAdaptationsUser: RetVal = OCallback.GetCurentAdaptationsUser(RequestParam); break; case CallbackType.SetUserAsAdmin: RetVal = OCallback.SetUserAsAdmin(RequestParam); break; case CallbackType.CheckIfMasterAccount: RetVal = Global.CheckIfMasterAccount(RequestParam); break; case CallbackType.CreateAnEntryIntoGlobalCatalog: RetVal = OCallback.EntryIntoGlobalCatalog(RequestParam); break; case CallbackType.ImportLanguageXML: RetVal = OCallback.ExportLanguageXML(RequestParam); break; case CallbackType.GenerateLogsForOptimiseDB: RetVal = OCallback.GenerateLogsForOptimiseDB(RequestParam); break; case CallbackType.GetDataDescription: RetVal = OCallback.GetDataDescription(RequestParam); break; case CallbackType.EditCMSContent: RetVal = OCallback.EditCMSContent(RequestParam); break; case CallbackType.AddCMSContent: RetVal = OCallback.AddCMSContent(RequestParam); break; case CallbackType.AddCMSContents: RetVal = OCallback.AddCMSContents(RequestParam); break; case CallbackType.GenerateSiteMap: RetVal = OCallback.GenerateSiteMap(RequestParam); break; case CallbackType.GetMapServerURL: RetVal = Global.GetMapServerURL(RequestParam); break; case CallbackType.EditArticle: RetVal = OCallback.EditArticle(RequestParam); break; case CallbackType.GetArticlesByMenuCategoryAndTags: RetVal = OCallback.GetArticlesByMenuCategoryAndTags(RequestParam); break; case CallbackType.GetTagsListByMenuCategory: RetVal = OCallback.GetTagsListByMenuCategory(RequestParam); break; case CallbackType.DeleteArticlebyContentId: RetVal = OCallback.DeleteArticlebyContentId(RequestParam); break; case CallbackType.ShowHideArticlebyContentId: RetVal = OCallback.ShowHideArticlebyContentId(RequestParam); break; case CallbackType.GetArticlesMenuCatListJson: RetVal = OCallback.GetArticlesMenucategoriesListJson(RequestParam); break; case CallbackType.DeleteMenuCategory: RetVal = OCallback.DeleteMenuCategory(RequestParam); break; case CallbackType.AddMenuCategory: RetVal = OCallback.AddMenuCategory(RequestParam); break; case CallbackType.EditMenuCategory: RetVal = OCallback.EditMenuCategory(RequestParam); break; case CallbackType.MoveUpNDownMenuCat: RetVal = OCallback.MoveUpNDownMenuCat(RequestParam); break; case CallbackType.InstallPatch: RetVal = OCallback.InstallPatch(); break; case CallbackType.UpdateLanguageFiles: RetVal = OCallback.UpdateLanguageFiles(); break; case CallbackType.UpdateAppSettingFile: RetVal = OCallback.UpdateAppSettingFile(); break; case CallbackType.GetArticleByContentId: RetVal = OCallback.GetArticleByContentIdForSharing(RequestParam); break; case CallbackType.ChangeDatabasePassword: RetVal = OCallback.ChangeDatabasePassword(RequestParam); break; case CallbackType.BindMASchemeAndDFD: RetVal = OCallback.BindMASchemeAndDFD(RequestParam); break; case CallbackType.BindProvisionAgreements: RetVal = OCallback.BindProvisionAgreements(RequestParam); break; case CallbackType.BindDataAndMetadataRegistration: RetVal = OCallback.BindDataAndMetadataRegistration(RequestParam); break; case CallbackType.ExportMappingExcel: RetVal = OCallback.ExportMappingExcel(RequestParam); break; case CallbackType.GetHeaderDetail: RetVal = OCallback.GetHeaderDetail(RequestParam); break; case CallbackType.SaveHeaderDetails: RetVal = OCallback.SaveHeaderDetails(RequestParam); break; case CallbackType.ImportMappingExcel: RetVal = OCallback.ImportMappingExcel(RequestParam); break; case CallbackType.SaveSDMXDataSelection: RetVal = OCallback.SaveSDMXDataSelection(RequestParam); break; case CallbackType.SaveSDMXMetadataSelection: RetVal = OCallback.SaveSDMXMetadataSelection(RequestParam); break; case CallbackType.BindAreaLevels: RetVal = OCallback.BindAreaLevels(RequestParam); break; default: break; } } } catch (Exception ex) { Global.CreateExceptionString(ex, null); } finally { Response.Write(RetVal); } }
/// <summary> /// Import the IUS mapping data /// </summary> /// <param name="excel">Excel Object</param> /// <param name="paramValue">Parameter value</param> private string ImportIUSMappingData(DIExcel excel, string paramValue) { string RetVal = "false"; //Read the IndicatorSheet StringBuilder ParamString = new StringBuilder(); string ResultString = string.Empty; string OutResult = string.Empty; bool Mapped = false; bool IsRowMapped = false; try { ParamString.Append(paramValue); this.objCallBack = new Callback(); int StartRowIndex = 4; int StartColIndex = 0; int SheetIndex = 0; int RowCount = excel.GetUsedRange(0).RowCount; if (RowCount > StartRowIndex) { //Loop through each row and import the records for (int RowIndex = StartRowIndex; RowIndex <= RowCount; RowIndex++) { //Import only those records whose mapping has been done. if (excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 3, RowIndex, StartColIndex + 3) == "YES") { //Make sure that all the values of dropdown are selected if (!string.IsNullOrEmpty(excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 17, RowIndex, StartColIndex + 17)) && !string.IsNullOrEmpty(excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 18, RowIndex, StartColIndex + 18)) && !string.IsNullOrEmpty(excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 19, RowIndex, StartColIndex + 19)) && !string.IsNullOrEmpty(excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 20, RowIndex, StartColIndex + 20)) && !string.IsNullOrEmpty(excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 21, RowIndex, StartColIndex + 21)) && !string.IsNullOrEmpty(excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 22, RowIndex, StartColIndex + 22)) && !string.IsNullOrEmpty(excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 23, RowIndex, StartColIndex + 23)) && !string.IsNullOrEmpty(excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 24, RowIndex, StartColIndex + 24)) && !string.IsNullOrEmpty(excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 25, RowIndex, StartColIndex + 25))) { //Make the parameter string ParamString.Append(excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 13, RowIndex, StartColIndex + 13) + Constants.Delimiters.IndGUIDSeoarator + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 14, RowIndex, StartColIndex + 14) + Constants.Delimiters.IndGUIDSeoarator + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 15, RowIndex, StartColIndex + 15) + Constants.Delimiters.ColumnDelimiter + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 17, RowIndex, StartColIndex + 17) + Constants.Delimiters.ColumnDelimiter + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 18, RowIndex, StartColIndex + 18) + Constants.Delimiters.ColumnDelimiter + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 19, RowIndex, StartColIndex + 19) + Constants.Delimiters.ColumnDelimiter + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 20, RowIndex, StartColIndex + 20) + Constants.Delimiters.ColumnDelimiter + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 21, RowIndex, StartColIndex + 21) + Constants.Delimiters.ColumnDelimiter + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 22, RowIndex, StartColIndex + 22) + Constants.Delimiters.ColumnDelimiter + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 23, RowIndex, StartColIndex + 23) + Constants.Delimiters.ColumnDelimiter + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 24, RowIndex, StartColIndex + 24) + Constants.Delimiters.ColumnDelimiter + excel.GetCellValue(SheetIndex, RowIndex, StartColIndex + 25, RowIndex, StartColIndex + 25) + Constants.Delimiters.RowDelimiter); Mapped = true; } IsRowMapped = true; } } //Make the XML Files ResultString = ParamString.ToString(); if (ResultString.Contains(Constants.Delimiters.RowDelimiter)) { ResultString = ResultString.Substring(0, ResultString.Length - 9); } OutResult = objCallBack.GenerateIUSMappingXml(ResultString); Global.GetLanguageKeyValue(""); string[] OutResultArray = OutResult.Split(new string[] { Constants.Delimiters.ParamDelimiter }, StringSplitOptions.None); if (OutResultArray[0].ToString() == "true") { RetVal = "true"; } else { RetVal = "false"; if (IsRowMapped == false) { RetVal += "false[**]No row mapped. Please map at least one row."; } else if (Mapped == false) { RetVal += "false[**]Invalid Mapping"; } } } } catch (Exception Ex) { Global.CreateExceptionString(Ex, null); RetVal = "false"; } return RetVal; }