|
@@ -211,6 +211,8 @@ BOOL CPageDebug::ConnectProc(DATAHEADER *pHeader, MSG_INFO *pMsg)
|
|
|
else if ( pHeader->byMsgType == C2S_DISCONNECT )
|
|
|
m_pDlg->SetDlgItemText(BTN_CONNECT, pMsg->byResult ? _T("连接设备") : _T("断开连接"));
|
|
|
*/
|
|
|
+
|
|
|
+ return TRUE;
|
|
|
}
|
|
|
|
|
|
BOOL CPageDebug::ReceiveProc(DATAHEADER *pHeader, MSG_INFO *pMsg)
|
|
@@ -444,9 +446,18 @@ DWORD CPageDebug::ThreadGoProc(LPVOID lpParam)
|
|
|
// 在线模式,上报结果;
|
|
|
if ( !GLOBAL::g_config.nOffline )
|
|
|
{
|
|
|
- if ( m_pDlg->UpLoadTestData(strSN, bRet, _T("")) )
|
|
|
+ CString strMsg;
|
|
|
+ if ( !m_pDlg->UpLoadTestData(strSN, bRet, _T("")) )
|
|
|
+ {
|
|
|
+ strMsg.Format(_T("%s;上传测试数据失败"), bRet ? _T("成功") : _T("失败"));
|
|
|
+ m_pDlg->m_lable_result.SetText(strMsg);
|
|
|
+ m_pDlg->m_lable_result.SetBkColor(COLOR_RED);
|
|
|
+ }
|
|
|
+ else
|
|
|
{
|
|
|
-
|
|
|
+ strMsg.Format(_T("%s;上传测试数据成功"), bRet ? _T("成功") : _T("失败"));
|
|
|
+ m_pDlg->m_lable_result.SetText(strMsg);
|
|
|
+ m_pDlg->m_lable_result.SetBkColor(COLOR_RED);
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -1032,8 +1043,13 @@ bool CPageDebug::UpLoadTestData(CString strSN, BOOL bResult, CString strErrorMsg
|
|
|
{
|
|
|
return true;
|
|
|
}
|
|
|
+
|
|
|
+ LOGE("过站失败:" << GLOBAL::wcs2mbs(strSN).c_str());
|
|
|
+ }
|
|
|
+ else {
|
|
|
+ LOGE("上传测试数据失败" << GLOBAL::wcs2mbs(strSN).c_str());
|
|
|
}
|
|
|
-
|
|
|
+
|
|
|
return false;
|
|
|
}
|
|
|
|