123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104 |
- #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 <afxext.h>
- #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;
- CArray<CStringArray, CStringArray>m_List1array;
- CArray<CStringArray, CStringArray>m_List2array;
- CArray<CStringArray, CStringArray>m_List3array;
- CArray<CStringArray, CStringArray>m_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
|