mod_cardissuerStore.cpp 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306
  1. // mod_cardissuer.cpp : Defines the exported functions for the DLL application.
  2. //
  3. #include "stdafx.h"
  4. #pragma once
  5. #include "SpBase.h"
  6. #include "mod_cardissuerStore.h"
  7. #include "CardIssuerClass.h"
  8. void CardIssuerStoreServerSession::Handle_Read(SpReqAnsContext<CardIssuerStoreService_Read_Req, CardIssuerStoreService_Read_Ans>::Pointer ctx)
  9. { //卡库暂时读卡功能不使用
  10. LOG_FUNCTION();
  11. DbgToBeidou(ctx->link, __FUNCTION__)();
  12. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Read, Req.aid=%s",ctx->Req.aid.GetData());
  13. m_pEntity->Read(ctx);
  14. }
  15. void CardIssuerStoreServerSession::Handle_Capture(SpReqAnsContext<CardIssuerStoreService_Capture_Req, CardIssuerStoreService_Capture_Ans>::Pointer ctx)
  16. {
  17. LOG_FUNCTION();
  18. DbgToBeidou(ctx->link, __FUNCTION__)();
  19. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Capture");
  20. m_pEntity->Capture(ctx);
  21. }
  22. void CardIssuerStoreServerSession::Handle_Eject(SpReqAnsContext<CardIssuerStoreService_Eject_Req, CardIssuerStoreService_Eject_Ans>::Pointer ctx)
  23. {
  24. LOG_FUNCTION();
  25. DbgToBeidou(ctx->link, __FUNCTION__)();
  26. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke Eject");
  27. m_pEntity->Eject(ctx);
  28. }
  29. void CardIssuerStoreServerSession::Handle_PreOnline(SpReqAnsContext<CardIssuerStoreService_PreOnline_Req, CardIssuerStoreService_PreOnline_Ans>::Pointer ctx)
  30. {
  31. LOG_FUNCTION();
  32. DbgToBeidou(ctx->link, __FUNCTION__)();
  33. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("PreOnline , Req.businessData=%s, Req.reserved1=%s", ctx->Req.businessData.GetData(), ctx->Req.reserved1.GetData());
  34. m_pEntity->PreOnline(ctx);
  35. }
  36. void CardIssuerStoreServerSession::Handle_PostOnline(SpReqAnsContext<CardIssuerStoreService_PostOnline_Req, CardIssuerStoreService_PostOnline_Ans>::Pointer ctx)
  37. {
  38. LOG_FUNCTION();
  39. DbgToBeidou(ctx->link, __FUNCTION__)();
  40. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("PostOnline");
  41. m_pEntity->PostOnline(ctx);
  42. }
  43. void CardIssuerStoreServerSession::Handle_Exit(SpOnewayCallContext<CardIssuerStoreService_Exit_Info>::Pointer ctx)
  44. {
  45. LOG_FUNCTION();
  46. DbgToBeidou(ctx->link, __FUNCTION__)();
  47. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Exit");
  48. m_pEntity->Exit(ctx);
  49. }
  50. void CardIssuerStoreServerSession::Handle_QueryCardInfo(SpReqAnsContext<CardIssuerStoreService_QueryCardInfo_Req, CardIssuerStoreService_QueryCardInfo_Ans>::Pointer ctx)
  51. {
  52. LOG_FUNCTION();
  53. DbgToBeidou(ctx->link, __FUNCTION__)();
  54. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("QueryCardInfo");
  55. m_pEntity->QueryCardInfo(ctx);
  56. }
  57. void CardIssuerStoreServerSession::Handle_WriteTrack(SpReqAnsContext<CardIssuerStoreService_WriteTrack_Req, CardIssuerStoreService_WriteTrack_Ans>::Pointer ctx)
  58. {
  59. LOG_FUNCTION();
  60. DbgToBeidou(ctx->link, __FUNCTION__)();
  61. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("WriteTrack");
  62. m_pEntity->WriteTrack(ctx);
  63. }
  64. void CardIssuerStoreServerSession::Handle_GetMaterialCountEx(SpReqAnsContext<CardIssuerStoreService_GetMaterialCountEx_Req, CardIssuerStoreService_GetMaterialCountEx_Ans>::Pointer ctx)
  65. {
  66. LOG_FUNCTION();
  67. DbgToBeidou(ctx->link, __FUNCTION__)();
  68. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("GetMaterialCountEx");
  69. m_pEntity->GetMaterialCountEx(ctx);
  70. }
  71. void CardIssuerStoreServerSession::Handle_SetMaterialCountEx(SpReqAnsContext<CardIssuerStoreService_SetMaterialCountEx_Req, CardIssuerStoreService_SetMaterialCountEx_Ans>::Pointer ctx)
  72. {
  73. LOG_FUNCTION();
  74. DbgToBeidou(ctx->link, __FUNCTION__)();
  75. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("SetMaterialCountEx");
  76. m_pEntity->SetMaterialCountEx(ctx);
  77. }
  78. void CardIssuerStoreServerSession::Handle_SetSomeFlag(SpReqAnsContext<CardIssuerStoreService_SetSomeFlag_Req, CardIssuerStoreService_SetSomeFlag_Ans>::Pointer ctx)
  79. {
  80. LOG_FUNCTION();
  81. DbgToBeidou(ctx->link, __FUNCTION__)();
  82. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("SetSomeFlag, Req.IssueBusiness=%d", ctx->Req.IssueBusiness);
  83. m_pEntity->SetSomeFlag(ctx);
  84. }
  85. void CardIssuerStoreServerSession::Handle_IssueEx(SpReqAnsContext<CardIssuerStoreService_IssueEx_Req, CardIssuerStoreService_IssueEx_Ans>::Pointer ctx)
  86. {
  87. LOG_FUNCTION();
  88. DbgToBeidou(ctx->link, __FUNCTION__)();
  89. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("IssueEx, Req.hopper=%d", ctx->Req.hopper);
  90. m_pEntity->IssueEx(ctx);
  91. }
  92. void CardIssuerStoreServerSession::Handle_SAMICCommand(SpReqAnsContext<CardIssuerStoreService_SAMICCommand_Req, CardIssuerStoreService_SAMICCommand_Ans>::Pointer ctx)
  93. {
  94. DbgToBeidou(ctx->link, __FUNCTION__)();
  95. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("SAMICCommand, Req.cmdType=%d", ctx->Req.cmdType);
  96. m_pEntity->SAMICCommand(ctx);
  97. }
  98. void CardIssuerStoreServerSession::Handle_QueryCardInfoOnStore(SpReqAnsContext<CardIssuerStoreService_QueryCardInfoOnStore_Req, CardIssuerStoreService_QueryCardInfoOnStore_Ans>::Pointer ctx)
  99. {
  100. LOG_FUNCTION();
  101. DbgToBeidou(ctx->link, __FUNCTION__)();
  102. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("QueryCardInfoOnStore");
  103. m_pEntity->QueryCardInfoOnStore(ctx);
  104. }
  105. void CardIssuerStoreServerSession::Handle_GetAddCardInfo(SpReqAnsContext<CardIssuerStoreService_GetAddCardInfo_Req, CardIssuerStoreService_GetAddCardInfo_Ans>::Pointer ctx)
  106. {
  107. LOG_FUNCTION();
  108. DbgToBeidou(ctx->link, __FUNCTION__)();
  109. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("GetAddCardInfo, Req.isSync=%d",ctx->Req.isSync);
  110. m_pEntity->GetAddCardInfo(ctx);
  111. }
  112. void CardIssuerStoreServerSession::Handle_PrintCardImmediately(SpReqAnsContext<CardIssuerStoreService_PrintCardImmediately_Req, CardIssuerStoreService_PrintCardImmediately_Ans>::Pointer ctx)
  113. {
  114. LOG_FUNCTION();
  115. DbgToBeidou(ctx->link, __FUNCTION__)();
  116. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("PrintCardImmediately");
  117. m_pEntity->PrintCardImmediately(ctx);
  118. }
  119. void CardIssuerStoreServerSession::Handle_QueryCIStatus(SpReqAnsContext<CardIssuerStoreService_QueryCIStatus_Req, CardIssuerStoreService_QueryCIStatus_Ans>::Pointer ctx)
  120. {
  121. LOG_FUNCTION();
  122. DbgToBeidou(ctx->link, __FUNCTION__)();
  123. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("QueryCIStatus");
  124. m_pEntity->QueryCIStatus(ctx);
  125. }
  126. void CardIssuerStoreServerSession::Handle_GetDevInfo(SpReqAnsContext<CardIssuerStoreService_GetDevInfo_Req, CardIssuerStoreService_GetDevInfo_Ans>::Pointer ctx)
  127. {
  128. LOG_FUNCTION();
  129. DbgToBeidou(ctx->link, __FUNCTION__)();
  130. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("GetDevInfo");
  131. m_pEntity->GetDevInfo(ctx);
  132. }
  133. #pragma region JS接口实现
  134. //吐卡
  135. void CardIssuerStoreServerSession::Handle_EjectJS(SpReqAnsContext<CardIssuerStoreService_EjectJS_Req, CardIssuerStoreService_EjectJS_Ans>::Pointer ctx)
  136. {
  137. LOG_FUNCTION();
  138. DbgToBeidou(ctx->link, __FUNCTION__)();
  139. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke EjectJS");
  140. m_pEntity->EjectJS(ctx);
  141. }
  142. //吞卡
  143. void CardIssuerStoreServerSession::Handle_CaptureJS(SpReqAnsContext<CardIssuerStoreService_CaptureJS_Req, CardIssuerStoreService_CaptureJS_Ans>::Pointer ctx)
  144. {
  145. LOG_FUNCTION();
  146. DbgToBeidou(ctx->link, __FUNCTION__)();
  147. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke CaptureJS, captureCode:%s",ctx->Req.captureCode.GetData());
  148. m_pEntity->CaptureJS(ctx);
  149. }
  150. //区间盘库
  151. void CardIssuerStoreServerSession::Handle_ReadBatchCardInfoInRangeJS(SpReqAnsContext<CardIssuerStoreService_ReadBatchCardInfoInRangeJS_Req, CardIssuerStoreService_ReadBatchCardInfoInRangeJS_Ans>::Pointer ctx)
  152. {
  153. LOG_FUNCTION();
  154. DbgToBeidou(ctx->link, __FUNCTION__)();
  155. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke ReadBatchCardInfoInRangeJS beginSlot:%d, endSlot:%d", ctx->Req.beginSlot, ctx->Req.endSlot);
  156. m_pEntity->ReadBatchCardInfoInRangeJS(ctx);
  157. }
  158. //卡库容量和卡槽状态
  159. void CardIssuerStoreServerSession::Handle_GetCardInStoreJS(SpReqAnsContext<CardIssuerStoreService_GetCardInStoreJS_Req, CardIssuerStoreService_GetCardInStoreJS_Ans>::Pointer ctx)
  160. {
  161. LOG_FUNCTION();
  162. DbgToBeidou(ctx->link, __FUNCTION__)();
  163. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke GetCardInStoreJS");
  164. m_pEntity->GetCardInStoreJS(ctx);
  165. }
  166. //加卡
  167. void CardIssuerStoreServerSession::Handle_AddAndReadCardFromBoxJS(SpReqAnsContext<CardIssuerStoreService_AddAndReadCardFromBoxJS_Req, CardIssuerStoreService_AddAndReadCardFromBoxJS_Ans>::Pointer ctx)
  168. {
  169. LOG_FUNCTION();
  170. DbgToBeidou(ctx->link, __FUNCTION__)();
  171. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke AddAndReadCardFromBoxJS");
  172. m_pEntity->AddAndReadCardFromBoxJS(ctx);
  173. }
  174. //移卡读卡
  175. void CardIssuerStoreServerSession::Handle_MoveAndReadCardFromSlotJS(SpReqAnsContext<CardIssuerStoreService_MoveAndReadCardFromSlotJS_Req, CardIssuerStoreService_MoveAndReadCardFromSlotJS_Ans>::Pointer ctx)
  176. {
  177. LOG_FUNCTION();
  178. DbgToBeidou(ctx->link, __FUNCTION__)();
  179. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke MoveAndReadCardFromSlotJS, slot:%d",ctx->Req.slot);
  180. m_pEntity->MoveAndReadCardFromSlotJS(ctx);
  181. }
  182. //移回卡槽
  183. void CardIssuerStoreServerSession::Handle_MoveBacktoSlotJS(SpReqAnsContext<CardIssuerStoreService_MoveBacktoSlotJS_Req, CardIssuerStoreService_MoveBacktoSlotJS_Ans>::Pointer ctx)
  184. {
  185. LOG_FUNCTION();
  186. DbgToBeidou(ctx->link, __FUNCTION__)();
  187. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke MoveBacktoSlotJS, slot:%d",ctx->Req.slot);
  188. m_pEntity->MoveBacktoSlotJS(ctx);
  189. }
  190. //查询卡机内部中是否有卡
  191. void CardIssuerStoreServerSession::Handle_QueryHasCardJS(SpReqAnsContext<CardIssuerStoreService_QueryHasCardJS_Req, CardIssuerStoreService_QueryHasCardJS_Ans>::Pointer ctx)
  192. {
  193. LOG_FUNCTION();
  194. DbgToBeidou(ctx->link, __FUNCTION__)();
  195. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke QueryHasCardJS");
  196. m_pEntity->QueryHasCardJS(ctx);
  197. }
  198. //写卡
  199. void CardIssuerStoreServerSession::Handle_WriteTrackJS(SpReqAnsContext<CardIssuerStoreService_WriteTrackJS_Req, CardIssuerStoreService_WriteTrackJS_Ans>::Pointer ctx)
  200. {
  201. LOG_FUNCTION();
  202. DbgToBeidou(ctx->link, __FUNCTION__)();
  203. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke WriteTrackJS");
  204. m_pEntity->WriteTrackJS(ctx);
  205. }
  206. //打印
  207. void CardIssuerStoreServerSession::Handle_PrintCardImmediatelyJS(SpReqAnsContext<CardIssuerStoreService_PrintCardImmediatelyJS_Req, CardIssuerStoreService_PrintCardImmediatelyJS_Ans>::Pointer ctx)
  208. {
  209. LOG_FUNCTION();
  210. DbgToBeidou(ctx->link, __FUNCTION__)();
  211. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke PrintCardImmediatelyJS");
  212. m_pEntity->PrintCardImmediatelyJS(ctx);
  213. }
  214. //IC交互
  215. void CardIssuerStoreServerSession::Handle_ICCommandJS(SpReqAnsContext<CardIssuerStoreService_ICCommandJS_Req, CardIssuerStoreService_ICCommandJS_Ans>::Pointer ctx)
  216. {
  217. LOG_FUNCTION();
  218. DbgToBeidou(ctx->link, __FUNCTION__)();
  219. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke ICCommandJS, cmdType:%d",ctx->Req.cmdType);
  220. m_pEntity->ICCommandJS(ctx);
  221. }
  222. //联机后处理
  223. void CardIssuerStoreServerSession::Handle_PostOnlineJS(SpReqAnsContext<CardIssuerStoreService_PostOnlineJS_Req, CardIssuerStoreService_PostOnlineJS_Ans>::Pointer ctx)
  224. {
  225. LOG_FUNCTION();
  226. DbgToBeidou(ctx->link, __FUNCTION__)();
  227. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke PostOnlineJS, data:%s",ctx->Req.data.GetData());
  228. m_pEntity->PostOnlineJS(ctx);
  229. }
  230. //卡箱发卡
  231. void CardIssuerStoreServerSession::Handle_IssueFromBoxJS(SpReqAnsContext<CardIssuerStoreService_IssueFromBoxJS_Req, CardIssuerStoreService_IssueFromBoxJS_Ans>::Pointer ctx)
  232. {
  233. LOG_FUNCTION();
  234. DbgToBeidou(ctx->link, __FUNCTION__)();
  235. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke IssueFromBoxJS, hopper:%d",ctx->Req.hopper);
  236. m_pEntity->IssueFromBoxJS(ctx);
  237. }
  238. //跨机激活
  239. void CardIssuerStoreServerSession::Handle_PreOnlineCrossJS(SpReqAnsContext<CardIssuerStoreService_PreOnlineCrossJS_Req, CardIssuerStoreService_PreOnlineCrossJS_Ans>::Pointer ctx)
  240. {
  241. LOG_FUNCTION();
  242. DbgToBeidou(ctx->link, __FUNCTION__)();
  243. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke PreOnlineCrossJS, slot:%d, businessData:%s",ctx->Req.slot, ctx->Req.businessData.GetData());
  244. m_pEntity->PreOnlineCrossJS(ctx);
  245. }
  246. //加卡箱移卡
  247. void CardIssuerStoreServerSession::Handle_AddCardFromBoxJS(SpReqAnsContext<CardIssuerStoreService_AddCardFromBoxJS_Req, CardIssuerStoreService_AddCardFromBoxJS_Ans>::Pointer ctx)
  248. {
  249. LOG_FUNCTION();
  250. DbgToBeidou(ctx->link, __FUNCTION__)();
  251. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke AddCardFromBoxJS");
  252. m_pEntity->AddCardFromBoxJS(ctx);
  253. }
  254. //卡槽移卡
  255. void CardIssuerStoreServerSession::Handle_MoveCardFromSlotJS(SpReqAnsContext<CardIssuerStoreService_MoveCardFromSlotJS_Req, CardIssuerStoreService_MoveCardFromSlotJS_Ans>::Pointer ctx)
  256. {
  257. LOG_FUNCTION();
  258. DbgToBeidou(ctx->link, __FUNCTION__)();
  259. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke MoveCardFromSlotJS, slot:%d",ctx->Req.slot);
  260. m_pEntity->MoveCardFromSlotJS(ctx);
  261. }
  262. //读卡
  263. void CardIssuerStoreServerSession::Handle_ReadMagAndICJS(SpReqAnsContext<CardIssuerStoreService_ReadMagAndICJS_Req, CardIssuerStoreService_ReadMagAndICJS_Ans>::Pointer ctx)
  264. {
  265. LOG_FUNCTION();
  266. DbgToBeidou(ctx->link, __FUNCTION__)();
  267. DbgWithLink(LOG_LEVEL_INFO, ctx->link.checkEmpty() ? LOG_TYPE_SYSTEM : LOG_TYPE_USER).setAPI(__FUNCTION__)("Invoke ReadMagAndICJS, icReadMode:%d, businessData:%s", ctx->Req.icReadMode, ctx->Req.businessData.GetData());
  268. m_pEntity->ReadMagAndICJS(ctx);
  269. }
  270. #pragma endregion JS接口实现
  271. void CCardIssuerEntity::OnSysVarEvent(const char* pszKey, const char* pszValue, const char* pszOldValue, const char* pszEntityName)
  272. {
  273. if ((_strnicmp(pszKey, "UIState", strlen("UIState")) == 0))
  274. {
  275. m_fsm.OnUIState4SetWhatPage(pszValue);
  276. }
  277. }
  278. SP_BEGIN_ENTITY_MAP()
  279. SP_ENTITY(CCardIssuerEntity)
  280. SP_END_ENTITY_MAP()