示例#1
0
        //
        // GET: /BPMSHome/
        public ActionResult Index()
        {
            DomainUtility.AdminHomeUr = base.ActivePage.FullUrl;
            ViewBag.DnnMenu           = ViewUtility.GetMenu(this.ActivePage, base.PortalSettings.PortalId);
            ViewBag.AdminUrl          = UrlUtility.GetApiBase(base.Request, base.PortalSettings.DefaultPortalAlias, "BpmsAdminApi").TrimEnd('/') + "/";
            ViewBag.EngineUrl         = UrlUtility.GetApiBase(base.Request, base.PortalSettings.DefaultPortalAlias, "BpmsApi").TrimEnd('/') + "/";
            ViewBag.rootPage          = this.Request.RawUrl.Substring(0, this.Request.RawUrl.IndexOf("/" + this.ActivePage.TabName) + this.ActivePage.TabName.Length + 2);
            ViewBag.LoginUrl          = ViewUtility.LoginUrl();
            ViewBag.SignOutUrl        = DotNetNuke.Common.Globals.NavigateURL("LogOff");
            ViewBag.UserFullName      = base.User?.DisplayName;

            return(View());
        }
 //It retrieves open threads which are in person kartable or step.
 public ActionResult Index()
 {
     ViewBag.DnnMenu                 = ViewUtility.GetMenu(this.ActivePage, base.PortalSettings.PortalId);
     ViewBag.CartableUrl             = UrlUtility.GetApiBase(base.Request, base.PortalSettings.DefaultPortalAlias, "BpmsCartableApi").TrimEnd('/') + "/";
     ViewBag.EngineUrl               = UrlUtility.GetApiBase(base.Request, base.PortalSettings.DefaultPortalAlias, "BpmsApi").TrimEnd('/') + "/";
     ViewBag.rootPage                = this.Request.RawUrl.Substring(0, this.Request.RawUrl.IndexOf("/" + this.ActivePage.TabName) + this.ActivePage.TabName.Length + 2);
     ViewBag.LoginUrl                = ViewUtility.LoginUrl();
     ViewBag.SignOutUrl              = DotNetNuke.Common.Globals.NavigateURL("LogOff");
     ViewBag.UserFullName            = base.User?.DisplayName;
     ViewBag.ShowUserPanelWithNoSkin = base.ShowUserPanelWithNoSkin;
     ViewBag.LoadUserPanelJquery     = base.LoadUserPanelJquery;
     ViewBag.LoadUserPanelBootstrap  = base.LoadUserPanelBootstrap;
     base.AddUserIfNotExist();
     DomainUtility.CartableHomeUr = base.ActivePage.FullUrl;
     return(View());
 }
示例#3
0
        public ActionResult Index()
        {
            SingleActionSettingDTO setting = new SingleActionSettingDTO(base.PortalSettings.PortalId, ModuleContext.Configuration.ModuleSettings);

            DomainUtility.SingleActionHomeUr = base.ActivePage.FullUrl;

            ViewBag.LoadUserPanelJquery    = setting.LoadjQuery;
            ViewBag.LoadUserPanelBootstrap = setting.LoadBootstrap;

            ViewBag.SingleActionUrl = UrlUtility.GetApiBase(base.Request, base.PortalSettings.DefaultPortalAlias, "BpmsSingleActionApi").TrimEnd('/') + $"/{base.ModuleContext.TabModuleId}/";
            ViewBag.rootPage        = this.Request.RawUrl.Substring(0, this.Request.RawUrl.IndexOf("/" + this.ActivePage.TabName) + this.ActivePage.TabName.Length + 1);

            if ((!setting.ProcessID.HasValue && !setting.ApplicationPageID.HasValue))
            {
                ViewBag.Message = "Setting is not complete";
                return(View());
            }
            return(View());
        }