Exemple #1
0
        private void ClassScoreSearch_Load(object sender, EventArgs e)
        {
            #region 添加字段名到comboBox控件中:
            GetTableColumnBLL objGetTableColumnBLL = new GetTableColumnBLL();

            string[] ClassName = objGetTableColumnBLL.GetClaName();
            cmbClassName.Items.AddRange(ClassName);

            string[] GetStuNum = objGetTableColumnBLL.GetClaNum();
            cmbStuNum.Items.AddRange(GetStuNum);

            #endregion
        }
Exemple #2
0
        //添加字段名到comboBox控件的下拉框中:
        private void ShowComboBox()
        {
            #region 添加字段名到comboBox控件中:

                GetTableColumnBLL objGetTableColumnBLL = new GetTableColumnBLL();

                string[] StuNum = objGetTableColumnBLL.GetStuNum();
                cbxStuNum.Items.AddRange(StuNum);

                string[] StuName = objGetTableColumnBLL.GetStuName();
                cmbStuName.Items.AddRange(StuName);

                string[] GetCourseId = objGetTableColumnBLL.GetCourseNum();
                cbxCourseNum.Items.AddRange(GetCourseId);

                string[] CourseName = objGetTableColumnBLL.GetCourseName();
                cbxCourseName.Items.AddRange(CourseName);

                string[] Score = objGetTableColumnBLL.GetScore();
                cbxScore.Items.AddRange(Score);
            #endregion
        }
Exemple #3
0
        private void ShowCombox()
        {
            GetTableColumnBLL objGetTableColumnBLL = new GetTableColumnBLL();

            string[] ClaNum = objGetTableColumnBLL.GetClaNum();
            cmbClaNum.Items.AddRange(ClaNum);

            string[] ClaName = objGetTableColumnBLL.GetClaName();
            cmbClaName.Items.AddRange(ClaName);

            string[] DeptNum= objGetTableColumnBLL.GetDeptNum();
            cmbDeptNum.Items.AddRange(DeptNum);

            string[]  DeptName= objGetTableColumnBLL.GetDeptName();
            cmbDeptName.Items.AddRange(DeptName);

            string[] ProNum = objGetTableColumnBLL.GetProNum();
            cmbProNum.Items.AddRange(ProNum);

            string[] ProName = objGetTableColumnBLL.GetProName();
            cmbProName.Items.AddRange(ProName);
        }
Exemple #4
0
        private void ShowTable()
        {
            objSchoolMolel.SchNum = cmbSchNum.Text;
            objSchoolMolel.SchName = cmbSchName.Text;

            dataGridView1.DataSource = objSchoolBLL.ShowSchoolInfo();

            GetTableColumnBLL objGetTableColumnBLL=new GetTableColumnBLL();

            string[] SchNum = objGetTableColumnBLL.GetSchNum();
            cmbSchNum.Items.AddRange(SchNum);

            string[] SchName = objGetTableColumnBLL.GetSchName();
            cmbSchName.Items.AddRange(SchName);
        }
Exemple #5
0
 private void GetStuNum()
 {
     GetTableColumnBLL objGetTableColumnBLL = new GetTableColumnBLL();
         string[] StuNum = objGetTableColumnBLL.GetStuNum();
         cmbStuSearchValue.Items.AddRange(StuNum);
 }