123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500 |
- #include <stdio.h>
- int main(int argc, char *argv[])
- {
- printf("Hello, world\n");
-
- return 0;
- }
- //////////////////////////////////////////////////////////////////////////
- // 回调函数定义;
- // 导入相片结束后的回调函数;
- // 参数:
- // lpStrBranchId 域名;
- // lpStrOrderNum 订单号;
- // dwImgType 相片类型:原片、初修、精修、设计;
- // dwImgNum 相片编号(自动命名)
- // lpStrImgs 导入的相片的编号串, 以"|"分隔(只是文件名,如"001|002|003"),该参数同时还能用于记录用户导入的相片编号;
- // lpStrImgExt 导入的相片的后缀(用于IncrementalBackup后期升级使用,备份时只备份导入的后续,其他后缀不备份);
- typedef void (CALLBACK *导入原片)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN CONST DWORD& dwImgNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt );
- typedef void (CALLBACK *导入初修)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN lPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt );
- typedef void (CALLBACK *导入精修)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN lPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt );
- typedef void (CALLBACK *导入设计)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN lPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt );
- // 以上三个回调可合并;
- typedef void (CALLBACK *导入XXXX)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN CONST INT& dwImgType, IN lPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt );
- // 导出相片结束后的回调函数;
- // 参数:
- // lpStrBranchId 域名;
- // lpStrOrderNum 订单号;
- // dwImgType 相片类型:原片、初修、精修、设计;
- // lpStrImgs 导出的相片的编号串, 以"|"分隔(只是文件名,如"001|002|003"),用于记录用户导出的相片编号;
- // lpStrImgExt 导出的相片的后缀(用于记录用户导出的相片编号);
- typedef void (CALLBACK *导出原片)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt);
- typedef void (CALLBACK *导出初修)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt);
- typedef void (CALLBACK *导出精修)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt);
- typedef void (CALLBACK *导出设计)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt);
- // 以上四个回调,可以整合成一个;
- typedef void (CALLBACK *导出XXX)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN CONST INT& dwImgType, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt);
- // 可能要特殊处理的导出回调;
- typedef void (CALLBACK *导出选修)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt);
- typedef void (CALLBACK *导出选设)(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt);
- //////////////////////////////////////////////////////////////////////////
- // 导入原片结束后的回调函数;
- void CALLBACK IMGImportOCallback(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN CONST DWORD& dwImgNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt )
- {
- // 若DLL有对话框资源,需要重新设置资源模块;
- AfxSetResourceHandle(g_Instance);
- // 1.判断参数有效性;
- if ( lpStrBranchId == NULL || !strstr(lpStrBranchId, _T(".ly.com")) || lpStrOrder == NULL )
- {
- OutputDebugString(_T("回调函数参数(域名、订单号)无效\n"));
- return;
- }
- // 2.其次更新dindan表的curno字段;
- CString strSQL = _T("");
- strSQL.Format(_T("update dindan set curno = '%d' where id = '%s'"), dwImgNum, lpStrOrder);
- // 3.同时更新IncrementalBack表;
- CString strSQLInsert = _T("");
- strSQLInsert.Format(INSERT_INCREMENT, 0, lpStrBranchId, CTime::GetCurrentTime().Format("%Y-%m-%d %H:%M:%S"), lpStrOrder, dwImgType, lpStrImg, g_user.account, g_user.name);
- // 连接服务器,更新dindan和IncrementalBackup;
- g_sendhead.bsql = 1;
- if (g_bAllBranch)
- {// 多店汇总时;
- g_branchip = GetBranchIPbyId(lpStrBranchId);
- g_pMainWnd->OnDisconnect();
- g_branchname = GetBranchNamebyId(lpStrBranchId);
- g_bBranchModify = 1;
- strSQL += _T("***");
- strSQL += strSQLInsert;
- g_pMainWnd->ProcessChatMessageRequest2(strSQL);
- g_pMainWnd->OnDisconnect();
- g_bBranchModify = 0;
- g_branchip = g_branchname = _T("");
- if ( g_domain.CompareNoCase(lpStrBranchId) != 0 && g_ThisShopVersion.bUpLoadCheck1 )
- {
- g_sendhead.bsql = 1;
- g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
- g_pMainWnd->OnDisconnect();
- g_bBranchModify = 0;
- }
- }
- else
- {// 连接本店或分店时;
- strSQL += _T("***");
- strSQL += strSQLInsert;
- g_pMainWnd->ProcessChatMessageRequest2(strSQL);
- if ( g_domain.CompareNoCase(lpStrBranchId) != 0 && g_ThisShopVersion.bUpLoadCheck1)
- {
- #if 1
- ::SendMessage(g_pMainWnd->m_hWnd, MSG_KERNEL_SENDMSG, (WPARAM)lpStrBranchId, (LPARAM)&strSQLInsert);
- #else // 可能是VC6.0与VC9.0间DLL调用产生的问题,下面代码执行时会出错;
- // 如果连接的是分店,断开分店,回连本店;
- g_bBranchModify = FALSE;
- g_pMainWnd->OnDisconnect();
- g_branchname = g_branchip = _T("");
- g_sendhead.bsql = 1;
- g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
- g_pMainWnd->OnDisconnect();
- // 设置回分店连接;
- g_branchip = GetBranchIPbyId(lpStrBranchId);
- g_branchname = GetBranchNamebyId(lpStrBranchId);
- g_bBranchModify = TRUE;
- #endif
- }
- }
- // 最后一步,更新完了数据库,刷新TakFrom类所对应的对话框;
- HWND hWnd = ::FindWindowEx(g_pMainWnd->GetSafeHwnd(), NULL, _T("MDIClient"), NULL);
- if ( hWnd )
- {
- hWnd = ::FindWindowEx(hWnd, NULL, NULL, _T("拍照"));
- if ( hWnd )
- {
- hWnd = ::FindWindowEx(hWnd, NULL, _T("#32770"), NULL);
- if ( hWnd )
- {
- ::SendMessage(hWnd, MSG_KERNEL_CALLBACK, 0, 0);
- }
- }
- }
- }
- // 导入初修结束后的回调函数;
- void CALLBACK IMGImportSCallback(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt)
- {
- // 设置资源模块;
- AfxSetResourceHandle(g_Instance);
- // 1.判断参数有效性;
- if ( lpStrBranchId == NULL || !strstr(lpStrBranchId, _T(".ly.com")) || lpStrOrderNum == NULL )
- {
- OutputDebugString(_T("回调函数参数(域名、订单号)无效\n"));
- return;
- }
- // 2.同时更新IncrementalBack表;
- CString strSQLInsert = _T("");
- strSQLInsert.Format(INSERT_INCREMENT, 0, lpStrBranchId, CTime::GetCurrentTime().Format("%Y-%m-%d %H:%M:%S"), lpStrOrder, EImgType, lpStrImg, g_user.account, g_user.name);
- // 3.连接服务器,更新dindan和IncrementalBackup;
- g_sendhead.bsql = 1;
- if (g_bAllBranch)
- {// 多店汇总时;
- g_branchip = GetBranchIPbyId(lpStrBranchId);
- g_pMainWnd->OnDisconnect();
- g_branchname = GetBranchNamebyId(lpStrBranchId);
- g_bBranchModify = 1;
- g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
- g_pMainWnd->OnDisconnect();
- g_bBranchModify = 0;
- g_branchip = g_branchname = _T("");
- if ( g_domain.CompareNoCase(lpStrBranchId) != 0 && g_ThisShopVersion.bUpLoadCheck2 )
- {// 如果不是本店,且本店设置中需要备份分店相片,需要向本店添加导入相片记录;
- g_sendhead.bsql = 1;
- g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
- g_pMainWnd->OnDisconnect();
- g_bBranchModify = 0;
- }
- }
- else
- {// 连接本店或分店时;
- g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
- if ( g_domain.CompareNoCase(lpStrBranchId) != 0 && g_ThisShopVersion.bUpLoadCheck2 )
- {// 如果不是本店,且本店设置中需要备份分店相片,需要向本店添加导入相片记录;
- #if 1
- ::SendMessage(g_pMainWnd->m_hWnd, MSG_KERNEL_SENDMSG, (WPARAM)lpStrBranchId, (LPARAM)&strSQLInsert);
- #else // 可能是VC6.0与VC9.0间DLL调用产生的问题,下面代码执行时会出错;
- // 如果连接的是分店,断开分店,回连本店;
- g_bBranchModify = FALSE;
- g_pMainWnd->OnDisconnect();
- g_branchname = g_branchip = _T("");
- g_sendhead.bsql = 1;
- g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
- g_pMainWnd->OnDisconnect();
- // 设置回分店连接;
- g_branchip = GetBranchIPbyId(lpStrBranchId);
- g_branchname = GetBranchNamebyId(lpStrBranchId);
- g_bBranchModify = TRUE;
- #endif
- }
- }
- }
- // 导入精修结束后的回调函数;
- void CALLBACK IMGImportFCallback(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt)
- {
- // 设置资源模块;
- AfxSetResourceHandle(g_Instance);
- // 1.判断参数有效性;
- if ( lpStrBranchId == NULL || !strstr(lpStrBranchId, _T(".ly.com")) || lpStrOrderNum == NULL )
- {
- OutputDebugString(_T("回调函数参数(域名、订单号)无效\n"));
- return;
- }
- // 2.同时更新IncrementalBack表;
- CString strSQLInsert = _T("");
- strSQLInsert.Format(INSERT_INCREMENT, 0, lpStrBranchId, CTime::GetCurrentTime().Format("%Y-%m-%d %H:%M:%S"), lpStrOrder, EImgType, lpStrImg, g_user.account, g_user.name);
- // 3.连接服务器,更新dindan和IncrementalBackup;
- g_sendhead.bsql = 1;
- if (g_bAllBranch)
- {// 多店汇总时;
- g_branchip = GetBranchIPbyId(lpStrBranchId);
- g_pMainWnd->OnDisconnect();
- g_branchname = GetBranchNamebyId(lpStrBranchId);
- g_bBranchModify = 1;
- g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
- g_pMainWnd->OnDisconnect();
- g_bBranchModify = 0;
- g_branchip = g_branchname = _T("");
- if ( g_domain.CompareNoCase(lpStrBranchId) != 0 && g_ThisShopVersion.bUpLoadCheck3 )
- {// 如果不是本店,且本店设置中需要备份分店相片,需要向本店添加导入相片记录;
- g_sendhead.bsql = 1;
- g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
- g_pMainWnd->OnDisconnect();
- g_bBranchModify = 0;
- }
- }
- else
- {// 连接本店或分店时;
- g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
- if ( g_domain.CompareNoCase(lpStrBranchId) != 0 && g_ThisShopVersion.bUpLoadCheck3 )
- {// 如果不是本店,且本店设置中需要备份分店相片,需要向本店添加导入相片记录;
- #if 1
- ::SendMessage(g_pMainWnd->m_hWnd, MSG_KERNEL_SENDMSG, (WPARAM)lpStrBranchId, (LPARAM)&strSQLInsert);
- #else // 可能是VC6.0与VC9.0间DLL调用产生的问题,下面代码执行时会出错;
- // 如果连接的是分店,断开分店,回连本店;
- g_bBranchModify = FALSE;
- g_pMainWnd->OnDisconnect();
- g_branchname = g_branchip = _T("");
- g_sendhead.bsql = 1;
- g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
- g_pMainWnd->OnDisconnect();
- // 设置回分店连接;
- g_branchip = GetBranchIPbyId(lpStrBranchId);
- g_branchname = GetBranchNamebyId(lpStrBranchId);
- g_bBranchModify = TRUE;
- #endif
- }
- }
- }
- // 导入设计结束后的回调函数;
- void CALLBACK IMGImportDCallback(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt)
- {
- // 设置资源模块;
- AfxSetResourceHandle(g_Instance);
- // 1.判断参数有效性;
- if ( lpStrBranchId == NULL || !strstr(lpStrBranchId, _T(".ly.com")) || lpStrOrderNum == NULL )
- {
- OutputDebugString(_T("回调函数参数(域名、订单号)无效\n"));
- return;
- }
- // 2.同时更新IncrementalBack表;
- CString strSQLInsert = _T("");
- strSQLInsert.Format(INSERT_INCREMENT, 0, lpStrBranchId, CTime::GetCurrentTime().Format("%Y-%m-%d %H:%M:%S"), lpStrOrder, EImgType, lpStrImg, g_user.account, g_user.name);
- // 3.连接服务器,更新dindan和IncrementalBackup;
- g_sendhead.bsql = 1;
- if (g_bAllBranch)
- {// 多店汇总时;
- g_branchip = GetBranchIPbyId(lpStrBranchId);
- g_pMainWnd->OnDisconnect();
- g_branchname = GetBranchNamebyId(lpStrBranchId);
- g_bBranchModify = 1;
- g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
- g_pMainWnd->OnDisconnect();
- g_bBranchModify = 0;
- g_branchip = g_branchname = _T("");
- if ( g_domain.CompareNoCase(lpStrBranchId) != 0 && g_ThisShopVersion.bUpLoadCheck4 )
- {// 如果不是本店,且本店设置中需要备份分店相片,需要向本店添加导入相片记录;
- g_sendhead.bsql = 1;
- g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
- g_pMainWnd->OnDisconnect();
- g_bBranchModify = 0;
- }
- }
- else
- {// 连接本店或分店时;
- g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
- if ( g_domain.CompareNoCase(lpStrBranchId) != 0 && g_ThisShopVersion.bUpLoadCheck4 )
- {// 如果不是本店,且本店设置中需要备份分店相片,需要向本店添加导入相片记录;
- #if 1
- ::SendMessage(g_pMainWnd->m_hWnd, MSG_KERNEL_SENDMSG, (WPARAM)lpStrBranchId, (LPARAM)&strSQLInsert);
- #else // 可能是VC6.0与VC9.0间DLL调用产生的问题,下面代码执行时会出错;
- // 如果连接的是分店,断开分店,回连本店;
- g_bBranchModify = FALSE;
- g_pMainWnd->OnDisconnect();
- g_branchname = g_branchip = _T("");
- g_sendhead.bsql = 1;
- g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
- g_pMainWnd->OnDisconnect();
- // 设置回分店连接;
- g_branchip = GetBranchIPbyId(lpStrBranchId);
- g_branchname = GetBranchNamebyId(lpStrBranchId);
- g_bBranchModify = TRUE;
- #endif
- }
- }
- }
- // 导入初修、精修、设计结束后的回调函数(三合一)
- void CALLBACK IMGImportCallback(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN CONST INT& dwImgType, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt)
- {
- AfxSetResourceHandle(g_Instance);
- // 1.判断参数有效性;
- if ( lpStrBranchId == NULL || !strstr(lpStrBranchId, _T(".ly.com")) || lpStrOrderNum == NULL )
- {
- OutputDebugString(_T("回调函数参数(域名、订单号)无效\n"));
- return;
- }
- // 2.是否需要备份分店相片;
- BOOL bIsNeedBranchImg = FALSE;
- switch( dwImgType )
- {
- case 1:
- bIsNeedBranchImg = g_ThisShopVersion.bUpLoadCheck1;
- break;
- case 2:
- bIsNeedBranchImg = g_ThisShopVersion.bUpLoadCheck2;
- break;
- case 3:
- bIsNeedBranchImg = g_ThisShopVersion.bUpLoadCheck3;
- break;
- case 4:
- bIsNeedBranchImg = g_ThisShopVersion.bUpLoadCheck4;
- break;
- default:
- break;
- }
- // 3.同时更新IncrementalBack表;
- CString strSQLInsert = _T("");
- strSQLInsert.Format(INSERT_INCREMENT, 0, lpStrBranchId, CTime::GetCurrentTime().Format("%Y-%m-%d %H:%M:%S"), lpStrOrder, EImgType, lpStrImg, g_user.account, g_user.name);
- // 4.连接服务器,更新dindan和IncrementalBackup;
- g_sendhead.bsql = 1;
- if (g_bAllBranch)
- {// 多店汇总时;
- g_branchip = GetBranchIPbyId(lpStrBranchId);
- g_pMainWnd->OnDisconnect();
- g_branchname = GetBranchNamebyId(lpStrBranchId);
- g_bBranchModify = 1;
- g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
- g_pMainWnd->OnDisconnect();
- g_bBranchModify = 0;
- g_branchip = g_branchname = _T("");
- if ( g_domain.CompareNoCase(lpStrBranchId) != 0 && bIsNeedBranchImg )
- {// 如果不是本店,且本店设置中需要备份分店相片,需要向本店添加导入相片记录;
- g_sendhead.bsql = 1;
- g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
- g_pMainWnd->OnDisconnect();
- g_bBranchModify = 0;
- }
- }
- else
- {// 连接本店或分店时;
- g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
- if ( g_domain.CompareNoCase(lpStrBranchId) != 0 && bIsNeedBranchImg )
- {// 如果不是本店,且本店设置中需要备份分店相片,需要向本店添加导入相片记录;
- #if 1
- ::SendMessage(g_pMainWnd->m_hWnd, MSG_KERNEL_SENDMSG, (WPARAM)lpStrBranchId, (LPARAM)&strSQLInsert);
- #else // 可能是VC6.0与VC9.0间DLL调用产生的问题,下面代码执行时会出错;
- // 如果连接的是分店,断开分店,回连本店;
- g_bBranchModify = FALSE;
- g_pMainWnd->OnDisconnect();
- g_branchname = g_branchip = _T("");
- g_sendhead.bsql = 1;
- g_pMainWnd->ProcessChatMessageRequest2(strSQLInsert);
- g_pMainWnd->OnDisconnect();
- // 设置回分店连接;
- g_branchip = GetBranchIPbyId(lpStrBranchId);
- g_branchname = GetBranchNamebyId(lpStrBranchId);
- g_bBranchModify = TRUE;
- #endif
- }
- }
- }
- //////////////////////////////////////////////////////////////////////////
- // 导出原片结束后的回调函数;
- void CALLBACK IMGExportOCallback(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt )
- {
- AfxSetResourceHandle(g_Instance);
- // 1.判断参数有效性;
- if ( lpStrBranchId == NULL || !strstr(lpStrBranchId, _T(".ly.com")) || lpStrOrderNum == NULL )
- {
- OutputDebugString(_T("回调函数参数(域名、订单号)无效\n"));
- return;
- }
- // 如果需要记录导出的相片编号日志,此处可添加处理过程;
- }
- // 导出初修结束后的回调函数;
- void CALLBACK IMGExportSCallback(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt )
- {
- AfxSetResourceHandle(g_Instance);
- // 1.判断参数有效性;
- if ( lpStrBranchId == NULL || !strstr(lpStrBranchId, _T(".ly.com")) || lpStrOrderNum == NULL )
- {
- OutputDebugString(_T("回调函数参数(域名、订单号)无效\n"));
- return;
- }
- // 如果需要记录导出的相片编号日志,此处可添加处理过程;
- }
- // 导出精修结束后的回调函数;
- void CALLBACK IMGExportFCallback(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt )
- {
- AfxSetResourceHandle(g_Instance);
- // 1.判断参数有效性;
- if ( lpStrBranchId == NULL || !strstr(lpStrBranchId, _T(".ly.com")) || lpStrOrderNum == NULL )
- {
- OutputDebugString(_T("回调函数参数(域名、订单号)无效\n"));
- return;
- }
- // 如果需要记录导出的相片编号日志,此处可添加处理过程;
- }
- // 导出设计结束后的回调函数;
- void CALLBACK IMGExportDCallback(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN LPCTSTR lpStrImgs, IN LPCTSTR lpStrImgExt )
- {
- AfxSetResourceHandle(g_Instance);
- // 1.判断参数有效性;
- if ( lpStrBranchId == NULL || !strstr(lpStrBranchId, _T(".ly.com")) || lpStrOrderNum == NULL )
- {
- OutputDebugString(_T("回调函数参数(域名、订单号)无效\n"));
- return;
- }
- // 如果需要记录导出的相片编号日志,此处可添加处理过程;
- }
- // 导出步骤:
- /*
- 1.选择分店、订单、景点名;
- 2.选择导出的选择模式(1.直接将整个订单或景点导出; 2.只导出选中的部分相片,需要自定义窗口显示所有相片缩略图);
- 3.
- */
- void SetExportEnvInfo(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN BOOL bExportScenery, IN LPCTSTR lpStrScenery, )
- {
- }
- void Export(IN LPCTSTR lpStrBranchId, IN LPCTSTR lpStrOrderNum, IN BOOL bExportScenery, IN LPCTSTR lpStrScenery, )
- {
- }
|