回调函数.cpp 18 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500
  1. #include <stdio.h>
  2. int main(int argc, char *argv[])
  3. {
  4. printf("Hello, world\n");
  5. return 0;
  6. }
  7. //////////////////////////////////////////////////////////////////////////
  8. // 回调函数定义;
  9. // 导入相片结束后的回调函数;
  10. // 参数:
  11. // lpStrBranchId 域名;
  12. // lpStrOrderNum 订单号;
  13. // dwImgType 相片类型:原片、初修、精修、设计;
  14. // dwImgNum 相片编号(自动命名)
  15. // lpStrImgs 导入的相片的编号串, 以"|"分隔(只是文件名,如"001|002|003"),该参数同时还能用于记录用户导入的相片编号;
  16. // lpStrImgExt 导入的相片的后缀(用于IncrementalBackup后期升级使用,备份时只备份导入的后续,其他后缀不备份);
  17. typedef void (CALLBACK *导入原片)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN CONST DWORD& dwImgNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt );
  18. typedef void (CALLBACK *导入初修)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN lPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt );
  19. typedef void (CALLBACK *导入精修)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN lPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt );
  20. typedef void (CALLBACK *导入设计)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN lPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt );
  21. // 以上三个回调可合并;
  22. typedef void (CALLBACK *导入XXXX)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN CONST INT& dwImgType, IN lPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt );
  23. // 导出相片结束后的回调函数;
  24. // 参数:
  25. // lpStrBranchId 域名;
  26. // lpStrOrderNum 订单号;
  27. // dwImgType 相片类型:原片、初修、精修、设计;
  28. // lpStrImgs 导出的相片的编号串, 以"|"分隔(只是文件名,如"001|002|003"),用于记录用户导出的相片编号;
  29. // lpStrImgExt 导出的相片的后缀(用于记录用户导出的相片编号);
  30. typedef void (CALLBACK *导出原片)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt);
  31. typedef void (CALLBACK *导出初修)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt);
  32. typedef void (CALLBACK *导出精修)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt);
  33. typedef void (CALLBACK *导出设计)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt);
  34. // 以上四个回调,可以整合成一个;
  35. typedef void (CALLBACK *导出XXX)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN CONST INT& dwImgType, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt);
  36. // 可能要特殊处理的导出回调;
  37. typedef void (CALLBACK *导出选修)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt);
  38. typedef void (CALLBACK *导出选设)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt);
  39. //////////////////////////////////////////////////////////////////////////
  40. // 导入原片结束后的回调函数;
  41. void CALLBACK IMGImportOCallback(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN CONST DWORD& dwImgNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt )
  42. {
  43. // 若DLL有对话框资源,需要重新设置资源模块;
  44. AfxSetResourceHandle(g_Instance);
  45. // 1.判断参数有效性;
  46. if ( lpStrBranchId == NULL || !strstr(lpStrBranchId, _T(".ly.com")) || lpStrOrder == NULL )
  47. {
  48. OutputDebugString(_T("回调函数参数(域名、订单号)无效\n"));
  49. return;
  50. }
  51. // 2.其次更新dindan表的curno字段;
  52. CString strSQL = _T("");
  53. strSQL.Format(_T("update dindan set curno = '%d' where id = '%s'"), dwImgNum, lpStrOrder);
  54. // 3.同时更新IncrementalBack表;
  55. CString strSQLInsert = _T("");
  56. strSQLInsert.Format(INSERT_INCREMENT, 0, lpStrBranchId, CTime::GetCurrentTime().Format("%Y-%m-%d %H:%M:%S"), lpStrOrder, dwImgType, lpStrImg, g_user.account, g_user.name);
  57. // 连接服务器,更新dindan和IncrementalBackup;
  58. g_sendhead.bsql = 1;
  59. if (g_bAllBranch)
  60. {// 多店汇总时;
  61. g_branchip = GetBranchIPbyId(lpStrBranchId);
  62. g_pMainWnd->OnDisconnect();
  63. g_branchname = GetBranchNamebyId(lpStrBranchId);
  64. g_bBranchModify = 1;
  65. strSQL += _T("***");
  66. strSQL += strSQLInsert;
  67. g_pMainWnd->ProcessChatMessageRequest2(strSQL);
  68. g_pMainWnd->OnDisconnect();
  69. g_bBranchModify = 0;
  70. g_branchip = g_branchname = _T("");
  71. if ( g_domain.CompareNoCase(lpStrBranchId) != 0 && g_ThisShopVersion.bUpLoadCheck1 )
  72. {
  73. g_sendhead.bsql = 1;
  74. g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
  75. g_pMainWnd->OnDisconnect();
  76. g_bBranchModify = 0;
  77. }
  78. }
  79. else
  80. {// 连接本店或分店时;
  81. strSQL += _T("***");
  82. strSQL += strSQLInsert;
  83. g_pMainWnd->ProcessChatMessageRequest2(strSQL);
  84. if ( g_domain.CompareNoCase(lpStrBranchId) != 0 && g_ThisShopVersion.bUpLoadCheck1)
  85. {
  86. #if 1
  87. ::SendMessage(g_pMainWnd->m_hWnd, MSG_KERNEL_SENDMSG, (WPARAM)lpStrBranchId, (LPARAM)&strSQLInsert);
  88. #else // 可能是VC6.0与VC9.0间DLL调用产生的问题,下面代码执行时会出错;
  89. // 如果连接的是分店,断开分店,回连本店;
  90. g_bBranchModify = FALSE;
  91. g_pMainWnd->OnDisconnect();
  92. g_branchname = g_branchip = _T("");
  93. g_sendhead.bsql = 1;
  94. g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
  95. g_pMainWnd->OnDisconnect();
  96. // 设置回分店连接;
  97. g_branchip = GetBranchIPbyId(lpStrBranchId);
  98. g_branchname = GetBranchNamebyId(lpStrBranchId);
  99. g_bBranchModify = TRUE;
  100. #endif
  101. }
  102. }
  103. // 最后一步,更新完了数据库,刷新TakFrom类所对应的对话框;
  104. HWND hWnd = ::FindWindowEx(g_pMainWnd->GetSafeHwnd(), NULL, _T("MDIClient"), NULL);
  105. if ( hWnd )
  106. {
  107. hWnd = ::FindWindowEx(hWnd, NULL, NULL, _T("拍照"));
  108. if ( hWnd )
  109. {
  110. hWnd = ::FindWindowEx(hWnd, NULL, _T("#32770"), NULL);
  111. if ( hWnd )
  112. {
  113. ::SendMessage(hWnd, MSG_KERNEL_CALLBACK, 0, 0);
  114. }
  115. }
  116. }
  117. }
  118. // 导入初修结束后的回调函数;
  119. void CALLBACK IMGImportSCallback(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt)
  120. {
  121. // 设置资源模块;
  122. AfxSetResourceHandle(g_Instance);
  123. // 1.判断参数有效性;
  124. if ( lpStrBranchId == NULL || !strstr(lpStrBranchId, _T(".ly.com")) || lpStrOrderNum == NULL )
  125. {
  126. OutputDebugString(_T("回调函数参数(域名、订单号)无效\n"));
  127. return;
  128. }
  129. // 2.同时更新IncrementalBack表;
  130. CString strSQLInsert = _T("");
  131. strSQLInsert.Format(INSERT_INCREMENT, 0, lpStrBranchId, CTime::GetCurrentTime().Format("%Y-%m-%d %H:%M:%S"), lpStrOrder, EImgType, lpStrImg, g_user.account, g_user.name);
  132. // 3.连接服务器,更新dindan和IncrementalBackup;
  133. g_sendhead.bsql = 1;
  134. if (g_bAllBranch)
  135. {// 多店汇总时;
  136. g_branchip = GetBranchIPbyId(lpStrBranchId);
  137. g_pMainWnd->OnDisconnect();
  138. g_branchname = GetBranchNamebyId(lpStrBranchId);
  139. g_bBranchModify = 1;
  140. g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
  141. g_pMainWnd->OnDisconnect();
  142. g_bBranchModify = 0;
  143. g_branchip = g_branchname = _T("");
  144. if ( g_domain.CompareNoCase(lpStrBranchId) != 0 && g_ThisShopVersion.bUpLoadCheck2 )
  145. {// 如果不是本店,且本店设置中需要备份分店相片,需要向本店添加导入相片记录;
  146. g_sendhead.bsql = 1;
  147. g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
  148. g_pMainWnd->OnDisconnect();
  149. g_bBranchModify = 0;
  150. }
  151. }
  152. else
  153. {// 连接本店或分店时;
  154. g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
  155. if ( g_domain.CompareNoCase(lpStrBranchId) != 0 && g_ThisShopVersion.bUpLoadCheck2 )
  156. {// 如果不是本店,且本店设置中需要备份分店相片,需要向本店添加导入相片记录;
  157. #if 1
  158. ::SendMessage(g_pMainWnd->m_hWnd, MSG_KERNEL_SENDMSG, (WPARAM)lpStrBranchId, (LPARAM)&strSQLInsert);
  159. #else // 可能是VC6.0与VC9.0间DLL调用产生的问题,下面代码执行时会出错;
  160. // 如果连接的是分店,断开分店,回连本店;
  161. g_bBranchModify = FALSE;
  162. g_pMainWnd->OnDisconnect();
  163. g_branchname = g_branchip = _T("");
  164. g_sendhead.bsql = 1;
  165. g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
  166. g_pMainWnd->OnDisconnect();
  167. // 设置回分店连接;
  168. g_branchip = GetBranchIPbyId(lpStrBranchId);
  169. g_branchname = GetBranchNamebyId(lpStrBranchId);
  170. g_bBranchModify = TRUE;
  171. #endif
  172. }
  173. }
  174. }
  175. // 导入精修结束后的回调函数;
  176. void CALLBACK IMGImportFCallback(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt)
  177. {
  178. // 设置资源模块;
  179. AfxSetResourceHandle(g_Instance);
  180. // 1.判断参数有效性;
  181. if ( lpStrBranchId == NULL || !strstr(lpStrBranchId, _T(".ly.com")) || lpStrOrderNum == NULL )
  182. {
  183. OutputDebugString(_T("回调函数参数(域名、订单号)无效\n"));
  184. return;
  185. }
  186. // 2.同时更新IncrementalBack表;
  187. CString strSQLInsert = _T("");
  188. strSQLInsert.Format(INSERT_INCREMENT, 0, lpStrBranchId, CTime::GetCurrentTime().Format("%Y-%m-%d %H:%M:%S"), lpStrOrder, EImgType, lpStrImg, g_user.account, g_user.name);
  189. // 3.连接服务器,更新dindan和IncrementalBackup;
  190. g_sendhead.bsql = 1;
  191. if (g_bAllBranch)
  192. {// 多店汇总时;
  193. g_branchip = GetBranchIPbyId(lpStrBranchId);
  194. g_pMainWnd->OnDisconnect();
  195. g_branchname = GetBranchNamebyId(lpStrBranchId);
  196. g_bBranchModify = 1;
  197. g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
  198. g_pMainWnd->OnDisconnect();
  199. g_bBranchModify = 0;
  200. g_branchip = g_branchname = _T("");
  201. if ( g_domain.CompareNoCase(lpStrBranchId) != 0 && g_ThisShopVersion.bUpLoadCheck3 )
  202. {// 如果不是本店,且本店设置中需要备份分店相片,需要向本店添加导入相片记录;
  203. g_sendhead.bsql = 1;
  204. g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
  205. g_pMainWnd->OnDisconnect();
  206. g_bBranchModify = 0;
  207. }
  208. }
  209. else
  210. {// 连接本店或分店时;
  211. g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
  212. if ( g_domain.CompareNoCase(lpStrBranchId) != 0 && g_ThisShopVersion.bUpLoadCheck3 )
  213. {// 如果不是本店,且本店设置中需要备份分店相片,需要向本店添加导入相片记录;
  214. #if 1
  215. ::SendMessage(g_pMainWnd->m_hWnd, MSG_KERNEL_SENDMSG, (WPARAM)lpStrBranchId, (LPARAM)&strSQLInsert);
  216. #else // 可能是VC6.0与VC9.0间DLL调用产生的问题,下面代码执行时会出错;
  217. // 如果连接的是分店,断开分店,回连本店;
  218. g_bBranchModify = FALSE;
  219. g_pMainWnd->OnDisconnect();
  220. g_branchname = g_branchip = _T("");
  221. g_sendhead.bsql = 1;
  222. g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
  223. g_pMainWnd->OnDisconnect();
  224. // 设置回分店连接;
  225. g_branchip = GetBranchIPbyId(lpStrBranchId);
  226. g_branchname = GetBranchNamebyId(lpStrBranchId);
  227. g_bBranchModify = TRUE;
  228. #endif
  229. }
  230. }
  231. }
  232. // 导入设计结束后的回调函数;
  233. void CALLBACK IMGImportDCallback(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt)
  234. {
  235. // 设置资源模块;
  236. AfxSetResourceHandle(g_Instance);
  237. // 1.判断参数有效性;
  238. if ( lpStrBranchId == NULL || !strstr(lpStrBranchId, _T(".ly.com")) || lpStrOrderNum == NULL )
  239. {
  240. OutputDebugString(_T("回调函数参数(域名、订单号)无效\n"));
  241. return;
  242. }
  243. // 2.同时更新IncrementalBack表;
  244. CString strSQLInsert = _T("");
  245. strSQLInsert.Format(INSERT_INCREMENT, 0, lpStrBranchId, CTime::GetCurrentTime().Format("%Y-%m-%d %H:%M:%S"), lpStrOrder, EImgType, lpStrImg, g_user.account, g_user.name);
  246. // 3.连接服务器,更新dindan和IncrementalBackup;
  247. g_sendhead.bsql = 1;
  248. if (g_bAllBranch)
  249. {// 多店汇总时;
  250. g_branchip = GetBranchIPbyId(lpStrBranchId);
  251. g_pMainWnd->OnDisconnect();
  252. g_branchname = GetBranchNamebyId(lpStrBranchId);
  253. g_bBranchModify = 1;
  254. g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
  255. g_pMainWnd->OnDisconnect();
  256. g_bBranchModify = 0;
  257. g_branchip = g_branchname = _T("");
  258. if ( g_domain.CompareNoCase(lpStrBranchId) != 0 && g_ThisShopVersion.bUpLoadCheck4 )
  259. {// 如果不是本店,且本店设置中需要备份分店相片,需要向本店添加导入相片记录;
  260. g_sendhead.bsql = 1;
  261. g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
  262. g_pMainWnd->OnDisconnect();
  263. g_bBranchModify = 0;
  264. }
  265. }
  266. else
  267. {// 连接本店或分店时;
  268. g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
  269. if ( g_domain.CompareNoCase(lpStrBranchId) != 0 && g_ThisShopVersion.bUpLoadCheck4 )
  270. {// 如果不是本店,且本店设置中需要备份分店相片,需要向本店添加导入相片记录;
  271. #if 1
  272. ::SendMessage(g_pMainWnd->m_hWnd, MSG_KERNEL_SENDMSG, (WPARAM)lpStrBranchId, (LPARAM)&strSQLInsert);
  273. #else // 可能是VC6.0与VC9.0间DLL调用产生的问题,下面代码执行时会出错;
  274. // 如果连接的是分店,断开分店,回连本店;
  275. g_bBranchModify = FALSE;
  276. g_pMainWnd->OnDisconnect();
  277. g_branchname = g_branchip = _T("");
  278. g_sendhead.bsql = 1;
  279. g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
  280. g_pMainWnd->OnDisconnect();
  281. // 设置回分店连接;
  282. g_branchip = GetBranchIPbyId(lpStrBranchId);
  283. g_branchname = GetBranchNamebyId(lpStrBranchId);
  284. g_bBranchModify = TRUE;
  285. #endif
  286. }
  287. }
  288. }
  289. // 导入初修、精修、设计结束后的回调函数(三合一)
  290. void CALLBACK IMGImportCallback(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN CONST INT& dwImgType, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt)
  291. {
  292. AfxSetResourceHandle(g_Instance);
  293. // 1.判断参数有效性;
  294. if ( lpStrBranchId == NULL || !strstr(lpStrBranchId, _T(".ly.com")) || lpStrOrderNum == NULL )
  295. {
  296. OutputDebugString(_T("回调函数参数(域名、订单号)无效\n"));
  297. return;
  298. }
  299. // 2.是否需要备份分店相片;
  300. BOOL bIsNeedBranchImg = FALSE;
  301. switch( dwImgType )
  302. {
  303. case 1:
  304. bIsNeedBranchImg = g_ThisShopVersion.bUpLoadCheck1;
  305. break;
  306. case 2:
  307. bIsNeedBranchImg = g_ThisShopVersion.bUpLoadCheck2;
  308. break;
  309. case 3:
  310. bIsNeedBranchImg = g_ThisShopVersion.bUpLoadCheck3;
  311. break;
  312. case 4:
  313. bIsNeedBranchImg = g_ThisShopVersion.bUpLoadCheck4;
  314. break;
  315. default:
  316. break;
  317. }
  318. // 3.同时更新IncrementalBack表;
  319. CString strSQLInsert = _T("");
  320. strSQLInsert.Format(INSERT_INCREMENT, 0, lpStrBranchId, CTime::GetCurrentTime().Format("%Y-%m-%d %H:%M:%S"), lpStrOrder, EImgType, lpStrImg, g_user.account, g_user.name);
  321. // 4.连接服务器,更新dindan和IncrementalBackup;
  322. g_sendhead.bsql = 1;
  323. if (g_bAllBranch)
  324. {// 多店汇总时;
  325. g_branchip = GetBranchIPbyId(lpStrBranchId);
  326. g_pMainWnd->OnDisconnect();
  327. g_branchname = GetBranchNamebyId(lpStrBranchId);
  328. g_bBranchModify = 1;
  329. g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
  330. g_pMainWnd->OnDisconnect();
  331. g_bBranchModify = 0;
  332. g_branchip = g_branchname = _T("");
  333. if ( g_domain.CompareNoCase(lpStrBranchId) != 0 && bIsNeedBranchImg )
  334. {// 如果不是本店,且本店设置中需要备份分店相片,需要向本店添加导入相片记录;
  335. g_sendhead.bsql = 1;
  336. g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
  337. g_pMainWnd->OnDisconnect();
  338. g_bBranchModify = 0;
  339. }
  340. }
  341. else
  342. {// 连接本店或分店时;
  343. g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
  344. if ( g_domain.CompareNoCase(lpStrBranchId) != 0 && bIsNeedBranchImg )
  345. {// 如果不是本店,且本店设置中需要备份分店相片,需要向本店添加导入相片记录;
  346. #if 1
  347. ::SendMessage(g_pMainWnd->m_hWnd, MSG_KERNEL_SENDMSG, (WPARAM)lpStrBranchId, (LPARAM)&strSQLInsert);
  348. #else // 可能是VC6.0与VC9.0间DLL调用产生的问题,下面代码执行时会出错;
  349. // 如果连接的是分店,断开分店,回连本店;
  350. g_bBranchModify = FALSE;
  351. g_pMainWnd->OnDisconnect();
  352. g_branchname = g_branchip = _T("");
  353. g_sendhead.bsql = 1;
  354. g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
  355. g_pMainWnd->OnDisconnect();
  356. // 设置回分店连接;
  357. g_branchip = GetBranchIPbyId(lpStrBranchId);
  358. g_branchname = GetBranchNamebyId(lpStrBranchId);
  359. g_bBranchModify = TRUE;
  360. #endif
  361. }
  362. }
  363. }
  364. //////////////////////////////////////////////////////////////////////////
  365. // 导出原片结束后的回调函数;
  366. void CALLBACK IMGExportOCallback(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt )
  367. {
  368. AfxSetResourceHandle(g_Instance);
  369. // 1.判断参数有效性;
  370. if ( lpStrBranchId == NULL || !strstr(lpStrBranchId, _T(".ly.com")) || lpStrOrderNum == NULL )
  371. {
  372. OutputDebugString(_T("回调函数参数(域名、订单号)无效\n"));
  373. return;
  374. }
  375. // 如果需要记录导出的相片编号日志,此处可添加处理过程;
  376. }
  377. // 导出初修结束后的回调函数;
  378. void CALLBACK IMGExportSCallback(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt )
  379. {
  380. AfxSetResourceHandle(g_Instance);
  381. // 1.判断参数有效性;
  382. if ( lpStrBranchId == NULL || !strstr(lpStrBranchId, _T(".ly.com")) || lpStrOrderNum == NULL )
  383. {
  384. OutputDebugString(_T("回调函数参数(域名、订单号)无效\n"));
  385. return;
  386. }
  387. // 如果需要记录导出的相片编号日志,此处可添加处理过程;
  388. }
  389. // 导出精修结束后的回调函数;
  390. void CALLBACK IMGExportFCallback(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt )
  391. {
  392. AfxSetResourceHandle(g_Instance);
  393. // 1.判断参数有效性;
  394. if ( lpStrBranchId == NULL || !strstr(lpStrBranchId, _T(".ly.com")) || lpStrOrderNum == NULL )
  395. {
  396. OutputDebugString(_T("回调函数参数(域名、订单号)无效\n"));
  397. return;
  398. }
  399. // 如果需要记录导出的相片编号日志,此处可添加处理过程;
  400. }
  401. // 导出设计结束后的回调函数;
  402. void CALLBACK IMGExportDCallback(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt )
  403. {
  404. AfxSetResourceHandle(g_Instance);
  405. // 1.判断参数有效性;
  406. if ( lpStrBranchId == NULL || !strstr(lpStrBranchId, _T(".ly.com")) || lpStrOrderNum == NULL )
  407. {
  408. OutputDebugString(_T("回调函数参数(域名、订单号)无效\n"));
  409. return;
  410. }
  411. // 如果需要记录导出的相片编号日志,此处可添加处理过程;
  412. }
  413. // 导出步骤:
  414. /*
  415. 1.选择分店、订单、景点名;
  416. 2.选择导出的选择模式(1.直接将整个订单或景点导出; 2.只导出选中的部分相片,需要自定义窗口显示所有相片缩略图);
  417. 3.
  418. */
  419. void SetExportEnvInfo(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN BOOL bExportScenery, IN LPCTSTR lpStrScenery, )
  420. {
  421. }
  422. void Export(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN BOOL bExportScenery, IN LPCTSTR lpStrScenery, )
  423. {
  424. }