示例#1
0
        public void sinhVienCoDiemLonNhat(List <DTO_SINHVIEN> dssv, DTO_LOP lp)
        {
            float maxz = -1;

            foreach (var sv in dssv)
            {
                if (sv.docghiclass == lp.docghiidClasses)
                {
                    maxz = Math.Max(maxz, sv.docghiScore);
                }
            }

            if (maxz == -1)
            {
                Console.WriteLine("Danh sach lop rong!!");
                return;
            }

            // xuat sinh vien điểm lớn nhất
            foreach (var sv in dssv)
            {
                if (sv.docghiclass == lp.docghiidClasses && sv.docghiScore == maxz)
                {
                    BUS_SINHVIEN t1 = new BUS_SINHVIEN();
                    t1.XuatSinhVien(sv);
                }
            }
        }
示例#2
0
        public void thongTinLopTruong(DTO_LOP lp)
        {
            DTO_SINHVIEN t  = new DTO_SINHVIEN();
            BUS_SINHVIEN t1 = new BUS_SINHVIEN();

            t = lp.docghicap;
            t1.XuatSinhVien(t);
        }
示例#3
0
 public void sinhVienThuocLop(List <DTO_SINHVIEN> dssv, DTO_LOP lp)
 {
     foreach (var sv in dssv)
     {
         if (sv.docghiclass == lp.docghiidClasses)
         {
             BUS_SINHVIEN t1 = new BUS_SINHVIEN();
             t1.XuatSinhVien(sv);
         }
     }
 }
示例#4
0
        public void XuatDanhSachSinhVien()
        {
            int i = 1;

            foreach (var sv in dssv)
            {
                Console.WriteLine("#--------Thong tin sinh vien {0}--------#", i);
                BUS_SINHVIEN t = new BUS_SINHVIEN();
                t.XuatSinhVien(sv);
                i++;
            }
        }
示例#5
0
        public void findListMaxScore()
        {
            float score = maxScore();

            foreach (var sv in dssv)
            {
                if (sv.docghiScore == score)
                {
                    BUS_SINHVIEN t = new BUS_SINHVIEN();
                    t.XuatSinhVien(sv);
                }
            }
        }
示例#6
0
 public void xuatDS_DKHPtheoSinhVien(List <DTO_SINHVIEN> dssv)
 {
     foreach (var sv in dssv)
     {
         int          i   = 1;
         BUS_SINHVIEN svv = new BUS_SINHVIEN();
         svv.XuatSinhVien(sv);
         Console.WriteLine("Danh sach mon");
         foreach (var hp in ds_dkhp)
         {
             if (sv.docghiID == hp.docghiID_SV)
             {
                 Console.WriteLine("#--------Thong tin mon {0}--------#", i);
                 BUS_DKHP t = new BUS_DKHP();
                 t.xuatDKHP(hp);
                 i++;
             }
         }
     }
 }
示例#7
0
        // in dssv theo giới tính
        public void ListStudentWithGender(string gender)
        {
            int t = checkGender(gender);

            if (t == 0)
            {
                Console.WriteLine("Gioi tinh khong hop le!!!!");
            }
            string s = "nam";

            if (t == 2)
            {
                s = "nu";
            }

            foreach (var sv in dssv)
            {
                if (sv.docghigender == s)
                {
                    BUS_SINHVIEN a = new BUS_SINHVIEN();
                    a.XuatSinhVien(sv);
                }
            }
        }