示例#1
0
 /// <summary>
 /// nhan thong tin cac cuoc goi di va cap nhat vao DB
 /// </summary>
 private void CaptureCuocGoiDi()
 {
     try
     {
         DataTable dt = new DataTable();
         dt = TaxiCapture.GetEarlyPhoneDialOut(g_FileVOCPath);
         if ((dt != null) && (dt.Rows.Count > 0))
         {
             foreach (DataRow dr in dt.Rows)
             {
                 CuocGoiDi objGoiDi = new CuocGoiDi(dr["Line"].ToString(), dr["PhoneNumber"].ToString(), (DateTime)dr["ThoiDiemGoi"], (DateTime)dr["DoDaiCuocGoi"], dr["VoiceFilePath"].ToString());
                 if (!objGoiDi.Insert())
                 {
                     LogError.WriteLogError("Loi luu xuong DB cuoc goi di ", new Exception("[ Cuoc goi di ]"));
                 }
             }
         }
     }
     catch (Exception ex)
     {
         LogError.WriteLogError("Loi luu xuong DB cuoc goi di ", ex);
     }
 }