Esempio n. 1
0
        public static void EditTask(ISiteSetting siteSetting, Sobiens.Connectors.Entities.Workflows.Task task)
        {
            string          url             = task.ListUrl + "/DispForm.aspx?ID=" + task.ID + "&IsDlg=1";
            BrowserExplorer browserExplorer = new BrowserExplorer();

            browserExplorer.Initialize(siteSetting, url);
            if (browserExplorer.ShowDialog(null, Languages.Translate("Edit Task"), 600, 800, false, false) == true)
            {
                //this.RefreshControls(true);
            }
        }
Esempio n. 2
0
        public static void OpenWorkflowDialog(ISiteSetting siteSetting, Folder list, IItem item)
        {
            SPList spList = (SPList)list;
            string url    = spList.WebUrl + "/_layouts/Workflow.aspx?IsDlg=1&ID=" + item.GetID() + "&List=" + spList.ID.ToString();
            string source = HttpUtility.UrlEncode(url + "&SBSBrowserAction=Close");

            url += "&Source=" + source;
            BrowserExplorer browserExplorer = new BrowserExplorer();

            browserExplorer.Initialize(siteSetting, url);
            if (browserExplorer.ShowDialog(null, Languages.Translate("Workflows"), 600, 800, false, false) == true)
            {
            }

            //http://demo.sobiens.com/Sobiens.Connectors/_layouts/Workflow.aspx?IsDlg=1&ID=27&List={71F45CA4-389A-43C9-B600-4832AC2FA425}
            //ItemWorkflowForm itemWorkflowForm = new ItemWorkflowForm();
            //itemWorkflowForm.Initialize(siteSetting, item);
            //if (itemWorkflowForm.ShowDialog(null, "Workflow") == true)
            //{
            //}
        }