1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950 |
- #pragma once
- #include "scan_common.h"
- #include "DataBaseHolder.h"
- #include "ResultHandler.h"
- class CStudentMatcher:public IService,public CDataBaseHolder
- {
- public:
- CStudentMatcher(void);
- ~CStudentMatcher(void);
- virtual ServiceState OnStarting( void );
- virtual ServiceState OnRunning( void );
- virtual ServiceState OnStoping( void );
- void SetResultHandler( CResultHandler* result_handler );
- void setExamId( long examId );
- int SetHandlerWnd( HWND hwnd )
- {
- m_hwnd = hwnd;
- return TRUE;
- }
- void SetImgDir( CString norimg_dir, CString excimg_dir )
- {
- m_norimg_dir =CT2A(norimg_dir);
- m_excimg_dir =CT2A(excimg_dir);
- }
- protected:
- CString url_str;
- CString url_str_dxk;
- CString url_str_zxk;
- CResultHandler * m_resultHandler;
- std::string m_excimg_dir;
- std::string m_norimg_dir;
- long m_examId;
- HWND m_hwnd;
- bool m_bUseQr;
- std::string m_strQr;
- bool m_bErrorHandle;
- int cur_student_paper_id;
- public:
- void SetErrorHandle(bool bErrorHandle){ m_bErrorHandle = bErrorHandle; }
- CString MarkHttpHeaderData();
- bool readPaperId(CString& strPaperId);
- void SetUseQr(int student_paper_id, bool bUseQr, const std::string&strQr){ cur_student_paper_id = student_paper_id; m_strQr = strQr; m_bUseQr = bUseQr; }
- bool readBarcodeFlag(CString& strBarcodeFlag);
- int m_nOnlineScanType;//参数说明:-1 代表原理的在线答题卡扫描 0:代表英语魔法词汇宝扫描
- };
|