FixedAssets.h 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. #if !defined(AFX_FixedAssets_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)
  2. #define AFX_FixedAssets_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_
  3. #if _MSC_VER > 1000
  4. #pragma once
  5. #endif // _MSC_VER > 1000
  6. // FixedAssets.h : header file
  7. //
  8. /////////////////////////////////////////////////////////////////////////////
  9. // FixedAssets form view
  10. #ifndef __AFXEXT_H__
  11. #include <afxext.h>
  12. #endif
  13. #include "TreeComboBox.h"
  14. class FixedAssets : public MyFormView
  15. {
  16. Image *m_pImg;
  17. CString m_oldid;
  18. CString m_oldname;
  19. CArray<CStringArray, CStringArray>m_List1array;
  20. protected:
  21. FixedAssets(); // protected constructor used by dynamic creation
  22. DECLARE_DYNCREATE(FixedAssets)
  23. // Form Data
  24. public:
  25. //{{AFX_DATA(FixedAssets)
  26. enum { IDD = IDD_DLGFixedAssets };
  27. CDateEdit m_datectrl;
  28. CTreeComboBox m_comboclerk;
  29. CSortListCtrl2 m_List1;
  30. CStatic m_static1;
  31. CString m_sex;
  32. CString m_id;
  33. CString m_name;
  34. CString m_count;
  35. CString m_type;
  36. CString m_date;
  37. CString m_remark;
  38. //}}AFX_DATA
  39. // Attributes
  40. public:
  41. // Operations
  42. public:
  43. BOOL IsExist();
  44. BOOL IsExistID();
  45. BOOL IsExistName();
  46. void GetData();
  47. void ListSelChange();
  48. void ClearCtrl();
  49. void FillGrid();
  50. // Overrides
  51. // ClassWizard generated virtual function overrides
  52. //{{AFX_VIRTUAL(FixedAssets)
  53. public:
  54. virtual void OnInitialUpdate();
  55. virtual BOOL PreTranslateMessage(MSG* pMsg);
  56. protected:
  57. virtual void DoDataExchange(CDataExchange* pDX); // DDX/DDV support
  58. //}}AFX_VIRTUAL
  59. // Implementation
  60. protected:
  61. virtual ~FixedAssets();
  62. #ifdef _DEBUG
  63. virtual void AssertValid() const;
  64. virtual void Dump(CDumpContext& dc) const;
  65. #endif
  66. // Generated message map functions
  67. //{{AFX_MSG(FixedAssets)
  68. afx_msg void OnBUTsave();
  69. afx_msg void OnBUTdel();
  70. afx_msg void OnBUTclose();
  71. afx_msg void OnClickList2(NMHDR* pNMHDR, LRESULT* pResult);
  72. afx_msg void OnBUTload();
  73. afx_msg void OnBUTdel2();
  74. afx_msg void OnPaint();
  75. afx_msg void OnLButtonDown(UINT nFlags, CPoint point);
  76. afx_msg void OnButton1();
  77. //}}AFX_MSG
  78. DECLARE_MESSAGE_MAP()
  79. };
  80. /////////////////////////////////////////////////////////////////////////////
  81. //{{AFX_INSERT_LOCATION}}
  82. // Microsoft Visual C++ will insert additional declarations immediately before the previous line.
  83. #endif // !defined(AFX_FixedAssets_H__ACD9E9EA_B724_4711_9C6F_DE3ADA090E2E__INCLUDED_)