Beispiel #1
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!AspxHelper.IsAuthenticated)
        {
            FormsAuthentication.RedirectToLoginPage();
        }

        string          appName         = this.Request.QueryString["app"];
        FormApplication formApplication = null;
        BPMConnection   cn = new BPMConnection();

        try
        {
            cn.WebOpen(this.Page);
            formApplication = FormApplication.Load(cn, appName);
        }
        finally
        {
            cn.Close();
        }

        string formFile = formApplication.Form;

        if (formFile.IndexOf('?') != -1)
        {
            this.Server.Transfer(this.ResolveClientUrl("../Forms/") + formFile + "&md=App&" + this.Request.QueryString.ToString(), false);
        }
        else
        {
            this.Server.Transfer(this.ResolveClientUrl("../Forms/") + formFile + "?md=App&" + this.Request.QueryString.ToString(), false);
        }

        this.Response.End();
    }
Beispiel #2
0
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!YZAuthHelper.IsAuthenticated)
        {
            FormsAuthentication.RedirectToLoginPage();
        }

        string          appName         = this.Request.QueryString["app"];
        FormApplication formApplication = null;

        using (BPMConnection cn = new BPMConnection())
        {
            cn.WebOpen();
            formApplication = FormApplication.Load(cn, appName);
        }

        string       formFile   = formApplication.Form;
        YZUrlBuilder urlBuilder = YZUtility.GetFormRedirectUrl(this.Page, formFile);

        urlBuilder.QueryString["md"] = "App";
        this.Response.Redirect(urlBuilder.ToString(), true);
    }