Exemplo n.º 1
0
 protected void Gv_DataBind()
 {
     LabMS.BLL.Course Course = new LabMS.BLL.Course();
     List<LabMS.Model.Course> ls = new List<LabMS.Model.Course>();
     ls = Course.GetModelList(CombineStr());
     Gv_Course.DataSource = ls;
     Gv_Course.DataBind();
 }
Exemplo n.º 2
0
 //获取获取课程信息
 protected List<LabMS.Model.Course> GetCourseInfo(string ScoreTerm, string Year, string SubjectName)
 {
     LabMS.BLL.Course course = new LabMS.BLL.Course();
     List<LabMS.Model.Course> courseModel = new List<LabMS.Model.Course>();
     try
     {
         courseModel = course.GetModelList("[ID] in (select a.CourseID from CourseAndProject a,TeacherCourse b where a.CourseID=b.CourseID) and CourseYear='" + Year + "' and CourseSeason='" + ScoreTerm + "' and Course_Name like '%" + SubjectName + "%'");
     }
     catch (Exception ex)
     {
         throw ex;
     }
     return courseModel;
 }
Exemplo n.º 3
0
        //学年 学期 索引改变
        protected void DropDownList_OnSelectIndexChange(object sender, EventArgs e)
        {
            string strYear = YearDDL.SelectedValue;
            string strTerm = TermDDL.SelectedValue;

            LabMS.BLL.Course cou = new LabMS.BLL.Course();
            List<LabMS.Model.Course> couModelList = new List<LabMS.Model.Course>();

            couModelList = cou.GetModelList("CourseYear=" + strYear + " and CourseSeason=" + strTerm);
            CourseDDL.DataSource = couModelList;
            CourseDDL.DataBind();
            if (CourseDDL.SelectedValue == "")
            {
                ArrangementGridView_DataBind(0, WeekDDL.SelectedValue, WeekDayDDL.SelectedValue, LocationBTX.Text.Trim(), TeacherTBX.Text.Trim());
            }
            else
            {
                ArrangementGridView_DataBind(int.Parse(CourseDDL.SelectedValue), WeekDDL.SelectedValue, WeekDayDDL.SelectedValue, LocationBTX.Text.Trim(), TeacherTBX.Text.Trim());
            }
        }
Exemplo n.º 4
0
        //绑定课程
        protected void CourseDDL_DataBind()
        {
            string strYear = YearDDL.SelectedValue;
            string strTerm = TermDDL.SelectedValue;

            LabMS.BLL.Course cou = new LabMS.BLL.Course();
            List<LabMS.Model.Course> couModelList = new List<LabMS.Model.Course>();

            couModelList = cou.GetModelList("CourseYear=" + strYear + " and CourseSeason=" + strTerm);
            CourseDDL.DataSource = couModelList;
            CourseDDL.DataBind();
        }