ShangPin.h 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. #if !defined(AFX_ShangPin_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)
  2. #define AFX_ShangPin_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // ShangPin.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // ShangPin form view
  10. #ifndef __AFXEXT_H__
  11. #include <afxext.h>
  12. #endif
  13. #include "MyEdit.h"
  14. class ShangPin : public MyFormView
  15. {
  16. CArray<CStringArray, CStringArray>m_List1array;
  17. CString m_oldspid;
  18. DWORD m_autoid;
  19. protected:
  20. ShangPin(); // protected constructor used by dynamic creation
  21. DECLARE_DYNCREATE(ShangPin)
  22. // Form Data
  23. public:
  24. //{{AFX_DATA(ShangPin)
  25. enum { IDD = IDD_DLGShangPin };
  26. CComboBox m_combostatus;
  27. CNumEdit m_editctrl3;
  28. CNumEdit m_editctrl2;
  29. CNumEdit m_editctrl1;
  30. CMyEdit m_SPNameEdit;
  31. CMyEdit m_SPDanWeiEdit;
  32. CComboBox m_combosplb;
  33. CSortListCtrl2 m_List1;
  34. CStatic m_static1;
  35. CString m_spbz;
  36. CString m_spdanwei; //商品单位
  37. CString m_spid;
  38. CString m_spjiaga1; //商品成本
  39. CString m_spjiage2; //商品卖价
  40. CString m_spname; //名称(禁止标点符号)
  41. CString m_spjiage3;
  42. int m_radio1;
  43. //}}AFX_DATA
  44. // Attributes
  45. public:
  46. // Operations
  47. public:
  48. void AutoId();
  49. BOOL IsExist();
  50. void GetData();
  51. void ListSelChange();
  52. void ClearCtrl();
  53. void FillGrid(CString str);
  54. // Overrides
  55. // ClassWizard generated virtual function overrides
  56. //{{AFX_VIRTUAL(ShangPin)
  57. public:
  58. virtual void OnInitialUpdate();
  59. virtual BOOL PreTranslateMessage(MSG* pMsg);
  60. protected:
  61. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  62. //}}AFX_VIRTUAL
  63. // Implementation
  64. protected:
  65. virtual ~ShangPin();
  66. #ifdef _DEBUG
  67. virtual void AssertValid() const;
  68. virtual void Dump(CDumpContext& dc) const;
  69. #endif
  70. // Generated message map functions
  71. //{{AFX_MSG(ShangPin)
  72. afx_msg void OnBUTsave();
  73. afx_msg void OnBUTdel();
  74. afx_msg void OnBUTclose();
  75. afx_msg void OnClickList2(NMHDR* pNMHDR, LRESULT* pResult);
  76. afx_msg void OnBUTadd();
  77. afx_msg void OnSelchangeCOMBOsplb();
  78. afx_msg void OnRadio1();
  79. afx_msg void OnRadio2();
  80. afx_msg void OnRadio9();
  81. //}}AFX_MSG
  82. DECLARE_MESSAGE_MAP()
  83. public:
  84. int m_etProductWidth;
  85. int m_etProductHeight;
  86. };
  87. /////////////////////////////////////////////////////////////////////////////
  88. //{{AFX_INSERT_LOCATION}}
  89. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  90. #endif // !defined(AFX_ShangPin_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)