Exemple #1
0
        private void BindData()
        {
            string whereStr = " group_id = " + (int)EnumCollection.chapter_group.课堂 + " and course_id = " + class_id;

            BLL.classroom_info bll = new BLL.classroom_info();
            this.rptList.DataSource = bll.GetListNew(whereStr, "0");
            this.rptList.DataBind();
        }
Exemple #2
0
        private void BindData()
        {
            string whereStr = " 1 = 1 ";

            if (this.class_id > 0)
            {
                this.ddlClass.SelectedValue = this.class_id + "";
            }
            else
            {
                class_id = Convert.ToInt32(this.ddlClass.SelectedValue);
            }

            whereStr += " and group_id = " + (int)EnumCollection.chapter_group.课堂 + " and course_id = " + class_id + " and chapter_level = 1 ";

            BLL.classroom_info bll = new BLL.classroom_info();
            this.rptList.DataSource = bll.GetListNew(whereStr, "0");
            this.rptList.DataBind();
        }