Пример #1
0
 public string Delete(DTODieuKienBaoQuan data)
 {
     try
     {
         DAODieuKienBaoQuan DKBQ = new DAODieuKienBaoQuan();
         return(DKBQ.Delete(data));
     }
     catch (Exception e)
     {
         return("Lỗi ngoại lệ: BUSHoatChat -> Delete: " + e.Message);
     }
 }
Пример #2
0
        public string Insert(ref DTODieuKienBaoQuan data)
        {
            try
            {
                DAODieuKienBaoQuan DKBQ = new DAODieuKienBaoQuan();

                return(DKBQ.Insert(ref data));
            }
            catch (Exception e)
            {
                return(@"Lỗi ngoại lệ : BUSHoatChat -> Insert : " + e.Message);
            }
        }
Пример #3
0
 public string GetAll(ref DataTable data)
 {
     try
     {
         DAODieuKienBaoQuan daoHoatChat = new DAODieuKienBaoQuan();
         string             result      = daoHoatChat.GetAll(ref data);
         if (result == "SUCCESS")
         {
             if (data != null && data.Rows.Count > 0)
             {
                 data.Columns.Add("RANKINDEX", typeof(int));
                 for (int i = 0; i < data.Rows.Count; i++)
                 {
                     data.Rows[i]["RANKINDEX"] = i + 1;
                 }
             }
         }
         return(result);
     }
     catch (Exception e)
     {
         return(@"Lỗi ngoại lệ : BUSHoatChat ->GetAll : " + e.Message);
     }
 }