TXDlg.h 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #if !defined(AFX_TXDlg_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)
  2. #define AFX_TXDlg_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // TXDlg.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // TXDlg form view
  10. #ifndef __AFXEXT_H__
  11. #include <afxext.h>
  12. #endif
  13. class TXDlg : public CFormView
  14. {
  15. CArray<CStringArray, CStringArray>m_List1array;
  16. CString m_oldtaoxiid;
  17. CString m_oldtaoxiname;
  18. protected:
  19. TXDlg(); // protected constructor used by dynamic creation
  20. DECLARE_DYNCREATE(TXDlg)
  21. // Form Data
  22. public:
  23. //{{AFX_DATA(TXDlg)
  24. enum { IDD = IDD_DLGTX };
  25. CNumEdit m_editctrl1;
  26. CStatic m_static1;
  27. CSortListCtrl2 m_List1;
  28. CString m_taoxiid;
  29. CString m_taoxijiage;
  30. CString m_taoxiname;
  31. CString m_zs;
  32. //}}AFX_DATA
  33. // Attributes
  34. public:
  35. // Operations
  36. public:
  37. BOOL IsExist();
  38. BOOL IsExistID();
  39. BOOL IsExistName();
  40. void GetData();
  41. void ListSelChange();
  42. void ClearCtrl();
  43. void FillGrid();
  44. // Overrides
  45. // ClassWizard generated virtual function overrides
  46. //{{AFX_VIRTUAL(TXDlg)
  47. public:
  48. virtual void OnInitialUpdate();
  49. virtual BOOL PreTranslateMessage(MSG* pMsg);
  50. protected:
  51. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  52. //}}AFX_VIRTUAL
  53. // Implementation
  54. protected:
  55. virtual ~TXDlg();
  56. #ifdef _DEBUG
  57. virtual void AssertValid() const;
  58. virtual void Dump(CDumpContext& dc) const;
  59. #endif
  60. // Generated message map functions
  61. //{{AFX_MSG(TXDlg)
  62. afx_msg void OnBUTsave();
  63. afx_msg void OnBUTdel();
  64. afx_msg void OnBUTclose();
  65. afx_msg void OnClickList2(NMHDR* pNMHDR, LRESULT* pResult);
  66. afx_msg void OnBUTadd();
  67. //}}AFX_MSG
  68. DECLARE_MESSAGE_MAP()
  69. };
  70. /////////////////////////////////////////////////////////////////////////////
  71. //{{AFX_INSERT_LOCATION}}
  72. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  73. #endif // !defined(AFX_TXDlg_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)