Ejemplo n.º 1
0
    public string GetGlobalAdaptationURL()
    {
        string GlobalMasterWebUrl = string.Empty;
        string RetVal = string.Empty;

        try
        {
            DIWorldwide.Catalog catalog = new DIWorldwide.Catalog();
            catalog.Url = ConfigurationManager.AppSettings[Constants.WebConfigKey.DiWorldWide4] + Constants.WSQueryStrings.CatalogWebService;
            GlobalMasterWebUrl = catalog.GetGlobalMasterWebUrl();
            RetVal = GlobalMasterWebUrl + "/libraries/aspx/";
        }

        catch (Exception ex)
        {
            Global.CreateExceptionString(ex, null);
        }

        return RetVal;
    }
Ejemplo n.º 2
0
    private void SetMasterSiteUrl()
    {
        string GlobalMasterWebUrl = string.Empty;
        try
        {
            DIWorldwide.Catalog catalog = new DIWorldwide.Catalog();
            catalog.Url = ConfigurationManager.AppSettings[Constants.WebConfigKey.DiWorldWide4] + Constants.WSQueryStrings.CatalogWebService;
            GlobalMasterWebUrl = catalog.GetGlobalMasterWebUrl();
            mastersiteurl.HRef = GlobalMasterWebUrl;

            //aGoto.HRef = GlobalMasterWebUrl;
            //aGlobalNews.HRef = GlobalMasterWebUrl + "/articles/news";
            //aGlobalInnovations.HRef = GlobalMasterWebUrl + "/articles/Innovations";
            //aGlobalCatalog.HRef = GlobalMasterWebUrl + "/libraries/aspx/Catalog.aspx";

        }
        catch (Exception ex)
        {
            Global.CreateExceptionString(ex, null);
        }
    }
Ejemplo n.º 3
0
    public string CheckIsDI7ORGAdaptation()
    {
        string RetVal = string.Empty;

        try
        {
            if (Global.CheckIsDI7ORGAdaptation())
            {
                RetVal = "false";
            }
            else
            {
                DIWorldwide.Catalog CatalogService = new DIWorldwide.Catalog();
                CatalogService.Url = ConfigurationManager.AppSettings[Constants.WebConfigKey.DiWorldWide4] + Constants.WSQueryStrings.CatalogWebService;
                RetVal = CatalogService.GetGlobalMasterWebUrl() + "/libraries/aspx/Catalog.aspx";
            }
        }
        catch (Exception ex)
        {
            Global.CreateExceptionString(ex, null);
        }

        return RetVal;
    }