Пример #1
0
        private void ExecuteOpenFormControllerOperation()
        {
            IWfProcess process = WfClientContext.Current.OriginalActivity.Process;
            OpenFormControllerOperation operation = new OpenFormControllerOperation();

            string requestTicketString = HttpContext.Current.Request.QueryString.GetValue("requestTicket", string.Empty);

            if (requestTicketString.IsNotEmpty())
            {
                RelativeTicket requestTicket = RelativeTicket.DecryptFromString(requestTicketString);

                requestTicket.CheckIsValid();

                operation.IsRelativeForm = true;
            }

            operation.Process           = process;
            operation.NavigationCommand = CollectNavigationCommand(this.GetType());
            operation.SceneInfo         = CollectSceneInfo(this.GetType());

            OnInitOperation(operation);

            PerformanceMonitorHelper.GetDefaultMonitor().WriteExecutionDuration("DoOpenFormControllerOperation",
                                                                                () => operation.DoOperation());
        }
Пример #2
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["requestTicket"] != null)
            {
                RelativeTicket ticket = RelativeTicket.DecryptFromString((string)Request.QueryString["requestTicket"]);

                ticket.CheckIsValid();
            }
        }
Пример #3
0
        protected void Page_Load(object sender, EventArgs e)
        {
            if (Request.QueryString["requestTicket"] != null)
            {
                RelativeTicket ticket = RelativeTicket.DecryptFromString((string)Request.QueryString["requestTicket"]);

                ticket.CheckUriReferer();

                string redir = RelativeTicket.GetRequestTicketUrl(ticket.TargetUri, string.Empty);

                Response.Redirect(redir);
            }
        }
Пример #4
0
        protected void ProcessRequestTicket(string requestTicket)
        {
            RelativeTicket ticket = RelativeTicket.DecryptFromString(requestTicket);

            ticket.CheckUriReferer();

            if (ticket.TargetUri.IsNotEmpty())
            {
                string redir = RelativeTicket.GetRequestTicketUrl(ticket.TargetUri, string.Empty);

                HttpContext.Current.Response.Redirect(redir);
            }
        }
Пример #5
0
        protected override void OnPreRender(EventArgs e)
        {
            popupLink.HRef = RelativeTicket.GetRequestTicketUrl("bridge.aspx", "popupForm.aspx?resourceID=abcd");

            base.OnPreRender(e);
        }