Beispiel #1
0
        public FrmAttendanceQuery()
        {
            InitializeComponent();
            this.dgvStudentList.AutoGenerateColumns = false;
            DataGridViewStyle.DgvStyle1(dgvStudentList);

            //应到的人数

            //studentCount = attendanceService.GetStudentCount();
            //展示应到人数
            this.lblCount.Text = attendanceService.GetStudentCount().ToString();
        }
Beispiel #2
0
        public FrmScoreManage()
        {
            InitializeComponent();
            //班级下拉列表绑定
            this.cboClass.DataSource    = studentClassService.GetAllClasses().Tables[0];
            this.cboClass.DisplayMember = "ClassName";
            this.cboClass.ValueMember   = "ClassId";
            this.cboClass.SelectedIndex = -1;

            //将下拉框的事件关联
            this.cboClass.SelectedIndexChanged   += new System.EventHandler(this.CboClass_SelectedIndexChanged);
            this.dgvScoreList.AutoGenerateColumns = false;
            DataGridViewStyle.DgvStyle1(this.dgvScoreList);
        }
Beispiel #3
0
        private DataSet da = null;//用来保存查询结果的数据集

        public FrmScoreQuery()
        {
            InitializeComponent();
            //基于DataTable绑定下拉框
            this.cboClass.DataSource    = studentClassService.GetAllClasses().Tables[0];
            this.cboClass.DisplayMember = "ClassName";
            this.cboClass.ValueMember   = "ClassId";
            this.cboClass.SelectedIndex = -1;
            //成绩列表数据绑定
            da = scoreListService.GetScoreList();
            this.dgvScoreList.AutoGenerateColumns = false;
            this.dgvScoreList.DataSource          = null;
            this.dgvScoreList.DataSource          = da.Tables[0];
            DataGridViewStyle.DgvStyle3(dgvScoreList);
        }
Beispiel #4
0
        public FrmAttendance()
        {
            InitializeComponent();
            this.timer1.Tick += new System.EventHandler(this.Timer1_Tick);
            Timer1_Tick(null, null);
            this.dgvStudentList.AutoGenerateColumns = false;

            #region 显示学员总数以及打卡人数
            //显示学员总数以及打卡人数
            studentCount = attendanceService.GetStudentCount();
            //展示应到人数
            this.lblCount.Text = studentCount.ToString();
            SignStart();
            #endregion

            DataGridViewStyle.DgvStyle1(this.dgvStudentList);
        }
Beispiel #5
0
 //行号展示
 private void DgvScoreList_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
 {
     DataGridViewStyle.DgvRowPostPaint(this.dgvScoreList, e);
 }
Beispiel #6
0
 public FrmImportData()
 {
     InitializeComponent();
     this.dgvStudentList.AutoGenerateColumns = false;
     DataGridViewStyle.DgvStyle1(this.dgvStudentList);
 }
Beispiel #7
0
 //显示行号
 private void DgvStudentList_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e)
 {
     DataGridViewStyle.DgvRowPostPaint(dgvStudentList, e);
 }