|
@@ -0,0 +1,1607 @@
|
|
|
+
|
|
|
+#ifndef __CARDISSUERSTAND_CLIENT_G_H
|
|
|
+#define __CARDISSUERSTAND_CLIENT_G_H
|
|
|
+
|
|
|
+#pragma once
|
|
|
+
|
|
|
+// This code is generated by spgen tool!
|
|
|
+
|
|
|
+#include "CardIssuerStand_def_g.h"
|
|
|
+
|
|
|
+namespace CardIssuerStand {
|
|
|
+class CardIssuerStandService_ClientBase : public CClientSessionBase {
|
|
|
+public:
|
|
|
+ explicit CardIssuerStandService_ClientBase(CEntityBase *pEntity) : m_pEntityBase(pEntity), m_bSysManaged(false) {}
|
|
|
+
|
|
|
+ CardIssuerStandService_ClientBase* operator () (const linkContext &curLink)
|
|
|
+ {
|
|
|
+ m_context = curLink;
|
|
|
+ return this;
|
|
|
+ }
|
|
|
+
|
|
|
+protected:
|
|
|
+ virtual ~CardIssuerStandService_ClientBase()
|
|
|
+ {
|
|
|
+ /// override by user
|
|
|
+ }
|
|
|
+public:
|
|
|
+
|
|
|
+ void OnConnectSucceed()
|
|
|
+ {
|
|
|
+ bSessionClosed = false;
|
|
|
+ }
|
|
|
+ void OnClose(ErrorCodeEnum)
|
|
|
+ {
|
|
|
+ Dbg("session closed.");
|
|
|
+ bSessionClosed = true;
|
|
|
+ }
|
|
|
+ bool QuerySessionClosed()
|
|
|
+ {
|
|
|
+ return bSessionClosed;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum Connect(CSmartPointer<IAsynWaitSp> &spAsyncWait)
|
|
|
+ {
|
|
|
+ CSmartPointer<IEntityFunction> pFunc = m_pEntityBase->GetFunction();
|
|
|
+ ErrorCodeEnum Error = pFunc->ConnectRemoteEntity(this, "CardIssuerStand", "CardIssuerStandService", spAsyncWait);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ m_bSysManaged = true;
|
|
|
+ bSessionClosed = false;
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum Connect()
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = Connect(spAsyncWait);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ Error = spAsyncWait->WaitAnswer();
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum Insert(CardIssuerStandService_Insert_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_Insert, CardIssuerStandService_MethodSignature_Insert, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum Insert(CardIssuerStandService_Insert_Req &Req, CardIssuerStandService_Insert_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = Insert(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum Insert(CardIssuerStandService_Insert_Req &Req, CardIssuerStandService_Insert_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = Insert(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum Insert(CardIssuerStandService_Insert_Req &Req, CardIssuerStandService_Insert_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = Insert(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum CancelInsert()
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->OnewayCall(CardIssuerStandService_Method_CancelInsert, CardIssuerStandService_MethodSignature_CancelInsert, m_context);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum InsertWaitMore()
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->OnewayCall(CardIssuerStandService_Method_InsertWaitMore, CardIssuerStandService_MethodSignature_InsertWaitMore, m_context);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum Read(CardIssuerStandService_Read_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_Read, CardIssuerStandService_MethodSignature_Read, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum Read(CardIssuerStandService_Read_Req &Req, CardIssuerStandService_Read_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = Read(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum Read(CardIssuerStandService_Read_Req &Req, CardIssuerStandService_Read_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = Read(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum Read(CardIssuerStandService_Read_Req &Req, CardIssuerStandService_Read_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = Read(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum Capture(CardIssuerStandService_Capture_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_Capture, CardIssuerStandService_MethodSignature_Capture, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum Capture(CardIssuerStandService_Capture_Req &Req, CardIssuerStandService_Capture_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = Capture(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum Capture(CardIssuerStandService_Capture_Req &Req, CardIssuerStandService_Capture_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = Capture(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum Capture(CardIssuerStandService_Capture_Req &Req, CardIssuerStandService_Capture_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = Capture(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum Eject(CardIssuerStandService_Eject_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_Eject, CardIssuerStandService_MethodSignature_Eject, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum Eject(CardIssuerStandService_Eject_Req &Req, CardIssuerStandService_Eject_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = Eject(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum Eject(CardIssuerStandService_Eject_Req &Req, CardIssuerStandService_Eject_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = Eject(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum Eject(CardIssuerStandService_Eject_Req &Req, CardIssuerStandService_Eject_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = Eject(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum PreOnline(CardIssuerStandService_PreOnline_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_PreOnline, CardIssuerStandService_MethodSignature_PreOnline, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum PreOnline(CardIssuerStandService_PreOnline_Req &Req, CardIssuerStandService_PreOnline_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = PreOnline(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum PreOnline(CardIssuerStandService_PreOnline_Req &Req, CardIssuerStandService_PreOnline_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = PreOnline(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum PreOnline(CardIssuerStandService_PreOnline_Req &Req, CardIssuerStandService_PreOnline_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = PreOnline(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum PostOnline(CardIssuerStandService_PostOnline_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_PostOnline, CardIssuerStandService_MethodSignature_PostOnline, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum PostOnline(CardIssuerStandService_PostOnline_Req &Req, CardIssuerStandService_PostOnline_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = PostOnline(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum PostOnline(CardIssuerStandService_PostOnline_Req &Req, CardIssuerStandService_PostOnline_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = PostOnline(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum PostOnline(CardIssuerStandService_PostOnline_Req &Req, CardIssuerStandService_PostOnline_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = PostOnline(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum Exit()
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->OnewayCall(CardIssuerStandService_Method_Exit, CardIssuerStandService_MethodSignature_Exit, m_context);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum Issue(CardIssuerStandService_Issue_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_Issue, CardIssuerStandService_MethodSignature_Issue, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum Issue(CardIssuerStandService_Issue_Req &Req, CardIssuerStandService_Issue_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = Issue(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum Issue(CardIssuerStandService_Issue_Req &Req, CardIssuerStandService_Issue_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = Issue(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum Issue(CardIssuerStandService_Issue_Req &Req, CardIssuerStandService_Issue_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = Issue(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum GetMaterialCount(CardIssuerStandService_GetMaterialCount_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_GetMaterialCount, CardIssuerStandService_MethodSignature_GetMaterialCount, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum GetMaterialCount(CardIssuerStandService_GetMaterialCount_Req &Req, CardIssuerStandService_GetMaterialCount_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = GetMaterialCount(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum GetMaterialCount(CardIssuerStandService_GetMaterialCount_Req &Req, CardIssuerStandService_GetMaterialCount_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = GetMaterialCount(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum GetMaterialCount(CardIssuerStandService_GetMaterialCount_Req &Req, CardIssuerStandService_GetMaterialCount_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = GetMaterialCount(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum SetMaterialCount(CardIssuerStandService_SetMaterialCount_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_SetMaterialCount, CardIssuerStandService_MethodSignature_SetMaterialCount, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum SetMaterialCount(CardIssuerStandService_SetMaterialCount_Req &Req, CardIssuerStandService_SetMaterialCount_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = SetMaterialCount(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum SetMaterialCount(CardIssuerStandService_SetMaterialCount_Req &Req, CardIssuerStandService_SetMaterialCount_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = SetMaterialCount(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum SetMaterialCount(CardIssuerStandService_SetMaterialCount_Req &Req, CardIssuerStandService_SetMaterialCount_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = SetMaterialCount(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum SetIssueFlag()
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->OnewayCall(CardIssuerStandService_Method_SetIssueFlag, CardIssuerStandService_MethodSignature_SetIssueFlag, m_context);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum ReadEx(CardIssuerStandService_ReadEx_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_ReadEx, CardIssuerStandService_MethodSignature_ReadEx, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum ReadEx(CardIssuerStandService_ReadEx_Req &Req, CardIssuerStandService_ReadEx_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = ReadEx(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum ReadEx(CardIssuerStandService_ReadEx_Req &Req, CardIssuerStandService_ReadEx_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = ReadEx(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum ReadEx(CardIssuerStandService_ReadEx_Req &Req, CardIssuerStandService_ReadEx_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = ReadEx(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum QueryCardInfo(CardIssuerStandService_QueryCardInfo_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_QueryCardInfo, CardIssuerStandService_MethodSignature_QueryCardInfo, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum QueryCardInfo(CardIssuerStandService_QueryCardInfo_Req &Req, CardIssuerStandService_QueryCardInfo_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = QueryCardInfo(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum QueryCardInfo(CardIssuerStandService_QueryCardInfo_Req &Req, CardIssuerStandService_QueryCardInfo_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = QueryCardInfo(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum QueryCardInfo(CardIssuerStandService_QueryCardInfo_Req &Req, CardIssuerStandService_QueryCardInfo_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = QueryCardInfo(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum WriteTrack(CardIssuerStandService_WriteTrack_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_WriteTrack, CardIssuerStandService_MethodSignature_WriteTrack, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum WriteTrack(CardIssuerStandService_WriteTrack_Req &Req, CardIssuerStandService_WriteTrack_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = WriteTrack(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum WriteTrack(CardIssuerStandService_WriteTrack_Req &Req, CardIssuerStandService_WriteTrack_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = WriteTrack(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum WriteTrack(CardIssuerStandService_WriteTrack_Req &Req, CardIssuerStandService_WriteTrack_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = WriteTrack(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum GetMaterialCountEx(CardIssuerStandService_GetMaterialCountEx_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_GetMaterialCountEx, CardIssuerStandService_MethodSignature_GetMaterialCountEx, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum GetMaterialCountEx(CardIssuerStandService_GetMaterialCountEx_Req &Req, CardIssuerStandService_GetMaterialCountEx_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = GetMaterialCountEx(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum GetMaterialCountEx(CardIssuerStandService_GetMaterialCountEx_Req &Req, CardIssuerStandService_GetMaterialCountEx_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = GetMaterialCountEx(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum GetMaterialCountEx(CardIssuerStandService_GetMaterialCountEx_Req &Req, CardIssuerStandService_GetMaterialCountEx_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = GetMaterialCountEx(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum SetMaterialCountEx(CardIssuerStandService_SetMaterialCountEx_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_SetMaterialCountEx, CardIssuerStandService_MethodSignature_SetMaterialCountEx, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum SetMaterialCountEx(CardIssuerStandService_SetMaterialCountEx_Req &Req, CardIssuerStandService_SetMaterialCountEx_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = SetMaterialCountEx(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum SetMaterialCountEx(CardIssuerStandService_SetMaterialCountEx_Req &Req, CardIssuerStandService_SetMaterialCountEx_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = SetMaterialCountEx(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum SetMaterialCountEx(CardIssuerStandService_SetMaterialCountEx_Req &Req, CardIssuerStandService_SetMaterialCountEx_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = SetMaterialCountEx(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum SetSomeFlag(CardIssuerStandService_SetSomeFlag_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_SetSomeFlag, CardIssuerStandService_MethodSignature_SetSomeFlag, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum SetSomeFlag(CardIssuerStandService_SetSomeFlag_Req &Req, CardIssuerStandService_SetSomeFlag_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = SetSomeFlag(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum SetSomeFlag(CardIssuerStandService_SetSomeFlag_Req &Req, CardIssuerStandService_SetSomeFlag_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = SetSomeFlag(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum SetSomeFlag(CardIssuerStandService_SetSomeFlag_Req &Req, CardIssuerStandService_SetSomeFlag_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = SetSomeFlag(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum GetSCIInfo(CardIssuerStandService_GetSCIInfo_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_GetSCIInfo, CardIssuerStandService_MethodSignature_GetSCIInfo, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum GetSCIInfo(CardIssuerStandService_GetSCIInfo_Req &Req, CardIssuerStandService_GetSCIInfo_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = GetSCIInfo(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum GetSCIInfo(CardIssuerStandService_GetSCIInfo_Req &Req, CardIssuerStandService_GetSCIInfo_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = GetSCIInfo(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum GetSCIInfo(CardIssuerStandService_GetSCIInfo_Req &Req, CardIssuerStandService_GetSCIInfo_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = GetSCIInfo(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum IssueEx(CardIssuerStandService_IssueEx_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_IssueEx, CardIssuerStandService_MethodSignature_IssueEx, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum IssueEx(CardIssuerStandService_IssueEx_Req &Req, CardIssuerStandService_IssueEx_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = IssueEx(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum IssueEx(CardIssuerStandService_IssueEx_Req &Req, CardIssuerStandService_IssueEx_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = IssueEx(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum IssueEx(CardIssuerStandService_IssueEx_Req &Req, CardIssuerStandService_IssueEx_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = IssueEx(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum OpenSafeLock(CardIssuerStandService_OpenSafeLock_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_OpenSafeLock, CardIssuerStandService_MethodSignature_OpenSafeLock, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum OpenSafeLock(CardIssuerStandService_OpenSafeLock_Req &Req, CardIssuerStandService_OpenSafeLock_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = OpenSafeLock(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum OpenSafeLock(CardIssuerStandService_OpenSafeLock_Req &Req, CardIssuerStandService_OpenSafeLock_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = OpenSafeLock(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum OpenSafeLock(CardIssuerStandService_OpenSafeLock_Req &Req, CardIssuerStandService_OpenSafeLock_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = OpenSafeLock(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum SAMICCommand(CardIssuerStandService_SAMICCommand_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_SAMICCommand, CardIssuerStandService_MethodSignature_SAMICCommand, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum SAMICCommand(CardIssuerStandService_SAMICCommand_Req &Req, CardIssuerStandService_SAMICCommand_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = SAMICCommand(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum SAMICCommand(CardIssuerStandService_SAMICCommand_Req &Req, CardIssuerStandService_SAMICCommand_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = SAMICCommand(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum SAMICCommand(CardIssuerStandService_SAMICCommand_Req &Req, CardIssuerStandService_SAMICCommand_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = SAMICCommand(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum QueryPrinterStatus(CardIssuerStandService_QueryPrinterStatus_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_QueryPrinterStatus, CardIssuerStandService_MethodSignature_QueryPrinterStatus, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum QueryPrinterStatus(CardIssuerStandService_QueryPrinterStatus_Req &Req, CardIssuerStandService_QueryPrinterStatus_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = QueryPrinterStatus(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum QueryPrinterStatus(CardIssuerStandService_QueryPrinterStatus_Req &Req, CardIssuerStandService_QueryPrinterStatus_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = QueryPrinterStatus(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum QueryPrinterStatus(CardIssuerStandService_QueryPrinterStatus_Req &Req, CardIssuerStandService_QueryPrinterStatus_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = QueryPrinterStatus(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum Print(CardIssuerStandService_Print_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_Print, CardIssuerStandService_MethodSignature_Print, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum Print(CardIssuerStandService_Print_Req &Req, CardIssuerStandService_Print_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = Print(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum Print(CardIssuerStandService_Print_Req &Req, CardIssuerStandService_Print_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = Print(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum Print(CardIssuerStandService_Print_Req &Req, CardIssuerStandService_Print_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = Print(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum QuerySCIList(CardIssuerStandService_QuerySCIList_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_QuerySCIList, CardIssuerStandService_MethodSignature_QuerySCIList, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum QuerySCIList(CardIssuerStandService_QuerySCIList_Req &Req, CardIssuerStandService_QuerySCIList_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = QuerySCIList(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum QuerySCIList(CardIssuerStandService_QuerySCIList_Req &Req, CardIssuerStandService_QuerySCIList_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = QuerySCIList(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum QuerySCIList(CardIssuerStandService_QuerySCIList_Req &Req, CardIssuerStandService_QuerySCIList_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = QuerySCIList(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum BindSCI(CardIssuerStandService_BindSCI_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_BindSCI, CardIssuerStandService_MethodSignature_BindSCI, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum BindSCI(CardIssuerStandService_BindSCI_Req &Req, CardIssuerStandService_BindSCI_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = BindSCI(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum BindSCI(CardIssuerStandService_BindSCI_Req &Req, CardIssuerStandService_BindSCI_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = BindSCI(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum BindSCI(CardIssuerStandService_BindSCI_Req &Req, CardIssuerStandService_BindSCI_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = BindSCI(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum PreOnlineOnStore(CardIssuerStandService_PreOnlineOnStore_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_PreOnlineOnStore, CardIssuerStandService_MethodSignature_PreOnlineOnStore, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum PreOnlineOnStore(CardIssuerStandService_PreOnlineOnStore_Req &Req, CardIssuerStandService_PreOnlineOnStore_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = PreOnlineOnStore(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum PreOnlineOnStore(CardIssuerStandService_PreOnlineOnStore_Req &Req, CardIssuerStandService_PreOnlineOnStore_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = PreOnlineOnStore(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum PreOnlineOnStore(CardIssuerStandService_PreOnlineOnStore_Req &Req, CardIssuerStandService_PreOnlineOnStore_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = PreOnlineOnStore(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum NotifyPreonline(CardIssuerStandService_NotifyPreonline_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_NotifyPreonline, CardIssuerStandService_MethodSignature_NotifyPreonline, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum NotifyPreonline(CardIssuerStandService_NotifyPreonline_Req &Req, CardIssuerStandService_NotifyPreonline_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = NotifyPreonline(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum NotifyPreonline(CardIssuerStandService_NotifyPreonline_Req &Req, CardIssuerStandService_NotifyPreonline_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = NotifyPreonline(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum NotifyPreonline(CardIssuerStandService_NotifyPreonline_Req &Req, CardIssuerStandService_NotifyPreonline_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = NotifyPreonline(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum QueryCardInfoOnStore(CardIssuerStandService_QueryCardInfoOnStore_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_QueryCardInfoOnStore, CardIssuerStandService_MethodSignature_QueryCardInfoOnStore, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum QueryCardInfoOnStore(CardIssuerStandService_QueryCardInfoOnStore_Req &Req, CardIssuerStandService_QueryCardInfoOnStore_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = QueryCardInfoOnStore(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum QueryCardInfoOnStore(CardIssuerStandService_QueryCardInfoOnStore_Req &Req, CardIssuerStandService_QueryCardInfoOnStore_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = QueryCardInfoOnStore(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum QueryCardInfoOnStore(CardIssuerStandService_QueryCardInfoOnStore_Req &Req, CardIssuerStandService_QueryCardInfoOnStore_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = QueryCardInfoOnStore(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum GetAddCardInfo(CardIssuerStandService_GetAddCardInfo_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_GetAddCardInfo, CardIssuerStandService_MethodSignature_GetAddCardInfo, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum GetAddCardInfo(CardIssuerStandService_GetAddCardInfo_Req &Req, CardIssuerStandService_GetAddCardInfo_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = GetAddCardInfo(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum GetAddCardInfo(CardIssuerStandService_GetAddCardInfo_Req &Req, CardIssuerStandService_GetAddCardInfo_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = GetAddCardInfo(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum GetAddCardInfo(CardIssuerStandService_GetAddCardInfo_Req &Req, CardIssuerStandService_GetAddCardInfo_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = GetAddCardInfo(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum PrintCardImmediately(CardIssuerStandService_PrintCardImmediately_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_PrintCardImmediately, CardIssuerStandService_MethodSignature_PrintCardImmediately, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum PrintCardImmediately(CardIssuerStandService_PrintCardImmediately_Req &Req, CardIssuerStandService_PrintCardImmediately_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = PrintCardImmediately(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum PrintCardImmediately(CardIssuerStandService_PrintCardImmediately_Req &Req, CardIssuerStandService_PrintCardImmediately_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = PrintCardImmediately(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum PrintCardImmediately(CardIssuerStandService_PrintCardImmediately_Req &Req, CardIssuerStandService_PrintCardImmediately_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = PrintCardImmediately(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum QueryCIStatus(CardIssuerStandService_QueryCIStatus_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_QueryCIStatus, CardIssuerStandService_MethodSignature_QueryCIStatus, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum QueryCIStatus(CardIssuerStandService_QueryCIStatus_Req &Req, CardIssuerStandService_QueryCIStatus_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = QueryCIStatus(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum QueryCIStatus(CardIssuerStandService_QueryCIStatus_Req &Req, CardIssuerStandService_QueryCIStatus_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = QueryCIStatus(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum QueryCIStatus(CardIssuerStandService_QueryCIStatus_Req &Req, CardIssuerStandService_QueryCIStatus_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = QueryCIStatus(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+ ErrorCodeEnum GetDevInfo(CardIssuerStandService_GetDevInfo_Req &Req, CSmartPointer<IAsynWaitSp> &spAsyncWait, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IClientSessionFunction> pFunc = GetFunction();
|
|
|
+ CAutoBuffer Buf = SpObject2Buffer(Req);
|
|
|
+ if (m_context.checkEmpty())
|
|
|
+ {
|
|
|
+ m_context.AutoGenerate();
|
|
|
+ DbgToBeidou(m_context, m_pEntityBase != NULL ? m_pEntityBase->GetEntityName() : "")();
|
|
|
+ m_context = m_context.upgradeLink();
|
|
|
+ }
|
|
|
+ auto ret = pFunc->AsyncRequest(CardIssuerStandService_Method_GetDevInfo, CardIssuerStandService_MethodSignature_GetDevInfo, Buf, spAsyncWait, m_context, dwTimeout);
|
|
|
+ m_context.clear();
|
|
|
+ return ret;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum GetDevInfo(CardIssuerStandService_GetDevInfo_Req &Req, CardIssuerStandService_GetDevInfo_Ans &Ans, DWORD dwTimeout)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = GetDevInfo(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum GetDevInfo(CardIssuerStandService_GetDevInfo_Req &Req, CardIssuerStandService_GetDevInfo_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError, CSimpleString &str)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = GetDevInfo(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+ ErrorCodeEnum GetDevInfo(CardIssuerStandService_GetDevInfo_Req &Req, CardIssuerStandService_GetDevInfo_Ans &Ans, DWORD dwTimeout, DWORD &dwUserError)
|
|
|
+ {
|
|
|
+ CSmartPointer<IAsynWaitSp> spAsyncWait;
|
|
|
+ ErrorCodeEnum Error = GetDevInfo(Req, spAsyncWait, dwTimeout);
|
|
|
+ if (Error == Error_Succeed) {
|
|
|
+ bool bEnd = false;
|
|
|
+ CSimpleString str;
|
|
|
+ Error = SpWaitAnswerObject(spAsyncWait, Ans, bEnd, dwUserError, str, dwTimeout);
|
|
|
+ LOG_ASSERT(Error || bEnd);
|
|
|
+ }
|
|
|
+ return Error;
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
+ bool SafeDelete()
|
|
|
+ {
|
|
|
+ if (!m_bSysManaged) {
|
|
|
+ delete this;
|
|
|
+ }
|
|
|
+ return m_bSysManaged;
|
|
|
+ }
|
|
|
+
|
|
|
+protected:
|
|
|
+ bool m_bSysManaged;
|
|
|
+ CEntityBase *m_pEntityBase;
|
|
|
+ linkContext m_context;
|
|
|
+ bool bSessionClosed;
|
|
|
+};
|
|
|
+
|
|
|
+///////////////////////////
|
|
|
+
|
|
|
+} // namespace CardIssuerStand
|
|
|
+#endif // __CARDISSUERSTAND_CLIENT_G_H
|