示例#1
0
 private void showQscore()
 {
     if (LearnSite.Common.CookieHelp.IsStudentLogin())
     {
         int Sgrade = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sgrade"].ToString());
         int Sclass = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sclass"].ToString());
         LearnSite.BLL.Result bll = new LearnSite.BLL.Result();
         GridViewclass.DataSource = bll.GetListTodayScore(Sgrade, Sclass);
         GridViewclass.DataBind();
         Labeltitle.Text = DateTime.Now.ToLongDateString() + "今天班级常识测验排行榜";
         Labelmsg.Text   = "未测验同学名单:<br/><br/>" + bll.GetListTodayNoScore(Sgrade, Sclass);
     }
 }
示例#2
0
 private void showQscore()
 {
     if (LearnSite.Common.CookieHelp.IsStudentLogin())
     {
         LearnSite.Model.Cook cook = new LearnSite.Model.Cook();
         int Sgrade = cook.Sgrade;
         int Sclass = cook.Sclass;
         LearnSite.BLL.Result bll = new LearnSite.BLL.Result();
         GridViewclass.DataSource = bll.GetListTodayScore(Sgrade, Sclass);
         GridViewclass.DataBind();
         Labeltitle.Text = DateTime.Now.ToLongDateString() + "今天班级常识测验排行榜";
         Labelmsg.Text   = "未测验同学名单:<br/><br/>" + bll.GetListTodayNoScore(Sgrade, Sclass);
     }
 }