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 = "您未填写表单,暂时无法查看!"; } }
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 = "您未填写表单,暂时无法查看!"; } }