lyfzLoadLibrary.h 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149
  1. #ifndef __LYFZ_LOADLIBRARY__
  2. #define __LYFZ_LOADLIBRARY__
  3. #pragma once
  4. #include <vector>
  5. using namespace std;
  6. namespace lyfzLibrary
  7. {
  8. // 云选模块;
  9. extern CString g_strCloundHost;
  10. typedef struct _STSPJSON_
  11. {
  12. CString strImgs;
  13. CString strSpCount;
  14. CString strSpId;
  15. CString strSpName;
  16. }STSpJson, *pSTSpJson;
  17. typedef struct _STORDJSON_
  18. {
  19. CString strorder;
  20. CString strCustomer1;
  21. CString strCustomer2;
  22. CString strCust1PY;
  23. CString strCust2PY;
  24. CString strXPStatus;
  25. CString strXPDate;
  26. vector<STSpJson> vtSpJson;
  27. }STOrdJson, *pSTOrdJson;
  28. typedef struct __STXYJSON__
  29. {
  30. CString strorder;
  31. CString strCustomer1;
  32. CString strCustomer2;
  33. CString strCust1PY;
  34. CString strCust2PY;
  35. CString strSJStatus; // 设计状态;
  36. CString strXYDate;
  37. CString strJsonResult; // 解析后的Json值;
  38. }STXYJson, *pSTXYJson;
  39. typedef BOOL (WINAPI *API_uploadorder)(
  40. IN LPCTSTR lpUniqueId,
  41. IN const INT& nCloundType,
  42. IN LPCTSTR lpBranchName,
  43. IN LPCTSTR lpBranchTel,
  44. IN LPCTSTR lpOrderNum,
  45. IN LPCTSTR lpScenery,
  46. IN LPCTSTR lpCustomerName,
  47. IN LPCTSTR lpCustomerTel,
  48. OUT LPTSTR lpClounWebSite,
  49. IN const INT& nMaxLen
  50. );
  51. typedef BOOL (WINAPI *API_uploadgoodinfo)(IN LPCTSTR lpUniqueId, IN LPCTSTR lpGoodsJson);
  52. typedef BOOL (WINAPI *API_uploadimg)(
  53. IN const INT& nCloundType,
  54. IN LPCTSTR lpUniqueId,
  55. IN LPCTSTR lpOrderNum,
  56. IN LPCTSTR lpScenery,
  57. IN LPCTSTR lpWatermark,
  58. IN const INT& nWidth,
  59. IN const INT& nHeight,
  60. IN CStringArray& AryOImgpath, // 原片地址;
  61. IN CStringArray& AryEImgpath, // 初修地址;
  62. IN CStringArray& AryDImgpath // 设计地址;
  63. );
  64. typedef INT (WINAPI *API_getcloundresult)(IN const INT& nCloundType, IN LPCTSTR lpUniqueId, IN LPCTSTR lpCloundSubSite, IN LPTSTR lpJsonValue, IN const INT& nMaxLen);
  65. extern HMODULE g_hCloudSelectionLib;
  66. extern API_uploadorder g_uploadorder;
  67. extern API_uploadgoodinfo g_uploadgoodinfo;
  68. extern API_uploadimg g_uploadimg;
  69. extern API_getcloundresult g_getcloundresult;
  70. extern BOOL LoadCloudSelectionLib();
  71. extern void FreeCloudSelectionLib();
  72. extern void getXPJsonresult(IN CString strJson, IN CArray<CStringArray,CStringArray>& AryResult);
  73. extern void getXPJsonresult(IN CString strJson, IN vector<STSpJson>& vtSpJson);
  74. extern void getXYJsonresult(IN CString strJson, OUT CString& strResult);
  75. //////////////////////////////////////////////////////////////////////////
  76. typedef BOOL (WINAPI *API_GetQRCodeImg)(IN LPCTSTR lpString, // 要转二维码的字符串;
  77. IN const INT& nErrorCorrctionLevel, // 二维码的错误修正水平;
  78. IN const INT& nQRCodeVersion, // 要生成的二维码版本;
  79. IN const INT& nMaskLevel, // 二维码掩码水平;
  80. IN const INT& nWidth, // 要保存的图片宽;
  81. IN const INT& nHeight, // 要保存的图片高;
  82. IN LPCTSTR lpBitmapSavepath, // 要保存的路径;
  83. IN LPCTSTR lpSaveName // 要保存的文件名;
  84. );
  85. typedef BOOL (WINAPI *API_ShowQRCodeBitmap) (IN LPCTSTR lpString, // 要转二维码的字符串;
  86. IN const INT& nErrorCorrctionLevel, // 二维码的错误修正水平;
  87. IN const INT& nQRCodeVersion, // 要生成的二维码版本;
  88. IN const INT& nMaskLevel
  89. );
  90. typedef BOOL (WINAPI *API_ShowQRCodeOnDC)(
  91. IN CDC* pDC,
  92. IN CRect rcQRCode,
  93. IN LPCTSTR lpString, // 要转二维码的字符串;
  94. IN const INT& nErrorCorrctionLevel, // 二维码的错误修正水平;
  95. IN const INT& nQRCodeVersion, // 要生成的二维码版本;
  96. IN const INT& nMaskLevel
  97. );
  98. extern API_GetQRCodeImg g_GetQRCodeImg;
  99. extern API_ShowQRCodeBitmap g_ShowQRCodeBitmap;
  100. extern API_ShowQRCodeOnDC g_ShowQRCodeOnDC;
  101. extern HMODULE g_hQRCodeLibrary;
  102. extern BOOL LoadQRCodeLibrary();
  103. extern void FreeQRCodeLibrary();
  104. //////////////////////////////////////////////////////////////////////////
  105. // 微信模块;
  106. extern HMODULE g_hWeiXinLibaray;
  107. extern BOOL LoadWeiXinLibaray();
  108. extern void FreeWeiXinLibaray();
  109. typedef BOOL (WINAPI *API_ShowWeiXingDialog)(IN CRect& rcShow, IN COLORREF &clrbg);
  110. typedef BOOL (WINAPI *API_ShowSoftRunTimeDialog)(IN CONST DWORD& dwSoftRunTime);
  111. extern API_ShowWeiXingDialog g_PtrShowWeiXinDialog;
  112. extern API_ShowWeiXingDialog g_PtrShowWXMsgconfigDialog;
  113. extern API_ShowWeiXingDialog g_PtrShowWXMsgRcordDialog;
  114. extern API_ShowSoftRunTimeDialog g_PtrShowSoftRunTimeDialog;
  115. //////////////////////////////////////////////////////////////////////////
  116. // md5模块;
  117. extern HMODULE g_hMD5Libaray;
  118. extern BOOL LoadMD5Libaray();
  119. extern void FreeMD5Libaray();
  120. typedef INT (WINAPI *API_GetStringMD5)(IN const CHAR* lpString, IN BYTE* pResult, IN int nlen);
  121. typedef INT (WINAPI *API_GetStringMD5W)(IN LPCWSTR lpString, IN BYTE* pResult, IN int nlen);
  122. typedef INT (WINAPI *API_GetFileMD5)(IN LPCSTR lpFilepath, IN BYTE* pResult, IN int nlen);
  123. typedef INT (WINAPI *API_GetFileMD5W)(IN LPCWSTR lpFilepath, IN BYTE* pResult, IN int nlen);
  124. extern API_GetStringMD5 g_PtrGetStringMD5;
  125. extern API_GetStringMD5W g_PtrGetStringMD5W;
  126. extern API_GetFileMD5 g_PtrGetFileMD5;
  127. extern API_GetFileMD5W g_PtrGetFileMD5W;
  128. };
  129. #endif