CardIssuer_UserErrorCode.h 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165
  1. #ifndef _CARDISSUER_USER_ERRORCODE_H
  2. #define _CARDISSUER_USER_ERRORCODE_H
  3. #pragma once
  4. #define CardIssuer_UserErrorCode_Start 0x20300200
  5. #define CardIssuer_UserErrorCode_No_Encryted_Channel (CardIssuer_UserErrorCode_Start + 1) //未建立安全通道
  6. #define CardIssuer_UserErrorCode_Open_RunCfgFile_Failed (CardIssuer_UserErrorCode_Start + 2) //打开运行时配置失败
  7. #define CardIssuer_UserErrorCode_Hopper_Mixed_Too_Much (CardIssuer_UserErrorCode_Start + 3) //卡箱异常(连续吞卡过多)
  8. #define CardIssuer_UserErrorCode_NotHas_Hopper1 (CardIssuer_UserErrorCode_Start + 4) //未检测到卡箱1,请确认卡箱1是否有卡箱
  9. #define CardIssuer_UserErrorCode_NotHas_Hopper2 (CardIssuer_UserErrorCode_Start + 5) //未检测到卡箱2,请确认卡箱2是否有卡箱
  10. #define CardIssuer_UserErrorCode_NotHas_Hopper3 (CardIssuer_UserErrorCode_Start + 6) //未检测到卡箱3,请确认卡箱3是否有卡箱
  11. #define CardIssuer_UserErrorCode_NoCardInHopper1 (CardIssuer_UserErrorCode_Start + 7) //卡箱1未检测到卡片 请确认卡箱1内卡片是否为空或重新摆放卡片
  12. #define CardIssuer_UserErrorCode_NoCardInHopper2 (CardIssuer_UserErrorCode_Start + 8) //卡箱2未检测到卡片 请确认卡箱2内卡片是否为空或重新摆放卡片
  13. #define CardIssuer_UserErrorCode_NoCardInHopper3 (CardIssuer_UserErrorCode_Start + 9) //卡箱3未检测到卡片 请确认卡箱3内卡片是否为空或重新摆放卡片
  14. #define CardIssuer_UserErrorCode_NoCardRemains_Hopper1 (CardIssuer_UserErrorCode_Start + 10) //卡箱1剩余卡片计数为0(空)
  15. #define CardIssuer_UserErrorCode_NoCardRemains_Hopper2 (CardIssuer_UserErrorCode_Start + 11) //卡箱2剩余卡片计数为0(空)
  16. #define CardIssuer_UserErrorCode_NoCardRemains_Hopper3 (CardIssuer_UserErrorCode_Start + 12) //卡箱3剩余卡片计数为0(空)
  17. #define CardIssuer_UserErrorCode_CaptureCard_Failed (CardIssuer_UserErrorCode_Start + 13) //吞卡失败
  18. #define CardIssuer_UserErrorCode_MoveCardToGate_Failed (CardIssuer_UserErrorCode_Start + 14) //吐卡失败
  19. #define CardIssuer_UserErrorCode_KakuFindEmptySlot_Failed (CardIssuer_UserErrorCode_Start + 15) //卡库找不到空闲卡槽
  20. #define CardIssuer_UserErrorCode_KakuHaveOldPanKuRecord (CardIssuer_UserErrorCode_Start + 16) //卡库有旧的盘库记录
  21. #define CardIssuer_UserErrorCode_KakuQuerySlot_Failed (CardIssuer_UserErrorCode_Start + 17) //卡库查询卡槽状态失败
  22. #define CardIssuer_UserErrorCode_KakuHaveNoPanKuRecord (CardIssuer_UserErrorCode_Start + 18) //卡库没有盘库记录
  23. #define CardIssuer_UserErrorCode_KakuPanKu_Failed (CardIssuer_UserErrorCode_Start + 19) //卡库盘库失败
  24. #define CardIssuer_UserErrorCode_Customer_Forget_Fectch_Card (CardIssuer_UserErrorCode_Start + 20) //客户超时未取卡
  25. #define CardIssuer_UserErrorCode_NotHas_Hopper4 (CardIssuer_UserErrorCode_Start + 21) //未检测到卡箱4,请确认卡箱1是否有卡箱
  26. #define CardIssuer_UserErrorCode_NotHas_Hopper5 (CardIssuer_UserErrorCode_Start + 22) //未检测到卡箱5,请确认卡箱2是否有卡箱
  27. #define CardIssuer_UserErrorCode_NotHas_Hopper6 (CardIssuer_UserErrorCode_Start + 23) //未检测到卡箱6,请确认卡箱3是否有卡箱
  28. #define CardIssuer_UserErrorCode_NoCardInHopper4 (CardIssuer_UserErrorCode_Start + 24) //卡箱4未检测到卡片 请确认卡箱4内卡片是否为空或重新摆放卡片
  29. #define CardIssuer_UserErrorCode_NoCardInHopper5 (CardIssuer_UserErrorCode_Start + 25) //卡箱5未检测到卡片 请确认卡箱5内卡片是否为空或重新摆放卡片
  30. #define CardIssuer_UserErrorCode_NoCardInHopper6 (CardIssuer_UserErrorCode_Start + 26) //卡箱6未检测到卡片 请确认卡箱6内卡片是否为空或重新摆放卡片
  31. #define CardIssuer_UserErrorCode_ICChannel_Failed (CardIssuer_UserErrorCode_Start + 27) //IC指令通道失败(实时制卡APDU)
  32. #define CardIssuer_UserErrorCode_NoCardRemains_Hopper4 (CardIssuer_UserErrorCode_Start + 28) //卡箱4剩余卡片计数为0(空)
  33. #define CardIssuer_UserErrorCode_NoCardRemains_Hopper5 (CardIssuer_UserErrorCode_Start + 29) //卡箱5剩余卡片计数为0(空)
  34. #define CardIssuer_UserErrorCode_NoCardRemains_Hopper6 (CardIssuer_UserErrorCode_Start + 30) //卡箱6剩余卡片计数为0(空)
  35. #define CardIssuer_UserErrorCode_LogInfoAboutTerm (CardIssuer_UserErrorCode_Start + 31) //告警上送终端模块信息
  36. #define CardIssuer_UserErrorCode_KebaDeviceInfo (CardIssuer_UserErrorCode_Start + 32) //告警上送科堡机型信息
  37. #define CardIssuer_UserErrorCode_RootInfo (CardIssuer_UserErrorCode_Start + 33) //root中版本批次号
  38. #define CardIssuer_UserErrorCode_Adapter_Version (CardIssuer_UserErrorCode_Start + 34)//告警适配器版本号(长城卡库是将驱动版本号告警上来)
  39. #define CardIssuer_UserErrorCode_DevOpenTime (CardIssuer_UserErrorCode_Start + 35) //统计DevOpen时长
  40. #define CardIssuer_UserErrorCode_DevOpenFailed_Insert (CardIssuer_UserErrorCode_Start + 36) //设备打开失败(Insert调用)
  41. #define CardIssuer_UserErrorCode_DevOpenFailed_Read (CardIssuer_UserErrorCode_Start + 37) //设备打开失败(Read调用)
  42. #define CardIssuer_UserErrorCode_DevOpenFailed_ReadEx (CardIssuer_UserErrorCode_Start + 38) //设备打开失败(ReadEx调用)
  43. #define CardIssuer_UserErrorCode_DevOpenFailed_Capture (CardIssuer_UserErrorCode_Start + 39) //设备打开失败(Capture调用)
  44. #define CardIssuer_UserErrorCode_DevOpenFailed_Eject (CardIssuer_UserErrorCode_Start + 40) //设备打开失败(Eject调用)
  45. #define CardIssuer_UserErrorCode_DevOpenFailed_Issue (CardIssuer_UserErrorCode_Start + 41) //设备打开失败(Issue调用)
  46. #define CardIssuer_UserErrorCode_DevOpenFailed_IssueEx (CardIssuer_UserErrorCode_Start + 42) //设备打开失败(IssueEx调用)
  47. #define CardIssuer_UserErrorCode_DevOpenFailed_PreOnline (CardIssuer_UserErrorCode_Start + 43) //设备打开失败(PreOnline调用)
  48. #define CardIssuer_UserErrorCode_DevOpenFailed_PostOnline (CardIssuer_UserErrorCode_Start + 44) //设备打开失败(PostOnline调用)OpenSafeLock
  49. #define CardIssuer_UserErrorCode_DevOpenFailed_OpenSafeLock (CardIssuer_UserErrorCode_Start + 45) //设备打开失败(OpenSafeLock调用)
  50. #define CardIssuer_UserErrorCode_DevOpenFailed_SAMICCommand (CardIssuer_UserErrorCode_Start + 46) //设备打开失败(SAMICCommand调用)
  51. #define CardIssuer_UserErrorCode_DevOpenFailed_PrintCardImmediately (CardIssuer_UserErrorCode_Start + 47) //设备打开失败(PrintCardImmediately调用)
  52. #define CardIssuer_UserErrorCode_DevOpenFailed_Print (CardIssuer_UserErrorCode_Start + 48) //设备打开失败(Print调用)
  53. #define CardIssuer_UserErrorCode_CardStore_SlotNum (CardIssuer_UserErrorCode_Start + 49) //记录卡库容量
  54. #define CardIssuer_UserErrorCode_Invoke_Access_IniDev_Failed (CardIssuer_UserErrorCode_Start + 50) //建立加密通道时,调用准入接口失败
  55. #define CardIssuer_UserErrorCode_Connect_Access_Failed (CardIssuer_UserErrorCode_Start + 51) //建立加密通道时,连接准入实体失败
  56. #define CardIssuer_UserErrorCode_Safe_Channel_Build_Failed (CardIssuer_UserErrorCode_Start + 52) //安全加密通道建立失败
  57. #define CardIssuer_UserErrorCode_No_More_Card_Issue (CardIssuer_UserErrorCode_Start + 53) //卡箱已无卡往出发
  58. #define CardIssuer_UserErrorCode_CFG_RUN_POINTER_FAILED (CardIssuer_UserErrorCode_Start + 54) //卡箱已无卡往出发
  59. #define CardIssuer_UserErrorCode_RETAIN_BIN_IS_FULL_SENSOR (CardIssuer_UserErrorCode_Start + 55)//厂商传感器,回收箱满
  60. #define CardIssuer_UserErrorCode_FEW_CARD_REMAINS (CardIssuer_UserErrorCode_Start + 56)//卡箱少卡
  61. #define CardIssuer_UserErrorCode_RETAIN_BIN_IS_FULL (CardIssuer_UserErrorCode_Start + 57)//计数显示,回收箱满
  62. #define CardIssuer_UserErrorCode_Create_Object_Failed (CardIssuer_UserErrorCode_Start + 58)//创建适配器指针对象失败
  63. #define CardIssuer_UserErrorCode_Track2_ServiceCode (CardIssuer_UserErrorCode_Start + 59)//记录二磁道的服务代码
  64. //跨机激活过程
  65. #define CardIssuer_UserErrorCode_PreOnline_Connect_Heatbeat_Failed (CardIssuer_UserErrorCode_Start + 60) //跨机,连接心跳实体失败
  66. #define CardIssuer_UserErrorCode_PreOnline_Send_CardActive (CardIssuer_UserErrorCode_Start + 61) //跨机,调用CardActive
  67. #define CardIssuer_UserErrorCode_PreOnline_Recv_CardActive (CardIssuer_UserErrorCode_Start + 62) //跨机,CardActive返回
  68. #define CardIssuer_UserErrorCode_PreOnline_Slot_Is_Invalid (CardIssuer_UserErrorCode_Start + 63) //跨机,web传给卡库的卡槽号无效
  69. #define CardIssuer_UserErrorCode_PreOnline_Slot_Has_No_Card (CardIssuer_UserErrorCode_Start + 64) //跨机,卡槽中无卡
  70. #define CardIssuer_UserErrorCode_PreOnline_MoveCardFromSlot_Info (CardIssuer_UserErrorCode_Start + 65) //跨机,从卡槽中移卡读卡后,读出的一些信息
  71. #define CardIssuer_UserErrorCode_ContactIC_Failed (CardIssuer_UserErrorCode_Start + 66) //DetectIfICCard调用ContactIC失败
  72. #define CardIssuer_UserErrorCode_ActiveICCard_Failed (CardIssuer_UserErrorCode_Start + 67) //DetectIfICCard调用ActiveICCard失败
  73. #define CardIssuer_UserErrorCode_ICCommand_Failed (CardIssuer_UserErrorCode_Start + 68) //BuildSupportedAppList调用ICCommand失败
  74. #define CardIssuer_UserErrorCode_ICCommand_Receive_Data_Error (CardIssuer_UserErrorCode_Start + 69) //PSE return error
  75. #define CardIssuer_UserErrorCode_BuildSupportedAppList_Failed (CardIssuer_UserErrorCode_Start + 70) //BuildSupportedAppList failed
  76. #define CardIssuer_UserErrorCode_AppSelected_Failed (CardIssuer_UserErrorCode_Start + 71) //AppSelected failed
  77. #define CardIssuer_UserErrorCode_QueryCardInfoOnStore_JustQueryInfo (CardIssuer_UserErrorCode_Start + 72) //跨机后,再次调用QueryCardInfoOnStore查询卡信息
  78. #define CardIssuer_UserErrorCode_NotifyPreOnline_ParamInfo (CardIssuer_UserErrorCode_Start + 73) //跨机后,大机心跳调用NotifyPreOnline
  79. //加卡过程
  80. #define CardIssuer_UserErrorCode_AddCardToStoreStepFirst (CardIssuer_UserErrorCode_Start + 74) //加卡第一步,从卡箱移到读卡器
  81. #define CardIssuer_UserErrorCode_AddCardToStoreStepLast (CardIssuer_UserErrorCode_Start + 75) //加卡第二步,从读卡器移到卡槽
  82. #define CardIssuer_UserErrorCode_ReadAccount_Data_Error (CardIssuer_UserErrorCode_Start + 76) //加卡过程,卡片数据有误
  83. #define CardIssuer_UserErrorCode_FindFirstEmptySlot_Failed (CardIssuer_UserErrorCode_Start + 77) //加卡过程,未找到空卡槽
  84. #define CardIssuer_UserErrorCode_NotifyPreonline_Timeout (CardIssuer_UserErrorCode_Start + 78) //NotifyProonline超时
  85. //临时 后续去除
  86. #define CardIssuer_UserErrorCode_EastCom_Not_Exist_DataFile (CardIssuer_UserErrorCode_Start + 79) //东信卡库还不存在CardLibDB_CMB.db3文件
  87. #define CardIssuer_UserErrorCode_EastCom_Exist_DataFile (CardIssuer_UserErrorCode_Start + 80) //东信卡库已存在CardLibDB_CMB.db3文件
  88. //发卡过程
  89. #define CardIssuer_UserErrorCode_Has_Not_Build_SafeChannel (CardIssuer_UserErrorCode_Start + 81) //还未建立安全通道
  90. #define CardIssuer_UserErrorCode_Invalid_Slot (CardIssuer_UserErrorCode_Start + 82) //无效卡槽号
  91. #define CardIssuer_UserErrorCode_Slot_Has_No_Card (CardIssuer_UserErrorCode_Start + 83) //卡槽中无卡
  92. #define CardIssuer_UserErrorCode_IssueCardFromStore (CardIssuer_UserErrorCode_Start + 84) //发卡
  93. #define CardIssuer_UserErrorCode_Sign_Failed (CardIssuer_UserErrorCode_Start + 85) //签发失败,吞卡,req=87
  94. #define CardIssuer_UserErrorCode_Invalid_Hopper (CardIssuer_UserErrorCode_Start + 86) //传入了错误的hopper
  95. //Common Func
  96. #define CardIssuer_UserErrorCode_CaptureCard (CardIssuer_UserErrorCode_Start + 87) //吞卡
  97. #define CardIssuer_UserErrorCode_EjectCard (CardIssuer_UserErrorCode_Start + 88) //吐卡
  98. #define CardIssuer_UserErrorCode_Capture_Failed (CardIssuer_UserErrorCode_Start + 89) //吞卡失败
  99. #define CardIssuer_UserErrorCode_EjectCard_Failed (CardIssuer_UserErrorCode_Start + 90) //吐卡失败
  100. //读卡过程
  101. #define CardIssuer_UserErrorCode_ReadCard_Process (CardIssuer_UserErrorCode_Start + 91) //调用读卡
  102. #define CardIssuer_UserErrorCode_TrackSize_Wrong (CardIssuer_UserErrorCode_Start + 92) //磁道数据长度错误
  103. #define CardIssuer_UserErrorCode_Track2Size_Wrong (CardIssuer_UserErrorCode_Start + 93) //二磁道数据长度错误
  104. #define CardIssuer_UserErrorCode_CardBin (CardIssuer_UserErrorCode_Start + 94) //MagRead读出的卡bin
  105. #define CardIssuer_UserErrorCode_CardType (CardIssuer_UserErrorCode_Start + 95) //MagRead读出的卡片类型
  106. #define CardIssuer_UserErrorCode_MaybeIC_Only (CardIssuer_UserErrorCode_Start + 96) //可能是纯IC
  107. //异常状况
  108. #define CardIssuer_UserErrorCode_HasCard_In_Machine (CardIssuer_UserErrorCode_Start + 97) //读卡器打开时,发现有卡片
  109. #define CardIssuer_UserErrorCode_CardNo_Maybe_Wrong (CardIssuer_UserErrorCode_Start + 98) //卡号可能有误
  110. //读卡器初始化过程
  111. #define CardIssuer_UserErrorCode_LoadLibraryA_Failed (CardIssuer_UserErrorCode_Start + 99) //LoadLibraryA
  112. #define CardIssuer_UserErrorCode_CreateDevComponent_Failed (CardIssuer_UserErrorCode_Start + 100) //CreateDevComponent
  113. #define CardIssuer_UserErrorCode_ReleaseDevComponent_Failed (CardIssuer_UserErrorCode_Start + 101) //ReleaseDevComponent
  114. #define CardIssuer_UserErrorCode_LoadLibraryA_CMBPrint_Failed (CardIssuer_UserErrorCode_Start + 102) //LoadLibraryA CMBPrint
  115. #define CardIssuer_UserErrorCode_cmdDecodeMag2_Failed (CardIssuer_UserErrorCode_Start + 103) //cmdDecodeMag2
  116. #define CardIssuer_UserErrorCode_cmdDecodeEx_Failed (CardIssuer_UserErrorCode_Start + 104) //cmdDecodeEx
  117. #define CardIssuer_UserErrorCode_DevOpen_Failed (CardIssuer_UserErrorCode_Start + 105) //DevOpen
  118. #define CardIssuer_UserErrorCode_ConnecetSCI_OpenDevice_Failed (CardIssuer_UserErrorCode_Start + 106) //ConnecetSCI_OpenDevice_Failed
  119. #define CardIssuer_UserErrorCode_ConnecetSCI_Invalid_SCI_Name (CardIssuer_UserErrorCode_Start + 107) //Invalid_SCI_Name
  120. //物料信息
  121. #define CardIssuer_UserErrorCode_SyncMaterialCount_Failed (CardIssuer_UserErrorCode_Start + 108) //同步物料信息失败
  122. #define CardIssuer_UserErrorCode_QueryMaterialInfo_Failed (CardIssuer_UserErrorCode_Start + 109) //查询物料信息失败
  123. #define CardIssuer_UserErrorCode_QueryMaterialInfo_Count_Error (CardIssuer_UserErrorCode_Start + 110) //查询物料信息数量有误
  124. //蓝牙多合一绑定解绑
  125. #define CardIssuer_UserErrorCode_BindSCI (CardIssuer_UserErrorCode_Start + 111) //绑定类型
  126. #define CardIssuer_UserErrorCode_Bind_Invalid_SCI_Name (CardIssuer_UserErrorCode_Start + 112) //绑定失败,无效的多合一Name
  127. #define CardIssuer_UserErrorCode_Bind_SyncData_Failed (CardIssuer_UserErrorCode_Start + 113) //绑定后,同步信息失败
  128. #define CardIssuer_UserErrorCode_Unbind_Invalid_SCI_Name (CardIssuer_UserErrorCode_Start + 114) //解绑绑定失败,无效的多合一Name
  129. #define CardIssuer_UserErrorCode_Unbind_SyncData_Failed (CardIssuer_UserErrorCode_Start + 115) //解绑绑定后,同步信息失败
  130. #define CardIssuer_UserErrorCode_Load_CMBPrint_Failed (CardIssuer_UserErrorCode_Start + 116) //加载CMBPrint失败
  131. //预留一部分用于CardAssist.cpp中的报错告警
  132. //自CardIssuer_UserErrorCode_Start + 121 ~ CardIssuer_UserErrorCode_Start + 140
  133. #define CardIssuer_UserErrorCode_ICCommand_RecvData_Invalid (CardIssuer_UserErrorCode_Start + 121) //APDU接收到的数据无效
  134. //
  135. #define CardIssuer_UserErrorCode_Open_Success (CardIssuer_UserErrorCode_Start + 141) //读卡器最终打开成功
  136. #define CardIssuer_UserErrorCode_Open_Failed (CardIssuer_UserErrorCode_Start + 142) //读卡器最终打开失败
  137. //盘库
  138. #define CardIssuer_UserErrorCode_QueryCardInfoOnStore_Inparam (CardIssuer_UserErrorCode_Start + 143) //盘库接口入参
  139. #endif //_CARDISSUER_USER_ERRORCODE_H