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")); } }
public int XoaKH(string makh) { KhoaHoc_DAO khDAO = new KhoaHoc_DAO(); return(khDAO.DeleteKhoaHoc(makh)); }
public int UpdateKH(KhoaHoc_DTO khDTO) { KhoaHoc_DAO khDAO = new KhoaHoc_DAO(); return(khDAO.UpdateKhoaHoc(khDTO)); }
public int AddKH(KhoaHoc_DTO khDTO) { KhoaHoc_DAO khDAO = new KhoaHoc_DAO(); return(khDAO.AddKhoaHoc(khDTO)); }
public List <KhoaHoc_DTO> DanhSachKHTheoTen(string tenkh) { KhoaHoc_DAO khDAO = new KhoaHoc_DAO(); return(khDAO.LoadDSKhoaHocTheoTen(tenkh)); }
public List <KhoaHoc_DTO> DanhSachKHTheoMaKH(string makh) { KhoaHoc_DAO khDAO = new KhoaHoc_DAO(); return(khDAO.LoadDSKhoaHocTheoMaKH(makh)); }
public List <KhoaHoc_DTO> DanhSachKH() { KhoaHoc_DAO khDAO = new KhoaHoc_DAO(); return(khDAO.LoadDSKhoaHoc()); }