Beispiel #1
0
    /// <summary>
    /// 显示本班级已学和未学学案
    /// </summary>
    private void Showkc()
    {
        int Rhid   = tcook.Hid;
        int Rgrade = Int32.Parse(DDLgrade.SelectedValue);
        int Rclass = Int32.Parse(DDLclass.SelectedValue);

        LearnSite.BLL.Students sbll = new LearnSite.BLL.Students();
        int Syear = sbll.GetYear(Rgrade, Rclass);

        LearnSite.BLL.Works wbll = new LearnSite.BLL.Works();
        int    Wterm             = Int32.Parse(LearnSite.Common.XmlHelp.GetTerm());
        string Wcids             = wbll.ShowDoneWorkCids(Rgrade, Rclass, Wterm, Syear);

        LearnSite.BLL.TopicReply Tbll = new LearnSite.BLL.TopicReply();
        string Tcids = Tbll.ShowDoneReplyCids(Rgrade, Rclass, Wterm, Syear);

        LearnSite.BLL.SurveyFeedback fbll = new LearnSite.BLL.SurveyFeedback();
        string Fcids   = fbll.ShowFeedbackCids(Rgrade, Rclass, Wterm, Syear);
        string allCids = Wcids + Tcids + Fcids;

        allCids = LearnSite.Common.WordProcess.SimpleWords(allCids);
        LearnSite.BLL.Courses cs = new LearnSite.BLL.Courses();
        DLdonekc.DataSource = cs.ShowClassDoneCourse(Rgrade, Rhid, allCids);
        DLdonekc.DataBind();
        DLnewkc.DataSource = cs.ShowClassnewCourse(Rgrade, Rhid, allCids);
        DLnewkc.DataBind();
    }
Beispiel #2
0
 /// <summary>
 /// 显示本班级已学和未学课程
 /// </summary>
 private void Showkc()
 {
     int Rgrade = Int32.Parse(DDLgrade.SelectedValue);
     int Rclass = Int32.Parse(DDLclass.SelectedValue);
     LearnSite.BLL.Courses cs = new LearnSite.BLL.Courses();
     DLdonekc.DataSource = cs.ShowClassDoneCourse(Rgrade, Rclass);
     DLdonekc.DataBind();
     DLnewkc.DataSource = cs.ShowClassnewCourse(Rgrade, Rclass);
     DLnewkc.DataBind();
 }