示例#1
0
        public string maKhoaHocTiepTheo()
        {
            KhoaHoc_DAO khDAO       = new KhoaHoc_DAO();
            string      MaKHLonNhat = khDAO.LayMaKHLonNhat();

            if (string.IsNullOrEmpty(MaKHLonNhat))
            {
                return("KH01");
            }
            else
            {
                //int maso = int.Parse(MaLonNhat.Replace('HV', ' '));
                int maso = int.Parse(MaKHLonNhat.Substring(2));

                //return string.Format("S{0:3}", maso + 1);
                return("KH" + (maso + 1).ToString("00"));
            }
        }
示例#2
0
        public int XoaKH(string makh)
        {
            KhoaHoc_DAO khDAO = new KhoaHoc_DAO();

            return(khDAO.DeleteKhoaHoc(makh));
        }
示例#3
0
        public int UpdateKH(KhoaHoc_DTO khDTO)
        {
            KhoaHoc_DAO khDAO = new KhoaHoc_DAO();

            return(khDAO.UpdateKhoaHoc(khDTO));
        }
示例#4
0
        public int AddKH(KhoaHoc_DTO khDTO)
        {
            KhoaHoc_DAO khDAO = new KhoaHoc_DAO();

            return(khDAO.AddKhoaHoc(khDTO));
        }
示例#5
0
        public List <KhoaHoc_DTO> DanhSachKHTheoTen(string tenkh)
        {
            KhoaHoc_DAO khDAO = new KhoaHoc_DAO();

            return(khDAO.LoadDSKhoaHocTheoTen(tenkh));
        }
示例#6
0
        public List <KhoaHoc_DTO> DanhSachKHTheoMaKH(string makh)
        {
            KhoaHoc_DAO khDAO = new KhoaHoc_DAO();

            return(khDAO.LoadDSKhoaHocTheoMaKH(makh));
        }
示例#7
0
        public List <KhoaHoc_DTO> DanhSachKH()
        {
            KhoaHoc_DAO khDAO = new KhoaHoc_DAO();

            return(khDAO.LoadDSKhoaHoc());
        }