ShangPin.h 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. class ShangPin : public MyFormView
  14. {
  15. CArray<CStringArray, CStringArray>m_List1array;
  16. CString m_oldspid;
  17. DWORD m_autoid;
  18. protected:
  19. ShangPin(); // protected constructor used by dynamic creation
  20. DECLARE_DYNCREATE(ShangPin)
  21. // Form Data
  22. public:
  23. //{{AFX_DATA(ShangPin)
  24. enum { IDD = IDD_DLGShangPin };
  25. CComboBox m_combostatus;
  26. CNumEdit m_editctrl3;
  27. CNumEdit m_editctrl2;
  28. CNumEdit m_editctrl1;
  29. CComboBox m_combosplb;
  30. CSortListCtrl2 m_List1;
  31. CStatic m_static1;
  32. CString m_spbz;
  33. CString m_spdanwei;
  34. CString m_spid;
  35. CString m_spjiaga1;
  36. CString m_spjiage2;
  37. CString m_spname;
  38. CString m_spjiage3;
  39. int m_radio1;
  40. //}}AFX_DATA
  41. // Attributes
  42. public:
  43. // Operations
  44. public:
  45. void AutoId();
  46. BOOL IsExist();
  47. void GetData();
  48. void ListSelChange();
  49. void ClearCtrl();
  50. void FillGrid(CString str);
  51. // Overrides
  52. // ClassWizard generated virtual function overrides
  53. //{{AFX_VIRTUAL(ShangPin)
  54. public:
  55. virtual void OnInitialUpdate();
  56. virtual BOOL PreTranslateMessage(MSG* pMsg);
  57. protected:
  58. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  59. //}}AFX_VIRTUAL
  60. // Implementation
  61. protected:
  62. virtual ~ShangPin();
  63. #ifdef _DEBUG
  64. virtual void AssertValid() const;
  65. virtual void Dump(CDumpContext& dc) const;
  66. #endif
  67. // Generated message map functions
  68. //{{AFX_MSG(ShangPin)
  69. afx_msg void OnBUTsave();
  70. afx_msg void OnBUTdel();
  71. afx_msg void OnBUTclose();
  72. afx_msg void OnClickList2(NMHDR* pNMHDR, LRESULT* pResult);
  73. afx_msg void OnBUTadd();
  74. afx_msg void OnSelchangeCOMBOsplb();
  75. afx_msg void OnRadio1();
  76. afx_msg void OnRadio2();
  77. afx_msg void OnRadio9();
  78. //}}AFX_MSG
  79. DECLARE_MESSAGE_MAP()
  80. };
  81. /////////////////////////////////////////////////////////////////////////////
  82. //{{AFX_INSERT_LOCATION}}
  83. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  84. #endif // !defined(AFX_ShangPin_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)