Esempio n. 1
0
    private void ShowOldWorks()
    {
        string Cid = Request.QueryString["Cid"].ToString();

        if (LearnSite.Common.WordProcess.IsNum(Cid))
        {
            int Sid    = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sid"].ToString());
            int Sgrade = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sgrade"].ToString());
            int Sterm  = Int32.Parse(Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["ThisTerm"].ToString());
            LearnSite.BLL.Works wbll = new LearnSite.BLL.Works();
            GVold.DataSource = wbll.ShowLastWorks(Sid, Sgrade, Sterm, Int32.Parse(Cid));
            GVold.DataBind();
        }
    }
Esempio n. 2
0
    private void ShowOldWorks()
    {
        string Cid = Request.QueryString["Cid"].ToString();

        if (LearnSite.Common.WordProcess.IsNum(Cid))
        {
            LearnSite.Model.Cook cook = new LearnSite.Model.Cook();

            int Sid    = cook.Sid;
            int Sgrade = cook.Sgrade;
            int Sterm  = cook.ThisTerm;
            LearnSite.BLL.Works wbll = new LearnSite.BLL.Works();
            GVold.DataSource = wbll.ShowLastWorks(Sid, Sgrade, Sterm, Int32.Parse(Cid));
            GVold.DataBind();
        }
    }