Пример #1
0
    private void ShowWorks()
    {
        if (Request.QueryString["Snum"] != null)
        {
            string Snum = Request.QueryString["Snum"].ToString();
            HlkCircle.NavigateUrl = "~/Teacher/stuworkcircle.aspx?Snum=" + Snum;
            LearnSite.Model.Students smodel = new LearnSite.Model.Students();
            LearnSite.BLL.Students   sbll   = new LearnSite.BLL.Students();
            smodel           = sbll.SnumGetModel(Snum);
            LabelSnum.Text   = Snum;
            LabelSname.Text  = smodel.Sname;
            LabelWscore.Text = smodel.Sscore.ToString();
            int wgrade = smodel.Sgrade.Value;
            if (Request.QueryString["Sgrade"] != null)
            {
                wgrade = Int32.Parse(Request.QueryString["Sgrade"].ToString());
            }
            int wterm = Int32.Parse(LearnSite.Common.XmlHelp.GetTerm());
            if (Request.QueryString["Sterm"] != null)
            {
                wterm = Int32.Parse(Request.QueryString["Sterm"].ToString());
            }

            LearnSite.BLL.Works ws = new LearnSite.BLL.Works();
            GridViewworks.DataSource = ws.ShowThisTermWorks(Snum, wgrade, wterm);
            GridViewworks.DataBind();
        }
    }
Пример #2
0
    private void ShowWorks()
    {
        if (Request.QueryString["Snum"] != null)
        {
            string Snum = Request.QueryString["Snum"].ToString();
            LearnSite.Model.Students smodel = new LearnSite.Model.Students();
            LearnSite.BLL.Students   sbll   = new LearnSite.BLL.Students();
            smodel = sbll.SnumGetModel(Snum);
            LearnSite.BLL.Works ws = new LearnSite.BLL.Works();
            DataTable           dt = ws.ShowMyAllWorks(Snum);
            GridViewworks.DataSource = dt;
            GridViewworks.DataBind();
            int count = dt.Rows.Count;
            LabelSname.Text = smodel.Sname + "同学的作品库(" + count.ToString() + ")";
            this.Page.Title = LearnSite.Common.CookieHelp.SetMainPageTitle() + " " + LabelSname.Text;

            if (count > 0)
            {
                msg = "";
                for (int i = 0; i < count; i++)
                {
                    int    score    = Int32.Parse(dt.Rows[i]["Wscore"].ToString()) + Int32.Parse(dt.Rows[i]["Wscore"].ToString());
                    string scorestr = score.ToString();
                    string jsondata = "[" + i.ToString() + ", " + scorestr + "],";
                    msg += jsondata;
                }
                msg = msg.TrimEnd(',');
            }
        }
    }
Пример #3
0
    private void ShowWorks()
    {
        string mySnum = Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Snum"].ToString();

        LearnSite.BLL.Works ws = new LearnSite.BLL.Works();
        GridViewworks.DataSource = ws.ShowMywork(mySnum);
        GridViewworks.DataBind();
    }
Пример #4
0
    private void ShowWorks()
    {
        string mySnum = cook.Snum;

        LearnSite.BLL.Works ws = new LearnSite.BLL.Works();
        GridViewworks.DataSource = ws.ShowMywork(mySnum);
        GridViewworks.DataBind();
    }
Пример #5
0
 private void Showname()
 {
     if (Request.QueryString["Qip"] != null)
     {
         string Qip = Request.QueryString["Qip"].ToString();
         LabelIp.Text = Qip;
         LearnSite.BLL.Signin gbll = new LearnSite.BLL.Signin();
         GridViewworks.DataSource = gbll.GetIpStudents(Qip);
         GridViewworks.DataBind();
     }
 }