123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149 |
- #ifndef __LYFZ_LOADLIBRARY__
- #define __LYFZ_LOADLIBRARY__
- #pragma once
- #include <vector>
- using namespace std;
- namespace lyfzLibrary
- {
- // 云选模块;
- extern CString g_strCloundHost;
- typedef struct _STSPJSON_
- {
- CString strImgs;
- CString strSpCount;
- CString strSpId;
- CString strSpName;
- }STSpJson, *pSTSpJson;
- typedef struct _STORDJSON_
- {
- CString strorder;
- CString strCustomer1;
- CString strCustomer2;
- CString strCust1PY;
- CString strCust2PY;
- CString strXPStatus;
- CString strXPDate;
- vector<STSpJson> vtSpJson;
- }STOrdJson, *pSTOrdJson;
- typedef struct __STXYJSON__
- {
- CString strorder;
- CString strCustomer1;
- CString strCustomer2;
- CString strCust1PY;
- CString strCust2PY;
- CString strSJStatus; // 设计状态;
- CString strXYDate;
- CString strJsonResult; // 解析后的Json值;
- }STXYJson, *pSTXYJson;
- typedef BOOL (WINAPI *API_uploadorder)(
- IN LPCTSTR lpUniqueId,
- IN const INT& nCloundType,
- IN LPCTSTR lpBranchName,
- IN LPCTSTR lpBranchTel,
- IN LPCTSTR lpOrderNum,
- IN LPCTSTR lpScenery,
- IN LPCTSTR lpCustomerName,
- IN LPCTSTR lpCustomerTel,
- OUT LPTSTR lpClounWebSite,
- IN const INT& nMaxLen
- );
- typedef BOOL (WINAPI *API_uploadgoodinfo)(IN LPCTSTR lpUniqueId, IN LPCTSTR lpGoodsJson);
- typedef BOOL (WINAPI *API_uploadimg)(
- IN const INT& nCloundType,
- IN LPCTSTR lpUniqueId,
- IN LPCTSTR lpOrderNum,
- IN LPCTSTR lpScenery,
- IN LPCTSTR lpWatermark,
- IN const INT& nWidth,
- IN const INT& nHeight,
- IN CStringArray& AryOImgpath, // 原片地址;
- IN CStringArray& AryEImgpath, // 初修地址;
- IN CStringArray& AryDImgpath // 设计地址;
- );
- typedef INT (WINAPI *API_getcloundresult)(IN const INT& nCloundType, IN LPCTSTR lpUniqueId, IN LPCTSTR lpCloundSubSite, IN LPTSTR lpJsonValue, IN const INT& nMaxLen);
- extern HMODULE g_hCloudSelectionLib;
- extern API_uploadorder g_uploadorder;
- extern API_uploadgoodinfo g_uploadgoodinfo;
- extern API_uploadimg g_uploadimg;
- extern API_getcloundresult g_getcloundresult;
- extern BOOL LoadCloudSelectionLib();
- extern void FreeCloudSelectionLib();
- extern void getXPJsonresult(IN CString strJson, IN CArray<CStringArray,CStringArray>& AryResult);
- extern void getXPJsonresult(IN CString strJson, IN vector<STSpJson>& vtSpJson);
- extern void getXYJsonresult(IN CString strJson, OUT CString& strResult);
- //////////////////////////////////////////////////////////////////////////
- typedef BOOL (WINAPI *API_GetQRCodeImg)(IN LPCTSTR lpString, // 要转二维码的字符串;
- IN const INT& nErrorCorrctionLevel, // 二维码的错误修正水平;
- IN const INT& nQRCodeVersion, // 要生成的二维码版本;
- IN const INT& nMaskLevel, // 二维码掩码水平;
- IN const INT& nWidth, // 要保存的图片宽;
- IN const INT& nHeight, // 要保存的图片高;
- IN LPCTSTR lpBitmapSavepath, // 要保存的路径;
- IN LPCTSTR lpSaveName // 要保存的文件名;
- );
- typedef BOOL (WINAPI *API_ShowQRCodeBitmap) (IN LPCTSTR lpString, // 要转二维码的字符串;
- IN const INT& nErrorCorrctionLevel, // 二维码的错误修正水平;
- IN const INT& nQRCodeVersion, // 要生成的二维码版本;
- IN const INT& nMaskLevel
- );
- typedef BOOL (WINAPI *API_ShowQRCodeOnDC)(
- IN CDC* pDC,
- IN CRect rcQRCode,
- IN LPCTSTR lpString, // 要转二维码的字符串;
- IN const INT& nErrorCorrctionLevel, // 二维码的错误修正水平;
- IN const INT& nQRCodeVersion, // 要生成的二维码版本;
- IN const INT& nMaskLevel
- );
- extern API_GetQRCodeImg g_GetQRCodeImg;
- extern API_ShowQRCodeBitmap g_ShowQRCodeBitmap;
- extern API_ShowQRCodeOnDC g_ShowQRCodeOnDC;
- extern HMODULE g_hQRCodeLibrary;
- extern BOOL LoadQRCodeLibrary();
- extern void FreeQRCodeLibrary();
- //////////////////////////////////////////////////////////////////////////
- // 微信模块;
- extern HMODULE g_hWeiXinLibaray;
- extern BOOL LoadWeiXinLibaray();
- extern void FreeWeiXinLibaray();
- typedef BOOL (WINAPI *API_ShowWeiXingDialog)(IN CRect& rcShow, IN COLORREF &clrbg);
- typedef BOOL (WINAPI *API_ShowSoftRunTimeDialog)(IN CONST DWORD& dwSoftRunTime);
- extern API_ShowWeiXingDialog g_PtrShowWeiXinDialog;
- extern API_ShowWeiXingDialog g_PtrShowWXMsgconfigDialog;
- extern API_ShowWeiXingDialog g_PtrShowWXMsgRcordDialog;
- extern API_ShowSoftRunTimeDialog g_PtrShowSoftRunTimeDialog;
- //////////////////////////////////////////////////////////////////////////
- // md5模块;
- extern HMODULE g_hMD5Libaray;
- extern BOOL LoadMD5Libaray();
- extern void FreeMD5Libaray();
- typedef INT (WINAPI *API_GetStringMD5)(IN const CHAR* lpString, IN BYTE* pResult, IN int nlen);
- typedef INT (WINAPI *API_GetStringMD5W)(IN LPCWSTR lpString, IN BYTE* pResult, IN int nlen);
- typedef INT (WINAPI *API_GetFileMD5)(IN LPCSTR lpFilepath, IN BYTE* pResult, IN int nlen);
- typedef INT (WINAPI *API_GetFileMD5W)(IN LPCWSTR lpFilepath, IN BYTE* pResult, IN int nlen);
- extern API_GetStringMD5 g_PtrGetStringMD5;
- extern API_GetStringMD5W g_PtrGetStringMD5W;
- extern API_GetFileMD5 g_PtrGetFileMD5;
- extern API_GetFileMD5W g_PtrGetFileMD5W;
- };
- #endif
|