예제 #1
0
    private void ShowCourse()
    {
        int cobj  = Int32.Parse(DDLgrade.SelectedValue);
        int cterm = Int32.Parse(DDLterm.SelectedValue);

        LearnSite.BLL.Courses cbll = new LearnSite.BLL.Courses();
        if (LearnSite.Common.CookieHelp.IsStudentLogin())
        {
            LearnSite.BLL.Room rbll = new LearnSite.BLL.Room();
            string             Rhid = rbll.GetRoomRhid(cook.Sgrade, cook.Sclass);
            GVcourse.DataSource = cbll.GetAllGoodListByChid(cobj, cterm, Int32.Parse(Rhid));//获得指定年级、指定学期的所有学案,无内容,标题
            GVcourse.DataBind();
        }
        else
        {
            GVcourse.DataSource = cbll.GetAllGoodList(cobj, cterm);//获得指定年级、指定学期的所有学案,无内容,标题
            GVcourse.DataBind();
        }
    }
예제 #2
0
    private void ShowCourse()
    {
        int cobj  = Int32.Parse(DDLgrade.SelectedValue);
        int cterm = Int32.Parse(DDLterm.SelectedValue);

        LearnSite.BLL.Courses cbll = new LearnSite.BLL.Courses();
        if (LearnSite.Common.CookieHelp.IsStudentLogin())
        {
            string             mygrade = Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sgrade"].ToString();
            string             myclass = Request.Cookies[LearnSite.Common.CookieHelp.stuCookieNname].Values["Sclass"].ToString();
            LearnSite.BLL.Room rbll    = new LearnSite.BLL.Room();
            string             Rhid    = rbll.GetRoomRhid(Int32.Parse(mygrade), Int32.Parse(myclass));
            GVcourse.DataSource = cbll.GetAllGoodListByChid(cobj, cterm, Int32.Parse(Rhid));//获得指定年级、指定学期的所有学案,无内容,标题
            GVcourse.DataBind();
        }
        else
        {
            GVcourse.DataSource = cbll.GetAllGoodList(cobj, cterm);//获得指定年级、指定学期的所有学案,无内容,标题
            GVcourse.DataBind();
        }
    }