Beispiel #1
0
        private void ThucThi(char c)
        {
            switch (c)
            {
            case '1':
                ErrHelper.Log(Ac.ThemNgayHoc(new NgayHoc(InputType.insert)));
                break;

            case '2':
                ErrHelper.Log(Ac.SuaTTHV(new HocVien(InputType.update)));
                break;

            case '3':
                ErrHelper.Log(Ac.XoaKhoaHoc(new KhoaHoc(InputType.delete)));
                break;

            case '4':
                ErrHelper.Log(Ac.TimKiemHV(new HocVien(InputType.searh)));
                break;

            case '5':
                ErrHelper.Log(Ac.TinhDoanhThu(new KhoaHoc(InputType.searh)));
                break;
            }
            Console.ReadKey();
            Menu();
        }
Beispiel #2
0
        private void Action(char c)
        {
            switch (c)
            {
            case '1':
                ErrHelper.Log(hs.ThemHS(new HocSinh(InputType.Insert)));
                break;

            case '2':
                ErrHelper.Log(hs.SuaTTHS(new HocSinh(InputType.Update)));
                break;

            case '3':
                ErrHelper.Log(hs.XoaHS(new HocSinh(InputType.Delete)));
                break;

            case '4':
                ErrHelper.Log(hs.ChuyenLopChoHS(new HocSinh(InputType.Update)));
                break;
            }
            Console.ReadKey();
            Menu();
        }
Beispiel #3
0
        private void ThucThi(char c)
        {
            switch (c)
            {
            case '1':
                ErrHelper.Log(Ac.ThemNVVaoDuAn(new PhanCong(InputType.insert)));
                break;

            case '2':
                ErrHelper.Log(Ac.SuaTTDuAN(new DuAn(InputType.update)));
                break;

            case '3':
                ErrHelper.Log(Ac.XoaNV(new NhanVien(InputType.delete)));
                break;

            case '4':
                ErrHelper.Log(Ac.TinhLuong(new NhanVien(InputType.TinhToan)));
                break;
            }
            Console.ReadKey();
            Menu();
        }