Пример #1
0
    private void ShowTxtForm()
    {
        string Mid = Request.QueryString["Mid"].ToString();

        LearnSite.Model.Cook cook = new LearnSite.Model.Cook();
        int Wsid = cook.Sid;

        if (LearnSite.Common.WordProcess.IsNum(Mid))
        {
            LearnSite.Model.TxtForm tmodel = new LearnSite.Model.TxtForm();
            LearnSite.BLL.TxtForm   tbll   = new LearnSite.BLL.TxtForm();

            tmodel = tbll.GetModel(Int32.Parse(Mid));
            if (tmodel != null)
            {
                LabelMtitle.Text = tmodel.Mtitle;

                LearnSite.Model.TxtFormBack rmodel = new LearnSite.Model.TxtFormBack();
                LearnSite.BLL.TxtFormBack   rbll   = new LearnSite.BLL.TxtFormBack();
                int Rid = rbll.GetRid(Wsid.ToString(), Mid);
                if (Rid > 0)
                {
                    rmodel             = rbll.GetModel(Rid);
                    Mcontent.InnerHtml = HttpUtility.HtmlDecode(rmodel.Rwords);
                }
                else
                {
                    Mcontent.InnerHtml = HttpUtility.HtmlDecode(tmodel.Mcontent);
                }
            }
            Hlresult.NavigateUrl = "~/Student/txtformresult.aspx?Mid=" + Mid;
        }
    }
Пример #2
0
    private void txtformview()
    {
        if (Request.QueryString["Mid"] != null)
        {
            int Mid = Int32.Parse(Request.QueryString["Mid"].ToString());
            LearnSite.Model.TxtForm tmodel = new LearnSite.Model.TxtForm();
            LearnSite.BLL.TxtForm   tbll   = new LearnSite.BLL.TxtForm();
            tmodel = tbll.GetModel(Mid);

            mcontent.InnerText   = HttpUtility.HtmlDecode(tmodel.Mcontent);
            CheckPublish.Checked = tmodel.Mpublish;
            Texttitle.Text       = tmodel.Mtitle;
        }
    }
Пример #3
0
    private void showtxtform()
    {
        string Mcid = Request.QueryString["Mcid"].ToString();
        string Mid = Request.QueryString["Mid"].ToString();


        LearnSite.Model.TxtForm tmodel = new LearnSite.Model.TxtForm();
        LearnSite.BLL.TxtForm tbll = new LearnSite.BLL.TxtForm();

        tmodel = tbll.GetModel(Int32.Parse(Mid));

        if (tmodel != null)
        {
            LabelMtitle.Text = tmodel.Mtitle;
            CheckPublish.Checked = tmodel.Mpublish;
            Mcontent.InnerHtml = HttpUtility.HtmlDecode(tmodel.Mcontent);
            LabelMdate.Text = tmodel.Mdate.ToString();
        }
    }