ChoosePhotoSkin2.h 6.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227
  1. #if !defined(AFX_ChoosePhotoSkin2_H__10660444_160F_41F4_9A1D_50A4F7C66150__INCLUDED_)
  2. #define AFX_ChoosePhotoSkin2_H__10660444_160F_41F4_9A1D_50A4F7C66150__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ChoosePhotoSkin2.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // ChoosePhotoSkin2 dialo g
  10. #include "MyBmpButton2.h"
  11. #include "resource.h"
  12. #include <afxtempl.h>
  13. #include "shockwaveflash.h"
  14. #include "EditListCtrl.h"
  15. #include "ShowSelPhoto.h"
  16. #include "ShowSelPhoto2.h"
  17. #include <vector>
  18. using namespace std;
  19. // 开始选片、选设计
  20. class ChoosePhotoSkin2 : public CDialog
  21. {
  22. BOOL m_bChooseBig;
  23. BOOL m_bSaveFail;
  24. CString m_sChooseFilter;
  25. int m_nChoosePhotoType;
  26. CStringArray m_DirArrayBuf;
  27. BOOL m_bCanSave;
  28. int m_ticks;
  29. int m_timer;
  30. CString m_delphotos;
  31. CString m_liapath;
  32. BOOL m_bSort;
  33. ShowSelPhoto m_selphotownd;
  34. ShowSelPhoto2 m_selphotownd2;
  35. // Construction
  36. public:
  37. BOOL CheckHC();
  38. BOOL m_bFromLocal;
  39. void ReLoadPhoto();
  40. BOOL IsPhoto2Exist();
  41. CString m_seltxname;
  42. BOOL m_bGrowthTX;
  43. CString taoxiname;
  44. CString m_taoxijiage;
  45. CString m_waiter1;
  46. CString m_waiter2;
  47. CString m_clothescount;
  48. CString ren;
  49. CString m_time5old;
  50. CString m_time6old;
  51. CString m_checkstatus;
  52. CString m_size;
  53. BOOL ReLoad();
  54. BOOL m_bShowTimeOut;
  55. void GetDiskPhoto();
  56. void GetAlbumPhoto();
  57. int GetNoSelPhotoCount();
  58. CString m_name;
  59. void CalChooseZS();
  60. void OnRclickList2();
  61. void GetSelCountFromName(CString name, CString &scount);
  62. CString GetZSInfo(int iItem);
  63. // remark by Jeff
  64. void DelNo(CString no); // 根据相片文件名删除相片文件存根;
  65. CStringArray m_patharray1; // 查看全部相片;
  66. CStringArray m_patharray2; // 查看选中相片;
  67. CStringArray m_patharray3; // 查看未选相片;
  68. CStringArray m_patharray4; // 查看删除相片;
  69. CStringArray m_patharray5; // 查看入册相片;
  70. CStringArray m_patharray6; // 查看入底相片;
  71. BOOL InitializeUI(); // add by Jeff:初始化用户界面,用于细化OnInitDialog
  72. BOOL CheckOK(CString name);
  73. BOOL CheckName(CString name);
  74. void CheckForDisk();
  75. BOOL m_bHide;
  76. // Jeff:m_pArray没有找到赋值的地方,未知其应用!
  77. // 只用于选片模式,选设计未用到该变量!
  78. CStringArray *m_pArray; // Jeff:what effect is?
  79. CString m_oldmoney3;
  80. void DrawLogin();
  81. void Save();
  82. void GetPhotos();
  83. void CheckForAlbum();
  84. void SortArray();
  85. int m_mode; // 作用:当前欲查看的相片(全部、选中、未选、删除、入册、入底);
  86. BOOL GetData2();
  87. int m_mode2; // 作用:选片==0、看设计==1;
  88. void OnDblclkList1();
  89. CString GetSelName(CString name);
  90. CArray<CStringArray, CStringArray>oldsparray;
  91. CArray<CStringArray, CStringArray>m_sparray;
  92. CArray<CStringArray, CStringArray>m_List2array;
  93. // Jeff:备份什么? 备份"查看全部"的相片?
  94. CStringArray m_noarray;//no备份 ,11,12,13, 格式
  95. // Jeff:备份什么? 备份"查看选中"的相片?
  96. CStringArray m_no2array;//no备份 ,11,12,13, 格式
  97. BOOL IsSelPhoto(CString path);
  98. BOOL IsSelAlbumPhoto(CString path);
  99. BOOL IsSelDiskPhoto(CString path);
  100. CStringArray* GetCurArray();
  101. void GetNoSelPhoto();
  102. void LoadPhotos();
  103. void GetPath(CString str);
  104. CString GetSPNameFromId(CString id);
  105. float GetSPPriceFromId(CString id);
  106. void SetSPName3();
  107. BOOL OnDel();
  108. void OnRclickList1();
  109. void UpdateChooseZS();
  110. BOOL m_bSave;
  111. BOOL m_bModify;
  112. void UpdateTakeZS();
  113. int GetZS(CString str);
  114. BOOL GetData();
  115. //CString m_id;
  116. CString m_strOrderNumber;
  117. CString m_status8;
  118. BOOL TerminateThread();
  119. void LoadThumbImages();
  120. CString m_path;
  121. HWND m_showpichwd;
  122. vector<CString> m_vFileName;
  123. // CListCtrl m_ListCtrl;
  124. CImageList m_ImageListThumb; // image list holding the thumbnails
  125. bool m_bRunning; // Flag to whether thread is on running or not
  126. bool m_bTerminate; // Flag to Thread to be terminated
  127. unsigned int m_dwThreadID; // Thread ID
  128. HANDLE m_hThread, m_hEvent; // Thread and Event handle
  129. CShockwaveFlash m_flashctrl;
  130. Image *m_pBk;
  131. void SetLiaPath(CString path);
  132. void OnPaint2(CWnd *pWnd);
  133. ChoosePhotoSkin2(DWORD id, CWnd *pParent);
  134. CWnd *m_pParent;
  135. CArray<DWORD,DWORD>m_picarray;
  136. CArray<CRect,CRect>m_rcarray;
  137. ChoosePhotoSkin2(CWnd* pParent = NULL); // standard constructor
  138. // Dialog Data
  139. //{{AFX_DATA(ChoosePhotoSkin2)
  140. enum { IDD = IDD_DLGChoosePhotoSkin2 };
  141. CNumEdit m_editnum4;
  142. CNumEdit m_editnum3;
  143. CNumEdit m_editnum2;
  144. CNumEdit m_editnum1;
  145. // Jeff: 自动id、编号、商品名称、价格、数量、(p数、张数、)照片编号;
  146. CEditListCtrl m_List3;
  147. // Jeff: what effect that is!?//商品编号,商品名,数量;
  148. CEditListCtrl m_List2;
  149. CListCtrl m_List1;
  150. CComboBox m_combo1;
  151. CString m_name1;
  152. CString m_name2;
  153. CString m_phone1;
  154. CString m_phone2;
  155. CString m_time4;
  156. CString m_waiter3;
  157. CString m_takezs;
  158. CString m_taoxizs;
  159. CString m_choosezs;
  160. CString m_money3;
  161. CString m_bz3;
  162. CString m_bz4;
  163. CString m_bz2;
  164. CString m_time5;
  165. CString m_time6;
  166. CString m_urgent;
  167. //}}AFX_DATA
  168. // Overrides
  169. // ClassWizard generated virtual function overrides
  170. //{{AFX_VIRTUAL(ChoosePhotoSkin2)
  171. public:
  172. virtual BOOL PreTranslateMessage(MSG* pMsg);
  173. protected:
  174. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  175. //}}AFX_VIRTUAL
  176. // Implementation
  177. protected:
  178. // Generated message map functions
  179. //{{AFX_MSG(ChoosePhotoSkin2)
  180. virtual BOOL OnInitDialog();
  181. afx_msg void OnPaint();
  182. afx_msg void OnDestroy();
  183. afx_msg BOOL OnEraseBkgnd(CDC* pDC);
  184. virtual void OnOK();
  185. virtual void OnCancel();
  186. afx_msg void OnFSCommandShockwaveflash1(LPCTSTR command, LPCTSTR args);
  187. afx_msg void OnDblclkList1(NMHDR* pNMHDR, LRESULT* pResult);
  188. afx_msg void OnClose();
  189. afx_msg void OnRclickList1(NMHDR* pNMHDR, LRESULT* pResult);
  190. afx_msg void OnButton1();
  191. afx_msg void OnButton2();
  192. afx_msg void OnButton3();
  193. afx_msg void OnButton4(); // 保存按钮
  194. afx_msg void OnClickList1(NMHDR* pNMHDR, LRESULT* pResult);
  195. afx_msg void OnTimer(UINT nIDEvent);
  196. afx_msg void OnSpBox();
  197. afx_msg void OnButton8();
  198. afx_msg void OnButton5();
  199. afx_msg void OnButton6();
  200. DECLARE_EVENTSINK_MAP()
  201. //}}AFX_MSG
  202. afx_msg void OnBtnClick (WPARAM wParam, LPARAM lParam);
  203. afx_msg void OnComMsg (WPARAM wParam, LPARAM lParam);
  204. void OnCommandMenu(UINT nID); //响应菜单命令
  205. void OnCommandMenu2(UINT nID); //响应菜单命令
  206. afx_msg long UpdateTakeZS(WPARAM inWParam, LPARAM inLParam);
  207. DECLARE_MESSAGE_MAP()
  208. };
  209. //{{AFX_INSERT_LOCATION}}
  210. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  211. #endif // !defined(AFX_ChoosePhotoSkin2_H__10660444_160F_41F4_9A1D_50A4F7C66150__INCLUDED_)