Exemplo n.º 1
0
        private void Deptname_Cname_LoadList()//设置目录查询的两个下拉框的数据源
        {
            DepartmentBLL departmentBLL = new DepartmentBLL();

            yxm.DataSource = departmentBLL.GetAllDeptname();
            CourseBLL courseBLL = new CourseBLL();

            kc.DataSource = courseBLL.deptnoGetcname(departmentBLL.GetDeptno(yxm.Text));
        }
Exemplo n.º 2
0
        private void Dept_Tname_LoadList()//按目录查询的两个下拉框数据源
        {
            DepartmentBLL mibll = new DepartmentBLL();

            yx.DataSource = mibll.GetAllDeptname();
            TeacherBLL miBll    = new TeacherBLL();
            string     deptname = yx.Text;

            js.DataSource = miBll.deptnoGetNameList(mibll.GetDeptno(deptname));
        }