コード例 #1
0
ファイル: approval.aspx.cs プロジェクト: jaytem/minGit
    private void ApproveContent()
    {
        long lId;
            bool ret;
            try
            {
                _EkContent = _CommonApi.EkContentRef;
                lId = System.Convert.ToInt64(Request.QueryString["id"]);
                ret = System.Convert.ToBoolean(_EkContent.Approvev2_0(lId));

                if (Request.QueryString["page"] == "workarea" || Request.QueryString["page"] == "tree")
                {
                    //' redertrect to the folder page.
                    //Response.Redirect("approval.aspx?action=viewApprovalList&fldid=" & Request.QueryString("fldid"), False)
                    // redirect to workarea
                    Response.Write("<script type=\"text/javascript\">" + "var rightFrame = top.document.getElementById(\'ek_main\');" + "var rightFrameUrl = \'approval.aspx?action=viewApprovalList\';" + ("var appPath  = \'" + _CommonApi.AppPath + "\';") + "rightFrame.src = appPath + rightFrameUrl;" + "</script>");
                }
                else
                {
                    Response.Write("<script language=\"Javascript\">" + "top.opener.location.reload(true);" + "top.close();" + "</script>");

                }
            }
            catch (Exception ex)
            {
                Utilities.ShowError(ex.Message);
            }
    }