private static String GetLoginUrl(PXExeededReason reason) { String result = String.Concat(PX.Export.Authentication.FormsAuthenticationModule.LoginUrl, "?returnUrl=", System.Web.VirtualPathUtility.ToAbsolute("~/" + PX.Export.Authentication.FormsAuthenticationModule.DefaultUrl), "&licenseexceeded=" , reason.ToString()); if (System.Web.HttpContext.Current == null) { return(result); } return(PXSessionStateStore.GetSessionUrl(System.Web.HttpContext.Current, result)); }
private static String GetRedirectMessage(PXExeededReason reason) { return("Refresh|" + GetLoginUrl(reason) + "|"); }
public PXLicenseExceededException(PXExeededReason reason) : base(GetRedirectMessage(reason)) { Url = GetLoginUrl(reason); Title = PXMessages.LocalizeFormatNoPrefix(ActionsMessages.LogoutReason, reason.ToString()); }
private static String GetRedirectMessage(PXExeededReason reason) { return "Refresh|" + GetLoginUrl(reason) + "|"; }
private static String GetLoginUrl(PXExeededReason reason) { String result = String.Concat(PX.Export.Authentication.FormsAuthenticationModule.LoginUrl, "?returnUrl=", System.Web.VirtualPathUtility.ToAbsolute("~/" + PX.Export.Authentication.FormsAuthenticationModule.DefaultUrl), "&licenseexceeded=" ,reason.ToString()); if (System.Web.HttpContext.Current == null) return result; return PXSessionStateStore.GetSessionUrl(System.Web.HttpContext.Current, result); }