예제 #1
0
        public static DataTable LayFileTLVTheoMaBaiHoc(string strMaBaiHoc, string loaiFile)
        {
            string strLenhDocDuLieu = "Select * From FileLuyenTap " +
                                      "Where MaBaiHoc = '" + strMaBaiHoc + "'" + " and LoaiFile = '" + loaiFile + "'";
            DataTable KetQua = CoSoDuLieu.LayDuLieu(strLenhDocDuLieu);

            return(KetQua);
        }
예제 #2
0
        public static DataTable LayFileTheoMaBaiHoc(string strMaBaiHoc)
        {
            string strLenhDocDuLieu = "Select *  From FileLuyenTap " +
                                      "Where MaBaiHoc = '" + strMaBaiHoc + "' Order By Ma";
            DataTable KetQua = CoSoDuLieu.LayDuLieu(strLenhDocDuLieu);

            return(KetQua);
        }
예제 #3
0
        public static DataTable LayFileAmThanhTheoMa(string strMaFileAmThanh)
        {
            string strLenhDocDuLieu = "Select *  From FileAmThanh " +
                                      "Where MaFileAmThanh = '" + strMaFileAmThanh + "' Order By Ma";
            DataTable KetQua = CoSoDuLieu.LayDuLieu(strLenhDocDuLieu);

            return(KetQua);
        }
예제 #4
0
        public static DataTable LayDanhSachBai(string strMaBaiHoc)
        {
            string LenhDocDuLieu = "Select * From FileLuyenTap " +
                                   "Where MaBaiHoc = '" + strMaBaiHoc + "'" +
                                   " And MaLoaiMon = '2'";

            return(CoSoDuLieu.LayDuLieu(LenhDocDuLieu));
        }
예제 #5
0
 public static DataTable LayDanhSachTuan()
 {
     try
     {
         String    strLenhLayDuLieu = "Select * From Tuan Order By Ma";
         DataTable KetQua           = CoSoDuLieu.LayDuLieu(strLenhLayDuLieu);
         return(KetQua);
     }
     catch (Exception Ex)
     {
         throw Ex;
     }
 }
예제 #6
0
        public static DataTable LayFileLuyenTapTheoMa(string strMaBaiHoc)
        {
            string strLenhDocDuLieu = "Select * From FileLuyenTap " +
                                      "Where MaBaiHoc = '" + strMaBaiHoc + "'";

            try
            {
                DataTable KetQua = CoSoDuLieu.LayDuLieu(strLenhDocDuLieu);
                return(KetQua);
            }
            catch (Exception Ex)
            {
                throw Ex;
            }
        }
예제 #7
0
        public static DataTable LayDanhSachBaiTheoTuan(string strMaTuan)
        {
            string strLenhDocDuLieu = "Select * From BaiHoc " +
                                      "Where MaTuan = '" + strMaTuan + "' Order By Ten";

            try
            {
                DataTable KetQua = CoSoDuLieu.LayDuLieu(strLenhDocDuLieu);
                return(KetQua);
            }
            catch (Exception Ex)
            {
                throw Ex;
            }
        }