示例#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
        }
示例#2
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);
        }