|
@@ -100,6 +100,27 @@ public:
|
|
|
Error = Error_MethodSignatureFailed;
|
|
|
}
|
|
|
break;
|
|
|
+ case FingerPrintService_Method_GetFingerPrintJS:
|
|
|
+ if (dwSignature == FingerPrintService_MethodSignature_GetFingerPrintJS) {
|
|
|
+ bOverlap = true;
|
|
|
+ } else {
|
|
|
+ Error = Error_MethodSignatureFailed;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case FingerPrintService_Method_GenerateTemplateJS:
|
|
|
+ if (dwSignature == FingerPrintService_MethodSignature_GenerateTemplateJS) {
|
|
|
+ bOverlap = true;
|
|
|
+ } else {
|
|
|
+ Error = Error_MethodSignatureFailed;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case FingerPrintService_Method_CancelScanJS:
|
|
|
+ if (dwSignature == FingerPrintService_MethodSignature_CancelScanJS) {
|
|
|
+ bOverlap = true;
|
|
|
+ } else {
|
|
|
+ Error = Error_MethodSignatureFailed;
|
|
|
+ }
|
|
|
+ break;
|
|
|
default:
|
|
|
Error = Error_MethodNotFound;
|
|
|
break;
|
|
@@ -161,6 +182,21 @@ public:
|
|
|
Error = Error_MethodSignatureFailed;
|
|
|
}
|
|
|
break;
|
|
|
+ case FingerPrintService_Method_GetFingerPrintJS:
|
|
|
+ if (dwSignature != FingerPrintService_MethodSignature_GetFingerPrintJS) {
|
|
|
+ Error = Error_MethodSignatureFailed;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case FingerPrintService_Method_GenerateTemplateJS:
|
|
|
+ if (dwSignature != FingerPrintService_MethodSignature_GenerateTemplateJS) {
|
|
|
+ Error = Error_MethodSignatureFailed;
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case FingerPrintService_Method_CancelScanJS:
|
|
|
+ if (dwSignature != FingerPrintService_MethodSignature_CancelScanJS) {
|
|
|
+ Error = Error_MethodSignatureFailed;
|
|
|
+ }
|
|
|
+ break;
|
|
|
default:
|
|
|
Error = Error_MethodNotFound;
|
|
|
break;
|
|
@@ -218,6 +254,21 @@ public:
|
|
|
/// override by user
|
|
|
}
|
|
|
|
|
|
+ virtual void Handle_GetFingerPrintJS(SpReqAnsContext<FingerPrintService_GetFingerPrintJS_Req, FingerPrintService_GetFingerPrintJS_Ans>::Pointer ctx)
|
|
|
+ {
|
|
|
+ /// override by user
|
|
|
+ }
|
|
|
+
|
|
|
+ virtual void Handle_GenerateTemplateJS(SpReqAnsContext<FingerPrintService_GenerateTemplateJS_Req, FingerPrintService_GenerateTemplateJS_Ans>::Pointer ctx)
|
|
|
+ {
|
|
|
+ /// override by user
|
|
|
+ }
|
|
|
+
|
|
|
+ virtual void Handle_CancelScanJS(SpReqAnsContext<FingerPrintService_CancelScanJS_Req, FingerPrintService_CancelScanJS_Ans>::Pointer ctx)
|
|
|
+ {
|
|
|
+ /// override by user
|
|
|
+ }
|
|
|
+
|
|
|
virtual void OnRequest(CSmartPointer<ITransactionContext> pTransactionContext)
|
|
|
{
|
|
|
CAutoBuffer Buf;
|
|
@@ -334,6 +385,36 @@ public:
|
|
|
Handle_GenerateTemplate(ctx);
|
|
|
}
|
|
|
break;
|
|
|
+ case FingerPrintService_Method_GetFingerPrintJS:
|
|
|
+ {
|
|
|
+ SpReqAnsContext<FingerPrintService_GetFingerPrintJS_Req,FingerPrintService_GetFingerPrintJS_Ans>::Pointer ctx;
|
|
|
+ ctx.Attach(new SpReqAnsContext<FingerPrintService_GetFingerPrintJS_Req,FingerPrintService_GetFingerPrintJS_Ans>(pTransactionContext));
|
|
|
+ SpBuffer2Object(Buf, ctx->Req);
|
|
|
+ pTransactionContext->GetLinkContext(ctx->link);
|
|
|
+ EntityResource::setLink(ctx->link);
|
|
|
+ Handle_GetFingerPrintJS(ctx);
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case FingerPrintService_Method_GenerateTemplateJS:
|
|
|
+ {
|
|
|
+ SpReqAnsContext<FingerPrintService_GenerateTemplateJS_Req,FingerPrintService_GenerateTemplateJS_Ans>::Pointer ctx;
|
|
|
+ ctx.Attach(new SpReqAnsContext<FingerPrintService_GenerateTemplateJS_Req,FingerPrintService_GenerateTemplateJS_Ans>(pTransactionContext));
|
|
|
+ SpBuffer2Object(Buf, ctx->Req);
|
|
|
+ pTransactionContext->GetLinkContext(ctx->link);
|
|
|
+ EntityResource::setLink(ctx->link);
|
|
|
+ Handle_GenerateTemplateJS(ctx);
|
|
|
+ }
|
|
|
+ break;
|
|
|
+ case FingerPrintService_Method_CancelScanJS:
|
|
|
+ {
|
|
|
+ SpReqAnsContext<FingerPrintService_CancelScanJS_Req,FingerPrintService_CancelScanJS_Ans>::Pointer ctx;
|
|
|
+ ctx.Attach(new SpReqAnsContext<FingerPrintService_CancelScanJS_Req,FingerPrintService_CancelScanJS_Ans>(pTransactionContext));
|
|
|
+ SpBuffer2Object(Buf, ctx->Req);
|
|
|
+ pTransactionContext->GetLinkContext(ctx->link);
|
|
|
+ EntityResource::setLink(ctx->link);
|
|
|
+ Handle_CancelScanJS(ctx);
|
|
|
+ }
|
|
|
+ break;
|
|
|
default:
|
|
|
assert(0);
|
|
|
break;
|