Esempio n. 1
0
        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));
        }
Esempio n. 2
0
 private static String GetRedirectMessage(PXExeededReason reason)
 {
     return("Refresh|" + GetLoginUrl(reason) + "|");
 }
Esempio n. 3
0
 public PXLicenseExceededException(PXExeededReason reason)
     : base(GetRedirectMessage(reason))
 {
     Url   = GetLoginUrl(reason);
     Title = PXMessages.LocalizeFormatNoPrefix(ActionsMessages.LogoutReason, reason.ToString());
 }
Esempio n. 4
0
		private static String GetRedirectMessage(PXExeededReason reason)
		{
			return "Refresh|" + GetLoginUrl(reason) + "|";
		}
Esempio n. 5
0
		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);
		}
Esempio n. 6
0
		public PXLicenseExceededException(PXExeededReason reason)
			: base(GetRedirectMessage(reason))
		{
			Url = GetLoginUrl(reason);
			Title = PXMessages.LocalizeFormatNoPrefix(ActionsMessages.LogoutReason, reason.ToString());
		}