Esempio n. 1
0
    private void Process_Edit()
    {
        string strContent = (string)ctlEditor.Content;
        if (m_iBoardID > 0)
            strContent = this.m_refContentApi.ReplaceWordsForBoardPosts(strContent, m_iBoardID);
        m_reftask = m_reftask.GetTaskByID(m_iID);
        if (this.bIsTopic == true)
        {
            m_reftask.State = EkEnumeration.TaskState.Completed.ToString();
        }
        else
        {
            m_reftask.State = Context.Request.Form[drp_state.UniqueID];
        }
        m_reftask.Description = strContent;
        m_reftask.ImpersonateUser = true;

        m_reftask.UpdateTask();

        if (closeOnFinish == true)
        {
            Response.Redirect("../close.aspx", false);
        }
        else
        {
            Response.Redirect((string)("../content.aspx?id=" + m_iForumID.ToString() + "&action=ViewContentByCategory&LangType=" + m_refContentApi.RequestInformationRef.ContentLanguage.ToString() + "&ContType=" + Convert.ToInt64(EkEnumeration.TaskType.TopicReply) + "&contentid=" + m_iTopicID.ToString()), false);
        }
    }
Esempio n. 2
0
    private void Process_Edit()
    {
        m_reftask = m_reftask.GetTaskByID(m_iID);
        m_reftask.CommentDisplayName = Context.Request.Form[txt_displayname.UniqueID];
        m_reftask.CommentEmail = Context.Request.Form[txt_email.UniqueID];
        if (Context.Request.Form[txt_url.UniqueID].ToLower() == "http://")
        {
            m_reftask.CommentURI = "";
        }
        else
        {
            m_reftask.CommentURI = Ektron.Cms.Common.EkFunctions.FixExternalHyperlink(Context.Request.Form[txt_url.UniqueID]);
        }

        if (rb_pending.Checked == true)
        {
            m_reftask.State = EkEnumeration.TaskState.Pending.ToString();
        }
        else
        {
            m_reftask.State = EkEnumeration.TaskState.Completed.ToString();
        }

        m_reftask.Description = Context.Request.Form[txt_comment.UniqueID];
        m_reftask.ImpersonateUser = true;
        m_reftask.UpdateTask();
        if (closeOnFinish == true)
        {
            Response.Redirect("../close.aspx", false);
        }
        else
        {
            Response.Redirect((string)("../content.aspx?id=" + m_iBlogID.ToString() + "&action=ViewContentByCategory&LangType=" + ContentLanguage.ToString() + "&ContType=" + EkEnumeration.TaskType.TopicReply.GetHashCode().ToString() + "&contentid=" + m_iPostID.ToString()));
        }
    }