private void HienThiThongTin()
        {
            LuuTruDanhSach service = new LuuTruDanhSach();
            DataTable      dt      = service.DSNhanVien();

            gridThongTin.DataSource = dt;
            for (int i = 0; i < gridThongTin.RowCount - 1; i++)
            {
                gridThongTin.Rows[i].Cells[0].Value = i + 1;
            }
        }
        private void HienThiThongTinHocSinh()
        {
            LuuTruDanhSach service    = new LuuTruDanhSach();
            HocSinh        objHocSinh = service.HienThiThongTinHocSinhTheoMaHS(MaHS);

            if (objHocSinh != null)
            {
                txtHo.Text       = objHocSinh.Ho;
                txtTen.Text      = objHocSinh.Ten;
                txtMaHS.Text     = objHocSinh.MaHS;
                txtMaLop.Text    = objHocSinh.MaLop;
                dtNgaySinh.Value = objHocSinh.NgaySinh;

                cbGioiTinh.SelectedValue = objHocSinh.GioiTinh;
            }
        }
예제 #3
0
        private void HienThiThongTin()
        {
            LuuTruDanhSach service = new LuuTruDanhSach();
            Diem           objDiem = service.HienThiDiemCuaHocSinhTheoMaHS(MAHS);

            if (objDiem != null)
            {
                string HoVTen = objDiem.Ho + objDiem.Ten;
                txtHoTen.Text = HoVTen;
                txtMaHS.Text  = objDiem.MaHS;

                txtTOAN15.Text = objDiem.TOAN15;
                txtTOAN60.Text = objDiem.TOAN60;
                txtTOANHK.Text = objDiem.TOANHK;
                txtTOANTB.Text = objDiem.TOANTB;

                txtVAN15.Text = objDiem.VAN15;
                txtVAN60.Text = objDiem.VAN60;
                txtVANHK.Text = objDiem.VANHK;
                txtVANTB.Text = objDiem.VANTB;

                txtTA15.Text = objDiem.ANH15;
                txtTA60.Text = objDiem.ANH60;
                txtTAHK.Text = objDiem.ANHHK;
                txtTATB.Text = objDiem.ANHTB;

                txtDIA15.Text = objDiem.DIA15;
                txtDIA60.Text = objDiem.DIA60;
                txtDIAHK.Text = objDiem.DIAHK;
                txtDIATB.Text = objDiem.DIATB;

                txtSU15.Text = objDiem.SU15;
                txtSU60.Text = objDiem.SU60;
                txtSUHK.Text = objDiem.SUHK;
                txtSUTB.Text = objDiem.SUTB;
            }
        }