예제 #1
0
        private Folder GetParentFolder(Folder folder, ref bool parentFound)
        {
            Folder parentFolder = null;

            string storeID = folder.StoreID.ToString();
            object parent  = folder.Parent;

            if (parent is SessionClass)
            {
                InfoStore iis = (InfoStore)session.GetInfoStore(storeID);
                parentFolder = (Folder)iis.RootFolder;
                parentFound  = true;
            }
            else if (parent is Folders)
            {
                parentFolder = (Folder)((Folders)parent).Parent;
                parentFound  = true;
            }
            else if (parent is InfoStore)
            {
                parentFolder = (Folder)((InfoStore)parent).RootFolder;
                parentFound  = true;
            }
            else
            {
                parentFolder = folder;
                parentFound  = true;
            }

            return(parentFolder);
        }
예제 #2
0
 public UpgradeModuleApi()
 {
     Get["/upgrade"] = parameters =>
     {
         var info = InfoStore?.Get();
         return(Negotiate.WithModel(info));
     };
 }
예제 #3
0
        protected void btnSubmit_Click(object sender, System.EventArgs e)
        {
            /*
             * Log onto BusinessObjects Enterprise.
             */
            EnterpriseSession boEnterpriseSession = (EnterpriseSession)Session["EnterpriseSession"];

            if (boEnterpriseSession == null)
            {
                try {
                    boEnterpriseSession = (new SessionMgr()).Logon(txtUserName.Text, txtPassword.Text, txtCMSName.Text, lstAuthType.SelectedItem.Value);
                } catch (Exception ex) {
                    Session["ErrorMessage"] = "Error encountered logging onto BusinessObjects Enterprise: "
                                              + ex.Message;
                    Response.Redirect("ErrorPage.aspx");
                }
            }

            // Store EnterpriseSession object in HTTP Session, to keep the EnterpriseSession alive.
            Session["EnterpriseSession"] = boEnterpriseSession;


            /*
             * Retrieve Web Intelligence document SI_ID and redirect to the viewer page.
             */

            InfoStore boInfoStore = new InfoStore(boEnterpriseSession.GetService("InfoStore"));

            InfoObjects boInfoObjects = boInfoStore.Query("Select SI_ID From CI_INFOOBJECTS Where SI_KIND='Webi' And SI_NAME='" + txtWebiName.Text + "'");

            if (boInfoObjects.Count == 0)
            {
                Session["ErrorMessage"] = "Web Intelligence Report '" + txtWebiName.Text + "' not found.";
                Response.Redirect("ErrorPage.aspx");
            }

            /*
             * Save Web Intelligence SI_ID in HTTP Session and redirect to the viewer page.
             */

            Session["WebiID"] = boInfoObjects[1].ID;

            Response.Redirect("ViewWebiXLS.ashx");
        }
예제 #4
0
 private static void Update(CSharpBoxClass cSharpBox)
 {
     InfoStore.Add("UnityEngine Time : " + Time.time);
 }
 public StatusController(InfoStore infoStore, UserManager <User> userManager)
 {
     _infoStore   = infoStore;
     _userManager = userManager;
 }