TXSPDlg.h 1.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. #if !defined(AFX_TXSPDlg_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)
  2. #define AFX_TXSPDlg_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 "EditListCtrl.h"
  10. #include "afxwin.h"
  11. class TXSPDlg : public MyFormView // Ì×ϵÉÌÆ·ÉèÖÃ;
  12. {
  13. CRect m_rcOld;
  14. CArray<CStringArray, CStringArray>m_List1array;
  15. CArray<CStringArray, CStringArray>m_List2array;
  16. CArray<CStringArray, CStringArray>m_List3array;
  17. CArray<CStringArray, CStringArray>m_sparray;
  18. protected:
  19. TXSPDlg(); // protected constructor used by dynamic creation
  20. DECLARE_DYNCREATE(TXSPDlg)
  21. public:
  22. #if 1
  23. enum {
  24. IDD = IDD_DLGTXSP2
  25. };
  26. #else
  27. enum { IDD = IDD_DLGTXSP };
  28. #endif
  29. CEditListCtrl m_List2;
  30. CEditListCtrl m_List1;
  31. CStatic m_static1;
  32. CComboBox m_combotaoxiname;
  33. CString m_taoxiid;
  34. CString m_taoxijiage;
  35. CString m_zs;
  36. public:
  37. void SetSPName2();
  38. void SetSPName1();
  39. CString GetSPNameFromId(CString id);
  40. void FillGrid();
  41. public:
  42. virtual void OnInitialUpdate();
  43. virtual BOOL PreTranslateMessage(MSG* pMsg);
  44. protected:
  45. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  46. protected:
  47. virtual ~TXSPDlg();
  48. #ifdef _DEBUG
  49. virtual void AssertValid() const;
  50. virtual void Dump(CDumpContext& dc) const;
  51. #endif
  52. afx_msg void OnBUTsave();
  53. afx_msg void OnBUTdel();
  54. afx_msg void OnBUTclose();
  55. afx_msg void OnSelchangeCOMBOtaoxiname();
  56. afx_msg void OnBUTspbox();
  57. afx_msg void OnTimer(UINT nIDEvent);
  58. afx_msg void OnBUTsave2();
  59. afx_msg void OnBUTdel2();
  60. afx_msg void OnBUTspbox2();
  61. afx_msg void OnBUTclose2();
  62. DECLARE_MESSAGE_MAP()
  63. public:
  64. // Ì×ϵ´óÀà
  65. CComboBox m_cbKinds;
  66. afx_msg void OnCbnSelchangeKinds();
  67. afx_msg void OnSize(UINT nType, int cx, int cy);
  68. static BOOL CALLBACK EnumChildProc1(HWND hwnd, LPARAM lParam);
  69. };
  70. #endif