Пример #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 Showtxtform()
    {
        string Syear  = Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Syear"].ToString();
        string Sgrade = Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sgrade"].ToString();
        string Sclass = Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sclass"].ToString();
        string Sid    = Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sid"].ToString();
        string mid    = Request.QueryString["Mid"].ToString();

        LearnSite.BLL.TxtFormBack kbll = new LearnSite.BLL.TxtFormBack();
        if (kbll.GetRid(Sid, mid) > 0)
        {
            GVtxtform.DataSource = kbll.GetListclass(Sgrade, Sclass, mid);
            GVtxtform.DataBind();
            Labelreplycount.Text = GVtxtform.Rows.Count.ToString();
            Labelnostu.Text      = kbll.GetUndoStus(Int32.Parse(Sgrade), Int32.Parse(Sclass), Int32.Parse(mid));
        }
        else
        {
            Labelnostu.Text = "您未填写表单,暂时无法查看!";
        }
    }
Пример #3
0
    private void Showtxtform()
    {
        int    Syear  = cook.Syear;
        int    Sgrade = cook.Sgrade;
        int    Sclass = cook.Sclass;
        int    Sid    = cook.Sid;
        string mid    = Request.QueryString["Mid"].ToString();

        LearnSite.BLL.TxtFormBack kbll = new LearnSite.BLL.TxtFormBack();
        if (kbll.GetRid(Sid.ToString(), mid) > 0)
        {
            GVtxtform.DataSource = kbll.GetListclass(Sgrade.ToString(), Sclass.ToString(), mid);
            GVtxtform.DataBind();
            Labelreplycount.Text = GVtxtform.Rows.Count.ToString();
            Labelnostu.Text      = kbll.GetUndoStus(Sgrade, Sclass, Int32.Parse(mid));
        }
        else
        {
            Labelnostu.Text = "您未填写表单,暂时无法查看!";
        }
    }