示例#1
0
        public DiemCuaSV()
        {
            InitializeComponent();
            BangDiemCuaSV bd = new BangDiemCuaSV(db.DiemCuaSinhViens.ToList());

            flowLayoutPanelDiem.Controls.Add(bd);
        }
示例#2
0
        public DiemCuaSV(string mssv, string hoTen)
        {
            InitializeComponent();
            this.mssv = mssv;

            List <DiemCuaSinhVien> nh = db.DiemCuaSinhViens.Where
                                            (thongTin => thongTin.MSSV == mssv).OrderBy(x => x.NienKhoa).GroupBy(y => y.NienKhoa).SelectMany(z => z.OrderBy(g => g.HocKy)).ToList();

            if (nh.Count > 0)
            {
                BangDiemCuaSV x = new BangDiemCuaSV(nh);
                flowLayoutPanelDiem.Controls.Add(x);
            }

            labelTenSinhVien.Text  = "Tên sinh viên: " + hoTen;
            labelMaSoSinhVien.Text = "[Mã số sinh viên: " + mssv + "]";
        }