/// <summary> /// xac điịnh cuoc goi da nghe máy /// có luôn duration + file voice /// </summary> private void XacDinhCuocGoiCoNgheMay_VOC() { if ((g_ListCuocGoiLogInComing == null) || (g_ListCuocGoiLogInComing.Count <= 0)) { return; } int len = g_ListCuocGoiLogInComing.Count; for (int i = 0; i < len; i++) { if (g_ListCuocGoiLogInComing[i].ThoiDiemGoiDen > g_ListCuocGoiLogInComing[i].ThoiDiemNgheMay) // chi chon nhung cuoc chua nghe may { DateTime ThoiGianNhacMay = TaxiCapture.GetThongTinCuaCuocGoiDaNgheMay_VOC(g_ListCuocGoiLogInComing[i].PhoneNumber, g_ListCuocGoiLogInComing[i].ThoiDiemGoiDen, g_FileVOCPath); if (ThoiGianNhacMay != DateTime.MinValue) // có cuộc gọi nhỡ { // cap nhat DB if (!TaxiCapture.Update_DienThoai_SoChuong(this.g_ConnecString, g_ListCuocGoiLogInComing[i].CuocGoiID, GetSoChuong(g_ListCuocGoiLogInComing[i].ThoiDiemGoiDen, ThoiGianNhacMay))) { LogError.WriteLogError("Loi luu xuong DB", new Exception("Loi luu update so chuong")); } else { StructCuocGoi cuocgoi = new StructCuocGoi(); cuocgoi.CuocGoiID = g_ListCuocGoiLogInComing[i].CuocGoiID; cuocgoi.PhoneNumber = g_ListCuocGoiLogInComing[i].PhoneNumber; cuocgoi.fileAmThanhPath = g_ListCuocGoiLogInComing[i].fileAmThanhPath; cuocgoi.KhoangThoiGianHoiThoai = g_ListCuocGoiLogInComing[i].KhoangThoiGianHoiThoai; cuocgoi.KieuCuocGoi = g_ListCuocGoiLogInComing[i].KieuCuocGoi; cuocgoi.Line = g_ListCuocGoiLogInComing[i].Line; cuocgoi.ThoiDiemGoiDen = g_ListCuocGoiLogInComing[i].ThoiDiemGoiDen; cuocgoi.ThoiDiemKhongNhacMay = g_ListCuocGoiLogInComing[i].ThoiDiemKhongNhacMay; cuocgoi.ThoiDiemNgheMay = ThoiGianNhacMay; g_ListCuocGoiLogInComing[i] = cuocgoi; } } } } }