|
@@ -52,9 +52,10 @@ public:
|
|
|
|
|
|
ErrorCodeEnum __OnStart(ErrorCodeEnum preOperationError)
|
|
|
{
|
|
|
- if (preOperationError != Error_Succeed)
|
|
|
+ if (preOperationError != Error_Succeed) {
|
|
|
return preOperationError;
|
|
|
-
|
|
|
+ }
|
|
|
+
|
|
|
getDeviceType();
|
|
|
m_customerBegingFSM.Init(this);
|
|
|
m_customerHandleFSM.Init(this);
|
|
@@ -92,7 +93,7 @@ public:
|
|
|
Error = GetFunction()->RegistSysVarEvent("CustomerID", this);
|
|
|
if (Error != Error_Succeed)
|
|
|
{
|
|
|
- LOG_TRACE("register sysvar %s failed!", "CustomerID");
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("register sysvar %s failed!", "CustomerID");
|
|
|
}
|
|
|
return Error_Succeed;
|
|
|
}
|
|
@@ -118,24 +119,24 @@ public:
|
|
|
const DWORD dwSysError,const DWORD dwUserCode,const DWORD dwEntityInstanceID, const WORD wEntityDevelID,
|
|
|
const CAutoArray<DWORD> &Param, const char *pszEntityName, const char *pszModuleName,const char *pszMessage, const linkContext& pLinkInfo)
|
|
|
{
|
|
|
- LOG_TRACE("user_code = %08x", dwUserCode);
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("user_code = %08x", dwUserCode);
|
|
|
//是否进入客户经理录像
|
|
|
if (dwUserCode == LOG_EVT_UI_STARTRECORD || LOG_EVT_UI_STARTRECORDPREVIEW == dwUserCode)
|
|
|
{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("Enter sales record!");
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("Enter sales record!");
|
|
|
m_customerHandleFSM.m_bIsSalesRecord = TRUE;
|
|
|
m_customerHandleFSM.PostEventFIFO(new FSMEvent(USER_EVT_INTO_CUSTOMERRECORD));
|
|
|
}
|
|
|
else if(LOG_EVT_UI_STARTREMOTERECORD == dwUserCode)
|
|
|
{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("Enter sales remote record!");
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("Enter sales remote record!");
|
|
|
m_customerHandleFSM.m_bIsSalesRecord = TRUE;
|
|
|
m_customerHandleFSM.PostEventFIFO(new FSMEvent(USER_EVT_INTO_CUSTOMERRECORD));
|
|
|
}
|
|
|
//是否在客户经理录像的时候退出到了首页,进入有人接近状态
|
|
|
else if (dwUserCode == LOG_EVT_UI_RETURNMENU||dwUserCode == LOG_EVT_UI_EXITSALESRECORD)
|
|
|
{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("exit to main!");
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("exit to main!");
|
|
|
if (m_customerHandleFSM.m_bIsSalesRecord)
|
|
|
{
|
|
|
m_customerHandleFSM.m_bIsSalesRecord = FALSE;
|
|
@@ -166,10 +167,10 @@ public:
|
|
|
{
|
|
|
if (_stricmp(pszKey, SYSVAR_DESKTOPTYPE) == 0)
|
|
|
{
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("desktop type from : %c to %c", pszOldValue[0], pszValue[0]);
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("desktop type from : %c to %c", pszOldValue[0], pszValue[0]);
|
|
|
//不再进入客户感知用户桌面状态,解决用户桌面态返回main页面问题
|
|
|
if (m_eDeviceType != eDesk2SType) {
|
|
|
- DbgWithLink(LOG_LEVEL_INFO, LOG_TYPE_SYSTEM)("DeviceType:%d customeraware not go to USERDESKTOP state", m_eDeviceType);
|
|
|
+ DbgWithLink(LOG_LEVEL_DEBUG, LOG_TYPE_SYSTEM)("DeviceType:%d customeraware not go to USERDESKTOP state", m_eDeviceType);
|
|
|
return;
|
|
|
}
|
|
|
|
|
@@ -222,7 +223,10 @@ private:
|
|
|
CSmartPointer<IEntityFunction> spFunction = GetFunction();
|
|
|
CSystemStaticInfo stStaticinfo;
|
|
|
spFunction->GetSystemStaticInfo(stStaticinfo);
|
|
|
- if (stricmp(stStaticinfo.strMachineType, "RVC.PAD") == 0)
|
|
|
+ if (_stricmp(stStaticinfo.strMachineType, "RVC.Stand1SPlus") == 0) {
|
|
|
+ m_eDeviceType = eStand1SPlusType;
|
|
|
+ }
|
|
|
+ else if (stricmp(stStaticinfo.strMachineType, "RVC.PAD") == 0)
|
|
|
{
|
|
|
if (stricmp(stStaticinfo.strSite, "CMB.FLB") == 0)
|
|
|
{
|