Пример #1
0
 public static bool KiemTraTreThoiHoc(string maTre, string maLop)
 {
     if (string.Compare(TreDAL.GetTinhTrangTrongLop(maTre, maLop).Trim(), "2") == 0)
     {
         return(true);
     }
     return(false);
 }
Пример #2
0
 public static bool ChuyenLop(string maTre, string maLopMoi, string maLopCu)
 {
     if (string.Compare(TreDAL.GetTinhTrangTrongLop(maTre, maLopCu).Trim(), "0") == 0)
     {
         try
         {
             TreDAL.ChuyenLop(maTre, maLopMoi);
         }
         catch (Exception ex)
         {
             MessageBox.Show(ex.Message);
         }
     }
     else
     {
         return(false);
     }
     return(true);
 }
Пример #3
0
 public static bool ThoiHoc(List <string> listMaTre, string maLop)
 {
     foreach (string maTre in listMaTre)
     {
         if (string.Compare(TreDAL.GetTinhTrangTrongLop(maTre, maLop).Trim(), "0") == 0)
         {
             try
             {
                 TreDAL.ThoiHoc(maTre, maLop);
             }
             catch (Exception ex)
             {
                 MessageBox.Show(ex.Message);
             }
         }
         else
         {
             return(false);
         }
     }
     return(true);
 }