12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667 |
- #pragma once
- #include "SpSecureClient.h"
- #include "offline_video_record_t.h"
- namespace SalesRecorder {
- #define MAX_LISTSIZE 50 // 离线双录一次最大提交笔数 add by ly 2018/02/13
- #pragma pack(1)
- //[StructName("SOVREQ")]
- struct SaveOfflineVideoReq
- {
- char TerminalNo[16];
- char VideoSerialID[20];
- //char EndTime[20];
- char CardNo[32];
- char Name[32];
- char ProductCode[32];
- char ProductName[128];
- char ManagerSAP[12];
- char ManagerName[32];
- char ProductType[12];
- char BusinessType[12];
- char CompanyCode[8];
- char WitnessSAP[12];
- char WitnessName[32];
- int Duration;
- };
- //[StructName("SOVANS")]
- struct SaveOfflineVideoReply
- {
- char TerminalNo[16];
- char VideoSerialID[20];
- int ResultCode;
- };
- struct OFLVideoRecord
- {
- char VideoSerialID[20];
- char BeginTime[20];
- char CardNo[32];
- char Name[32];
- char ProductCode[32];
- char ProductName[128];
- char ManagerSAP[12];
- char ManagerName[32];
- char ProductType[12];
- char BusinessType[12];
- char CompanyCode[8];
- char WitnessSAP[12];
- char WitnessName[32];
- int Duration;
- };
- class CUploadOFLRecordConnection : public SpSecureClient
- {
- public:
- explicit CUploadOFLRecordConnection(CEntityBase *pEntity) : SpSecureClient(pEntity) {}
- void SendOFLVideoRecord(offline_video_record_t *offlinevideorecord);
- void SendOFLVideoRecords(std::vector<offline_video_record_t *> &offlinevideorecordlist);
- protected:
- virtual ~CUploadOFLRecordConnection() { /*empty implementation*/ }
- virtual void OnDisconnect();
- virtual void OnPkgAnswer(const CSmartPointer<IPackage> &pRecvPkg);
- };
- }
|