TXDlg.h 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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
  6. #ifndef __AFXEXT_H__
  7. #include <afxext.h>
  8. #endif
  9. #include "MyFormView.h"
  10. #include "afxwin.h"
  11. class TXDlg : public MyFormView //Ì×ϵÉèÖÃ;
  12. {
  13. CArray<CStringArray, CStringArray>m_List1array;
  14. CString m_oldtaoxiid;
  15. CString m_oldtaoxiname;
  16. protected:
  17. TXDlg(); // protected constructor used by dynamic creation
  18. DECLARE_DYNCREATE(TXDlg)
  19. public:
  20. enum { IDD = IDD_DLGTX };
  21. CComboBox m_combo2;
  22. CComboBox m_combo1;
  23. CNumEdit m_editctrl1;
  24. CStatic m_static1;
  25. CSortListCtrl2 m_List1;
  26. CString m_taoxiid;
  27. CString m_taoxijiage;
  28. CString m_taoxiname;
  29. CString m_zs;
  30. CString m_zs2;
  31. public:
  32. BOOL IsExist();
  33. BOOL IsExistID();
  34. BOOL IsExistName();
  35. void GetData();
  36. void ListSelChange();
  37. void ClearCtrl();
  38. void FillGrid();
  39. public:
  40. virtual void OnInitialUpdate();
  41. virtual BOOL PreTranslateMessage(MSG* pMsg);
  42. protected:
  43. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  44. protected:
  45. virtual ~TXDlg();
  46. #ifdef _DEBUG
  47. virtual void AssertValid() const;
  48. virtual void Dump(CDumpContext& dc) const;
  49. #endif
  50. afx_msg void OnBUTsave();
  51. afx_msg void OnBUTdel();
  52. afx_msg void OnBUTclose();
  53. afx_msg void OnClickList2(NMHDR* pNMHDR, LRESULT* pResult);
  54. afx_msg void OnBUTadd();
  55. afx_msg void OnButton1();
  56. DECLARE_MESSAGE_MAP()
  57. public:
  58. // Ì×ϵÏÂÀ­¿ò;
  59. CComboBox m_cbKinds;
  60. afx_msg void OnCbnSelchangeKinds();
  61. };
  62. #endif