BeautifySkinFrom2.h 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120
  1. #if !defined(AFX_BeautifySkinFrom2_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)
  2. #define AFX_BeautifySkinFrom2_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif
  6. #ifndef __AFXEXT_H__
  7. #include <afxext.h>
  8. #endif
  9. #include "MyFormView.h"
  10. //
  11. // 精修View;
  12. //
  13. class BeautifySkinFrom2 : public MyFormView // 精修视图窗口;
  14. {
  15. int m_nAdd;
  16. CArray<CStringArray, CStringArray>m_List1array;
  17. protected:
  18. BeautifySkinFrom2(); // protected constructor used by dynamic creation
  19. DECLARE_DYNCREATE(BeautifySkinFrom2)
  20. public:
  21. enum { IDD = IDD_DLGBeautifySkin2 };
  22. CComboBox m_combo1;
  23. CSortListCtrl2 m_FurtherList;
  24. CStatic m_static1;
  25. CString m_filter;
  26. public:
  27. void GetNo(CString str, CStringArray &array);
  28. CString GetSelName(CString name, CArray<CStringArray, CStringArray>&spnamearray);
  29. // Operations
  30. public:
  31. void GetData();
  32. void HidePrice();
  33. void FillGrid(BOOL bStatus=0);
  34. virtual void OnInitialUpdate();
  35. virtual BOOL PreTranslateMessage(MSG* pMsg);
  36. protected:
  37. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  38. protected:
  39. virtual ~BeautifySkinFrom2();
  40. #ifdef _DEBUG
  41. virtual void AssertValid() const;
  42. virtual void Dump(CDumpContext& dc) const;
  43. #endif
  44. afx_msg void OnBUTclose();
  45. afx_msg void OnButton1();
  46. afx_msg void OnSelchangeCombo1();
  47. afx_msg void OnTimer(UINT nIDEvent);
  48. afx_msg void OnBUTimportphoto();
  49. afx_msg void OnBUTshowphoto();
  50. afx_msg void OnBUTexportphoto(); // 导出选好的片;
  51. afx_msg void OnBUTexportphoto2(); // 导出精修的片;
  52. afx_msg void OnButton2();
  53. afx_msg void OnItemchangedList2(NMHDR* pNMHDR, LRESULT* pResult);
  54. afx_msg void OnClickList2(NMHDR* pNMHDR, LRESULT* pResult);
  55. afx_msg void OnBtnsearchfilter();
  56. afx_msg void OnBUTprint3();
  57. DECLARE_MESSAGE_MAP()
  58. public:
  59. #if USE_SHARE_FLORD
  60. // 每个相片关联的商品串;
  61. typedef struct __STEachImageWithGoods__
  62. {
  63. CString strImageNum;
  64. CStringArray strArryofGood;
  65. }STEachImageWithGoods,*pSTEachImageWithGoods;
  66. void GetCurSelRecord(
  67. OUT CString &strName1,
  68. OUT CString &strName2,
  69. OUT CString &strOrderNum,
  70. OUT CString &strBranch,
  71. OUT CString &strDomain);
  72. int GetImageWithGoods(
  73. IN CString &strBranch,
  74. IN CString &strDomain,
  75. IN CString &strOrderNum,
  76. OUT BOOL &bGrowth,
  77. OUT CString &strSelGrowth,
  78. OUT BOOL &bExportWithName,
  79. OUT CStringArray &strAryOfImagePath,
  80. OUT CStringArray &strEachImageOfGoods,
  81. OUT CArray<CStringArray, CStringArray> &sparray2);
  82. // 初修订单目录有子目录;
  83. void LoadExistsImages(
  84. IN const int &nPhotoType,
  85. IN LPCTSTR lpDomain,
  86. IN LPCTSTR lpOrderNum,
  87. IN BOOL bGrowTh,
  88. IN LPCTSTR lpSelectName,
  89. IN CStringArray &strAryOfScenery,
  90. IN CStringArray &strAryOfImageNum,
  91. OUT CStringArray &strAryOfImagePath,
  92. OUT CStringArray &strAryOfImageGoods);
  93. // 初修订单目录没有子目录;
  94. void LoadExistsImagesEx(
  95. IN const int &nPhotoType,
  96. IN LPCTSTR lpDomain,
  97. IN LPCTSTR lpOrderNum,
  98. IN BOOL bGrowTh,
  99. IN LPCTSTR lpSelectName,
  100. IN CStringArray &strAryOfScenery,
  101. IN CStringArray &strAryOfImageNum,
  102. OUT CStringArray &strAryOfImagePath,
  103. OUT CStringArray &strAryOfImageGoods);
  104. #endif
  105. };
  106. #endif