#if !defined(AFX_TXSPDlg_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_) #define AFX_TXSPDlg_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_ #if _MSC_VER > 1000 #pragma once #endif #ifndef __AFXEXT_H__ #include #endif #include "EditListCtrl.h" #include "afxwin.h" typedef struct __PRODUCTINFO__ { CString strProductId; // 商品id; CString strProductName; // 商品名; CString strProductCost; // 商品成本; CString strProductSale; // 商品卖价; // and so on.... __PRODUCTINFO__(){ strProductId = _T(""); strProductName = _T(""); strProductCost = _T(""); strProductSale = _T(""); } }STProductInfo, *pSTProductInfo; class TXSPDlg : public MyFormView // 套系商品设置; { CRect m_rcOld; CArraym_List1array; CArraym_List2array; CArraym_List3array; CArraym_sparray; protected: TXSPDlg(); // protected constructor used by dynamic creation DECLARE_DYNCREATE(TXSPDlg) public: #if 1 enum { IDD = IDD_DLGTXSP2 }; #else enum { IDD = IDD_DLGTXSP }; #endif CEditListCtrl m_List2; CEditListCtrl m_List1; CStatic m_static1; CComboBox m_combotaoxiname; CString m_taoxiid; CString m_taoxijiage; CString m_zs; public: void SetSPName2(); void SetSPName1(); // 根据商品id获取商品名; CString GetSPNameFromId(CString id); // 根据商品id获取信息信息; BOOL GetProductInfoById(IN CString strProductId, OUT STProductInfo &productinfo); void FillGrid(); // 套系商品成本; float m_CostPackage; // 套系商品卖价; float m_SalePackage; public: virtual void OnInitialUpdate(); virtual BOOL PreTranslateMessage(MSG* pMsg); protected: virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support protected: virtual ~TXSPDlg(); #ifdef _DEBUG virtual void AssertValid() const; virtual void Dump(CDumpContext& dc) const; #endif afx_msg void OnBUTsave(); afx_msg void OnBUTdel(); afx_msg void OnBUTclose(); afx_msg void OnSelchangeCOMBOtaoxiname(); afx_msg void OnBUTspbox(); afx_msg void OnTimer(UINT nIDEvent); afx_msg void OnBUTsave2(); afx_msg void OnBUTdel2(); afx_msg void OnBUTspbox2(); afx_msg void OnBUTclose2(); DECLARE_MESSAGE_MAP() public: // 套系大类 CComboBox m_cbKinds; afx_msg void OnCbnSelchangeKinds(); afx_msg void OnSize(UINT nType, int cx, int cy); static BOOL CALLBACK EnumChildProc1(HWND hwnd, LPARAM lParam); }; #endif