コード例 #1
0
ファイル: txtform.aspx.cs プロジェクト: pyteach/Learnsite
    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
ファイル: TxtFormBack.cs プロジェクト: WaterCountry/Learnsite
 /// <summary>
 /// 更新内容 Rwords, Rtime,Rid
 /// </summary>
 public bool UpdateContent(LearnSite.Model.TxtFormBack model)
 {
     return(dal.UpdateContent(model));
 }
コード例 #3
0
ファイル: TxtFormBack.cs プロジェクト: WaterCountry/Learnsite
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int  Add(LearnSite.Model.TxtFormBack model)
 {
     return(dal.Add(model));
 }